+1 vote
in Data Structures & Algorithms I by (110k points)
How many different shapes does maintenance of AA-Tree need to consider?

(a) 7

(b) 5

(c) 2

(d) 3

Origin of the question is Binary Trees topic in chapter Binary Trees of Data Structures & Algorithms I

I had been asked this question by my college professor while I was bunking the class.

1 Answer

+1 vote
by (672k points)
selected by
Best answer
Right choice is (c) 2

To explain: An AA-Tree needs to consider only two shapes unlike a red-black tree which needs to consider seven shapes of transformation.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.