Cody

Solution 1517874

Submitted on 5 May 2018 by Yanni Wang
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
s1 = 'kitten'; s2 = 'sitting'; d_correct = 3; assert(isequal(levenshtein(s1,s2),d_correct))

i = 2 3 4 5 6 7 distance = 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 5 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 j = 2 3 4 5 6 7 8 distance = 0 1 2 3 4 5 6 7 1 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 5 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 substitutionCost = 1 b = 2 2 1 distance = 0 1 2 3 4 5 6 7 1 1 0 0 0 0 0 0 2 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 5 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 substitutionCost = 1 b = 2 3 2 distance = 0 1 2 3 4 5 6 7 1 1 0 0 0 0 0 0 2 2 0 0 0 0 0 0 3 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 5 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 substitutionCost = 1 b = 3 4 3 distance = 0 1 2 3 4 5 6 7 1 1 0 0 0 0 0 0 2 2 0 0 0 0 0 0 3 3 0 0 0 0 0 0 4 0 0 0 0 0 0 0 5 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 substitutionCost = 1 b = 4 5 4 distance = 0 1 2 3 4 5 6 7 1 1 0 0 0 0 0 0 2 2 0 0 0 0 0 0 3 3 0 0 0 0 0 0 4 4 0 0 0 0 0 0 5 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 substitutionCost = 1 b = 5 6 5 distance = 0 1 2 3 4 5 6 7 1 1 0 0 0 0 0 0 2 2 0 0 0 0 0 0 3 3 0 0 0 0 0 0 4 4 0 0 0 0 0 0 5 5 0 0 0 0 0 0 6 0 0 0 0 0 0 0 substitutionCost = 1 b = 6 7 6 distance = 0 1 2 3 4 5 6 7 1 1 0 0 0 0 0 0 2 2 0 0 0 0 0 0 3 3 0 0 0 0 0 0 4 4 0 0 0 0 0 0 5 5 0 0 0 0 0 0 6 6 0 0 0 0 0 0 substitutionCost = 1 b = 3 2 2 distance = 0 1 2 3 4 5 6 7 1 1 2 0 0 0 0 0 2 2 0 0 0 0 0 0 3 3 0 0 0 0 0 0 4 4 0 0 0 0 0 0 5 5 0 0 0 0 0 0 6 6 0 0 0 0 0 0 substitutionCost = 0 b = 3 3 1 distance = 0 1 2 3 4 5 6 7 1 1 2 0 0 0 0 0 2 2 1 0 0 0 0 0 3 3 0 0 0 0 0 0 4 4 0 0 0 0 0 0 5 5 0 0 0 0 0 0 6 6 0 0 0 0 0 0 substitutionCost = 1 b = 2 4 3 distance = 0 1 2 3 4 5 6 7 1 1 2 0 0 0 0 0 2 2 1 0 0 0 0 0 3 3 2 0 0 0 0 0 4 4 0 0 0 0 0 0 5 5 0 0 0 0 0 0 6 6 0 0 0 0 0 0 substitutionCost = 1 b = 3 5 4 distance = 0 1 2 3 4 5 6 7 1 1 2 0 0 0 0 0 2 2 1 0 0 0 0 0 3 3 2 0 0 0 0 0 4 4 3 0 0 0 0 0 5 5 0 0 0 0 0 0 6 6 0 0 0 0 0 0 substitutionCost = 1 b = 4 6 5 distance = 0 1 2 3 4 5 6 7 1 1 2 0 0 0 0 0 2 2 1 0 0 0 0 0 3 3 2 0 0 0 0 0 4 4 3 0 0 0 0 0 5 5 4 0 0 0 0 0 6 6 0 0 0 0 0 0 substitutionCost = 1 b = 5 7 6 distance = 0 1 2 3 4 5 6 7 1 1 2 0 0 0 0 0 2 2 1 0 0 0 0 0 3 3 2 0 0 0 0 0 4 4 3 0 0 0 0 0 5 5 4 0 0 0 0 0 6 6 5 0 0 0 0 0 substitutionCost = 1 b = 4 3 3 distance = 0 1 2 3 4 5 6 7 1 1 2 3 0 0 0 0 2 2 1 0 0 0 0 0 3 3 2 0 0 0 0 0 4 4 3 0 0 0 0 0 5 5 4 0 0 0 0 0 6 6 5 0 0 0 0 0 substitutionCost = 1 b = 4 2 3 distance = 0 1 2 3 4 5 6 7 1 1 2 3 0 0 0 0 2 2 1 2 0 0 0 0 3 3 2 0 0 0 0 0 4 4 3 0 0 0 0 0 5 5 4 0 0 0 0 0 6 6 5 0 0 0 0 0 substitutionCost = 0 b = 3 3 1 distance = 0 1 2 3 4 5 6 7 1 1 2 3 0 0 0 0 2 2 1 2 0 0 0 0 3 3 2 1 0 0 0 0 4 4 3 0 0 0 0 0 5 5 4 0 0 0 0 0 6 6 5 0 0 0 0 0 substitutionCost = 0 b = 2 4 2 distance = 0 1 2 3 4 5 6 7 1 1 2 3 0 0 0 0 2 2 1 2 0 0 0 0 3 3 2 1 0 0 0 0 4 4 3 2 0 0 0 0 5 5 4 0 0 0 0 0 6 6 5 0 0 0 0 0 substitutionCost = 1 b = 3 5 4 distance = 0 1 2 3 4 5 6 7 1 1 2 3 0 0 0 0 2 2 1 2 0 0 0 0 3 3 2 1 0 0 0 0 4 4 3 2 0 0 0 0 5 5 4 3 0 0 0 0 6 6 5 0 0 0 0 0 substitutionCost = 1 b = 4 6 5 distance = 0 1 2 3 4 5 6 7 1 1 2 3 0 0 0 0 2 2 1 2 0 0 0 0 3 3 2 1 0 0 0 0 4 4 3 2 0 0 0 0 5 5 4 3 0 0 0 0 6 6 5 4 0 0 0 0 substitutionCost = 1 b = 5 4 4 distance = 0 1 2 3 4 5 6 7 1 1 2 3 4 0 0 0 2 2 1 2 0 0 0 0 3 3 2 1 0 0 0 0 4 4 3 2 0 0 0 0 5 5 4 3 0 0 0 0 6 6 5 4 0 0 0 0 substitutionCost = 1 b = 5 3 4 distance = 0 1 2 3 4 5 6 7 1 1 2 3 4 0 0 0 2 2 1 2 3 0 0 0 3 3 2 1 0 0 0 0 4 4 3 2 0 0 0 0 5 5 4 3 0 0 0 0 6 6 5 4 0 0 0 0 substitutionCost = 0 b = 4 2 2 distance = 0 1 2 3 4 5 6 7 1 1 2 3 4 0 0 0 2 2 1 2 3 0 0 0 3 3 2 1 2 0 0 0 4 4 3 2 0 0 0 0 5 5 4 3 0 0 0 0 6 6 5 4 0 0 0 0 substitutionCost = 0 b = 3 3 1 distance = 0 1 2 3 4 5 6 7 1 1 2 3 4 0 0 0 2 2 1 2 3 0 0 0 3 3 2 1 2 0 0 0 4 4 3 2 1 0 0 0 5 5 4 3 0 0 0 0 6 6 5 4 0 0 0 0 substitutionCost = 1 b = 2 4 3 distance = 0 1 2 3 4 5 6 7 1 1...

