English

Passing through a stack $k$ times

Combinatorics 2018-07-03 v3

Abstract

We consider the number of passes a permutation needs to take through a stack if we only pop the appropriate output values and start over with the remaining entries in their original order. We define a permutation π\pi to be kk-pass sortable if π\pi is sortable using kk passes through the stack. Permutations that are 11-pass sortable are simply the stack sortable permutations as defined by Knuth. We define the permutation class of 22-pass sortable permutations in terms of their basis. We also show all kk-pass sortable classes have finite bases by giving bounds on the length of a basis element of the permutation class for any positive integer kk. Finally, we define the notion of tier of a permutation π\pi to be the minimum number of passes after the first pass required to sort π\pi. We then give a bijection between the class of permutations of tier tt and a collection of integer sequences studied by Parker. This gives an exact enumeration of tier tt permutations of a given length and thus an exact enumeration for the class of (t+1)(t+1)-pass sortable permutations. Finally, we give a new derivation for the generating function in Parker's thesis and an explicit formula for the coefficients.

Keywords

Cite

@article{arxiv.1704.04288,
  title  = {Passing through a stack $k$ times},
  author = {Toufik Mansour and Howard Skogman and Rebecca Smith},
  journal= {arXiv preprint arXiv:1704.04288},
  year   = {2018}
}

Comments

18 pages

R2 v1 2026-06-22T19:17:07.928Z