Question: Write a Java program that: 1. Sorts 100 element array of integers using bubble sort. 2. Sorts 100 element array of integers using insertion sort.
Write a Java program that:
1. Sorts 100 element array of integers using bubble sort.
2. Sorts 100 element array of integers using insertion sort.
3. Sorts 200,000 element array of integers using bubble sort.
4. Sorts 200,000 element array of integers using insertion sort.
5. Display the start time to milliseconds at the start of each sort.
6. Display the end time to milliseconds at the end of each sort.
7. Use a method that randomizes integers between 0 and 50,000 and builds the two arrays with them (hint: build both 100 element and 200,000 arrays at the same time with the randomized numbers so the arrays are compatible. Do not time this activity.
8. Use published algorithms for the two sorts.
Thank You! I appreciate the help
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
