More Advanced Algorithm
#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);
}
Read more about this topic: Brute-force Search
Famous quotes containing the word advanced:
“A free-enterprise economy depends only on markets, and according to the most advanced mathematical macroeconomic theory, markets depend only on moods: specifically, the mood of the men in the pinstripes, also known as the Boys on the Street. When the Boys are in a good mood, the market thrives; when they get scared or sullen, it is time for each one of us to look into the retail apple business.”
—Barbara Ehrenreich (b. 1941)