Skip to main content

Efficient Algorithms for Sorting k-Sets in Bins

  • Conference paper
Algorithms and Computation (WALCOM 2014)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 8344))

Included in the following conference series:

Abstract

We give efficient algorithms for Sorting k-Sets in Bins. The Sorting k-Sets in Bins problem can be described as follows: We are given numbered n bins with k balls in each bin. Balls in the i-th bin are numbered n − i + 1. We can only swap balls between adjacent bins. How many swaps are needed to move all balls to the same numbered bins. For this problem, we design an efficient greedy algorithm with \(\frac{k+1}{4}n^2+O(kn)\) swaps. As k and n increase, this approaches the lower bound of \(\lceil \binom{kn}{2}/(2k-1) \rceil\). In addition, we design a more efficient recursive algorithm using \(\frac{15}{16}n^2+O(n)\) swaps for the k = 3 case.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Bóna, M., Flynn, R.: Sorting a Permutation with Block Moves. arXiv:0806.2787v1

    Google Scholar 

  2. Martínez, C., Rösler, U.: Partial quicksort and quickpartitionsort. In: DMTCS Proceedings 2001, pp. 505–512 (2010)

    Google Scholar 

  3. Cranston, D., Sudborough, I.H., West, D.B.: Short Proofs for Cut-and-Paste Sorting of Permutations. Discrete Mathematics 307, 2866–2870 (2007)

    Article  MATH  MathSciNet  Google Scholar 

  4. Daskalakis, C., Karp, R.M., Mossel, E., Eiesenfeld, S.J., Verbin, E.: Sorting and selection in posets. SIAM Journal on Computing 40(3), 597–622 (2011)

    Article  MATH  MathSciNet  Google Scholar 

  5. Dweighter, H.: Elementary Problems. American Mathematical Monthly 82, 1010 (1975)

    Article  MathSciNet  Google Scholar 

  6. Elizalde, S., Winkler, P.: Sorting by Placement and Shift. In: Proc. ACM/SIAM Symp. on Discrete Algorithms (SODA), pp. 68–75 (2009)

    Google Scholar 

  7. Eriksson, H., Eriksson, K., Karlander, J., Svensson, L., Wástlund, J.: Sorting a bridge hand. Discrete Math. 241, 289–300 (2001)

    Article  MATH  MathSciNet  Google Scholar 

  8. Faigle, U., Tuŕan, G.: Sorting and Recognition Problems for Ordered Sets. SIAM Journal on Computing 17(1), 100–113 (1988)

    Google Scholar 

  9. Gates, W.H., Papadimitriou, C.H.: Bounds for sorting by prefix reversal. Discrete Math. 27, 47–57 (1979)

    Article  MathSciNet  Google Scholar 

  10. Heydari, M.H., Sudborough, I.H.: On the diameter of pancake network. J. Algorithms 25, 67–94 (1997)

    Article  MATH  MathSciNet  Google Scholar 

  11. Hoare, C.A.R.: PARTITION (Algorithm 63);QUICKSORT (Algorithm 64);FIND (Algorithm 65). Communication of the Association for Computing Machinery 4, 321–322 (1961)

    Article  Google Scholar 

  12. Ito, H., Teruyama, J., Yoshida, Y.: An almost optimal algorithm for winkler’s sorting pairs in bins. Progress in Informatics (9), 3–7 (2012)

    Google Scholar 

  13. Püttmann, A.: Krawattenproblem, http://www.springer.com/cda/content/document/cda_downloaddocument/SAV_Krawattenraetsel_Loesung_Puettmann

  14. Winkler, P.: Mathematical Puzzles: A Connoisseur’s Collection. A K Peters 143, 149–151 (2004)

    Google Scholar 

  15. West, D.B.: (2008), http://www.math.uiuc.edu/~west/regs/sortpair.html

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Springer International Publishing Switzerland

About this paper

Cite this paper

Nagao, A., Seto, K., Teruyama, J. (2014). Efficient Algorithms for Sorting k-Sets in Bins. In: Pal, S.P., Sadakane, K. (eds) Algorithms and Computation. WALCOM 2014. Lecture Notes in Computer Science, vol 8344. Springer, Cham. https://doi.org/10.1007/978-3-319-04657-0_22

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-04657-0_22

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-04656-3

  • Online ISBN: 978-3-319-04657-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics