1.

How much time does construction of suffix tree take?(a) O (log M)(b) O (M!)(c) Exponential to Length of Tree(d) Linear to Length of TreeMy doubt stems from Suffix Tree topic in division Trie of Data Structures & Algorithms II have been asked this question in an online quiz.

Answer»

Right ANSWER is (d) Linear to Length of Tree

The best I can explain: SUFFIX tree is also known as PAT tree or position tree. 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. Total time taken for CONSTRUCTION of suffix tree is linear to the length of the tree.



Discussion

No Comment Found

Related InterviewSolutions