LCP array and ______ is used to construct suffix tree.

LCP array and ______ is used to construct suffix tree.
A. Hash tree
B. Hash trie
C. Suffix array
D. Balanced tree
 
Answer: c
Explanation: Suffix tree can be created using an LCP array and a suffix array. If we are given a string of length (n + 1) and its suffix array and LCP array, we can construct the suffix tree in linear time i.e in O(n) time.
 

Tìm kiếm

Back
Top