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:

    But generally speaking philistinism presupposes a certain advanced state of civilization where throughout the ages certain traditions have accumulated in a heap and have started to stink.
    Vladimir Nabokov (1899–1977)