AVL trees provide better insertion the 2-3 trees.

Man Ly

New member
AVL trees provide better insertion the 2-3 trees.
A. True
B. False
 
Answer: b
Explanation: Insertion in AVL tree and 2-3 tree requires searching for proper position for insertion and transformations for balancing the tree. In both, the trees searching takes O(log n) time, but rebalancing in AVL tree takes O(log n), while the 2-3 tree takes O(1). So, 2-3 tree provides better insertions.
 

Tìm kiếm

Back
Top