I'm looking to apply a KMP (or similar) search to a large file (> 4GB).
I'm expecting this to give me problems though.I can't copy it all to memory because there isn't enough space there.
My question is, what is the best way to go about doing this search? Should I simply create a FILE* and do the search directly in the file, should I copy blocks (say 4k) to memory and search those, or something else completely?