Skip to content

nithinvenugopal/Sorting-Comparison

Repository files navigation

Sorting algorithm complexity comparison

Evaluated Worst case, average case and best case complexity of sorting algorithm.

From the graph, we can see that-

  1. In worst case, Quick sort and Insertion sort performs in O(n2) and Merge sort performs in O(nlogn)

  2. In average case, Quick sort and merge sort performs in O(nlogn) and insertion sort runs in O(n2)

  3. In base case, Insertion sort performs well with complexity of O(n) and Quick sort and merge sort has complexity of O(nlogn)

alt tag

The timing evaluated here is in Micro seconds

About

Evaluation of Worst case, average case and best case complexity of Insertion sort, Merge sort and Quick sort algorithm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages