search
a. in the worst case.
b. in the average case if the probability of a successful search is p (0 ≤ p ≤ 1).
Fig: 1