Java DSW algorithm Coding

Reply

Join Date: Nov 2004
Posts: 3
Reputation: joey15 is an unknown quantity at this point 
Solved Threads: 0
joey15 joey15 is offline Offline
Newbie Poster

Java DSW algorithm Coding

 
0
  #1
Nov 4th, 2004
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 :-|
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,596
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 711
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: Java DSW algorithm Coding

 
0
  #2
Nov 5th, 2004
>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.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 3
Reputation: joey15 is an unknown quantity at this point 
Solved Threads: 0
joey15 joey15 is offline Offline
Newbie Poster

Re: Java DSW algorithm Coding

 
0
  #3
Nov 16th, 2004
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:
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 3
Reputation: joey15 is an unknown quantity at this point 
Solved Threads: 0
joey15 joey15 is offline Offline
Newbie Poster

Re: Java DSW algorithm Coding

 
0
  #4
Nov 16th, 2004
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC