This is a Python program that reads a dictionary in the form of a.txt file and adds each word to a Red Black Tree.
python3 RBDictionary.py
A dictionary file is included in the repository but can be changed to any file by simply changing the parameters to the read_dictionary function in main().
- Load: Loads the dictionary from a file to a Red Black Tree.
- Insert: Insert a word into the dictionary.
- Search: Search for a word in the dictionary.
- Height: Returns the height of the dictionary.
- Size: Returns the size of the dictionary.