Exercise · Volume 1 · 2.2.1-13
Exercise 2.2.1-13
not stated yet in Lean solution written
| Rating | M48 |
|---|---|
| Markers | M (mathematical) |
| Kind | K9, research: an open problem, so no proof is claimed from the written solution |
| Section | Section 2.2.1 of Volume 1 |
The task
Count the permutations of elements that a general deque can give, that is, a deque with inserts and removals at both ends. Call this number .
State of the problem
No closed form or generating function for is known. The question is open. The same count is easy for the other machines of this section. The stack gives the Catalan numbers (Exercise 2.2.1-4), and the two restricted deques give the numbers of Exercise 2.2.1-11.
What is known
Small values. I counted by a search over the states of the deque, one permutation at a time. The results are The ratios for are , , , , , , , . They keep rising in this range, so the data alone do not show the growth rate.
The cases below . Every permutation is obtained when , and four permutations of fail (Exercise 2.2.1-8).
A test for one permutation. A permutation is not obtainable if and only if it contains, as a subsequence in the same relative order, a member of a family of forbidden patterns, found by Pratt. For the first member of the family, the five-element patterns are , , , . The next patterns have seven elements, and they are , , , . For I checked by computation that the permutations missing from the deque are exactly those that contain one of these eight patterns. For the missing counts are , , .
An algorithm. Rosenstiehl and Tarjan gave a method that decides in steps whether a given permutation is obtainable. It tests one permutation. It does not count.
Closure. If a permutation is obtainable, so is each pattern inside it, by the same moves with the other cars ignored. So the set of obtainable permutations is closed under taking patterns, and is the number of permutations that avoid an infinite set of patterns.
The exact wording is in your copy of the book.
Remarks
For a stack the avoided set has one pattern, . The general deque needs an infinite set of patterns, and this is one reason why a simple count is hard to find. I make no claim about the growth rate of .
This solution is drafted, and a person has not reviewed it yet. The source.
In Lean
not stated yet The exercise is not stated in Lean yet. The exercise is a research problem, so the project claims no proof.
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.