Week #10: Binary Search Trees
Binary search trees are interesting because they are predictable. The pattern makes it easy to know what is coming and this is the easiest way to decrease the amount of time it takes to search a tree. When searching a binary search tree if you are looking for numbers above 5 and you get to the '5' node you can disregard the data in the left subtree because you know that it will always be less than 5.When dealing with large trees it would be best if they are arranged into a binary search tree.
No comments:
Post a Comment