PDA

View Full Version : Binary Search Trees... in Java


FrostScYthe
Oct27-04, 10:23 PM
Is there a library in java I can use to make AVL trees.
See we have this project where we have to store students in a Binary search tree and then have access to their stuff... anyway is there a structure I can just import to be able to use it... or do I have to implement my own generic tree?[

Hurkyl
Oct28-04, 04:19 AM
Try java.util.TreeSet, or java.util.TreeMap.

(You sure you want a binary search, not a hash table?)

FrostScYthe
Oct28-04, 07:42 AM
We have to use both.. is what I understood but.... I'm not sure how actually