What is the time required to locate the occurrences of a pattern P of length m in a string of length n using suffix array?
Q & A › Category: Data Structure › What is the time required to locate the occurrences of a pattern P of length m in a string of length n using suffix array?
What is the time required to locate the occurrences of a pattern P of length m in a string of length n using suffix array?
a) O(nm)
b) O(n2)
c) O(mnlogn)
d) O(mlogn)