GATE Computer ScienceHardGATE CSE · NIELIT

With unit cost for insertion, deletion and substitution, what is the edit distance between INTENTION and EXECUTION?

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

Correct answer: A. 5

The Levenshtein DP table gives 5 (for example delete I, substitute N→E, T→X, insert C, and keep the rest aligned).

More Algorithms questions

Exams that ask this topic