Lecture 18 CSE 331 Oct 12, 2012. HW 5 due today Q1, Q2 and Q3 in different piles I will not take any HW after 1:15pm.

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 30 CSE 331 Nov 8, HW 7 due today Place Q1, Q2 and Q3 in separate piles I will not accept HWs after 1:15pm DO NOT FORGET TO WRITE DOWN YOUR.
Lecture 41 CSE 331 Dec 10, HW 10 due today Q1 in one pile and Q 3+4 in another I will not take any HW after 1:15pm.
Lecture 30 CSE 331 Nov 13, To be strictly enforced For the rest of the semester on Fridays SUBMIT your HOMEWORKS by 1:10 PM.
Lecture 38 CSE 331 Dec 7, The last few days Today: Solutions to HW 9 (end of lecture) Wednesday: Graded HW 9 (?), Sample final, Blog post on the.
Lecture 40 CSE 331 Dec 8, Finals 3:35-6:05pm KNOX 104 Tue, Dec 14 Blog post on the finals up.
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 34 CSE 331 Nov 19, HW 9 due today Q1 in one pile and Q 2+3 in another I will not take any HW after 1:15pm.
Lecture 33 CSE 331 Nov 20, Homeworks Submit HW 9 by 1:10PM HW 8 solutions at the end of the lecture.
Lecture 23 CSE 331 Oct 24, Temp letter grades assigned See the blog post for more details.
Lecture 24 CSE 331 Oct 30, Homework stuff Please turn in your HW 6 Graded HW 5 and HW 7 at the END of the lecture.
Lecture 17 CSE 331 Oct 8, HW 4 due today Q1 and Q2 in one pile Q3 in another pile I will not take any HW after 1:15pm.
Lecture 34 CSE 331 Nov 30, Graded HW 8 On Wednesday.
Lecture 25 CSE 331 Oct 29, HW 6 due today All questions in one pile I will not take any HW after 1:15pm.
Lecture 37 CSE 331 Dec 1, A new grading proposal Towards your final score in the course MAX ( mid-term as 25%+ finals as 40%, finals as 65%) .
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.
Lecture 28 CSE 331 Nov 5, HW 7 due today Q1 in one pile and Q 2+3 in another I will not take any HW after 1:15pm.
Lecture 13 CSE 331 Oct 2, Announcements Mid term in < 2 weeks Graded HW2 at the END of the class.
Lecture 29 CSE 331 Nov 11, To be strictly enforced For the rest of the semester on Fridays SUBMIT your HOMEWORKS by 1:10 PM.
Lecture 8 CSE 331 Sep 17, HW 1 due today Place Q1 and Q2 in separate piles I will not accept HWs after 1:15pm.
Please open your laptops, log in to the MyMathLab course web site, and open Quiz 2.6/7. You will have access to the online calculator on your laptop during.
Let’s do some introductions
Let’s do some introductions
CSE 331: Review. Main Steps in Algorithm Design Problem Statement Algorithm Real world problem Problem Definition Precise mathematical def “Implementation”
1 Daily Announcements CS 202, Spring 2007 Aaron Bloomfield.
Lecture 38 CSE 331 Dec 2, Review Sessions etc. Atri: (at least ½ of) class next Friday Jiun-Jie: Extra office hour next Friday Jesse: Review Session.
Lecture 8 CSE 331. Main Steps in Algorithm Design Problem Statement Algorithm Problem Definition “Implementation” Analysis n! Correctness+Runtime Analysis.
TODAY IN ALGEBRA…  Return Ch. 1 Test  Learning Goal: Review solutions to Ch. 1 test and how to do test corrections for credit up to 75%  See STATs for.
About Me Jesse Hartloff Office: 203 Davis Office hours: TBD.
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.
Lecture 32 CSE 331 Nov 16, 2016.
Lecture 31 CSE 331 Nov 14, 2016.
Lecture 16 CSE 331 Oct 5, 2016.
Lecture 17 CSE 331 Oct 3, 2014.
Lecture 31 CSE 331 Nov 13, 2017.
Lecture 34 CSE 331 Nov 26, 2012.
Lecture 22 CSE 331 Oct 22, 2010.
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 17 CSE 331 Oct 10, 2012.
Lecture 19 CSE 331 Oct 12, 2016.
Lecture 16 CSE 331 Oct 4, 2017.
Lecture 18 CSE 331 Oct 12, 2011.
Lecture 19 CSE 331 Oct 8, 2014.
Lecture 20 CSE 331 Oct 17, 2011.
Lecture 32 CSE 331 Nov 15, 2017.
Lecture 33 CSE 331 Nov 14, 2014.
Lecture 27 CSE 331 Oct 31, 2014.
Lecture 33 CSE 331 Nov 15, 2013.
Lecture 34 CSE 331 Nov 18, 2011.
Lecture 3 CSE 331 Aug 31, 2012.
Lecture 18 CSE 331 Oct 9, 2017.
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.
Lecture 21 CSE 331 Oct 22, 2012.
Lecture 36 CSE 331 Nov 30, 2012.
Lecture 17 CSE 331 Oct 7, 2011.
Lecture 19 CSE 331 Oct 10, 2016.
Lecture 32 CSE 331 Nov 12, 2014.
Lecture 15 CSE 331 Oct 4, 2010.
Lecture 11 CSE 331 Sep 20, 2013.
Lecture 27 CSE 331 Nov 1, 2013.
Lecture 36 CSE 331 Nov 22, 2013.
Presentation transcript:

Lecture 18 CSE 331 Oct 12, 2012

HW 5 due today Q1, Q2 and Q3 in different piles I will not take any HW after 1:15pm

Other HW related stuff Graded HW4 starting Monday Solutions to HW 5 at the end of the lecture

On Thursday, Oct 18 hours-a-thon Zihe: 3:00-5:00 (Davis 302) Jiun-Jie: 5:00-6:00 (Davis 302) Unclaimed HWs and solutions Unclaimed HWs and solutions

Review Session on Oct 19 Zihe’s recitation section from 9-9:50am in 114 Hoch

Mid term Next Friday in class at 1pm Unfortunately I won’t be there Jiun-Jie with my student Jesse & another PhD student Dung will proctor the exam

On Mon and Wed Jesse will present the lectures If time permits, he will go over the sample mid term on Wed

HW 5 due today Q1, Q2 and Q3 in different piles I will not take any HW after 1:15pm

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

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

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

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 MondayTuesdayWednesdayThursdayFriday Project 331 homework 331 HW Exam study Party! Write up a term paper Can only do one thing at any day: what is the maximum number of tasks that you can do?

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

Ordering is crucial MondayTuesdayWednesdayThursdayFriday Project 331 HW Exam study Party! Write up a term paper Order by starting time Algo =1

Another attempt MondayTuesdayWednesdayThursdayFriday Order by duration Algo =1 Ordering by least conflicts doesn’t work

The final algorithm MondayTuesdayWednesdayThursdayFriday Project 331 HW Exam study Party! Write up a term paper Order tasks by their END time

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