Here is one of them:
All files are sorted by their size
Then the files are compared. If two files are not equal from a given point on, reading is interrupted; no more has to be read for determining that these files are not equal.
Because of this the results are determined much faster than in programs which use hashing algorithms, for which all files have to be read completely.
It helpes to improve pc performance very much.