Which type of binary tree does rope require to perform basic operations?

Which type of binary tree does rope require to perform basic operations?
A. Unbalanced
B. Balanced
C. Complete
D. Full
 
Answer: b
Explanation: To perform the basic operations on a rope data structure like insertion, deletion, concatenation and splitting, the rope should be a balanced tree. After performing the operations one should again re-balance the tree.
 

Tìm kiếm

Back
Top