Binary search runs on a sorted list of 64 items. Roughly how many guesses in the worst case?
Linear search runs on a list of 64 items and the target is last. How many comparisons does it make?
Answer: ______________
What does input size n mean?
Why is a timed run weaker evidence than an operation count?
A loop does 3 steps per item plus 7 setup steps on n items. Which formula gives its cost?
Worst case analysis counts the fewest steps an algorithm could need.
Circle one: True False
A student counts only the best case and claims an algorithm is fast. What is the error?
Two searches run on a list of a million items. Linear may need a million checks while binary needs about 20. Which grows faster and why?