Compare sorting algorithms' performance: Difference between revisions

m
→‎{{header|Go}}: improve conclusions
m (→‎{{header|Go}}: credit plotting library)
m (→‎{{header|Go}}: improve conclusions)
Line 1,217:
Step 4, conclusions about relative performance of the sorting routines made based on the plots.
 
The plots show differences in best and worse case performance for the various data sets. Bubble and insertion sorts show very good best case performance with all one and ascending sequences, beating quicksort. Quicksort shows best case performance with the ascending sequence but worst case performance with the all one sequence. On random data, insertion sort shows the somewhat worse performance than quicksort. Bubble sort shows much worse performance.
 
On random data (triangles) insertion and bubble sort show worse performance than quicksort.
<br clear=all>
 
1,707

edits