Which of the following statements about suffix trees is TRUE?
15 views
- They store only the unique characters of a string
- They allow linear-time substring search (Correct Answer)
- They require quadratic space in all cases
- They can only be used for binary strings
Explanation
Suffix trees allow efficient linear-time substring searches (O(m) for a substring of length m) and pattern matching. Proper implementations can use linear space relative to the input string.