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
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...

Similar threads

Back
Top