So far, I have drawn up an attack plan to see how I can do this, and this is what I have:
bool isEmpty() const - returns true if empty, false if not
int getSize() - returns the number of words stored in the dictionary
void insert (String word) - insert words into the dictionary, if they are not already present, and then update.
boolfind(String word, WordNode & x) - returns true if the word is present and puts the data in x.
void printSorted() - prints words in a tree in lexicographical order (indicated)
void remove (String word) - implements lazy delete node
I have a concept of what I want to do, and I understand how AVL trees work. But I was completely stuck when it came to writing code, can someone help me get started?
user814447
source
share