Java Program Development Assignments | Online Homework Help
Please check the .pdf file more information.
Please develop a Java program to
1. Read records from hw5Data.csv file into 2 data structures: • java.util.TreeSet • java.util.HashSet
Click Here to Place Order
2. Show the memory used by each of the above 2 data structures.
3. Read lines from passwordInput.txt and search them against the above 2 data structures. Repeat this search operation 4,000 times.
4. Show the CPU time used in the above search operations.
CMP 561 Analysis & Design of Algorithms
Final Exam Dr. Yao
Please name your drive file/class as YourLastNameFinal.java.e.g, YaoFinal.java
Objective: Compare the CPU and Memory efficiency between java.util.TreeSet and java.util.HashSet
Input files: hw5Data.csv and passwordInput.txt
Assumption: The number of records in hw5Data.csv is unknown
The data file, hw5Data.csv, is a csv (comma separate value) file – fields are separated by commas.
Each line in hw5Data.csv file contains 2 fields: user Name and password.
Listed below are some sample records:
carmella@aboulahoud.com, Aboulahoud
clemente@aboulissan.com, Aboulissan
Each line in passwordInput.txt contains a user name (email address).
Please develop a Java program to
1. Read records from hw5Data.csv file into 2 data structures:
• java.util.TreeSet
• java.util.HashSet
2. Show the memory used by each of the above 2 data structures.
3. Read lines from passwordInput.txt and search them against the above 2 data structures.
Repeat this search operation 4,000 times.
4. Show the CPU time used in the above search operations.