Skip to main content

BOOL(N)

  • Chapter
  • First Online:
Designing Sorting Networks

Abstract

Let p be a positive integer and let N = 2p. Here we describe a certain poset , which we call BOOL (N). Let us use p-1 steps to build BOOL(N/2) out of the first N/2 keys, K[0] through K[N/2-1] and BOOL(N/2) out of the last N/2 keys K[N/2] through K[N-1]. After that, let us use one step of N/2 comparators to compare K[i] with K[i + N/2] for i = 0, 1,…, N/2-1. We conjecture that this method of building a poset of N = 2p in p steps minimizes the number of 0/1-cases . Here we also showed some ideas on starting a sorting network for N keys when N < 2p. In general, for any BOOL (N) where N > 8, one can build a poset of N-2 keys by removing keys K[0] and K[N-1] and adding a comparator in each step to compare the two keys that aren’t compared with any other key in that step. The poset obtained will look like BOOL(N) except with keys K[0] and K[N-1] removed and p extra coverings added between the keys in the top rank and keys in the bottom rank. These extra coverings eliminate strangers that are far out of place.

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. In: Sorting and searching, vol 3, 2nd edn. Addison-Wesley Longman, USA, pp 225–228

    Google Scholar 

  2. Edwards AWF (2002) Pascal’s arithmetical triangle: the story of a mathematical idea. The Johns Hopkins University Press, Maryland

    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). BOOL(N). In: Designing Sorting Networks. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-1851-1_13

Download citation

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

  • 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