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

Trương Duy

New member
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
 
Answer: B
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.
 

Tìm kiếm

Back
Top