ACM Home Page
Please provide us with feedback. Feedback
Sorting by placement and shift
Full text PdfPdf (452 KB)
Source Symposium on Discrete Algorithms archive
Proceedings of the Nineteenth Annual ACM -SIAM Symposium on Discrete Algorithms table of contents
New York, New York
Pages 68-75  
Year of Publication: 2009
Authors
Sergi Elizalde  Dartmouth, Hanover NH
Peter Winkler  Dartmouth, Hanover NH
Publisher
Society for Industrial and Applied Mathematics  Philadelphia, PA, USA
Bibliometrics
Downloads (6 Weeks): 11,   Downloads (12 Months): 123,   Citation Count: 0
Additional Information:

abstract   references   index terms   collaborative colleagues  

Tools and Actions: Review this Article  

ABSTRACT

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 2n-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.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
D. Callan, communication to B. Cipra, 22 August 2007.
 
2
B. Cipra, communication to P. Winkler, 19 February 2008.
 
3
N. Elkies, communicated by J. Buhler, 29 January 2008.
 
4
M. Gardner, Time Travel and Other Mathematical Bewilderments, W. H. Freeman & Co. 1987, p. 76.
 
5
L. Larson, communication to B. Cipra, 17 August 2007.
 
6
B. F. Logan and L. A. Shepp, A variational problem for random Young tableau, Advances in Math. 26 (1975), 206--222.
 
7
T. Prellberg, communication to the authors, 10 September 2008.
 
8
P. Vaderlind, R. K. Guy and L. C. Larson, The Inquisitive Problem Solver, Mathematical Association of America, 2002.
 
9
A. M. Vershik and S. V. Kerov, Asymptotics of the Plancherel measure of the symmetric group and the limiting form of Young tableau, Soviet Math. Dokl. 18 (1977), 527--531.

Collaborative Colleagues:
Sergi Elizalde: colleagues
Peter Winkler: colleagues