http://qs321.pair.com?node_id=723694


in reply to Re: match and mismatch
in thread match and mismatch

Just for the sake of completeness: The runtime here is N^2. The identifcation of mismatches is obviously possible in N (see solutions above). But this solution is much more powerful and can identify insertions and deletions as well.