Comment

Jan Kokoska

Paddy, the line that was changed was the first line from "Petter" to "Peter", so this is OK.

I have more trouble understanding the 0'th example though.

It looks to me like either 2 added and 1 removed OR 2 changed and 1 added. One thing is for sure, the difference shows in THREE lines, so the explanation's numbers need to add up. What am I missing here?

Parent comment

Paddy3118

I am not sure of your result for Example1. Gong from: Peter David Andrew To: Peter David Zahid Can be done with either: A.1) Locate the Third line. A.2) Change the line to be Zahid. Or: B.1) Locate the second line. B.2) remove the next line. B.3) Add a line after the current, of Zahid. You could do sequence A followed by sequence B but sequence B after sequence A would not change the text. So, the correct result for me would be either: Removed 1 line, added 1 line. Or: Changed 1 line. But not both. Cheers, Paddy.

Replies

Peter Bengtsson

Good point Jan. I'll adjust the distance calculation measure with this an an example. The numbers I used are rough guesses and I wanted to test my way into the best match.

Peter Bengtsson

Fixed that 0th example now.