Im looking for a way to find all repeating sequences consisting of at least 3 characters on an input file and then print out the most frequent ones! it seems to require a lot of string processing and intense searching through the input file specially cause there is no upper bound on the max size of the patterns to look for!
Is there any efficient algorithm to do it with the least possible processing and messiness? Should I use string.h or I'd be better off with char arrays? Any tips/helpful snippets etc. on how to start?
tnx