Lecture 18 CSE 331 Oct 12, 2011.

Slides:



Advertisements
Similar presentations
Lecture 20 CSE 331 Oct 10, HW 5 due today Place Q1, Q2 and Q3 in separate piles I will not accept HWs after 1:15pm.
Advertisements

Lecture 21 CSE 331 Oct 20, Announcements Graded mid-term exams at the END of the lecture Sign up for blog posts/group scribe leader No more than.
Lecture 23 CSE 331 Oct 24, Temp letter grades assigned See the blog post for more details.
Lecture 34 CSE 331 Nov 30, Graded HW 8 On Wednesday.
Lecture 24 CSE 331 Oct 27, Online office hours tonight 9:00pm.
Lecture 20 CSE 331 Oct 21, Algorithm for Interval Scheduling R: set of requests Set A to be the empty set While R is not empty Choose i in R with.
CSE 331: Review. Main Steps in Algorithm Design Problem Statement Algorithm Real world problem Problem Definition Precise mathematical def “Implementation”
Lecture 8 CSE 331. Main Steps in Algorithm Design Problem Statement Algorithm Problem Definition “Implementation” Analysis n! Correctness+Runtime Analysis.
Lecture 18 CSE 331 Oct 12, HW 5 due today Q1, Q2 and Q3 in different piles I will not take any HW after 1:15pm.
Lecture 18 CSE 331 Oct 6, Group/Algo registration deadline BOTH DUE WED by 11:59pm!
Lecture 33 CSE 331 Nov 20, HW 8 due today Place Q1, Q2 and Q3 in separate piles I will not accept HWs after 1:15pm Submit your HWs to the side of.
Lecture 9 CSE 331 June 18, The “real” end of Semester blues MondayTuesdayWednesdayThursdayFriday Project 331 HW Exam study Party! Write up a term.
Week 3 Bell Works Political Science. Political Science Monday’s Bell Work Today’s bell work: Write down at least two pieces of information you learned.
MATH 6 – Monday, January 25 Objective: SNOW DAY Agenda: HOMEWORK:
September Monday Tuesday Wednesday Thursday Friday
Lecture 32 CSE 331 Nov 16, 2016.
Lecture 31 CSE 331 Nov 14, 2016.
MATH 6/6+ – Monday, August 14 Agenda: Objective: Warm Up
Algebra II 1.7: Solve Absolute Value Equations and Inequalities.
MATH 6/6+ – Monday, Sept. 9/18 Agenda: Objective: POW #4 and Mon WUp
Monday.
MATH 6/6+ – Monday, December 4
Lecture 16 CSE 331 Oct 5, 2016.
Lecture 17 CSE 331 Oct 3, 2014.
Welcome To Algebra Concept week semester 2(week 5)
Lecture 31 CSE 331 Nov 13, 2017.
Lecture 34 CSE 331 Nov 26, 2012.
Lecture 22 CSE 331 Oct 22, 2010.
September 2016 Monday Tuesday Wednesday Thursday Friday Map Testing
Lecture 34 CSE 331 Nov 26, 2012.
Lecture 20 CSE 331 Oct 14, 2016.
Lecture 17 CSE 331 Oct 7, 2016.
Lecture 14 CSE 331 Sep 30, 2011.
Lecture 37 CSE 331 Dec 1, 2017.
Today in ALA 7 Monday, May 1st
Lecture 19 CSE 331 Oct 12, 2016.
Lecture 16 CSE 331 Oct 4, 2017.
Monday, January 22nd Go over Health CA study guide Peer study
Lecture 19 CSE 331 Oct 8, 2014.
Lecture 20 CSE 331 Oct 17, 2011.
Course calendar (page 1 of 2)
Lecture 32 CSE 331 Nov 15, 2017.
Lecture 33 CSE 331 Nov 14, 2014.
Lecture 27 CSE 331 Oct 31, 2014.
American History Unit: 1950s to Present Topic: Review
Lecture 33 CSE 331 Nov 15, 2013.
Lecture 34 CSE 331 Nov 18, 2011.
Lecture 18 CSE 331 Oct 9, 2017.
CS 336/536: Computer Network Security Fall 2014 Nitesh Saxena
Homework Week of January 7th UNIT TEST TODAY! Monday Tuesday Wednesday
MATH 6 : Monday, May 9 Objective: Agenda:
Lecture 20 CSE 331 Oct 13, 2017.
Lecture 19 CSE 331 Oct 14, 2011.
Lecture 39 CSE 331 Dec 5, 2011.
Lecture 21 CSE 331 Oct 19, 2011.
MATH 6/6+ – Monday, Sept. 9/25 Agenda: Objective: POW #3/WUp
Lecture 21 CSE 331 Oct 22, 2012.
Lecture 24 CSE 331 Oct 24, 2014.
Lecture 36 CSE 331 Nov 30, 2012.
Lecture 37 CSE 331 Dec 2, 2016.
Lecture 11 CSE 331 Sep 21, 2017.
Lecture 19 CSE 331 Oct 10, 2016.
Lecture 32 CSE 331 Nov 12, 2014.
Monday, January 15th MLK Day No School Fill in Agenda with:
Monday, April 30th PD Day! No school for students.
WARM-UP 12/6/13 1. Please copy down this chart below.
Lecture 15 CSE 331 Oct 4, 2010.
Lecture 27 CSE 331 Nov 4, 2016.
Lecture 27 CSE 331 Nov 1, 2013.
Lecture 36 CSE 331 Nov 22, 2013.
Presentation transcript:

Lecture 18 CSE 331 Oct 12, 2011

Mid-term related stuff Solutions will not be handed out Jesse will discuss them in his recitations We will write solution sketches on your graded mid terms

Questions?

Main Steps in Algorithm Design Problem Statement Problem Definition n! Algorithm “Implementation” Data Structures Analysis Correctness+Runtime Analysis

A tool to define problems Where do graphs fit in? Problem Statement A tool to define problems Problem Definition Algorithm “Implementation” Data Structures Analysis Correctness+Runtime Analysis

Three general techniques Rest of the course Problem Statement Problem Definition Three general techniques Algorithm “Implementation” Data Structures Analysis Correctness+Runtime Analysis

Greedy algorithms Build the final solution piece by piece Being short sighted on each piece Never undo a decision Know when you see it

End of Semester blues Can only do one thing at any day: what is the maximum number of tasks that you can do? Write up a term paper Party! 331 homework Exam study 331 HW Project Monday Tuesday Wednesday Thursday Friday

Greedily solve your blues! Arrange tasks in some order and iteratively pick non-overlapping tasks Write up a term paper Party! Exam study 331 HW Project Monday Tuesday Wednesday Thursday Friday

Ordering is crucial Order by starting time Write up a term paper Algo =1 Party! Exam study 331 HW Project Monday Tuesday Wednesday Thursday Friday

Ordering by least conflicts doesn’t work Another attempt Order by duration Ordering by least conflicts doesn’t work Algo =1 Monday Tuesday Wednesday Thursday Friday

Order tasks by their END time The final algorithm Order tasks by their END time Write up a term paper Party! Exam study 331 HW Project Monday Tuesday Wednesday Thursday Friday

Questions?

Today’s agenda Prove the correctness of the algorithm

Formal Algorithm R: set of requests Set A to be the empty set While R is not empty Choose i in R with the earliest finish time Add i to A Remove all requests that conflict with i from R Return A