paper

Permutations generated by a depth 2 and infinite stack in series are algebraic

arXiv:1407.4248

Abstract

We prove that the class of permutations generated by passing an ordered sequence through a stack of depth 2 and an infinite stack in series is in bijection with an unambiguous context-free language, where a permutation of length is encoded by a string of length . It follows that the sequence counting the number of permutations of each length has an algebraic generating function. We use the explicit context-free language to compute the generating function: \begin{align*} \sum_{n\geq 0} c_n t^n &= \frac{(1+q)\left(1+5q-q^2-q^3-(1-q)\sqrt{(1-q^2)(1-4q-q^2)}\right)}{8q} \end{align*} where is the number of permutations of length that can be generated, and is a simple variant of the Catalan generating function. This in turn implies that .

21 pages, 8 figures

References in corpus (2)

Permutations generated by a depth 2 and infinite stack in series are algebraic · wovepaper