encyclopegia.org

String-to-string correction problem

In computer science, the string-to-string correction problem refers to determining the minimum cost sequence of edit operations necessary to change one string into another (i.e., computing the shortest edit distance). Each type of edit operation has its own cost value. A single edit operation may be changing a single symbol of the string into another (cost W C ), deleting a symbol (cost W D ), or inserting a new symbol (cost W I ). If all edit operations have the same unit costs (W C = W D = W I = 1) the problem is the same as computing the Levenshtein distance of two strings. Several algorithms exist to provide an efficient way to determine string distance and specify the minimum number of transformation operations required. Such algorithms are particularly useful for delta creation operations where something is stored as a set of differences relative to a base version. This allows several versions of a single object to be stored much more efficiently than storing them separately. This holds true even for single versions of several objects if they do not differ greatly, or anything in between. Notably, such difference algorithms are used in molecular biology to provide some measure of kinship between different kinds of organisms based on the similarities of their macromolecules (such as proteins or DNA).

In computer science, the string-to-string correction problem refers to determining the minimum cost sequence of edit operations necessary to change one string into another (i.e., computing the shortest edit distance). Each type of edit operation has its own cost value. A single edit operation may be changing a single symbol of the string into another (cost W C ), deleting a symbol (cost W D ), or inserting a new symbol (cost W I ). If all edit operations have the same unit costs (W C = W D = W I = 1) the problem is the same as computing the Levenshtein distance of two strings. Several algorithms exist to provide an efficient way to determine string distance and specify the minimum number of transformation operations required. Such algorithms are particularly useful for delta creation operations where something is stored as a set of differences relative to a base version. This allows several versions of a single object to be stored much more efficiently than storing them separately. This holds true even for single versions of several objects if they do not differ greatly, or anything in between. Notably, such difference algorithms are used in molecular biology to provide some measure of kinship between different kinds of organisms based on the similarities of their macromolecules (such as proteins or DNA). Robert A. Wagner (1975) showed that the general problem is NP-complete. In particular, he proved that when W I C = W D = ∞ and 0 S < ∞ (or equivalently, changing and deletion are not permitted), the problem is NP-complete.

References

No reference rows published for this article.

Cite this article

MLA

"String-to-string correction problem." encyclopegia.org, 2024, https://encyclopegia.org/wiki/string-to-string-correction-problem. Accessed 24 November 2026.

Chicago

"String-to-string correction problem." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/string-to-string-correction-problem.

APA

encyclopegia.org. (2024). String-to-string correction problem. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/string-to-string-correction-problem

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

String Quartet No. 16

stub · references available

String Quartet No. 9

stub · references available

String cosmology

stub · references available

Bonferroni correction

stub · references available

Correction

stub · references available

The String Cheese Incident

stub · references available

String Sextet

stub · references available

Bessel's correction

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1234816792 · 0.5 · snapshot enwiki-001234816792

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.