+1 vote
in Data Structures & Algorithms I by (110k points)
Which type of binary tree does rope require to perform basic operations?

(a) Unbalanced

(b) Balanced

(c) Complete

(d) Full

My question is taken from Binary Trees topic in division Binary Trees of Data Structures & Algorithms I

The question was posed to me during an online interview.

1 Answer

+1 vote
by (672k points)
selected by
 
Best answer
The correct option is (b) Balanced

The best I can explain: 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.

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.

Categories

...