Skip to content
No description, website, or topics provided.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
binary_search_tree.py
binary_search_tree_parent.py
graph.py
log.py
sample.py
sample2.py
test.py

README.md

binary search tree

1. sample.py

usage of this code

2. binary_searh_tree.py

main code

3. binary_searh_tree_parent.py

Another implmentation of binary search tree. In this code BinarySearchNode class has parent attribute. This script was written to show you parent attribute is not reuiqred in binary search tree. The parent attribute make code more complicated.

4. log.py

log.output(bst: BinarySearchTree) function shows you a tree structrue in console.

5. graph.py

graph.render(bst: BinarySearchTree) creates an image file. This module requires graphviz moudle.

6. test.py

test code for binary_searh_tree.py and binary_searh_tree_parent.py

You can’t perform that action at this time.