Table 9.3
The fundamental idea of a binary
search is surprisingly simple:
1.
You have a sorted array in either ascending or descending
order
2.
You look at the middle element
3.
This element tells you if the element you're looking for is
in the top or bottom half of the array, and then you take that half.
4. Repeat this process until you find
the element you are searching for.
Remember that as the number of elements to be
searched continue to increase so will the number of comparisons
needed.
So What Do We Know?
1. Binary searches begin sorting
from what part of an array?
a) The right
b) The Left
c) The Middle
d) The Top
Answer: c) The Middle
2. Do Binary Searches require
contiguous blocks of RAM in order to be effective?
True or False
Answer: True
3. What were to happen if at any
point during the search the value of the the low element was higher
than the value of the high element?
Answer: The process stops and no result is
reported.
For more information visit the following websites:
http://mathbits.com/MathBits/CompSci/Arrays/Binary.htm
The site above contains
a simple yet comprehensive explanation on Binary Searches as well as
the code needed to execute a search on C++
http://www.answers.com/topic/binary-search
This site provides
an excellent source of definitions of a binary search from different
sources as well as links to other sites that provide even more
information.