Learn Before
Concept

Levenshtein distance

The Levenshtein distance between two sequences is the simplest weighting factor in which insertion has a cost of 1, deletion has a cost of 1, and substitution has a cost of 2 (since any substitution can be represented by one insertion and one deletion). For example, the Levenshtein distance between "play" and "stay" is 4.

0

1

Updated 2020-07-21

Tags

Data Science

Related