kormen

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
Add blank src file for next seminar's homework

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
class 2013-03-18

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
add my solutions for pythonchallenge.com

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>
Merge branch 'python/netcp' into python/discrete_math_seminar
struggling with relative package imports

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

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

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

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

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

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>
update homework

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>
class 2013-04-17

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

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>