next up previous
Next: Heap Sort Up: sorting Previous: SORTING BY INSERTION

SORTING BY SELECTION

Offline algorithms
Selection sort
find maximum & replace with the concurrent last












$W(n)=O(n^{2})$
$S(n)=O(1)$
$O(n^{2})$ even on a sorted list
Tournament Sort


















$W(n)=A(n)=B(n)=O(n \log n)$
$S(n)=O(n)$ for the tournament tree
Heap Sort $W(n)=A(n)=O(n \log n)$
$S(n)=O(1)$



Subsections

Sushil_Prasad 2014-09-25