1.

Which tree provides a linear time solution for substring operation?(a) Rope Tree(b) Suffix Tree(c) Tango Tree(d) Top TreeMy question is based upon Suffix Tree topic in division Trie of Data Structures & Algorithms II had been asked this question by my college professor while I was bunking the class.

Answer»

Correct ANSWER is (b) SUFFIX Tree

Easiest explanation - It is a compressed SEARCH tree or prefix tree in which keys contain the suffix of text values as the text position. It ALLOWS fast STRING operation to be carried out by the user. The substring operation can be performed by suffix tree in linear time.



Discussion

No Comment Found

Related InterviewSolutions