Is it possible to perform a split operation on a string in the rope if the split point is in the middle of the string.

Answer: a
Explanation: In order to perform the splitting on the rope data structure, one can split the given string into two new string S1 and S2 in O (log n) time. So, the time complexity for worst case is O (log n). The split operation can be performed if the split point is either at the end of the string or in the middle of the string.
 

Tìm kiếm

Back
Top