The average number of key comparisons done in a successful sequential search…

2025

The average number of key comparisons done in a successful sequential search in a list of length n is

Answer: D. (n + 1)/2

  1. A.

    log n

  2. B.

    (n − 1)/2

  3. C.

    n/2

  4. D.

    (n + 1)/2

Attempted by 253 students.

Show answer & explanation

Correct answer: D

Explore the full course: Tpsc Assistant Technical Officer

Loading lesson…