Which of the following the BST is isometric with the 2-3 tree?

Which of the following the BST is isometric with the 2-3 tree?
A. Splay tree
B. AA tree
C. Heap
D. Red – Black tree
 
Answer: b
Explanation: AA tree is isometric of the 2-3 trees. In an AA tree, we store each node a level, which is the height of the corresponding 2-3 tree node. So, we can convert a 2-3 tree to an AA tree.
 

Tìm kiếm

Back
Top