Define balance factor of a node in avl tree?



Define balance factor of a node in avl tree?..

Answer / Chandrabhan Kushwaha

In an AVL tree, the balance factor of a node is calculated as the difference between the heights of its left and right subtrees. A node with balance factor equal to -1 or 1 is considered balanced; if it's -2 or 2, rotation adjustments are needed for balance.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What is bubble sort algorithm in data structure sort and searching?

1 Answers  


Explain binary searching and Fibinocci search?

1 Answers  


Can we use any class as map key?

1 Answers  


Is null allowed in list?

1 Answers  


Describe the level term in a tree.

1 Answers  


Do you know how to find if linked list has loop?

1 Answers  


What is adt in data structure with example?

1 Answers  


What are the applications of b-tree?

1 Answers  


What do you mean by balanced trees?

1 Answers  


What are the complexity of binary search?

1 Answers  


What is indexing an array?

1 Answers  


Define double linked list?

1 Answers  


Categories