I have a text file and a dictionary. The dictionary consists of a list of exactly 8-digit long words. I look through a text file and look through the dictionary every 8 characters ("sliding window").
I am currently using the python dictionary data structure as a lookup table. He amortized the search time 0 (1), but I wonder if there are faster algorithms / data structures that use the specific nature / structure of the problem.
source
share