Towards real-time suffix tree construction

Amihood Amir, Tsvi Kopelowitz, Moshe Lewenstein, Noa Lewenstein

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

18 Scopus citations

Abstract

The quest for a real-time suffix tree construction algorithm is over three decades old. To date there is no convincing understandable solution to this problem. This paper makes a step in this direction by constructing a suffix tree online in time O(log n) per every single input symbol. Clearly, it is impossible to achieve better than O(log n) time per symbol in the comparison model, therefore no true real time algorithm can exist for infinite alphabets. Nevertheless, the best that can be hoped for is that the construction time for every symbol does not exceed O(log n) (as opposed to an amortized O(log n) time per symbol, achieved by current known algorithms). To our knowledge, our algorithm is the first that spends in the worst case O(log n) per every single input symbol. We also provide a simple algorithm that constructs online an indexing structure (the BIS) in time O(log n) per input symbol, where n is the number of text symbols input thus far. This structure and fast LCP (Longest Common Prefix) queries on it, provide the backbone for the suffix tree construction. Together, our two data structures provide a searching algorithm for a pattern of length m whose time is O(min(m log |Σ|, m + log n) + tocc), where tocc is the number of occurrences of the pattern.

Original languageEnglish
Title of host publicationString Processing and Information Retrieval - 12th International Conference, SPIRE 2005, Proceedings
Pages67-78
Number of pages12
DOIs
StatePublished - 2005
Event12th International Conference on String Processing and Information Retrieval, SPIRE 2005 - Buenos Aires, Argentina
Duration: 2 Nov 20054 Nov 2005

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume3772 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference12th International Conference on String Processing and Information Retrieval, SPIRE 2005
Country/TerritoryArgentina
CityBuenos Aires
Period2/11/054/11/05

Fingerprint

Dive into the research topics of 'Towards real-time suffix tree construction'. Together they form a unique fingerprint.

Cite this