Recurrence relations

Report a typo

Match the recurrence relations for the different allowed operations in Levenshtein distance.

Say, minDistance(a,b,i,j)minDistance(a,b,i,j) is the recursive method for calculating the Levenshtein distance, where aa and bb are the two input strings, and ii, jj are the respective character indices of those input strings.

Match the items from left and right columns
​minDistance(a,b,i−1,j) + 1​
​minDistance(a,b,i,j−1) + 1​
​minDistance(a,b,i−1,j−1) + 1​
Deletion
Insertion
Substitution

Create a free account to access the full topic