Lecture 3 CSE 331 Sep 4, 2009
This is Jeff
Clarifications on your blog posts You’ll me your post by 5pm before the next lecture Your grade will primarily depend on the “coverage” of the lecture Lecture 3 post will be a “model” entry Your entry will be put up unedited (modulo formatting)
Main Steps in Algorithm Design Problem Statement Algorithm Real world problem Problem Definition Precise mathematical def “Implementation” Data Structures Analysis Correctness/Run time
Worst-case analysis Correctness should hold for every valid input Resource usage by the worst-possible input
National Resident Matching
(Screen) Docs are coming to BUF Hawkeye (M*A*S*H) JD (Scrubs) Buffalo General Millard Filmore (Gates Circle) Millard Filmore (Suburban)
What can go wrong?
The situation is unstable!
What happens in real life Preferences Information Preferences
NRMP plays matchmaker
Stable Marriage Problem David Gale Lloyd Shapley