1.

The minimum height of self balancing binary search tree with n nodes is _____(a) log2(n)(b) n(c) 2n + 1(d) 2n – 1My question is from Binary Trees topic in portion Binary Trees of Data Structures & Algorithms IThis question was posed to me in homework.

Answer»

Right option is (a) log2(n)

Explanation: Self – balancing BINARY trees adjust the height by performing TRANSFORMATIONS on the tree at key insertion TIMES, in order to keep the height PROPORTIONAL to log2(n).



Discussion

No Comment Found

Related InterviewSolutions