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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 642a1d78-15a4-41b9-b07c-6880eeb508d7Cited 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
