• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

balanced/full Binary Search Tree?

Bluga

Banned
What are the definitions (FULL BST and Balanced BST)? I've searched a few books but there's no "EXACT" definition for it?
 
Balance BST is when there are an equal amount of nodes on both sides of the tree.
As for full BST, I'm not sure.
 
A full bst means that every node except the final row has 2 children. A balanced tree means that no node that is not a parent is more than 1 node deeper than another node that isn't a parent. There's a few types of self balancing trees that you can use. I've implemented an AVL tree in my data structures class. There's also a few more (a red-black tree for example, though I'm not familiar with the implementation). Once you get beyond the study of them though you just send them your data and don't worry about it (since all binary trees are still searched the same way, they just add in elements in different manners).
 
Back
Top