InterviewSolution
Saved Bookmarks
| 1. |
What is the space complexity of the above implementation of Wagner–Fischer algorithm where “m” and “n” are the lengths of the two strings?(a) O(1)(b) O(n+m)(c) O(mn)(d) O(nlogm)The question was asked by my school principal while I was bunking the class.My question comes from Wagner-Fischer Algorithm topic in section Dynamic Programming of Data Structures & Algorithms II |
|
Answer» Correct ANSWER is (C) O(mn) |
|