-3

I am working on finding the similarity/differences in the source code of different java programs. I've used an implementation of the Levenshtein algorithm to find how similar two programs are. I want to know if there is any algorithm that can help in finding the exact positions where two strings differ.

2
  • Do you know there are many excellent tools that do what you want? Any particular reason to reinvent the wheel?
    – Floris
    Apr 14, 2013 at 10:38
  • This is for a school project.So,I'm just looking to learn Apr 14, 2013 at 10:44

1 Answer 1

1

You will find more than you ever wanted to know by looking at the inner workings of diff - see for example this link or simply the wiki article

Not the answer you're looking for? Browse other questions tagged or ask your own question.