Java Java AVL Tree Library: Simplifying Binary Search Trees for Student Storage

AI Thread Summary
Java provides built-in libraries such as java.util.TreeSet and java.util.TreeMap that can be utilized for implementing AVL trees and managing data in a binary search tree format. These collections automatically maintain order and allow for efficient data retrieval. If the project requires both binary search trees and hash tables, it's important to clarify the specific use cases for each structure, as they serve different purposes in data management. Implementing a custom generic tree may not be necessary if the existing libraries meet the project requirements.
FrostScYthe
Messages
80
Reaction score
0
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?[
 
Technology news on Phys.org
Try java.util.TreeSet, or java.util.TreeMap.

(You sure you want a binary search, not a hash table?)
 
We have to use both.. is what I understood but... I'm not sure how actually
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Back
Top