计算机科学 > 离散数学
[提交于 2025年3月11日]
标题:Sorting permutations using a pop stack with a bypass
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We introduce a new sorting device for permutations which makes use of a pop stack augmented with a bypass operation. This results in a sorting machine, which is more powerful than the usual Popstacksort algorithm and seems to have never been investigated previously. In the present paper, we give a characterization of sortable permutations in terms of forbidden patterns and reinterpret the resulting enumerating sequence using a class of restricted Motzkin paths. Moreover, we describe an algorithm to compute the set of all preimages of a given permutation, thanks to which we characterize permutations having a small number of preimages. Finally, we provide a full description of the preimages of principal classes of permutations, and we discuss the device consisting of two pop stacks in parallel, again with a bypass operation.
提交历史
来自:Luca Ferrari[v1] 2025年3月11日 星期二 10:59:07 UTC