Virginia Ardévol Martínez, Florian Sikora, Stéphane Vialette
{"title":"Parity Permutation Pattern Matching","authors":"Virginia Ardévol Martínez, Florian Sikora, Stéphane Vialette","doi":"10.1007/s00453-024-01237-0","DOIUrl":null,"url":null,"abstract":"<div><p>Given two permutations, a pattern <span>\\(\\sigma \\)</span> and a text <span>\\(\\pi \\)</span>, <span>Parity Permutation Pattern Matching</span> asks whether there exists a parity and order preserving embedding of <span>\\(\\sigma \\)</span> into <span>\\(\\pi \\)</span>. While it is known that <span>Permutation Pattern Matching</span> is in <span>\\(\\textsc {FPT}\\)</span>, we show that adding the parity constraint to the problem makes it <span>\\(\\textsc {W}[1]\\)</span>-hard, even for alternating permutations or for 4321-avoiding patterns. However, the problem remains in <span>\\(\\textsc {FPT}\\)</span> if <span>\\(\\pi \\)</span> avoids a fixed permutation, thanks to a recent meta-theorem on twin-width. On the other hand, as for the classical version, <span>Parity Permutation Pattern Matching</span> remains polynomial-time solvable when the pattern is separable, or if both permutations are 321-avoiding, but <span>NP</span>-hard if <span>\\(\\sigma \\)</span> is 321-avoiding and <span>\\(\\pi \\)</span> is 4321-avoiding.</p></div>","PeriodicalId":50824,"journal":{"name":"Algorithmica","volume":"86 8","pages":"2605 - 2624"},"PeriodicalIF":0.9000,"publicationDate":"2024-05-22","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Algorithmica","FirstCategoryId":"94","ListUrlMain":"https://link.springer.com/article/10.1007/s00453-024-01237-0","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q4","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0
Abstract
Given two permutations, a pattern \(\sigma \) and a text \(\pi \), Parity Permutation Pattern Matching asks whether there exists a parity and order preserving embedding of \(\sigma \) into \(\pi \). While it is known that Permutation Pattern Matching is in \(\textsc {FPT}\), we show that adding the parity constraint to the problem makes it \(\textsc {W}[1]\)-hard, even for alternating permutations or for 4321-avoiding patterns. However, the problem remains in \(\textsc {FPT}\) if \(\pi \) avoids a fixed permutation, thanks to a recent meta-theorem on twin-width. On the other hand, as for the classical version, Parity Permutation Pattern Matching remains polynomial-time solvable when the pattern is separable, or if both permutations are 321-avoiding, but NP-hard if \(\sigma \) is 321-avoiding and \(\pi \) is 4321-avoiding.
期刊介绍:
Algorithmica is an international journal which publishes theoretical papers on algorithms that address problems arising in practical areas, and experimental papers of general appeal for practical importance or techniques. The development of algorithms is an integral part of computer science. The increasing complexity and scope of computer applications makes the design of efficient algorithms essential.
Algorithmica covers algorithms in applied areas such as: VLSI, distributed computing, parallel processing, automated design, robotics, graphics, data base design, software tools, as well as algorithms in fundamental areas such as sorting, searching, data structures, computational geometry, and linear programming.
In addition, the journal features two special sections: Application Experience, presenting findings obtained from applications of theoretical results to practical situations, and Problems, offering short papers presenting problems on selected topics of computer science.