How do I implement a red-black tree in java. I am new to Java and have no clue how to proceed.
I need to be able to print out the tree as well.
Can someone help?!!
baltazar
0
Light Poster
Recommended Answers
Jump to PostWell, if you know what a red-black tree is, you define a class for the nodes, a collection for those node, and the various methods to add, remove, search and print those node.
We can't simply do your homework for you. Post code and questions and someone can probably …
Jump to Postif you know how to create a tree you should know how to create one in Java.
There's nothing that makes Java different from say C++ in that.And what exactly are you trying to do with a List when you want to make a Tree?
All 6 Replies
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
baltazar
0
Light Poster
jwenting
1,889
duckman
Team Colleague
baltazar
0
Light Poster
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
mzd12111
-3
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.