もっとも異なる
引用元:https://www.ioccc.org/2015/howe/prog.c
審査員・作者による説明:https://www.ioccc.org/2015/howe/index.html
diffコマンド。
$ cat tmp1.txt
a
b
c
$ cat tmp2.txt
a
B
c
$ gcc -o prog prog.c
$ ./prog tmp1.txt tmp2.txt
1a2
> B
2d2
< b
-dをつけると編集距離を出力する。
$ ./prog -d tmp1.txt tmp2.txt
2
diffのアルゴリズムであるAn O(NP) sequence comparison algorithmを実装したものとのこと。
FNVハッシュ関数を使っている。 このハッシュ関数は、IOCCCの審査員であるLandon Curt Nollが開発者の一人(FNVのNはNollのN)なので、エゴを刺激するために選ばれた。