Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
hello all,
I need to compare two strings and find how many characters should be deleted and how many should be inserted. I know that this is edit distance, but how can I get those numbers?
For instance:
This is an old question. This is a new question.
The result should be 4 deletions and 3 insertions.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Edit distance between two strings
by AppleFritter (Vicar) on Jul 08, 2014 at 09:44 UTC | |
|
Re: Edit distance between two strings
by Laurent_R (Canon) on Jul 08, 2014 at 18:00 UTC |