Again, consider the list of states. Which state in the list is the "hardest" to find using binary search? That is, which state would require the largest number of checks to be located? Generalize your answer so that it applies to any sorted list of items.
What will be an ideal response?
One of the hardest states would be "WY", which appears at the end of the list. Since the search always checks the middle of the range, the end will only be reached when the range is reduced to size 1.
Computer Science & Information Technology
You might also like to view...
What tool does Microsoft provide to determine hardware and software components that might not be compatible with Windows 7?
a. Upgrade Advisor b. Service Pack 1 c. Network Monitor d. System Eval
Computer Science & Information Technology
What is DNS cache locking, and what does it prevent?
What will be an ideal response?
Computer Science & Information Technology