English

Restricted Stacks as Functions

Combinatorics 2021-06-14 v2

Abstract

The stack sort algorithm has been the subject of extensive study over the years. In this paper we explore a generalized version of this algorithm where instead of avoiding a single decrease, the stack avoids a set TT of permutations. We let sTs_T denote this map. We classify for which sets TT the map sTs_T is bijective. A corollary to this answers a question of Baril, Cerbai, Khalil, and Vajnovszki about stack sort composed with s{σ,τ}s_{\{\sigma,\tau\}}, known as the (σ,τ)(\sigma,\tau)-machine. This fully classifies for which σ\sigma and τ\tau the preimage of the identity under the (σ,τ)(\sigma,\tau)-machine is counted by the Catalan numbers. We also prove that the number of preimages of a permutation under the map sTs_T is bounded by the Catalan numbers, with a shift of indices. For TT of size 1, we classify exactly when this bound is sharp. We also explore the periodic points and maximum number of preimages of various sTs_T for TT containing two length 33 permutations.

Keywords

Cite

@article{arxiv.2008.01164,
  title  = {Restricted Stacks as Functions},
  author = {Katalin Berlow},
  journal= {arXiv preprint arXiv:2008.01164},
  year   = {2021}
}

Comments

15 pages, 4 figures