CS 330: Algorithms Pre-Quiz Summary

1 / 8

# CS 330: Algorithms Pre-Quiz Summary - PowerPoint PPT Presentation

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

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.

## PowerPoint Slideshow about 'CS 330: Algorithms Pre-Quiz Summary' - gage-gutierrez

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

### 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!!!
• 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