260 likes | 371 Views
In this lecture, we delve into various sorting algorithms, specifically focusing on comparison sorting, counting sort, and radix sort. We'll analyze their running times, including the stable characteristics of counting sort and the applications of radix sort. Additionally, we discuss the selection problem and the lower bound for comparison-based sorting. The lecture highlights randomized selection techniques that achieve expected linear time using O(n) comparisons. Join us as we dissect fundamental concepts and enhance understanding of sorting methodologies.
E N D
Running Time Is there a faster sorting of other type?
Counting sort is stable. That is, the same value appear in the output array in the same order as they do in the input array.
( + low side) contains red part ( + high side) contains blue part
What we learnt in this lecture? • What is “comparison sort”?. • Lower bound for comparison sort. • Counting sort and Radix sort. • What is selection problem? • expected linear time andlinear time selections.