Direct Linear Time Construction of Parameterized Suffix and LCP Arrays for Constant Alphabets
We present the first worst-case linear time algorithm that directly computes the parameterized suffix and LCP arrays for constant sized alphabets. Previous algorithms either required quadratic time or the parameterized suffix tree to be built first. More formally, for a string over static alphabet Σ and parameterized alphabet Π, our algorithm runs in O(nπ) time and O(n) words of space, where π is the number of distinct symbols of Π in the string.
READ FULL TEXT