An Optimal Algorithm for Sorting Pattern-Avoiding Sequences
Michal Opler
Abstract
We present a deterministic comparison-based algorithm that sorts sequences avoiding a fixed permutationin linear time, even ifis a priori unkown. Moreover, the dependence of the multiplicative constant on the patternmatches 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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
2 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Optimization with Pattern-Avoiding Input cites Improved Pattern-Avoidance Bounds for Greedy BSTs via Matrix Decomposition
- Optimization with Pattern-Avoiding Input cites Sorting Pattern-Avoiding Permutations via 0-1 Matrices Forbidding Product Patterns
- Optimization with Pattern-Avoiding Input cites Factoring Pattern-Free Permutations into Separable ones
- Optimization with Pattern-Avoiding Input cites Twin-width I: tractable FO model checking
- Approximate Counting of Permutation Patterns cites Optimization with Pattern-Avoiding Input
- Approximate Counting of Permutation Patterns cites Twin-width I: tractable FO model checking
- Sorting Pattern-Avoiding Permutations via 0-1 Matrices Forbidding Product Patterns cites Improved Pattern-Avoidance Bounds for Greedy BSTs via Matrix Decomposition
- Factoring Pattern-Free Permutations into Separable ones cites Sorting Pattern-Avoiding Permutations via 0-1 Matrices Forbidding Product Patterns
- Factoring Pattern-Free Permutations into Separable ones cites Twin-width I: tractable FO model checking
Cited by top-tier papers2
Builds on5
- Twin-width I: tractable FO model checkingÉdouard Bonnet, Eun Jung Kim, Stéphan Thomassé, Rémi WatrigantFOCS 2020 · 82 citations
- Improved Pattern-Avoidance Bounds for Greedy BSTs via Matrix DecompositionParinya Chalermsook, Manoj Gupta, Wanchote Jiamjitrak, Nidia Obscura Acosta et al.SODA 2023 · 4 citations
- Sorting Pattern-Avoiding Permutations via 0-1 Matrices Forbidding Product PatternsParinya Chalermsook, Seth Pettie, Sorrachai YingchareonthawornchaiSODA 2024 · 4 citations
- Factoring Pattern-Free Permutations into Separable onesEdouard Bonnet, Romain Bourneuf, Colin Geniet, Stéphan ThomasséSODA 2024 · 2 citations
- Optimization with Pattern-Avoiding InputBenjamin Aram Berendsohn, László Kozma, Michal OplerSTOC 2024 · 1 citation
Related papers
- Fast and Simple Sorting Using Partial InformationBernhard Haeupler, Richard Hladík, John Iacono, Václav Rozhon et al.SODA 2025 · 3 citations
- Adaptive Shivers Sort: An Alternative Sorting AlgorithmVincent JugéSODA 2020 · 9 citations
- Stochastic and Worst-Case Generalized Sorting RevisitedWilliam Kuszmaul, Shyam NarayananFOCS 2021 · 2 citations
- Twin-width II: small classesÉdouard Bonnet, Colin Geniet, Eun Jung Kim, Stéphan Thomassé et al.SODA 2021 · 61 citations
- Upper Bound on Information-Theoretic Security of Permutation-Based Pseudorandom FunctionsChun Guo, Jian Guo, Xinnian Li, Wenjie NanEUROCRYPT 2026
