AceTheInterview
Jobs in Pune | Work better in teams | Socialize with friends | Submit Q&A | Tell a friend
Search site for 

Top 100 Interview Questions & Answers in a convenient and easy to read book!

“I bought this guide a few days ago to prepare for my interview with Oracle. Many of the questions they asked me were from this guide. I found this book absolutely great!”

– Ravi, California

Read more comments...

Interview Questions And Answers RSS Feed

Answers »

  1. Submitted By: irshadraihan — October 6, 2006
    +0 votes
      + -

    A binary tree is balanced if the depth of two subtrees of every node never differ by more than one

  2. Submitted By: deep — October 6, 2006
    +2 votes
      + -

    if the height of the left subtree of a node and the right subtre of a node differ by atmost one. can also be called AVL trees

  3. Submitted By: TimeHawk — October 6, 2006
    -3 votes
      + -

    A
    /

  4. Submitted By: ksakhamuri — October 6, 2006
    +3 votes
      + -

    First of all, a balanced tree need NOT necessarily be a binary tree. For example, a 2-3 tree is one of the most balanced forms of tree structures. However, mostly the balanced trees are implemented as binary trees.

    Secondly, a balanced tree is a tree, in which the height of each subtree is dependent on the rest of the subtrees (NOT necessarily the same or differing just by one). For example in a Red-black tree, the height of one subtree can at the most be double that of the other.

  5. Submitted By: djczer — October 6, 2006
    not yet rated
      + -

    http://www.purists.org/georg/avltree/

    great examples of AVL trees and non-AVL trees

  6. Submitted By: Omid — November 11, 2007
    not yet rated
      + -

    In my mind the easiest way to think about it is: if each node weights the same, a balanced tree is a tree where if any branch were to be plucked and held in the sky by a string holding the root, the tree will not skew to a side (assuming there is no torque).

  7. Leave an Answer/Comment

    To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
    Click to hear an audio file of the anti-spam word

Our Sponsors
Our Sponsors
Contact Us | FAQ | Sitemap | Terms of Use | Privacy Policy | Tell a Friend

Copyright © 1999-2006 Jeeve Technologies LLC. All rights reserved.