login

The String-to-String Correction Problem

Journal of the ACMPublished 1 January 1974Open access
Robert A. Wagner, Michael J. Fischer
Citations3,063
SJR quartileQ1
SJR score2.25
SNIP3.16
View PDF

TL;DR

An algorithm is presented which solves the string-to-string correction problem in time proportional to the product of the lengths of the two strings.

Abstract

The string-to-string correction problem is to determine the distance between two strings as measured by the minimum cost sequence of “edit operations” needed to change the one string into the other. The edit operations investigated allow changing one symbol of a string into another single symbol, deleting one symbol from a string, or inserting a single symbol into a string. An algorithm is presented which solves this problem in time proportional to the product of the lengths of the two strings. Possible applications are to the problems of automatic spelling correction and determining the longest subsequence of characters common to two strings.

Keywords

Computer Science