Knuth–Morris–Pratt algorithm: Difference between revisions

Content deleted Content added
Avhohlov (talk | contribs)
Examples are provided in correspondence with the algorithm
Avhohlov (talk | contribs)
last T element calculation (only need when all word occurences searched)
Line 339:
'''let''' pos ← pos + 1, cnd ← cnd + 1
'''let''' T[pos] ← cnd (only need when all word occurences searched)
 
===Efficiency of the table-building algorithm===