CSE 326: Data Structures
Sorting in (kind of) linear time
BinSort (a.k.a.
BucketSort)
BinSort example
BinSort Pseudocode
BinSort Running time
BinSort Conclusion:
BinSort is “stable”
RadixSort
RadixSort – magic! It works.
Not magic. It provably works.
Induction to the
rescue!!!
Induction is rescuing us…
Paleontology fact
Running time of Radixsort
What data types can you
RadixSort?
Example:
RadixSorting Strings
RadixSorting Strings
example
RadixSorting Strings
running time
RadixSorting IEEE
floats/doubles
Anatomy of a real number
IEEE floats in binary*
Observations
Pseudocode