Why efficiency matters
Why efficiency matters

The figure shows linear search and binary search solving the same search problem in different ways. Both can find the target value, but they do not do the same amount of work.
Why efficiency matters
Why efficiency matters

The figure shows linear search and binary search solving the same search problem in different ways. Both can find the target value, but they do not do the same amount of work.