Skip to main content

A 16-Key Sorting Network

  • Chapter
  • First Online:
Designing Sorting Networks

Abstract

We analyzed Van Voorhis 16-key network because it is faster than the merge-sorting networks for 16 keys (9 steps instead of 10 steps). To help better understand the behavior of this network, we used the relabeling technique. We re-labeled the network by exchanging K[3] with K[8] and by exchanging K[7] with K[12]. This, resulted in a more logical placement of the 14 keys in the three sets between K[0] and K[15] since it put: K[11] through K[14] in the top set; K[5] through K[10] in the middle set; and K[1] through K[4] in the bottom set. When we drew the Knuth diagram for the re-labeled network , we found that: the first six steps partition the keys into four 4-key groups with every key in each group less than or equal to every key in the next higher group; steps 5 through 8 sort the keys within each group; and step 9 finishes sorting all the remaining cases to complete the sort of all 16 keys. Thus, relabeling this network helped us realize that it uses the well-known divide-and-conquer strategy to sort the 16 input leys.

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 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. Knuth D (1998) The art of computer programming: sorting and searching, vol 3, 2nd edn. Addison-Wesley Longman, Boston, pp 225–228

    Google Scholar 

  2. Birkhoff G (1967) Lattice theory. American Mathematical Society, vol 25, 3rd edn. Colloquium Publications, Providence

    Google Scholar 

  3. Al-Haj Baddar S, Batcher KE (2009) Finding faster sorting networks using Sortnet. VDM Publishing, Saarbrücken

    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). A 16-Key Sorting Network. In: Designing Sorting Networks. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-1851-1_5

Download citation

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

  • 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