Question: What is the average complexity of sequential search if there is a 30% chance that the target will not be found in the list and
What is the average complexity of sequential search if there is a 30% chance that the target will not be found in the list and there is a 70% chance that when the target is in the list, it will be found in the first half of the list? Find the general formula in terms of the size of the list, n
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
