Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Binary Search Trees in Java

  1. Oct 27, 2004 #1
    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?
  2. jcsd
  3. Oct 28, 2004 #2


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Try java.util.TreeSet, or java.util.TreeMap.

    (You sure you want a binary search, not a hash table?)
  4. Oct 28, 2004 #3
    We have to use both.. is what I understood but.... I'm not sure how actually
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook