arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.08285cs.DMmath.CO
收藏

使用带旁路的弹出栈对排列进行排序

Sorting permutations using a pop stack with a bypass

Lapo Cioni, Luca Ferrari, Rebecca Smith

AI总结:

本文提出一种带旁路操作的弹出栈排序装置,通过禁止模式刻画可排序排列,并用受限Motzkin路径分析计数序列,同时给出原像计算算法及主类原像的完整描述。

摘要:

我们引入了一种新的排列排序装置,该装置使用了一个增加了旁路操作的弹出栈。由此得到一台排序机,它比通常的Popstacksort算法更强大,且此前似乎从未被研究过。在本文中,我们通过禁止模式给出了可排序排列的刻画,并利用一类受限Motzkin路径重新解释了所得的计数序列。此外,我们描述了一种计算给定排列所有原像集合的算法,借此刻画了具有少量原像的排列。最后,我们完整描述了排列主类的原像,并讨论了由两个并行弹出栈组成的装置,同样带有旁路操作。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