Question: Objectives: There are many times, as a programmer, you will encounter a scenario where you need to sort a data structure. After completing this assignment
Objectives: There are many times, as a programmer, you will encounter a scenario where you need to sort a data structure. After completing this assignment students will be able to:
Implement Bubble Sort
Implement Insertion Sort
Implement Merge Sort
Task Description: You have been given a text file rostertxt filled with students' information Name Birthdate, and grade in the class You are tasked with sorting the students with three sorting algorithms insertion bubble, and merge sort Using Insertion Sort, you should sort the students by birth date. Using Bubble Sort, you should sort the students by name. Using Merge Sort, you should sort the students by Grade.
When running each sorting algorithm, keep track of the time it takes. You can use the method System. nanoTime which will return a time stamp. Print the run time of each into the console.
What your program should do:
Sort in three different ways
Print the sorted list
Print the running time of each sorting algorithm
You must implement insertion sort, bubble sort, and merge sort yourself.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
