balanced/full Binary Search Tree?

Bluga

Banned
Nov 28, 2000
4,315
0
0
What are the definitions (FULL BST and Balanced BST)? I've searched a few books but there's no "EXACT" definition for it?
 

uCsDNerd

Senior member
Mar 3, 2001
338
0
0
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.
 

MGMorden

Diamond Member
Jul 4, 2000
3,348
0
76
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).