2   Pass
s1 = 'Saturday'; s2 = 'Sunday'; d_correct = 3; assert(isequal(levenshtein(s1,s2),d_correct))

i = 2 3 4 5 6 7 8 9 distance = 0 0 0 0 0 0 0 1 0 0 0 0 0 0 2 0 0 0 0 0 0 3 0 0 0 0 0 0 4 0 0 0 0 0 0 5 0 0 0 0 0 0 6 0 0 0 0 0 0 7 0 0 0 0 0 0 8 0 0 0 0 0 0 j = 2 3 4 5 6 7 distance = 0 1 2 3 4 5 6 1 0 0 0 0 0 0 2 0 0 0 0 0 0 3 0 0 0 0 0 0 4 0 0 0 0 0 0 5 0 0 0 0 0 0 6 0 0 0 0 0 0 7 0 0 0 0 0 0 8 0 0 0 0 0 0 substitutionCost = 0 b = 2 2 0 distance = 0 1 2 3 4 5 6 1 0 0 0 0 0 0 2 0 0 0 0 0 0 3 0 0 0 0 0 0 4 0 0 0 0 0 0 5 0 0 0 0 0 0 6 0 0 0 0 0 0 7 0 0 0 0 0 0 8 0 0 0 0 0 0 substitutionCost = 1 b = 1 3 2 distance = 0 1 2 3 4 5 6 1 0 0 0 0 0 0 2 1 0 0 0 0 0 3 0 0 0 0 0 0 4 0 0 0 0 0 0 5 0 0 0 0 0 0 6 0 0 0 0 0 0 7 0 0 0 0 0 0 8 0 0 0 0 0 0 substitutionCost = 1 b = 2 4 3 distance = 0 1 2 3 4 5 6 1 0 0 0 0 0 0 2 1 0 0 0 0 0 3 2 0 0 0 0 0 4 0 0 0 0 0 0 5 0 0 0 0 0 0 6 0 0 0 0 0 0 7 0 0 0 0 0 0 8 0 0 0 0 0 0 substitutionCost = 1 b = 3 5 4 distance = 0 1 2 3 4 5 6 1 0 0 0 0 0 0 2 1 0 0 0 0 0 3 2 0 0 0 0 0 4 3 0 0 0 0 0 5 0 0 0 0 0 0 6 0 0 0 0 0 0 7 0 0 0 0 0 0 8 0 0 0 0 0 0 substitutionCost = 1 b = 4 6 5 distance = 0 1 2 3 4 5 6 1 0 0 0 0 0 0 2 1 0 0 0 0 0 3 2 0 0 0 0 0 4 3 0 0 0 0 0 5 4 0 0 0 0 0 6 0 0 0 0 0 0 7 0 0 0 0 0 0 8 0 0 0 0 0 0 substitutionCost = 1 b = 5 7 6 distance = 0 1 2 3 4 5 6 1 0 0 0 0 0 0 2 1 0 0 0 0 0 3 2 0 0 0 0 0 4 3 0 0 0 0 0 5 4 0 0 0 0 0 6 5 0 0 0 0 0 7 0 0 0 0 0 0 8 0 0 0 0 0 0 substitutionCost = 1 b = 6 8 7 distance = 0 1 2 3 4 5 6 1 0 0 0 0 0 0 2 1 0 0 0 0 0 3 2 0 0 0 0 0 4 3 0 0 0 0 0 5 4 0 0 0 0 0 6 5 0 0 0 0 0 7 6 0 0 0 0 0 8 0 0 0 0 0 0 substitutionCost = 1 b = 7 9 8 distance = 0 1 2 3 4 5 6 1 0 0 0 0 0 0 2 1 0 0 0 0 0 3 2 0 0 0 0 0 4 3 0 0 0 0 0 5 4 0 0 0 0 0 6 5 0 0 0 0 0 7 6 0 0 0 0 0 8 7 0 0 0 0 0 substitutionCost = 1 b = 3 1 2 distance = 0 1 2 3 4 5 6 1 0 1 0 0 0 0 2 1 0 0 0 0 0 3 2 0 0 0 0 0 4 3 0 0 0 0 0 5 4 0 0 0 0 0 6 5 0 0 0 0 0 7 6 0 0 0 0 0 8 7 0 0 0 0 0 substitutionCost = 1 b = 2 2 1 distance = 0 1 2 3 4 5 6 1 0 1 0 0 0 0 2 1 1 0 0 0 0 3 2 0 0 0 0 0 4 3 0 0 0 0 0 5 4 0 0 0 0 0 6 5 0 0 0 0 0 7 6 0 0 0 0 0 8 7 0 0 0 0 0 substitutionCost = 1 b = 2 3 2 distance = 0 1 2 3 4 5 6 1 0 1 0 0 0 0 2 1 1 0 0 0 0 3 2 2 0 0 0 0 4 3 0 0 0 0 0 5 4 0 0 0 0 0 6 5 0 0 0 0 0 7 6 0 0 0 0 0 8 7 0 0 0 0 0 substitutionCost = 0 b = 3 4 2 distance = 0 1 2 3 4 5 6 1 0 1 0 0 0 0 2 1 1 0 0 0 0 3 2 2 0 0 0 0 4 3 2 0 0 0 0 5 4 0 0 0 0 0 6 5 0 0 0 0 0 7 6 0 0 0 0 0 8 7 0 0 0 0 0 substitutionCost = 1 b = 3 5 4 distance = 0 1 2 3 4 5 6 1 0 1 0 0 0 0 2 1 1 0 0 0 0 3 2 2 0 0 0 0 4 3 2 0 0 0 0 5 4 3 0 0 0 0 6 5 0 0 0 0 0 7 6 0 0 0 0 0 8 7 0 0 0 0 0 substitutionCost = 1 b = 4 6 5 distance = 0 1 2 3 4 5 6 1 0 1 0 0 0 0 2 1 1 0 0 0 0 3 2 2 0 0 0 0 4 3 2 0 0 0 0 5 4 3 0 0 0 0 6 5 4 0 0 0 0 7 6 0 0 0 0 0 8 7 0 0 0 0 0 substitutionCost = 1 b = 5 7 6 distance = 0 1 2 3 4 5 6 1 0 1 0 0 0 0 2 1 1 0 0 0 0 3 2 2 0 0 0 0 4 3 2 0 0 0 0 5 4 3 0 0 0 0 6 5 4 0 0 0 0 7 6 5 0 0 0 0 8 7 0 0 0 0 0 substitutionCost = 1 b = 6 8 7 distance = 0 1 2 3 4 5 6 1 0 1 0 0 0 0 2 1 1 0 0 0 0 3 2 2 0 0 0 0 4 3 2 0 0 0 0 5 4 3 0 0 0 0 6 5 4 0 0 0 0 7 6 5 0 0 0 0 8 7 6 0 0 0 0 substitutionCost = 1 b = 4 2 3 distance = 0 1 2 3 4 5 6 1 0 1 2 0 0 0 2 1 1 0 0 0 0 3 2 2 0 0 0 0 4 3 2 0 0 0 0 5 4 3 0 0 0 0 6 5 4 0 0 0 0 7 6 5 0 0 0 0 8 7 6 0 0 0 0 substitutionCost = 1 b = 3 2 2 distance = 0 1 2 3 4 5 6 1 0 1 2 0 0 0 2 1 1 2 0 0 0 3 2 2 0 0 0 0 4 3 2 0 0 0 0 5 4 3 0 0 0 0 6 5 4 0 0 0 0 7 6 5 0 0 0 0 8 7 6 0 0 0 0 substitutionCost = 1 b = 3 3 2 distance = 0 1 2 3 4 5 6 1 0 1 2 0 0 0 2 1 1 2 0 0 0 3 2 2 2 0 0 0 4 3 2 0 0 0 0 5 4 3 0 0 0 0 6 5 4 0 0 0 0 7 6 5 0 0 0 0 8 7 6 0 0 0 0 substitutionCost = 1 b = 3 3 3 distance = 0 1 2 3 4 5 6 1 0 1 2 0 0 0 2 1 1 2 0 0 0 3 2 2 2 0 0 0 4 3 2 3 0 0 0 5 4 3 0 0 0 0 6 5 4 0 0 0 0 7 6 5 0 0 0 0 8 7 6 ...

