- Left child should be smaller than right child
- Left / Right child should contain only integer
- Middle child should contain a sorted list of floats greater than left child and less than right child
- Implement push , remove and print for any given level operations
- It should read inputs from a text file, values separated by a newline
Methods in balacedTernarySearchTree class:
a)push(data)
push element in tree if it is float in appropriate middleList else new node attached as child.
b)search(search_value)
find search value
c)remove(remove_value)
remove remove_value
d)print()
prints tree in Left - MiddleList - Nodedata - Right of every node basically depth first traversal
e)printLevelOrder()
prints level order traversal of tree
Implemented method to read input from files line by line in driver.py.
Required format of input text file is as given in input.txt.
Console based interaction in driverConsole.py