Edit Distance Flashcards

1
Q

What is the minimum edit distance?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Uses of the minimum edit distance

A

Given two strings, how “similar” are they to each other?

  • Correcting spelling errors.
  • Finding morphological relationships.
  • Bioinformatics.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Possible operations for the minimum edit distance

A

Deletion, Insertion, Substitution.

Substitution is the same as a deletion + insertion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the name of the minimum distance between two strings if substitutions has a cost of 2?

A

The Levenshtein distance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How is minimum edit distance solved?

A

Dynamic Programming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Dynamic Programming?

A

Solving sub-problems and combining these solutions to solve the overall problem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the “alignment” between two strings?

What does it mean to find the “best alignment”

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly