Question: Using Java: Design a program that allows you to experiment with different sorting algorithms. This program should allow you to easily plug-in new sorting algorithms
Using Java: Design a program that allows you to experiment with different sorting algorithms. This program should allow you to easily plug-in new sorting algorithms to empirically compare their run time performance as explained below.
Step 1: Experimenting with a prototype data (integers from 1 to 16) to ensure that your implementation works correctly and the results match expectations. The results must be reported in a table format (not generated by the program, but collected manually from multiple program runs) in a Word document as follows:
ordered dataset reverse order random order
comparisons exchanges comparisons exchanges comparisons exchanges
bubble sort ... ... ... ... ... ...
selection sort ... ... ... ... ... ...
insertion sort ... ... ... ... ... ...
Step 2: Experimenting with large data sets of 2000 elements (1 2000). The results must be reported in a separate table with the same format.
In addition, in the report, explain the empirical results generated by your program comparing them to the known theoretical results (you must figure these numbers out for prototype data to validate your results) paying special attention to any discrepancies between empirical and expected results.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
