1.

Self – balancing binary search trees have a much better average-case time complexity than hash tables.(a) True(b) FalseMy question is taken from Binary Trees in chapter Binary Trees of Data Structures & Algorithms IThis question was posed to me in class test.

Answer»

Correct CHOICE is (b) False

Easy 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.



Discussion

No Comment Found

Related InterviewSolutions