Flip-sort is a natural sorting procedure which raises fascinating combinatorial questions. It finds its roots in the seminal work of Knuth on stack-based sorting algorithms and leads to many links with permutation patterns. We present several structural, enumerative, and algorithmic results on permutations that need few (resp. many) iterations of this procedure to be sorted. In particular, we give the shape of the permutations after one iteration, and characterize several families of permutations related to the best and worst cases of flip-sort. En passant, we also give some links between pop-stack sorting, automata, and lattice paths, and introduce several tactics of bijective proofs which have their own interest.
翻译:Flip- sort 是一种自然的排序程序, 它引起了令人着迷的组合问题。 它根植于Knuth关于基于堆叠的分类算法的开创性工作, 并导致与变异模式的许多关联。 我们在这种程序需要很少( 重复很多) 迭代的变异上展示了几种结构、 数字和算法结果。 特别是, 我们给一个迭代后的变异形状, 并给几个家庭定性为与最优和最差的翻转索法案例有关的变异。 进入过关者, 我们还给流行式分解、 自动式和 挂式路径之间提供了一些链接, 并引入了几种具有自身利益的双向证据策略 。