add my solutions for pythonchallenge.com

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
Add KMP to alg.[hc]

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
dfa substring searcher code

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
Solved A, B;

Not sure I was supposed to use Z-function in B, though. :-/

 * A (2013-04-11): Поиск подстроки
 * B (2013-04-11): Строка с уникальными префиксами

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
Class 2013-04-15

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
update

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
update

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
update

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
Fix zkmp()

In the main loop, 'z' was not reset on partial match when we shifted
right. So, for example, it would give false positive on strings

	P = xxz
	T = axbbbxzc

(false match on 'bxz', offset = 4)

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
???

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
fix kmp

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
update

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
Update solutions for 2013-04-18 class.

 * A (2013-04-18): Количество подстрок
 * B (2013-04-18): Преобразование z-функции в π-функцию
 * C (2013-04-18): Преобразование π-функции в z-функцию

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
This is very broken

and I don't have a slightest idea about how to implement a proper pool
of workers. May be I'll try reading rsync sources.

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
Well, this is something..

Now we can throw bytes around

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
Switching to forking method still leaves zombies.

:-(

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
got my learn on

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
not so clueless anymore

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
update

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
Aho-Corasick

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>