arXiv:0809.2957 [math.CO]AbstractReferencesReviewsResources
Sorting by Placement and Shift
Published 2008-09-17Version 1
In sorting situations where the final destination of each item is known, it is natural to repeatedly choose items and place them where they belong, allowing the intervening items to shift by one to make room. (In fact, a special case of this algorithm is commonly used to hand-sort files.) However, it is not obvious that this algorithm necessarily terminates. We show that in fact the algorithm terminates after at most $2^{n-1}-1$ steps in the worst case (confirming a conjecture of L. Larson), and that there are super-exponentially many permutations for which this exact bound can be achieved. The proof involves a curious symmetrical binary representation.
Comments: 13 pages, 4 figures, Proceedings of SODA 2009
Related articles: Most relevant | Search more
arXiv:math/0008034 [math.CO] (Published 2000-08-03)
A special case of sl(n)-fusion coefficients
arXiv:math/0603285 [math.CO] (Published 2006-03-13)
Enumeration of 3-letter patterns in compositions
arXiv:math/9901044 [math.CO] (Published 1999-01-11)
Rewriting as a Special Case of Noncommutative Groebner Basis Theory