2013 · 41 citations · 11 references
EngineeringComputational ComplexityShortest Unique SubstringsText MiningNatural Language ProcessingString-searching AlgorithmInformation RetrievalData ScienceData MiningString ProcessingComputational LinguisticsSuffix Tree IndexCombinatorial OptimizationKnowledge DiscoveryComputer ScienceQuery OptimizationRelational QueriesShortest UniqueCombinatorial Pattern MatchingApproximate Query Answering
In this paper, we tackle a novel type of interesting queries - shortest unique substring queries. Given a (long) string S and a query point q in the string, can we find a shortest substring containing q that is unique in S? We illustrate that shortest unique substring queries have many potential applications, such as information retrieval, bioinformatics, and event context analysis. We develop efficient algorithms for online query answering. First, we present an algorithm to answer a shortest unique substring query in O(n) time using a suffix tree index, where n is the length of string S. Second, we show that, using O(n·h) time and O(n) space, we can compute a shortest unique substring for every position in a given string, where h is variable theoretically in O(n) but on real data sets often much smaller than n and can be treated as a constant. Once the shortest unique substrings are pre-computed, shortest unique substring queries can be answered online in constant time. In addition to the solid algorithmic results, we empirically demonstrate the effectiveness and efficiency of shortest unique substring queries on real data sets.
11
The Minimal Gene Complement of <i>Mycoplasma genitalium</i>
Claire M. Fraser, Jeannine D. Gocayne, Owen White et al. · Science · 1995 · 2.5K citations
Linear pattern matching algorithms
Peter Weiner · 1973 · 1.8K citations
On-line construction of suffix trees
Esko Ukkonen · Algorithmica · 1995 · 1.5K citations
Tree Language, String Processing, Computational Linguistics +3
Optimal suffix tree construction with large alphabets
2002 · 442 citations