Which algorithm efficiently computes the edit distance between two strings?
-
A
Naive Recursion
-
B
Wagner-Fischer Algorithm
Correct answer
-
C
Greedy Algorithm
-
D
Divide and Conquer
Correct answer
B. Wagner-Fischer Algorithm
13 views
Explanation
The Wagner-Fischer algorithm computes edit distance using dynamic programming in O(mn) time.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