What is the average number of comparisons required in sequential search to find an element?
Show answerHide answer
Correct answer: (D) (n + 1)/2
Explanation
If the item is equally likely to be at any position, the average number of comparisons is (1 + 2 + ... + n)/n = (n + 1)/2.