1997 · 67 citations · 0 references
ComputingComputer EngineeringComputer ScienceNatural Language ProcessingPattern RecognitionSequence Similarity SearchString AlgorithmsSyntactic AnalysisComplexity Of String AlgorithmsPattern MatchingShort-text SimilarityString SearchString Searching
We investigate the time complexity of the pattern matching problem for strings which are succinctly described in terms of straight-line programs, in which the constants are symbols and the only operation is the concatenation. Most strings of descriptive size n are of exponential length with respect to n. We show an O(n 4 log n) time algorithm for this problem. The crucial point in our algorithm is the succinct representation of all periods of a (possibly long) string described in this manner. We also show a (rather straightforward) result that a very simple extension of the pattern-matching problem for shortly described strings is NP-complete.