Abstract
Sorting n integers in the word-RAM model is a fundamental problem and a long-standing open problem is whether integer sorting is possible in linear time when the word size is ω(logn). In this paper we give an algorithm for sorting integers in expected linear time when the word size is Ω(log2 n loglogn). Previously expected linear time sorting was only possible for word size Ω(log2 + ε n). Part of our construction is a new packed sorting algorithm that sorts n integers of w/b-bits packed in \({\mathcal O}(n/b)\) words, where b is the number of integers packed in a word of size w bits. The packed sorting algorithm runs in expected \({\mathcal O}(\tfrac{n}{b}(\log n + \log^2 b))\) time.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
Ajtai, M., Komlós, J., Szemerédi, E.: An \(\mathcal{O}(n \log n)\) sorting network. In: STOC, pp. 1–9 (1983)
Albers, S., Hagerup, T.: Improved parallel integer sorting without concurrent writing. Inf. Comput. 136(1), 25–51 (1997)
Andersson, A., Hagerup, T., Nilsson, S., Raman, R.: Sorting in linear time? Journal of Computer and System Sciences 57, 74–93 (1998)
Cormen, T.H., Leiserson, C.E., Rivest, R.L., Stein, C.: Introduction to Algorithms, 3rd edn. MIT Press and McGraw Hill (2009)
Dietzfelbinger, M., Hagerup, T., Katajainen, J., Penttonen, M.: A reliable randomized algorithm for the closest-pair problem. J. Algorithms 25(1), 19–51 (1997)
Ferragina, P., Grossi, R.: The string B-tree: A new data structure for string search in external memory and its applications. J. ACM 46(2), 236–280 (1999)
Goodrich, M.T.: Randomized shellsort: A simple data-oblivious sorting algorithm. J. ACM 58(6), 27 (2011)
Goodrich, M.T.: Zig-zag sort: A simple deterministic data-oblivious sorting algorithm running in \(\mathcal{O}(n \log n)\) time. CoRR, abs/1403.2777 (2014)
Hagerup, T.: Sorting and searching on the word RAM. In: STACS, pp. 366–398 (1998)
Han, Y., Thorup, M.: Integer sorting in \(\mathcal{O}(n \sqrt{\log \log n})\) expected time and linear space. In: FOCS, pp. 135–144 (2002)
Kirkpatrick, D., Reisch, S.: Upper bounds for sorting integers on random access machines. Theoretical Computer Science 28(3), 263–276 (1983)
Knuth, D.E.: The Art of Computer Programming, volume 4A: Combinatorial Algorithms. Addison-Wesley Professional (2011)
Leighton, F.T.: Introduction to Parallel Algorithms and Architectures: Arrays, Trees, Hypercubes. In: Packing, Spreading, and Monotone Routing Problems, ch. 3.4.3, Morgan Kaufmann Publishers, Inc. (1991)
Leighton, T., Plaxton, C.G.: Hypercubic sorting networks. SIAM Journal on Computing 27(1), 1–47 (1998)
Thorup, M.: On RAM priority queues. SIAM J. Comput. 30(1), 86–109 (2000)
Thorup, M.: Randomized sorting in \(\mathcal{O}(n \log \log n)\) time and linear space using addition, shift, and bit-wise boolean operations. J. Alg. 42(2), 205–230 (2002)
van Emde Boas, P.: Preserving order in a forest in less than logarithmic time. In: FOCS, pp. 75–84 (1975)
Willard, D.E.: Log-logarithmic worst-case range queries are possible in space Θ(n). Inf. Process. Lett. 17(2), 81–84 (1983)
Williams, J.W.J.: Algorithm 232: Heapsort. CACM 7(6), 347–348 (1964)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2014 Springer International Publishing Switzerland
About this paper
Cite this paper
Belazzougui, D., Brodal, G.S., Nielsen, J.S. (2014). Expected Linear Time Sorting for Word Size Ω(log2 n loglogn). In: Ravi, R., Gørtz, I.L. (eds) Algorithm Theory – SWAT 2014. SWAT 2014. Lecture Notes in Computer Science, vol 8503. Springer, Cham. https://doi.org/10.1007/978-3-319-08404-6_3
Download citation
DOI: https://doi.org/10.1007/978-3-319-08404-6_3
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-08403-9
Online ISBN: 978-3-319-08404-6
eBook Packages: Computer ScienceComputer Science (R0)