Knuth–Morris–Pratt algorithm: Difference between revisions

Content deleted Content added
Ryan Reich (talk | contribs)
m Reorder the efficiency calculation and the code example for the table-building algorithm for consistency with the last change.
a bit simplified C code for building table
Line 156:
int i = 0;
int j = -1;
char c = '\0';
c = '\0';
T[0] = j;
while (P[i] != '\0') {