Programming Languages
COBOL
Subjective
Mar 15, 2013
How does the binary search work?
Detailed Explanation
First the table is split into two halves and in which half, the item need to be searched is determined. The half to which the desired item may belong is again divided into two halves and the previous procedure is followed. This continues until the item is found. SEARCH ALL is efficient for tables larger than 70 items.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts