This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes mistake Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "mistake" Watch "mistake" New topic
Author

mistake

Andrew Lit
Ranch Hand

Joined: Jul 01, 2002
Posts: 135
Hallo,
Here is the realization of AVL tree:



Elemnts are inserted into the tree according the value of "index" and the variable height supposed to check if the structure of AVL tree is ok. My problem is that the next element is null, it is not filled. I suppose that problem is in variable height but i am not able to fix it no matter that i spend quite a lot of time on it. so i decided to post it here. I hope that you will help me in finding the mistake. I would be really appreciated.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mistake
 
Similar Threads
Deleting all leaves from a binary tree
Binary Search Trees
Reducing duplicate/repetative code
Inorder traversal of a Binary Search Tree
a binary tree question..