Question: Implement and compare the following sorting algorithm : Mergesort Heapsort Quicksort ( Regular quick sort * and quick sort using 3 medians ) Insertion sort

Implement and compare the following sorting algorithm :
Mergesort
Heapsort
Quicksort (Regular quick sort* and quick sort using 3 medians)
Insertion sort
Selection sort
Bubble sort
* For regular quick sort you can decide between choosing first, last or a random element as pivot. But you need to include both regular and 3 medians as separate algorithms. Bonus (10 points): Implement a GUI for your program which allows the user to:
Select an algorithm
Enter the input size for selected algorithms and see the run time (in seconds ormilliseconds...)
Compare two or more (For the 4th project, maximum is 2) algorithms and see the difference in running times (in seconds or milliseconds...).

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 Programming Questions!