Skip to main content

The AKS Sorting Network

  • Chapter
  • First Online:
Designing Sorting Networks

Abstract

In 1983, M. Ajtai, J. Komlos, and E. Szemeredi described a sorting network that requires C * log n steps to sort n keys where C is a large constant—scholars usually refer to these sorting networks as the AKS networks [Ajtai, Komlos, Szemeredi (1983) Combinatorica 3:1–1; Ajtai, Komlos, Szemeredi (1983) Proceedings of the ACM symposium on theory of computing pp 1–9.]. The AKS sorting network has O(log n) layers with a complete binary tree on each layer with O(n) nodes. Each node of each tree contains one (λ, σ, ε)-separator circuit. The separator in each node will tend to move low strangers and high strangers to their designated layers. The keys circulate in the different layers of the tree until they eventually collect in the last layer which will complete the sorting. No one seems to know the exact value of the complexity constant(C) of the AKS sorting algorithm. But many believe it is in the hundreds at least. If we assume that C = 87, then an AKS network is faster than a merge-sorting network only when the number of keys is greater than 1.2 * 1052. Thus, the ASK sorting network, despite being theoretically optimal, is impractical. The execution time of many parallel algorithms grows logarithmically or poly-logarithmically. Thus, complexity constants become important here.

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

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and 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
Hardcover Book
USD 54.99
Price excludes VAT (USA)
  • Durable hardcover 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

References

  1. Ajtai M, Komlos J, Szemeredi E (1983) Sorting in c log n steps. Combinatorica 3:1–19

    Article  MathSciNet  MATH  Google Scholar 

  2. Ajtai M, Komlos J, Szemeredi E (1983) An O(n log n) sorting network. In: Proceedings of the ACM symposium on theory of computing, pp 1–9

    Google Scholar 

  3. Akl SG (1997) Parallel computation: models and methods. Prentice-Hall, Upper Saddle River

    Google Scholar 

  4. Al-Haj Baddar S, Batcher KE (2009) Finding faster sorting networks using sortnet. VDM Publishing House Ltd., Germany

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Sherenaz W. Al-Haj Baddar .

Rights and permissions

Reprints and permissions

Copyright information

© 2011 Springer Science+Business Media, LLC

About this chapter

Cite this chapter

Al-Haj Baddar, S.W., Batcher, K.E. (2011). The AKS Sorting Network. In: Designing Sorting Networks. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-1851-1_11

Download citation

  • DOI: https://doi.org/10.1007/978-1-4614-1851-1_11

  • Published:

  • Publisher Name: Springer, New York, NY

  • Print ISBN: 978-1-4614-1850-4

  • Online ISBN: 978-1-4614-1851-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics