Lune

FOCS2024Top-tier venue

An Optimal Algorithm for Sorting Pattern-Avoiding Sequences

Michal Opler

Abstract

We present a deterministic comparison-based algorithm that sorts sequences avoiding a fixed permutationπ\piin linear time, even ifπ\piis a priori unkown. Moreover, the dependence of the multiplicative constant on the patternπ\pimatches 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.

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

Cited by top-tier papers2

  1. Optimization with Pattern-Avoiding InputBenjamin Aram Berendsohn, László Kozma, Michal OplerSTOC 2024 · 1 citation
  2. Approximate Counting of Permutation PatternsOmri Ben-Eliezer, Slobodan Mitrovic, Pranjal SrivastavaSODA 2026

Builds on5

  1. Twin-width I: tractable FO model checkingÉdouard Bonnet, Eun Jung Kim, Stéphan Thomassé, Rémi WatrigantFOCS 2020 · 82 citations
  2. Improved Pattern-Avoidance Bounds for Greedy BSTs via Matrix DecompositionParinya Chalermsook, Manoj Gupta, Wanchote Jiamjitrak, Nidia Obscura Acosta et al.SODA 2023 · 4 citations
  3. Sorting Pattern-Avoiding Permutations via 0-1 Matrices Forbidding Product PatternsParinya Chalermsook, Seth Pettie, Sorrachai YingchareonthawornchaiSODA 2024 · 4 citations
  4. Factoring Pattern-Free Permutations into Separable onesEdouard Bonnet, Romain Bourneuf, Colin Geniet, Stéphan ThomasséSODA 2024 · 2 citations
  5. Optimization with Pattern-Avoiding InputBenjamin Aram Berendsohn, László Kozma, Michal OplerSTOC 2024 · 1 citation

Related papers

  1. Fast and Simple Sorting Using Partial InformationBernhard Haeupler, Richard Hladík, John Iacono, Václav Rozhon et al.SODA 2025 · 3 citations
  2. Adaptive Shivers Sort: An Alternative Sorting AlgorithmVincent JugéSODA 2020 · 9 citations
  3. Stochastic and Worst-Case Generalized Sorting RevisitedWilliam Kuszmaul, Shyam NarayananFOCS 2021 · 2 citations
  4. Twin-width II: small classesÉdouard Bonnet, Colin Geniet, Eun Jung Kim, Stéphan Thomassé et al.SODA 2021 · 61 citations
  5. Upper Bound on Information-Theoretic Security of Permutation-Based Pseudorandom FunctionsChun Guo, Jian Guo, Xinnian Li, Wenjie NanEUROCRYPT 2026
Dusk over the sea between two cliffs drawn in fine vertical lines