The average-case lookup time in a well-designed hash table is:

2025

The average-case lookup time in a well-designed hash table is:

  1. A.

    O(1)

  2. B.

    O(log n)

  3. C.

    O(n)

  4. D.

    O(n2)

Attempted by 60 students.

Show answer & explanation

Correct answer: A

A well-designed hash table with a good hash function has average-case lookup time O(1).

Explore the full course: Coding For Placement