Sorting Pattern-Avoiding Permutations via 0-1 Matrices Forbidding Product Patterns
Parinya Chalermsook, Seth Pettie, Sorrachai Yingchareonthawornchai
Abstract
We consider the problem of comparison-sorting an n-permutation S that avoids some kpermutation π. Chalermsook, Goswami, Kozma, Mehlhorn, and Saranurak [CGK 15b] prove that when S is sorted by inserting the elements into the GreedyFuture [DHI 09] binary search tree, the running time is linear in the extremal function ExpP π b ´‚ ‚ ‚ ¯, nq. This is the maximum number of 1s in an n ˆn 0-1 matrix avoiding P π b ´‚ ‚ ‚ ¯, where P π is the k ˆk permutation matrix of π, and P π b ´‚ ‚ ‚ ¯is the 2k ˆ3k Kronecker product of P π and the "hat" pattern ´‚ ‚ ‚ ¯. The same time bound can be achieved by sorting S with Kozma and Saranurak's SmoothHeap [KS20].
Applying off-the-shelf results on the extremal functions of 0-1 matrices, it was known that
where αpnq is the inverse-Ackermann function. In this paper we give nearly tight upper and lower bounds on the density of P π b ´‚ ‚ ‚ ¯-free matrices in terms of "n", and improve the dependence on "k" from doubly exponential to singly exponential.
As a consequence, sorting π-free sequences can be performed in Opn2 p1`op1qqαpnq q time. For many corollaries of the dynamic optimality conjecture, the best analysis uses forbidden 0-1 matrix theory. Our analysis may be useful in analyzing other classes of access sequences on binary search trees.
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.
5 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 An Optimal Algorithm for Sorting Pattern-Avoiding Sequences
- An Optimal Algorithm for Sorting Pattern-Avoiding Sequences cites Optimization with Pattern-Avoiding Input
- Optimization with Pattern-Avoiding Input cites Improved Pattern-Avoidance Bounds for Greedy BSTs via Matrix Decomposition
- Optimization with Pattern-Avoiding Input cites Factoring Pattern-Free Permutations into Separable ones
- An Optimal Algorithm for Sorting Pattern-Avoiding Sequences cites Improved Pattern-Avoidance Bounds for Greedy BSTs via Matrix Decomposition
- An Optimal Algorithm for Sorting Pattern-Avoiding Sequences cites Factoring Pattern-Free Permutations into Separable ones
- Testing forbidden order-pattern properties on hypergrids cites Optimization with Pattern-Avoiding Input
- Testing forbidden order-pattern properties on hypergrids cites Improved Pattern-Avoidance Bounds for Greedy BSTs via Matrix Decomposition
- A Refutation of the Pach-Tardos Conjecture for 0-1 Matrices cites Improved Pattern-Avoidance Bounds for Greedy BSTs via Matrix Decomposition
- A Refutation of the Pach-Tardos Conjecture for 0-1 Matrices cites On the Extremal Functions of Acyclic Forbidden 0-1 Matrices
- On the Extremal Functions of Acyclic Forbidden 0-1 Matrices cites Improved Pattern-Avoidance Bounds for Greedy BSTs via Matrix Decomposition
Cited by top-tier papers5
- 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
- An Optimal Algorithm for Sorting Pattern-Avoiding SequencesMichal OplerFOCS 2024 · 1 citation
- A Refutation of the Pach-Tardos Conjecture for 0-1 MatricesSeth Pettie, Gábor TardosSODA 2025 · 1 citation
- Testing forbidden order-pattern properties on hypergridsHarish Chandramouleeswaran, Ilan Newman, Tomer Pelleg, Nithin VarmaSODA 2026
Builds on2
Related papers
- Kissing to Find a Match: Efficient Low-Rank Permutation RepresentationHannah Dröge, Zorah Lähner, Yuval Bahat, Onofre Martorell Nadal et al.NeurIPS 2023 · 7 citations
- Query Complexity of Inversion Minimization on TreesIvan Hu, Dieter van Melkebeek, Andrew MorganSODA 2023 · 1 citation
- Tight Pair Query Lower Bounds for Matching and Earth Mover's DistanceAmir Azarmehr, Soheil Behnezhad, Mohammad Roghani, Aviad RubinsteinFOCS 2025 · 2 citations
- Formula Size-Depth Tradeoffs for Iterated Sub-permutation Matrix MultiplicationBenjamin RossmanSTOC 2024 · 1 citation
- Stochastic and Worst-Case Generalized Sorting RevisitedWilliam Kuszmaul, Shyam NarayananFOCS 2021 · 2 citations
