An Optimal Algorithm for Sorting Pattern-Avoiding Sequences
Data Structures and Algorithms
2024-09-13 v1
Abstract
We present a deterministic comparison-based algorithm that sorts sequences avoiding a fixed permutation in linear time, even if is a priori unkown. Moreover, the dependence of the multiplicative constant on the pattern matches 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.
Cite
@article{arxiv.2409.07868,
title = {An Optimal Algorithm for Sorting Pattern-Avoiding Sequences},
author = {Michal Opler},
journal= {arXiv preprint arXiv:2409.07868},
year = {2024}
}