I provided you with two classes. One an ADT (abstract data type) [Trie] and another [Dictionary] which is the implementation of the Trie. You simply need to instantiate the objects, call the proper methods, and pass in the correct arguments which are nicely documented in the source code. You shouldn't need to write more than 10 lines of code to fully integrate it.
After you spend several hours understanding every line of code in the above snippets you should have no problem implementing it, if not - then I will have sympathy and help you further.
|