270 likes | 284 Views
Enroll on Piazza for CSE 331 lecture. Read the syllabus carefully and submit signed confirmation form. Autolab is up and running for HW 0 submission. TA office hours and makeup recitations finalized. Learn about algorithms and their design.
E N D
Lecture 2 CSE 331 Aug 31, 2016
Enroll on Piazza https://piazza.com/buffalo/fall2016/cse331/
Read the syllabus CAREFULLY! I’ll need confirmation in writing. No graded material will be handed back till I get this signed form from you!
Who is Algorithm named after? Abū ‘Abd Allāh Muhammad ibn Mūsā al-Khwārizmī 9th century Persian astronomer/mathematician 825 AD: “On Calculation with Arabic Numerals” Latin translation 12th century “Algorithmi de numero Indorum”
Don Knuth Reward Checks http://www.flickr.com/photos/32184482@N03/3010989157/
Knuth’s Definition An algorithm is a finite, definitive, effective procedure with some input and some output
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?
(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 Matching Problem David Gale Lloyd Shapley