Question: Hello! I need help. Thank you. As a first programming assignment, use your IDE to create and document (with inline Javadoc comments) a Java program

Hello! I need help. Thank you.

As a first programming assignment, use your IDE to create and document (with inline Javadoc comments) a Java program defining two lists of random integers. List 1 should contain 100 elements and list 2 should contain 1000 elements. Define list 1 as an Array and list 2 as an ArrayList (you should have a total of four lists.) Sort each list, first using a Selection Sort and second using an Insertion Sort. Note: if needed, find on the web algorithms for the Selection and Insertion sort algorithms. To evaluate the two sorting algorithms and your laptops performance, include in your sorting routines a code timer like the one given below. Show the respective performance of the sorts to be O(n 2).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!