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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Knuth D (1998) The art of computer programming: sorting and searching, vol 3, 2nd edn. Addison-Wesley Longman, Boston, pp 225–228
Birkhoff G (1967) Lattice theory. American Mathematical Society, vol 25, 3rd edn. Colloquium Publications, Providence
Al-Haj Baddar S, Batcher KE (2009) Finding faster sorting networks using Sortnet. VDM Publishing, Saarbrücken
Author information
Authors and Affiliations
Corresponding author
Rights 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)