public marks

LINK

Knuth-Morris-Pratt Algorithm

by parmentierf & 1 other
The problem: given a (short) pattern and a (long) text, both strings, determine whether the pattern appears somewhere in the text. Last time we saw how to do this with finite automata. This time we'll go through the Knuth-Morris-Pratt (KMP) algorithm, which can be thought of as an efficient way to build these automata. I also have some working C source code which might help you understand the algorithm better.

Comments

No comment on this link yet.


PUBLIC TAGS
on this link

algorithme   c   chaînes de caractères   comparaison   dev   importé   text/processing  

BY

parmentierf
the 15/09/2006 at 06:54

solveig_vidal
the 20/07/2006 at 12:11