943,973 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 4453
  • Java RSS
Nov 4th, 2004
0

Java DSW algorithm Coding

Expand Post »
I have to add to an exisitng Java program the code for the DSW algorithm to balance a binary tree. I am relatively new to programming so I dont know where to start. Does anyone know where I can find an example of the code?

Thanks
Joey :-|
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
joey15 is offline Offline
3 posts
since Nov 2004
Nov 5th, 2004
0

Re: Java DSW algorithm Coding

>Does anyone know where I can find an example of the code?
The following is a good description with C code. Fortunately, the differences are only in details. You can easily figure out how to translate the algorithm to Java.

http://www.stanford.edu/~blp/avl/lib...ing-a-BST.html

Alternatively, you could get a membership with the ACM so that you have access to the digital library. Then you can read all of the wonderful papers concerning this method of globally balancing a binary search tree.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Nov 16th, 2004
0

Re: Java DSW algorithm Coding

Quote originally posted by joey15 ...
I have to add to an exisitng Java program the code for the DSW algorithm to balance a binary tree. I am relatively new to programming so I dont know where to start. Does anyone know where I can find an example of the code?

Thanks
Joey :-|

Thank you for the help. I was able to complete the progam I was working on.

Joey :mrgreen:
Reputation Points: 10
Solved Threads: 0
Newbie Poster
joey15 is offline Offline
3 posts
since Nov 2004
Nov 16th, 2004
0

Re: Java DSW algorithm Coding

Quote originally posted by Narue ...
>Does anyone know where I can find an example of the code?
The following is a good description with C code. Fortunately, the differences are only in details. You can easily figure out how to translate the algorithm to Java.

http://www.stanford.edu/~blp/avl/lib...ing-a-BST.html

Alternatively, you could get a membership with the ACM so that you have access to the digital library. Then you can read all of the wonderful papers concerning this method of globally balancing a binary search tree.
Thanks for all the help. It made life easier.
Joey
Reputation Points: 10
Solved Threads: 0
Newbie Poster
joey15 is offline Offline
3 posts
since Nov 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: outputting *** where 3 is the int
Next Thread in Java Forum Timeline: problems with referring to class variables





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC