Lune

SODA2024Top-tier venue

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.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

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
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Factoring Pattern-Free Permutations into Separable onesEdouard Bonnet, Romain Bourneuf, Colin Geniet, Stéphan ThomasséSODA 2024 · 2 citations
  2. Optimization with Pattern-Avoiding InputBenjamin Aram Berendsohn, László Kozma, Michal OplerSTOC 2024 · 1 citation
  3. An Optimal Algorithm for Sorting Pattern-Avoiding SequencesMichal OplerFOCS 2024 · 1 citation
  4. A Refutation of the Pach-Tardos Conjecture for 0-1 MatricesSeth Pettie, Gábor TardosSODA 2025 · 1 citation
  5. Testing forbidden order-pattern properties on hypergridsHarish Chandramouleeswaran, Ilan Newman, Tomer Pelleg, Nithin VarmaSODA 2026

Builds on2

  1. Improved Pattern-Avoidance Bounds for Greedy BSTs via Matrix DecompositionParinya Chalermsook, Manoj Gupta, Wanchote Jiamjitrak, Nidia Obscura Acosta et al.SODA 2023 · 4 citations
  2. On the Extremal Functions of Acyclic Forbidden 0-1 MatricesSeth Pettie, Gábor TardosSODA 2024 · 2 citations

Related papers

  1. 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
  2. Query Complexity of Inversion Minimization on TreesIvan Hu, Dieter van Melkebeek, Andrew MorganSODA 2023 · 1 citation
  3. Tight Pair Query Lower Bounds for Matching and Earth Mover's DistanceAmir Azarmehr, Soheil Behnezhad, Mohammad Roghani, Aviad RubinsteinFOCS 2025 · 2 citations
  4. Formula Size-Depth Tradeoffs for Iterated Sub-permutation Matrix MultiplicationBenjamin RossmanSTOC 2024 · 1 citation
  5. Stochastic and Worst-Case Generalized Sorting RevisitedWilliam Kuszmaul, Shyam NarayananFOCS 2021 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines