A question about patricia trie (two questions, actually).
I am playing with an example of trie shown here: TRIE, a C++ approach… - Shamail's Blog .
1) I want to test loading a lot of numbers from a text file. How would I skip entries that already exist in a trie?
2) How would I load these entries from a text file to begin with? I found some links to “ifstream file” but my trouble is I have no idea how to pass file contents into - code line by line.
Here is an example of the text file.
44564564564564566 <- duplicate entry to be skipped