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

    Hurkyl

    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
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Binary Search Trees in Java
  1. Binary and Hexadecimal (Replies: 8)

  2. Collisions in a tree? (Replies: 1)

  3. Search Engines (Replies: 10)

Loading...