1.

Hash tree is used in data synchronisation. In the worst case the data synchronisation takes ______ time.(a) O(logn)(b) O(n^2)(c) O(nlogn)(d) O(n)My enquiry is from Hash Tables in section Hash Tables of Data Structures & Algorithms II had been asked this question by my college professor while I was bunking the class.

Answer»

The correct ANSWER is (d) O(n)

The best explanation: In average scenarios, the SYNCHRONISATION takes O(logn) because it is BASED on the traversal and SEARCHING. The worst case occurs when there are no NODES in common, so the synchronisation takes O(n) time.



Discussion

No Comment Found

Related InterviewSolutions