Suffix trees for partial words and the longest common compatible prefix problem

5Citations
Citations of this article
3Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Suffix trees, introduced by Weiner in 1973, are powerful data structures used to solve many problems on words such as searching for patterns in biological sequences, data compression, text processing, etc. Although they have fallen out of favor in the past years to the more space-efficient suffix arrays, suffix trees are useful for modelling partial words by allowing paths to meet whilst keeping them acyclic through directedness (a partial word may have don't care symbols or holes, which are compatible with any letter of the alphabet over which it is defined). We extend suffix trees to partial words by introducing a suffix directed acyclic graph, with compatibility links, that exhibits all the suffixes while preserving the longest common compatible prefix, lccp, between suffixes. We give an optimal O(n 2) time and space algorithm for constructing the suffix dag of a given partial word w with an arbitrary number of holes of length n over a fixed alphabet by modifying Weiner's algorithm. Our algorithm also computes the lccp array between suffixes of w starting with holes and all other suffixes of w. It possesses the invariant that after the suffix at position i has been processed, the lccp between any suffix starting at or after position i with any suffix starting with a hole can be computed in constant time. As a result, with O(n 2) preprocessing time, finding the lccp of two given suffixes of w requires constant time. © 2013 Springer-Verlag Berlin Heidelberg.

Cite

CITATION STYLE

APA

Blanchet-Sadri, F., & Lazarow, J. (2013). Suffix trees for partial words and the longest common compatible prefix problem. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 7810 LNCS, pp. 165–176). Springer Verlag. https://doi.org/10.1007/978-3-642-37064-9_16

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free