arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1304.2860math.COcs.DM
收藏

2-堆栈排序是多项式

2-Stack Sorting is polynomial

Adeline Pierrot, Dominique Rossin

摘要:

本文给出了判定给定置换$σ$在两个堆栈串联时是否可排序的多项式算法。这确实是一个长期存在的开放性问题,它首先由Knuth提出。他介绍了堆栈排序问题,以及自然出现的置换模式时,表征排列,可以排序与一个堆栈。当考虑串联的几个堆栈时,已知的结果很少。主要有两个不同的问题。第一个是决定一个排列是否可排序的复杂性,第二个是那些可排序排列的特征和枚举。我们在此证明了第一个问题在于P,并给出了一个多项式算法来解决它。这篇文章强烈依赖于前一篇文章,其中定义和研究了2-stack pushall排序。

英文摘要:

In this article, we give a polynomial algorithm to decide whether a given permutation $σ$ is sortable with two stacks in series. This is indeed a longstanding open problem which was first introduced by Knuth. He introduced the stack sorting problem as well as permutation patterns which arises naturally when characterizing permutations that can be sorted with one stack. When several stacks in series are considered, few results are known. There are two main different problems. The first one is the complexity of deciding if a permutation is sortable or not, the second one being the characterization and the enumeration of those sortable permutations. We hereby prove that the first problem lies in P by giving a polynomial algorithm to solve it. This article strongly relies on a previous article in which 2-stack pushall sorting is defined and studied.

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

↑