Finding and counting permutations via CSPs

08/13/2019
by   Benjamin Aram Berendsohn, et al.
0

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 n contains a given pattern of length k. In this work we give two new algorithms for this well-studied problem, one whose running time is n^k/4 + o(k), and a polynomial-space algorithm whose running time is the better of O(1.6181^n) and O(n^k/2 + 1). These results improve the earlier best bounds of n^0.47k + o(k) and O(1.79^n) due to Ahal and Rabinovich (2000) resp. Bruner and Lackner (2012) and are the fastest algorithms for the problem when k ∈Ω(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^o(k/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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/23/2019

Faster and simpler algorithms for finding large patterns in permutations

Permutation patterns and pattern avoidance have been intensively studied...
research
05/05/2018

On degeneracy and the parameterized complexity of subgraph counting

We study the complexity of counting the (induced) occurrences of a k-nod...
research
05/19/2018

On testing substitutability

The papers hatfimmokomi11 and azizbrilharr13 propose algorithms for test...
research
07/30/2015

Multiple-Path Selection for new Highway Alignments using Discrete Algorithms

This paper addresses the problem of finding multiple near-optimal, spati...
research
04/07/2021

Polynomial Anonymous Dynamic Distributed Computing without a Unique Leader

Counting the number of nodes in Anonymous Dynamic Networks is enticing f...
research
03/16/2021

Combinatorial generation via permutation languages. III. Rectangulations

A generic rectangulation is a partition of a rectangle into finitely man...
research
12/04/2017

The Saukas-Song Selection Algorithm and Coarse Grained Parallel Sorting

We analyze the running time of the Saukas-Song algorithm for selection o...

Please sign up or login with your details

Forgot password? Click here to reset