EditDistance
EditDistance[u,v]
gives the edit or Levenshtein distance between strings, vectors or biomolecular sequences u and v.
Details and Options
- EditDistance[u,v] gives the number of one-element deletions, insertions, and substitutions required to transform u to v.
- For strings, setting the option IgnoreCase->True makes EditDistance treat lower‐ and upper‐case letters as equivalent.
Examples
open allclose allBasic Examples (3)
Scope (2)
Properties & Relations (2)
EditDistance is less than or equal to HammingDistance for strings of equal length:
EditDistance is less than or equal to HammingDistance for vectors of equal length:
Text
Wolfram Research (2007), EditDistance, Wolfram Language function, https://reference.wolfram.com/language/ref/EditDistance.html (updated 2020).
CMS
Wolfram Language. 2007. "EditDistance." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/EditDistance.html.
APA
Wolfram Language. (2007). EditDistance. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EditDistance.html