1.

What are the two different operations done in an AA-Tree?(a) shift and color(b) skew and split(c) zig and zag(d) enqueue and dequeueMy doubt stems from Binary Trees in section Binary Trees of Data Structures & Algorithms IThis question was addressed to me in an internship interview.

Answer»

The CORRECT option is (b) SKEW and split

The best explanation: A skew REMOVES a LEFT HORIZONTAL link by right rotation and a split removes a right horizontal link by left rotation.



Discussion

No Comment Found

Related InterviewSolutions