Paper record

W2091929432

Approximate String Matching: A Simpler Faster Algorithm

Richard J. Cole, Ramesh Hariharan

Year
2002
Venue
SIAM Journal on Computing
References
11
Cited by
99

Details and counts from OpenAlex.

Abstract

We give two algorithms for finding all approximate matches of a pattern in a text, where the edit distance between the pattern and the matching text substring is at most k. The first algorithm, which is quite simple, runs in time O(nk3m+n+m)O(\frac{nk^3}{m}+n+m) on all patterns except k-break periodic strings (defined later). The second algorithm runs in time O(nk4m+n+m)O(\frac{nk^4}{m}+n+m) on k-break periodic patterns. The two classes of patterns are easily distinguished in O(m)time.