Hello folks,
I am here stuck with this problem:
I have created a trie for all the dictionary words and now I want to perform thousand of queries on this trie(I used trie so that I can seach very efficiently)
Now as the pre-processing cost of trie is too much so I just want to create it once(i.e when the page loads) and then call the word_lookup function from HTML page repeatedly, using the javascript and calling the trie PHP script from js asynchronously on button click event!
but this way I am creating a new trie every time, can somebody suggest a way so that I can keep this trie in the main memory permanently and do not need to create it every time I perform a query??
Thanks,