Papers
Topics
Authors
Recent
Search
2000 character limit reached

Finding and counting permutations via CSPs

Published 13 Aug 2019 in cs.DS and math.CO | (1908.04673v1)

Abstract: Permutation patterns and pattern avoidance have been intensively studied in combinatorics and computer science, going back at least to the seminal work of Knuth on stack-sorting (1968). Perhaps the most natural algorithmic question in this area is deciding whether a given permutation of length nn contains a given pattern of length kk. In this work we give two new algorithms for this well-studied problem, one whose running time is n<sup>k/4</sup>+o(k)n<sup>{k/4</sup> + o(k)}, and a polynomial-space algorithm whose running time is the better of O(1.6181<sup>n)O(1.6181<sup>n) and O(n<sup>k/2</sup>+1)O(n<sup>{k/2</sup> + 1}). These results improve the earlier best bounds of n<sup>0.47k</sup>+o(k)n<sup>{0.47k</sup> + o(k)} and O(1.79<sup>n)O(1.79<sup>n) due to Ahal and Rabinovich (2000) resp. Bruner and Lackner (2012) and are the fastest algorithms for the problem when k∈Ω(log⁡n)k \in \Omega(\log{n}). We show that both our new algorithms and the previous exponential-time algorithms in the literature can be viewed through the unifying lens of constraint-satisfaction. Our algorithms can also count, within the same running time, the number of occurrences of a pattern. We show that this result is close to optimal: solving the counting problem in time f(k)⋅n<sup>o(k/log⁡k)f(k) \cdot n<sup>{o(k/\log{k})} would contradict the exponential-time hypothesis (ETH). For some special classes of patterns we obtain improved running times. We further prove that $3$-increasing and $3$-decreasing permutations can, in some sense, embed arbitrary permutations of almost linear length, which indicates that an algorithm with sub-exponential running time is unlikely, even for patterns from these restricted classes.

Citations (14)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.