Question: The Data: ArrayList Run Time List Size 0.02 100.00 0.10 200.00 0.50 300.00 0.70 400.00 0.90 500.00 1.00 600.00 1.20 700.00 1.50 800.00 1.70 900.00
The Data:
| ArrayList | |
| Run Time | List Size |
| 0.02 | 100.00 |
| 0.10 | 200.00 |
| 0.50 | 300.00 |
| 0.70 | 400.00 |
| 0.90 | 500.00 |
| 1.00 | 600.00 |
| 1.20 | 700.00 |
| 1.50 | 800.00 |
| 1.70 | 900.00 |
| 2.00 | 1,000.00 |
| LinkedList | |
| Run Time | List Size |
| 0.50 | 100.00 |
| 0.75 | 200.00 |
| 0.90 | 300.00 |
| 1.00 | 400.00 |
| 1.30 | 500.00 |
| 1.50 | 600.00 |
| 1.70 | 700.00 |
| 1.90 | 800.00 |
| 2.00 | 900.00 |
| 2.50 | 1,000.00 |
The Task:
Run the program on both kinds of lists 10 times--with list sizes 100, 200, ..., 1000. and record the data in an Excel spreadsheet. Create a scatter chart of the run time (vertical axis) versus the size of the list (horizontal axis). Use red square markers for the LinkedList data and blue triangles for the ArrayList.
Try to figure out if the best fit for the data is a linear, polynomial of order 2 or polynomial of order 3. Add one tend line fitting the data to a polynormal of order 1, 2, or 3. Theorectically, the one with largest R-square value is the best one. Make sure you check the "display R-squared value on the chart" so that the regression coeffiecient apears on the chart with the trend line and the polynomial.
Submit the figures as png files: arraylist.png and linkedlist.png.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
