Brute-force Search - More Advanced Algorithm

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:

    I don’t say ‘tis impossible for an impudent man not to rise in the world, but a moderate merit with a large share of impudence is more probable to be advanced than the greatest qualifications without it.
    Mary Wortley, Lady Montagu (1689–1762)