What do you mean by balance factor of a node in avl tree?



What do you mean by balance factor of a node in avl tree?..

Answer / Ravi Kumaar

The balance factor (BF) of a node in an AVL tree is calculated by subtracting the height of the left subtree from the height of the right subtree. It helps to maintain the height difference between any two child nodes as -1, 0 or +1 for balancing purposes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Define biconnectivity?

1 Answers  


What is subtree?

1 Answers  


Describe queue operation.

1 Answers  


What is the quickest sorting algorithm?

1 Answers  


What do you mean by open addressing?

1 Answers  


What do you mean by structure property in a heap?

1 Answers  


Can a hashset contain duplicates?

1 Answers  


If you are given a choice to use either arraylist and linkedlist, which one would you use and why?

1 Answers  


What is difference between hashset and treeset?

1 Answers  


What are the major data structures used in the hierarchical data model?

1 Answers  


What are all the classes and interfaces that are available in the collections?

1 Answers  


Can arraylist hold different types?

1 Answers  


Categories