3   Pass
s1 = 'MATLAB rocks!'; s2 = 'MathWorks'; d_correct = 9; assert(isequal(levenshtein(s1,s2),d_correct))

i = 2 3 4 5 6 7 8 9 10 11 12 13 14 distance = 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0 5 0 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 0 7 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 9 0 0 0 0 0 0 0 0 0 10 0 0 0 0 0 0 0 0 0 11 0 0 0 0 0 0 0 0 0 12 0 0 0 0 0 0 0 0 0 13 0 0 0 0 0 0 0 0 0 j = 2 3 4 5 6 7 8 9 10 distance = 0 1 2 3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 0 12 0 0 0 0 0 0 0 0 0 13 0 0 0 0 0 0 0 0 0 substitutionCost = 1 b = 6 8 7 distance = 0 1 2 3 4 5 6 7 8 9 1 0 0 0 0 0 0 0 0 0 2 1 0 0 0 0 0 0 0 0 3 2 0 0 0 0 0 0 0 0 4 3 0 0 0 0 0 0 0 0 5 4 0 0 0 0 0 0 0 0 6 5 0 0 0 0 0 0 0 0 7 6 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 9 0 0 0 0 0 0 0 0 0 10 0 0 0 0 0 0 0 0 0 11 0 0 0 0 0 0 0 0 0 12 0 0 0 0 0 0 0 0 0 13 0 0 0 0 0 0 0 0 0 substitutionCost = 1 b = 7 9 8 distance = 0 1 2 3 4 5 6 7 8 9 1 0 0 0 0 0 0 0 0 0 2 1 0 0 0 0 0 0 0 0 3 2 0 0 0 0 0 0 0 0 4 3 0 0 0 0 0 0 0 0 5 4 0 0 0 0 0 0 0 0 6 5 0 0 0 0 0 0 0 0 7 6 0 0 0 0 0 0 0 0 8 7 0 0 0 0 0 0 0 0 9 0 0 0 0 0 0 0 0 0 10 0 0 0 0 0 0 0 0 0 11 0 0 0 0 0 0 0 0 0 12 0 0 0 0 0 0 0 0 0 13 0 0 0 0 0 0 0 0 0 substitutionCost = 1 b = 8 10 9 distance = 0 1 2 3 4 5 6 7 8 9 1 0 0 0 0 0 0 0 0 0 2 1 0 0 0 0 0 0 0 0 3 2 0 0 0 0 0 0 0 0 4 3 0 0 0 0 0 0 0 0 5 4 0 0 0 0 0 0 0 0 6 5 0 0 0 0 0 0 0 0 7 6 0 0 0 0 0 0 0 0 8 7 0 0 0 0 0 0 0 0 9 8 0 0 0 0 0 0 0 0 10 0 0 0 0 0 0 0 0 ...

