πŸ“’ Too many exams? Don’t know which one suits you best? Book Your Free Expert πŸ‘‰ call Now!

  • google app store apple app store
  • βœ–

      Question

      What is the average-case time complexity for search,

      insertion, and deletion operations in a well-designed hash table?
      A O(n) Correct Answer Incorrect Answer
      B O(log n) Correct Answer Incorrect Answer
      C O(1) Correct Answer Incorrect Answer
      D O(n log n) Correct Answer Incorrect Answer
      E O(nΒ²) Correct Answer Incorrect Answer

      Solution

      In a well-designed hash table with a good hash function and effective collision resolution, the average-case time complexity for search, insertion, and deletion is O(1) (constant time).

      Practice Next
      ask-question