We've been using a worst case analysis so far. Why?

Back to a linear search of a list of size "n". In the worst case we'll scan the entire list -- performance O(n).

Why be so pessimistic?


However, there are cases where we want more of an average case analysis. We'll look also.

Navigation