Computer Science EngineeringHardISRO SC (CS)

The Levenshtein edit distance (insert, delete and substitute each cost 1) between "bddbccb" and "eedbaba" is:

  1. A. 8
  2. B. 6
  3. C. 4
  4. D. 5

Correct answer: D. 5

Standard DP gives 5. Allowing only insert/delete (substitution cost 2) would give 8.

More Algorithms, Data Structures & Programming (ISRO CS) questions

Exams that ask this topic