Q. Consider the two strings “”(empty string) and “abcd”. What is the edit distance between the two strings?

  • (A) 0
  • (B) 4
  • (C) 2
  • (D) 3
πŸ’¬ Discuss
βœ… Correct Answer: (B) 4
Explanation: the empty string can be transformed into “abcd” by inserting “a”, “b”, “c” and “d” at appropriate positions. thus, the edit distance is 4.

Explanation by: Mr. Dubey
the empty string can be transformed into “abcd” by inserting “a”, “b”, “c” and “d” at appropriate positions. thus, the edit distance is 4.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
111
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
96%
Success Rate