Quote:
Originally Posted by Jack86
How could i efficiently store bunch of strings from a file and later compare all of them one by one with another string until i find a match ?
|
Quote:
Originally Posted by Jack86
I did read about tries, but as i as seem to understand it, it saves data in pairs by key and value, and i only need to save certain values and seach them.
|
It really depends on what you do with the the "found" match. If you just need to know if the string is in the list Tries are great. There are other great ways they can be used also.
__________________