954,506 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

depth of childs of binary tree

i want to find make a program for insertion in AVL binary tree therefore i want to find balance factor of a node by subtracting depth of right child from dephth of left child
how will i find this depth.
i am using array representetion of the tree.

gauravmishra
Light Poster
31 posts since Nov 2007
Reputation Points: 3
Solved Threads: 0
 

Have you looked at Wikipedia ?

You really haven't given us much information to work with. "An array representation" can mean many, many different things.

Post us the code you have so far and we'll help you fix it.

Hope this helps.

Duoas
Postaholic
2,043 posts since Oct 2007
Reputation Points: 1,140
Solved Threads: 229
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You