1.

Which statement is correct of suffix tree with a string of length n?(a) The tree has n leaves.(b) The tree has n roots(c) Height of Tree is n(d) Depth of tree is nThe origin of the question is Suffix Tree in division Trie of Data Structures & Algorithms II had been asked this question in my homework.

Answer»

The correct option is (a) The tree has n leaves.

To explain: In computer science, a 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. For a string of length n, the suffix tree has leaves equal to n.



Discussion

No Comment Found

Related InterviewSolutions