InterviewSolution
Saved Bookmarks
| 1. |
Can suffix tree be used in string problems occurring in a text editor.(a) True(b) FalseThe doubt is from Suffix tree in section Trie of Data Structures & Algorithms II got this question in an online quiz. |
|
Answer» RIGHT answer is (a) True The best I can explain: It is a compressed search tree or prefix tree in which keys contain the suffix of text values as the text POSITION. So, the suffix tree can be used in string PROBLEMS occurring in a text editor. The time TAKEN to solve the PROBLEM is linear to the length of the string. |
|