310 likes | 405 Views
Lecture 3. CSE 331 Sep 3, 2010. Remember: Stick with your group. More on Group Leader Scribe. All Sep blog post slots are gone!. Upcoming deadlines. Sep 7: Form your group (email me the full names). Sep 10: Teams can swap members. Don Knuth. Don Knuth Reward Checks.
E N D
Lecture 3 CSE 331 Sep 3, 2010
Upcoming deadlines Sep 7: Form your group (email me the full names) Sep 10: Teams can swap members
Don Knuth Reward Checks http://www.flickr.com/photos/32184482@N03/3010989157/
What are Algorithms? A series of steps designed to solve a problem A geometric way of solving problems An abstract mathematical solution for a problem
Knuth’s Definition An algorithm is a finite, definitive, effective procedure with some input and some output
Why care about algorithms- II Driving directions
Why care about algorithms- II Computing Bestsellers on the fly
Why care about algorithms- II Booking cheapest air tickets
Why care about algorithms- II Google searches
Why care about algorithms- II http://www.di.ens.fr/~cherniav/teaching.html Data compression
Why care about algorithms- II http://www.switched.com/2010/02/11/fix-dvd-scratches-using-a-banana-and-toothpaste/ Error correction
(And I could) go on… http://www.movieposter.com/poster/MPW-33672/Titanic.html
Main Steps in Algorithm Design Problem Statement Real world problem Problem Definition Precise mathematical def Algorithm “Implementation” Data Structures Analysis Correctness/Run time
Worst-case analysis Correctness should hold for every valid input Why worst-case? Resource usage by the worst-possible input What resources?
The language of proofs Brad Pitt had a beard waleg.com Every goat has a beard animaldiversity.org Hence, Brad Pitt is a goat.
(Screen) Docs are coming to BUF Buffalo General Hawkeye (M*A*S*H) Millard Filmore (Gates Circle) JD (Scrubs) Millard Filmore (Suburban)
What happens in real life Preferences Information Preferences
Stable Marriage Problem David Gale Lloyd Shapley