Which of the following is NOT a benefit of using hash tables for data storage…

2024

Which of the following is NOT a benefit of using hash tables for data storage and retrieval ?

  1. A.

    Fast average-case search time.

  2. B.

    Efficient memory usage

  3. C.

    Guaranteed constant-time search

  4. D.

    Ordered data representation

Attempted by 73 students.

Show answer & explanation

Correct answer: C

Hash tables offer O(1) average-case time complexity for search, insert, and delete operations. However, they do not guarantee constant-time performance in all cases because hash collisions can degrade performance to O(n) worst-case.

Explore the full course: Niacl Ao It Specialist

Loading lesson…