answersLogoWhite

0


Best Answer

A balanced tree is a tree which is balanced - it has roughly the same height on each of its sub-nodes. A balanced tree will have the lowest possible overall height.

For example, a balanced binary search tree will have equal heights (plus or minus one) on the left and right sub-trees of each node. This ensures that operations on the tree always are guaranteed to have O(lg n) time, rather than the O(n) time that they might have in an unbalanced tree.

Certain tree algorithms are designed for ensuring that the tree stays balanced at all times, while maintaining the O(lg n) time for all operations. Such algorithms, such as red-black trees, AVL trees, and others, are generally used in standard library implementation of binary search trees.

User Avatar

Wiki User

16y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

A balanced binary tree is one where each node has a balanced number of left and right child nodes. The act of adding or deleting a node from a balanced tree makes it imbalanced and, as this imbalance progresses, the performance of search time through the tree degrades. In the worst case, a completely unbalanced tree is no more than a sorted linked list.

To compensate for this, modern binary tree insertion and deletion algorithms have mechanisms in place to detect the imbalance and the restore balance by pivoting nodes around each other. There is cost to that, however, so most algorithms have logic that allows a certain amount of imbalance before doing the repivoting process.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

A "balanced" tree is a tree which is not lopsided. A semi-official definition of "balanced" mean that the "deepest" leaf node has a depth no greater than 1 more than the "shallowest" leaf node's depth.

An "unbalanced" tree is one which is lopsided, meaning that some of the leaf nodes have very high depths and some leaf nodes have very low depths. The most extreme case of an "unbalanced" tree is a linked list, with the root being one end of the linked list and the only leaf node being the other end.

A balanced Binary Search Tree (BST) guarantees that a search operation can be completed in O(log n) time. An unbalanced Binary Search Tree has a search operation of O(n) time.

There are a class of BSTs called self balancing BSTs - they automatically restructure themselves as nodes are added and removed to guarantee that they will always be balanced. Examples include the AVL tree and Red-Black tree.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

A balanced tree is a tree structure where all the nodes are evenly distributed, such that the tree is as close to symmetric as possible. In balanced binary trees, every leaf is at the same depth or is within one level of the majority of leafs, and the nodes are as evenly distributed on either side of the root as possible.

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

A balanced binary tree is where every node has a similar number of nodes to the left and right. Balanced binary trees are typically implemented as red/black trees which automatically restores the balance upon each insertion.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

It means that all the branches have, more or less, the same length.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is balanced binary search tree?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions

What is complexity of binary search tree?

The complexity of binary search tree : Search , Insertion and Deletion is O(h) . and the Height can be of O(n) ( if the tree is a skew tree). For Balanced Binary Trees , the Order is O(log n).


Which is faster binary tree or binary search tree?

A tree doesn't do anything so it has no speed...


What is the difference between extended binary tree and a binary search tree?

A strictly binary tree is one where every node other than the leaves has exactly 2 child nodes. Such trees are also known as 2-trees or full binary trees. An extended binary tree is a tree that has been transformed into a full binary tree. This transformation is achieved by inserting special "external" nodes such that every "internal" node has exactly two children.


Does binary tree and binary search tree same?

no they are not same


IS AVL-Tree IS binary tree?

An AVL tree is another balanced binary search tree. Named after their inventors, Adelson-Velskii and Landis, they were the first dynamically balanced trees to be proposed. Like red-black trees, they are not perfectly balanced, but pairs of sub-trees differ in height by at most 1, maintaining an O(logn) search time. Addition and deletion operations also take O(logn) time.Definition of an AVL treeAn AVL tree is a binary search tree which has the following properties: The sub-trees of every node differ in height by at most one.Every sub-tree is an AVL tree.


How do you print all data in a Binary Search Tree?

By using Depth First Search or Breadth First search Tree traversal algorithm we can print data in Binary search tree.


What is difference between full binary tree and balanced binary tree?

A binary tree is considered to be balanced if all of the leaves of the tree are on the same level or at least within one level of each other.A binary tree is considered to be full if all of the leaves of the tree are at the same level and every non leaf node has exactly 2 children.


What is the different between a binary search tree and a binary tree?

self depend friend"s............


What is Efficiency of Binary Search tree operations?

If it is an unbalanced binary tree, O( ln( n ) / ln( 2 ) ) is best-case. Worst case is O( n ). If it is balanced, worst case is O( ln( n ) / ln( 2 ) ).


What is the full form of avl tree?

Adelson-Velskii and Landis (balanced binary tree)


Is sorting a binary search tree simple?

A binary search tree is already ordered. An in order traversal will give you a sorted list of nodes.


What is the use of binary?

Binary trees are commonly used to implement binary search tree and binary heaps.