Sorting in Linear Time?

75Citations
Citations of this article
36Readers
Mendeley users who have this article in their library.

This article is free to access.

Abstract

We show that a unit-cost RAM with a word length of w bits can sort n integers in the range 0 ⋯; 2w-1 in O(n log log n) time for arbitrary w ≥ log n, a significant improvement over the bound of O(n √log n) achieved by the fusion trees of Fredman and Willard. Provided that w ≥ (log n)2+ε for some fixed ε > 0, the sorting can even be accomplished in linear expected time with a randomized algorithm. Both of our algorithms parallelize without loss on a unit-cost PRAM with a word length of w bits. The first one yields an algorithm that uses O(log n) time and O(n log log n) operations on a deterministic CRCW PRAM. The second one yields an algorithm that uses O(log n) expected time and O(n) expected operations on a randomized EREW PRAM, provided that w ≥ (log n)2+ε for some fixed ε > 0. Our deterministic and randomized sequential and parallel algorithms generalize to the lexicographic sorting of multiple-precision integers represented in several words. © 1998 Academic Press.

Cite

CITATION STYLE

APA

Andersson, A., Hagerap, T., Nilsson, S., & Raman, R. (1998). Sorting in Linear Time? Journal of Computer and System Sciences, 57(1), 74–93. https://doi.org/10.1006/jcss.1998.1580

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free