File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Red-Black Tree Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Red-Black Tree" Watch "Red-Black Tree" New topic
Author

Red-Black Tree

Amit Chohan
Greenhorn

Joined: Oct 31, 2002
Posts: 29
Hi all
Hope all is well.
While i sit here working through my assigment and eating noodles i have come across Red-Black Trees. I have a couple of questions -
1)are these trees similar to binary search trees?
2)can anyone recommend a web site or book where i can gain a brief understanding of them.
Thank You


Java Junior<br />Leicester<br />England
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Take a look at this book for a good discussion of red-black trees:
http://www.coderanch.com/t/93462/Book-Reviews/Data-Structures-Algorithms-Java-Robert
Try doing a search on "data structures" for a web site that covers the subject.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Greg Charles
Bartender

Joined: Oct 01, 2001
Posts: 1855

However, you may not have access to that book. As I remember, Red-Black trees are, in fact, binary search trees, and Red-Black refers to the balancing algorithm.
Google is usually a faster way to find web sites than asking here. I found a cool one using "algorithms red-black tree" that actually shows an animated tree. It's at: http://www.geocities.com/SiliconValley/Network/1854/Rbt.html
 
 
subject: Red-Black Tree
 
Threads others viewed
fast searching in large text files
TreeSet has Red and White Structure , whats that suppose to mean?
java's TreeMap implementation - Algorithm ?
Efficient way to traverse SortedMap backwards
Data Classes - Structure and Type
developer file tools