Order one binary search step
Exercise and reference answers
- Steps
- Take the sorted list
- Find its middle element
- Compare it with the key
- Discard the wrong half
- Repeat on the half that is left
- Instructions
- Tap the actions in the order binary search performs them.
Explanation
_Source: syllabus Computer Science, Ch 5 'Sorting' and Ch 6 'Searching'_