Learn Before
Concept

The Minimum Edit Distance Algorithm

  • The minimum edit distance can be computed by using dynamic programming in which the shortest path is stored every time we found it.
  • First, we define the minimum edit distance between two strings XX and YY with lengths of n and m respectively. D[i,j]D[i, j] would be defined as the edit distance between X[1..i]X[1..i] and Y[1..j]Y[1..j]. Then we get that D[n,m]D[n, m] is the edit distance between XX and YY.
Image 0

0

0

Updated 2021-09-18

Tags

Data Science

Related