Paper record
W2496794807APPROXIMATE STRING MATCHING WITH ARBITRARY COSTS FOR TEXT AND HYPERTEXT
Udi Manber, Sun Wu
- Year
- 1993
- Venue
- Series in machine perception and artificial intelligence
- References
- 0
- Cited by
- 59
Details and counts from OpenAlex.
Abstract
A new algorithm for finding the best approximate match of a pattern inside a text, or all matches within a given error cost, is given. The main advantages of the algorithm is that it is simple and flexible. The algorithm handles arbitrary deletion and insertion costs with a worst-case running time of O(N + R log log M), where N is the size of the text, M is the size of the pattern, and R is the total number of ordered pairs of positions at which the two sequences match. The running time is independent of the size of the error. The algorithm is also suitable for matching strings in hypertext systems. If the graph underlying the hypertext is a tree, then the running time remains the same. If the graph G is acyclic, then the running time is . Accommodating arbitrary costs is especially important for hypertext. The algorithm easy to implement and fast in practice.