Sorting in c log n parallel steps

M. Ajtai, J. Komlós, E. Szemerédi

Research output: Contribution to journalArticle

358 Citations (Scopus)


We give a sorting network with cn log n comparisons. The algorithm can be performed in c log n parallel steps as well, where in a parallel step we compare n/2 disjoint pairs. In the i-th step of the algorithm we compare the contents of registers R j(i), and R k(i), where j(i), k(i) are absolute constants then change their contents or not according to the result of the comparison.

Original languageEnglish
Pages (from-to)1-19
Number of pages19
Issue number1
Publication statusPublished - Mar 1 1983



  • AMS subject classification (1980): 68E05

ASJC Scopus subject areas

  • Discrete Mathematics and Combinatorics
  • Computational Mathematics

Cite this