Self – balancing binary search trees have a much better average-case time complexity than hash tables.

Self – balancing binary search trees have a much better average-case time complexity than hash tables.
A. True
B. False
 
Answer: b
Explanation: For lookup, insertion and deletion hash table take O(1) time in average-case while self – balancing binary search trees takes O(log n). Therefore, hash tables perform better in average-case.
 

Tìm kiếm

Back
Top