Which tree allows fast implementation of a set of string operation?

Category: QuestionsWhich tree allows fast implementation of a set of string operation?
Editor">Editor Staff asked 4 weeks ago

Which tree allows fast implementation of a set of string operation?
 
(a) Rope Tree
 
(b) Tango Tree
 
(c) Generalized Suffix Tree
 
(d) Top Tree
 
The above asked question is from Suffix Tree in chapter Trie of Data Structures & Algorithms I
 
I got this question in an interview for internship.

1 Answers
Editor">Editor Staff answered 4 weeks ago

Correct option is (c) Generalized Suffix Tree
 
The best explanation: In computer science, the generalized suffix is a special suffix tree which contains a set of strings or set of words instead of a single string like suffix tree.  Hence Different operation can be performed on a set of strings using a generalized suffix tree.