parser

Написать ответ на текущее сообщение

 

 
   команды управления поиском

Можно подсмотреть ему в исходники

Luzhnikovskiy 07.05.2004 14:44

/* The basic algorithm is described in:
"An O(ND) Difference Algorithm and its Variations", Eugene Myers,
Algorithmica Vol. 1 No. 2, 1986, pp. 251-266;
see especially section 4.2, which describes the variation used below.
Unless the --minimal option is specified, this code uses the TOO_EXPENSIVE
heuristic, by Paul Eggert, to limit the cost to O(N**1.5 log N)
at the price of producing suboptimal output for large inputs with
many differences.

The basic algorithm was independently discovered as described in:
"Algorithms for Approximate String Matching", E. Ukkonen,
Information and Control Vol. 64, 1985, pp. 100-118. */
это из заголовка analyze.c из пакета diff... 30000+ символов только в этом файле...
хотите портировать это на Parser?