Suppose that it takes 3⋅109 seconds to examine each key in a list. If there are n keys and we search through them in order until we find the right one, find
- the worst-case complexity
Worst case is n⋅3⋅10−9 seconds
- the average-case complexity
Average case is n+12⋅3⋅10−9 seconds