In the mathematical study of
permutation
In mathematics, a permutation of a set can mean one of two different things:
* an arrangement of its members in a sequence or linear order, or
* the act or process of changing the linear order of an ordered set.
An example of the first mean ...
s and
permutation pattern In combinatorial mathematics and theoretical computer science, a (classical) permutation pattern is a sub-permutation of a longer permutation. Any permutation may be written in one-line notation as a sequence of entries representing the result of a ...
s, a superpattern or universal permutation is a permutation that contains all of the patterns of a given length. More specifically, a ''k''-superpattern contains all possible patterns of length ''k''.
Definitions and example
If π is a permutation of length ''n'', represented as a sequence of the numbers from 1 to ''n'' in some order, and ''s'' = ''s''
1, ''s''
2, ..., ''s''
''k'' is a subsequence of π of length ''k'', then ''s'' corresponds to a unique ''pattern'', a permutation of length ''k'' whose elements are in the same order as ''s''. That is, for each pair ''i'' and ''j'' of indexes, the ''i''-th element of the pattern for ''s'' should be less than the ''j''-th element if and only if the ''i''-th element of ''s'' is less than the ''j''-th element. Equivalently, the pattern is
order-isomorphic to the subsequence. For instance, if π is the permutation 25314, then it has ten subsequences of length three, forming the following patterns:
A permutation π is called a ''k''-superpattern if its patterns of length ''k'' include all of the length-''k'' permutations. For instance, the length-3 patterns of 25314 include all six of the length-3 permutations, so 25314 is a 3-superpattern. No 3-superpattern can be shorter, because any two subsequences that form the two patterns 123 and 321 can only intersect in a single position, so five symbols are required just to cover these two patterns.
Length bounds
introduced the problem of determining the length of the shortest possible ''k''-superpattern.
He observed that there exists a superpattern of length ''k''
2 (given by the
lexicographic ordering
In mathematics, the lexicographic or lexicographical order (also known as lexical order, or dictionary order) is a generalization of the alphabetical order of the dictionaries to sequences of ordered symbols or, more generally, of elements of a ...
on the coordinate vectors of points in a square grid) and also observed that, for a superpattern of length ''n'', it must be the case that it has at least as many subsequences as there are patterns. That is, it must be true that
, from which it follows by
Stirling's approximation
In mathematics, Stirling's approximation (or Stirling's formula) is an asymptotic approximation for factorials. It is a good approximation, leading to accurate results even for small values of n. It is named after James Stirling, though a related ...
that ''n'' ≥ ''k''
2/''e''
2, where ''e'' ≈ 2.71828 is
Euler's number
The number is a mathematical constant approximately equal to 2.71828 that is the base of the natural logarithm and exponential function. It is sometimes called Euler's number, after the Swiss mathematician Leonhard Euler, though this can ...
.
This lower bound was later improved very slightly by
,
who increased it to 1.000076''k''
2/''e''
2,
disproving
Arratia's conjecture that the ''k''
2/''e''
2 lower bound was tight.
The upper bound of ''k''
2 on superpattern length proven by Arratia is not tight. After intermediate improvements,
proved that there is a ''k''-superpattern of length at most ''k''(''k'' + 1)/2 for every ''k''.
This bound was later improved by
, who lowered it to ⌈(''k''
2 + 1)/2⌉.
Eriksson et al. conjectured that the true length of the shortest ''k''-superpattern is asymptotic to ''k''
2/2.
However, this is in contradiction with a conjecture of
Alon on random superpatterns described below.
Random superpatterns
Researchers have also studied the length needed for a sequence generated by a random process to become a superpattern.
observes that, because the
longest increasing subsequence
In computer science, the longest increasing subsequence problem aims to find a subsequence of a given sequence in which the subsequence's elements are sorted in an ascending order and in which the subsequence is as long as possible. This subsequenc ...
of a random permutation has length (with high probability) approximately 2√''n'', it follows that a random permutation must have length at least ''k''
2/4 to have high probability of being a ''k''-superpattern: permutations shorter than this will likely not contain the identity pattern.
He attributes to
Alon the conjecture that, for any , with high probability, random permutations of length will be ''k''-superpatterns.
See also
*
Superpermutation
In combinatorial mathematics, a superpermutation on ''n'' symbols is a string that contains each permutation of ''n'' symbols as a substring. While trivial superpermutations can simply be made up of every permutation concatenated together, superp ...
References
{{reflist
Permutation patterns