Re: Levenshtein distance on the diagonal

Yes the O(n) version that I abandoned falling asleep to the election results worked down the diagonal for this reason. The other saving that appears to be possible is that the matrix is symmetric down the main diagonal (that is, the other diagonal to the one in the title) for the sub-matrix of size the smaller string so you only need work out half the entries.

David

Reply

The content of this field is kept private and will not be shown publicly.