Send
Close Add comments:
(status displays here)
Got it! This site "creationpie.com" uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website. Note: This appears on each machine/browser from which this site is accessed.
WinMerge: Comparing files
1. WinMerge: Comparing files
Most programmers use one or more programs to compare two (or three) files for differences and similarities.
2. WinMerge
I use the open source WinMerge on a regular basis for comparing two files (or groups of files in two folders) to see the similar and not-similar lines.
WinMerge at http://www.winmerge.org.
3. DiffMerge
4. LCS
Most file comparator programs are based on the Longest Common Subsequence (LCS) problem (also used for comparing the similarity of DNA strands) and which is a dual problem to the SED (Shortest Edit Distance) algorithm (minimal changes needed to edit one file into the other file).
5. Algorithm
I have studied and implemented an efficient version of these dual algorithms, specifically Hirschberg's algorithm, 1975, for use in highly customized file comparisons related to programming.
6. Hirshberg's paper
7. Useful options
I have found the following options to be useful for WinMerge.
Select "Edit", "Options...". Uncheck "Close windows with ESC".
8. Advanced usage
For advanced usage, regular expression pattern matching can be used to consider certain lines not different.
9. End of page