Edit Distance Flashcards
What is the minimum edit distance?
Given two strings. How “similar” are they?
The minimum edit distance is the minimum number of editing operations needed to transform one string to another.
Uses of the minimum edit distance
Given two strings, how “similar” are they to each other?
- Correcting spelling errors.
- Finding morphological relationships.
- Bioinformatics.
Possible operations for the minimum edit distance
Deletion, Insertion, Substitution.
Substitution is the same as a deletion + insertion
What is the name of the minimum distance between two strings if substitutions has a cost of 2?
The Levenshtein distance
How is minimum edit distance solved?
Dynamic Programming
What is Dynamic Programming?
Solving sub-problems and combining these solutions to solve the overall problem
What is the “alignment” between two strings?
What does it mean to find the “best alignment”
The alignment of the individual chars of two different strings (including empty spaces). For example, the alignment of “STOP” and “TOP” could S-d-_, T-|-T, O-|-O, P-|-P, where d is a deletion and | is “keep the same”
Finding the minimum edit distance is finding the best alignment.