Bounds for the String Editing Problem

  • Authors:
  • C. K. Wong;Ashok K. Chandra

  • Affiliations:
  • Computer Sciences Department, IBM Thomas J. Watson Research Center, P.O. Box 218, Yorktown Heithts, NY;Computer Sciences Department, IBM Thomas J. Watson Research Center, P.O. Box 218, Yorktown Heithts, NY

  • Venue:
  • Journal of the ACM (JACM)
  • Year:
  • 1976

Quantified Score

Hi-index 0.02

Visualization

Abstract

The string editing problem is to determine the distance between two strings as measured by the minimal cost sequence of deletions, insertions, and changes of symbols needed to transform one string into the other. The longest common subsequence problem can be viewed as a special case. Wagner and Fischer proposed an algorithm that runs in time O(nm), where n, m are the lengths of the two strings. In the present paper, it is shown that if the operations on symbols of the strings are restricted to tests of equality, then O(nm) operations are necessary (and sufficient) to compute the distance.