Possible Duplicate:
Three Way Merge Algorithms for Text
I would like to learn what are the standard algorithms used in 3-way merges by common version control systems, like Git or Mercurial. I imagine there should be some common algorithm known by people in the field, but the Wikipedia page about 3-way merge does not enter into any detail.