Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Posts:
822
Registered:
9/1/10


Brute Force EOS algorithm
Posted:
Nov 12, 2012 4:19 AM


#define EOS '\0'
void BF(char *x, int m, char *y, int n) { char *yb; /* Searching */ for (yb = y; *y != EOS; ++y) if (memcmp(x, y, m) == 0) OUTPUT(y  yb); } (c) 2012 Brute Force EOS Musatov Algorithm All Rights Reserved Perpetually, may be posted in the public domain for educational only purposes.



