{"title":"避免模式序列排序的最佳算法","authors":"Michal Opler","doi":"arxiv-2409.07868","DOIUrl":null,"url":null,"abstract":"We present a deterministic comparison-based algorithm that sorts sequences\navoiding a fixed permutation $\\pi$ in linear time, even if $\\pi$ is a priori\nunkown. Moreover, the dependence of the multiplicative constant on the pattern\n$\\pi$ matches the information-theoretic lower bound. A crucial ingredient is an\nalgorithm for performing efficient multi-way merge based on the Marcus-Tardos\ntheorem. As a direct corollary, we obtain a linear-time algorithm for sorting\npermutations of bounded twin-width.","PeriodicalId":501525,"journal":{"name":"arXiv - CS - Data Structures and Algorithms","volume":"402 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-09-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"An Optimal Algorithm for Sorting Pattern-Avoiding Sequences\",\"authors\":\"Michal Opler\",\"doi\":\"arxiv-2409.07868\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"We present a deterministic comparison-based algorithm that sorts sequences\\navoiding a fixed permutation $\\\\pi$ in linear time, even if $\\\\pi$ is a priori\\nunkown. Moreover, the dependence of the multiplicative constant on the pattern\\n$\\\\pi$ matches the information-theoretic lower bound. A crucial ingredient is an\\nalgorithm for performing efficient multi-way merge based on the Marcus-Tardos\\ntheorem. As a direct corollary, we obtain a linear-time algorithm for sorting\\npermutations of bounded twin-width.\",\"PeriodicalId\":501525,\"journal\":{\"name\":\"arXiv - CS - Data Structures and Algorithms\",\"volume\":\"402 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-09-12\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Data Structures and Algorithms\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2409.07868\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Data Structures and Algorithms","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2409.07868","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
An Optimal Algorithm for Sorting Pattern-Avoiding Sequences
We present a deterministic comparison-based algorithm that sorts sequences
avoiding a fixed permutation $\pi$ in linear time, even if $\pi$ is a priori
unkown. Moreover, the dependence of the multiplicative constant on the pattern
$\pi$ matches the information-theoretic lower bound. A crucial ingredient is an
algorithm for performing efficient multi-way merge based on the Marcus-Tardos
theorem. As a direct corollary, we obtain a linear-time algorithm for sorting
permutations of bounded twin-width.