agorodilov bd5ef432f5 Restoring authorship annotation for <agorodilov@yandex-team.ru>. Commit 2 of 2. 3 years ago
..
ut 60040c91ff Restoring authorship annotation for Ilnur Khuziev <ilnur.khuziev@yandex.ru>. Commit 2 of 2. 3 years ago
README.md 4f292c7e2f Restoring authorship annotation for <cerevra@yandex-team.ru>. Commit 2 of 2. 3 years ago
diff.cpp 6170310e87 Restoring authorship annotation for <stanly@yandex-team.ru>. Commit 2 of 2. 3 years ago
diff.h bd5ef432f5 Restoring authorship annotation for <agorodilov@yandex-team.ru>. Commit 2 of 2. 3 years ago
diff_ut.cpp 6170310e87 Restoring authorship annotation for <stanly@yandex-team.ru>. Commit 2 of 2. 3 years ago
ya.make 469afdc4e2 Restoring authorship annotation for Nikita Slyusarev <nslus@yandex-team.com>. Commit 2 of 2. 3 years ago

README.md

Note: underlying algorithm library/cpp/lcs has complexity of O(r log n) by time and O(r) of additional memory, where r is the number of pairs (i, j) for which S1[i] = S2[j]. When comparing file with itself (or with little modifications) it becomes quadratic on the number of occurences of the most frequent line.