Mon, March 18th by 11:59pm Late assignments will be penalized 20% per day.

Use the following template.

Empirical Sorting Comparison

The purpose of this assignment is to compare the various sorting algorithms implemented in assignments 1, 2, and 3.

Submission

The submission for this assignment should consist of a written report that graphically shows the results for all five sorts and provides a discussion of what was observed. DO NOT include your completed source code, but provide tables of numerical data in an appendix at the end of the report.

The report should include meaningful plots (e.g. using Excel) of all the data showing important comparison characteristics.

DISCUSS the results in terms of observed behavior (e.g. how well does the asymptotic behavior match the empirical data), comparison of behaviors between sorts (e.g. which ones perform better at which data set sizes), comparison of hidden constants for sorts with the same asymptotic behaviors, and any other important observed features. The discussion should refer to the graphs when appropriate to illustrate each aspect.

Algorithms

Provide the individual sort graphs you generated in assignments 1-3 and discuss for each algorithm:

Small Range Comparison

For all the algorithms, create appropriate graphs using the small element range data sets to highlight the following comparisons:

Large Range Comparison

Conclusion

SUMMARIZE the results by describing under what conditions you would select different sorts, i.e. if you were asked to sort a data set, what criteria would you use in making your selection?

Appendix

There should be a summary table listing the sort method, asymptotic behavior, and empirical asymptotic formula with “best-fit” constants.

Also provide a table of the empirical data (not the calculated curve fit data).

Grading

Upload a .pdf file to Canvas by Monday, March 18 at 11:59pm