

























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.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。