![]() |
| Binary trees are just like tree but instead of having any number of children, binary trees only have two (left and right) |
Another useful function of binary trees is a binary search tree, where the value of the left node is less than the value of the main node and the value of the right node is greater than the main node value. By using binary search methods, searches can now be much faster especially compared to other search methods like linear searches, where you have to look at every value of the set.

No comments:
Post a Comment