ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
What is the edit distance between the strings "abcd" and "acbd" when the allowed operations are insertion, deletion and substitution?
Correct Answer: B — 2
The string "abcd" can be changed to "acbd" by substituting "b" with "c" and "c" with "b". Thus, the edit distance is 2.