sorting algorithms pic

4
Sorting algorithms…. Here are the results for the faster of the 11 sorting algorithms. The standard template library algorithm takes a commanding lead. It is interesting to note that all sorts follow a predictable curve, except the shell sort which takes an unpredicted leap above the merge sort algorithm.

Upload: redowan-mahmud-ratul

Post on 24-Oct-2014

105 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Sorting Algorithms Pic

Sorting algorithms….

Here are the results for the faster of the 11 sorting algorithms.

The standard template library algorithm takes a commanding lead.  It is interesting to note that all sorts follow a predictable curve, except the shell sort which takes an unpredicted leap above the merge sort algorithm.

Page 2: Sorting Algorithms Pic

For the partially sorted list, the results are very similar to the last graph.  The shell sort still takes a large hit once a million elements are sorted, and the STL algorithm still beats the competition.

Page 3: Sorting Algorithms Pic

Here, the shell sort takes another interesting turn in that it improves in efficiency and follows the same curve as the BST sort.

Page 4: Sorting Algorithms Pic

The shell sort makes yet another jump in efficiency and now beats out the radix sort by a small margin.  It is interesting to note that the STL sort never took longer than 1 second to complete, and all of the other algorithms except the shell sort fell into the same order of efficiency for each test.