|
SOLUTIONS
|
Mathematica
>
Core Language
>
String Manipulation
>
Sequence Alignment & Comparison
>
Distance and Similarity Measures
>
EditDistance
BUILT-IN MATHEMATICA SYMBOL
EditDistance
EditDistance[u, v]
gives the edit or Levenshtein distance between strings or vectors u and v.
Details and OptionsDetails 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.
New in 6
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
