80 likes | 195 Vues
CS 330: Algorithms Pre-Quiz Summary. Gene Itkis. Summary. Analysis of Algorithms O, o, , , Correctness proofs Invariants Recurrence Relations Master method Specific algorithms General approaches/techniques. Specific Algorithms. Sorting Selection Insertion [Bubble] Mergesort
E N D
CS 330: AlgorithmsPre-Quiz Summary Gene Itkis
Summary • Analysis of Algorithms • O, o, , , • Correctness proofs • Invariants • Recurrence Relations • Master method • Specific algorithms • General approaches/techniques Gene Itkis
Specific Algorithms • Sorting • Selection • Insertion • [Bubble] • Mergesort • QuickSort • Randomized • PQ-sort • 2-Heaps • Leftist Heaps Gene Itkis
Specific Algorithms • Sorting (continued) • Special sorting algorithms • Each makes special assumption on the input!!! • Radix • Bucket • Counting • Lower bounds • Comparison-only sorting algorithms: (n lg n) Gene Itkis
Specific Algorithms • Order statistic • QuickSelect Gene Itkis
Techniques/Approaches • Greedy • Selection and Insertion sorts • Divide & Concur • Merge and Quick sorts • Binary search • “Data Structure” • PQ-sort Gene Itkis
Performance • Worst case • Best case • Expected • Probability distribution on inputs • Probability distribution on internal coin-flips • Randomized vs. deterministic algorithms • Special assumptions on input Gene Itkis
Quiz • NEXT CLASS • Closed book • 1 page crib sheet • Good luck! Gene Itkis