1.

Suffix array can be created in O(nlogn) time.(a) True(b) FalseThe origin of the question is Arrays Types in section Arrays Types of Data Structures & Algorithms II had been asked this question in class test.

Answer» RIGHT answer is (a) True

Easiest EXPLANATION - Suffix ARRAY can be constructed in O(n^2logn) time USING sorting algorithms but it is possible to BUILD the suffix array in O(nlogn) time using prefix doubling.


Discussion

No Comment Found

Related InterviewSolutions