4   Pass
s1 = 'Four score and seven years ago'; s2 = 'Eighty seven years before today'; d_correct = 25; assert(isequal(levenshtein(s1,s2),d_correct))

i = Columns 1 through 29 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 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0 0 0 0 0 0 0 0 0 15 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 17 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 18 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 19 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 20 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 21 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 substitutionCost = 1 b = 2 3 2 distance = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

6   Pass
s1 = 'ninety-nine bottles of beer on the wall'; s2 = 'eighty-six bottles of beer on the wall'; d_correct = 6; assert(isequal(levenshtein(s1,s2),d_correct))

i = Columns 1 through 29 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 30 through 39 31 32 33 34 35 36 37 38 39 40 distance = Columns 1 through 29 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 j = Columns 1 through 29 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30...

7   Pass
s1 = 'these are the times that try men''s souls'; s2 = 'soulwise, these are trying times'; d_correct = 27; assert(isequal(levenshtein(s1,s2),d_correct))

i = Columns 1 through 29 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 30 through 40 31 32 33 34 35 36 37 38 39 40 41 distance = Columns 1 through 29 0 0 0 0 0 0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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 36 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 37 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 38 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 39 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 40 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 30 through 33 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 j = Columns 1 through 29 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 30 through 32 31 32 33 distance = Columns 1 through 29 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...