Sorting Pattern-Avoiding Permutations via 0-1 Matrices Forbidding Product Patterns

Abstract

We consider the problem of comparison-sorting an nn-permutation SS that avoids some kk-permutation Ο€\pi. Chalermsook, Goswami, Kozma, Mehlhorn, and Saranurak prove that when SS is sorted by inserting the elements into the GreedyFuture binary search tree, the running time is linear in the extremal function Ex(PΟ€βŠ—hat,n)\mathrm{Ex}(P_\pi\otimes \text{hat},n). This is the maximum number of 1s in an nΓ—nn\times n 0-1 matrix avoiding PΟ€βŠ—hatP_\pi \otimes \text{hat}, where PΟ€P_\pi is the kΓ—kk\times k permutation matrix of Ο€\pi, βŠ—\otimes the Kronecker product, and hat=(βˆ™βˆ™βˆ™)\text{hat} = \left(\begin{array}{ccc}&\bullet&\\\bullet&&\bullet\end{array}\right). The same time bound can be achieved by sorting SS with Kozma and Saranurak's SmoothHeap. In this paper we give nearly tight upper and lower bounds on the density of PΟ€βŠ—hatP_\pi\otimes\text{hat}-free matrices in terms of the inverse-Ackermann function Ξ±(n)\alpha(n). \mathrm{Ex}(P_\pi\otimes \text{hat},n) = \left\{\begin{array}{ll} \Omega(n\cdot 2^{\alpha(n)}), & \mbox{for most $\pi$,}\\ O(n\cdot 2^{O(k^2)+(1+o(1))\alpha(n)}), & \mbox{for all $\pi$.} \end{array}\right. As a consequence, sorting Ο€\pi-free sequences can be performed in O(n2(1+o(1))Ξ±(n))O(n2^{(1+o(1))\alpha(n)}) 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

    Similar works

    Full text

    thumbnail-image

    Available Versions