Lec17 - Outline Radix Sort MSD Radix Sort LSD Radix Sort Tries Lecture 17 Radix Sort and Radix Search p 1 Number and String Representation A bit 0

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Outline Radix Sort MSD Radix Sort LSD Radix Sort Tries Lecture 17, Radix Sort and Radix Search p. 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Number and String Representation A bit: 0 or 1 A byte: a fixed-length sequence of bits A word: a fixed-length sequence of bytes A string: a variable-length sequence of bytes MSD: most significant digit (bit) LSD: least significant digit (bit) Lecture 17, Radix Sort and Radix Search p. 2
Background image of page 2
bitwise operations and, or, xor, etc. shift extract a digit from a number MSD in a string LSD in a string Lecture 17, Radix Sort and Radix Search p. 3
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
MSD Radix Sort Simple Observation: 202 is greater than 102, because the MSD of 202 is 2, and MSD of 102 is 1. Idea: (compare with Quicksort) Group all number into partitions, called bucket (Also called a pass) (similar to quicksort) No pivots to choose, partition numbers us- ing the MSD. (different from quicksort) Recursively sort numbers in each bucket. (similar to quicksort)
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/17/2010 for the course CS 240 taught by Professor Ortiz during the Spring '09 term at Waterloo.

Page1 / 11

Lec17 - Outline Radix Sort MSD Radix Sort LSD Radix Sort Tries Lecture 17 Radix Sort and Radix Search p 1 Number and String Representation A bit 0

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online