Lecture 23 CSE 331 Oct 28, 2009.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Lecture 37 CSE 331 Nov 4, Homework stuff (Last!) HW 10 at the end of the lecture Solutions to HW 9 on Monday Graded HW 9 on.
Lecture 40 CSE 331 Dec 8, Finals 3:35-6:05pm KNOX 104 Tue, Dec 14 Blog post on the finals up.
Lecture 38 CSE 331 Dec 3, A new grading proposal Towards your final score in the course MAX ( mid-term as 25%+ finals as 40%, finals as 65%) .
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 25 CSE 331 Oct 29, HW 6 due today All questions in one pile I will not take any HW after 1:15pm.
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 22 CSE 331 Oct 26, Blog posts Please sign up if you have not If I have a pick a blogger I will only pick ONE/lecture Will lose out on 5%
9/8/10 A. Smith; based on slides by E. Demaine, C. Leiserson, S. Raskhodnikova, K. Wayne Adam Smith Algorithm Design and Analysis L ECTURE 6 Greedy Algorithms.
Lecture 10 The Label Correcting Algorithm.
Lecture 7 All-Pairs Shortest Paths. All-Pairs Shortest Paths.
Lecture 23 CSE 331 Oct 24, Reminder 2 points for Piazza participation 3 points for mini-project.
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 23 CSE 331 Oct 26, 2016.
Greedy Algorithms / Interval Scheduling Yin Tat Lee
Lecture 22 CSE 331 Oct 22, 2010.
Lecture 15 CSE 331 Oct 5, 2012.
Lecture 21 CSE 331 Oct 21, 2016.
Lecture 24 CSE 331 Oct 28, 2016.
Lecture 24 CSE 331 Oct 27, 2017.
Richard Anderson Autumn 2015 Lecture 8 – Greedy Algorithms II
Lecture 21 CSE 331 Oct 20, 2017.
Lecture 20 CSE 331 Oct 14, 2016.
Lecture 33 CSE 331 Nov 18, 2016.
Lecture 33 CSE 331 Nov 17, 2017.
Lecture 13 CSE 331 Oct 1, 2012.
Lecture 24 CSE 331 Oct 25, 2013.
Lecture 22 CSE 331 Oct 23, 2017.
Lecture 23 CSE 331 Oct 25, 2017.
Lecture 24 CSE 331 Oct 29, 2012.
Lecture 23 CSE 331 Oct 24, 2011.
Lecture 19 CSE 331 Oct 12, 2016.
Lecture 22 CSE 331 Oct 24, 2016.
Introduction to Minimum Cost Flows
Greedy Algorithms: Homework Scheduling and Optimal Caching
Richard Anderson Lecture 6 Greedy Algorithms
Shortest-Path Property 4.1
Lecture 37 CSE 331 Nov 30, 2011.
CGS 3763 Operating Systems Concepts Spring 2013
Lecture 19 CSE 331 Oct 8, 2014.
CSE 373: Data Structures & Algorithms
Lecture 20 CSE 331 Oct 17, 2011.
Lecture 32 CSE 331 Nov 15, 2017.
Lecture 33 CSE 331 Nov 14, 2014.
Richard Anderson Autumn 2016 Lecture 7
Lecture 25 CSE 331 Oct 27, 2014.
Lecture 22 CSE 331 Oct 15, 2014.
Lecture 18 CSE 331 Oct 9, 2017.
Richard Anderson Lecture 7 Greedy Algorithms
Richard Anderson Winter 2019 Lecture 8 – Greedy Algorithms II
Lecture 20 CSE 331 Oct 13, 2017.
Lecture 19 CSE 331 Oct 14, 2011.
Lecture 21 CSE 331 Oct 19, 2011.
Lecture 21 CSE 331 Oct 22, 2012.
Lecture 24 CSE 331 Oct 24, 2014.
Lecture 36 CSE 331 Nov 28, 2011.
Lecture 36 CSE 331 Nov 30, 2012.
Richard Anderson Autumn 2016 Lecture 8 – Greedy Algorithms II
Lecture 23 CSE 331 Oct 24, 2011.
15.082J & 6.855J & ESD.78J Visualizations
Richard Anderson Winter 2019 Lecture 7
Lecture 19 CSE 331 Oct 10, 2016.
Richard Anderson Autumn 2015 Lecture 7
Dijkstra’s Algorithm Ryan Keedy CSE 599 April 4th, 2012.
Richard Anderson Autumn 2019 Lecture 7
Richard Anderson Autumn 2019 Lecture 8 – Greedy Algorithms II
Presentation transcript:

Lecture 23 CSE 331 Oct 28, 2009

Feedback forms Please pick one up You will have last 5 minutes in the class to fill it in

Warning More work for YOU I am running behind on my topics schedule I wanted to show some of the cooler stuff Will not always do COMPLETE proofs More work for YOU

Last lecture Convert optimal schedule O to Ô such that Ô has no inversions (a) Exists an inversion (i,j) such that i is scheduled right before j (di > dj) Repeat O(n2) times (a.5) Swap i and j to get O’ Exercise: Prove by induction. No consecutive inversion  No inversions (b) O’ has one less inversion than O (c) Max lateness(O’) ≤ Max lateness(O)

Max lateness(O’) ≤ Max lateness(O) di > dj Same lateness Same lateness O i j t1 t3 O’ j i t2 Lateness of j in O’ ≤ Lateness of j in O Lateness of i in O’ ≤ Lateness of j in O Lateness of i in O’ = t3 - di < t3 - dj = Lateness of j in O

Rest of today Shortest Path Problem http://xkcd.com/85/

Reading Assignment Sec 2.5of [KT]