Lecture 37 CSE 331 Dec 3, 2018.

Slides:



Advertisements
Similar presentations
Bellman-Ford algorithm
Advertisements

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 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 39 CSE 331 Dec 6, On Friday, Dec 10 hours-a-thon Atri: 2:00-3:30 (Bell 123) Jeff: 4:00-5:00 (Bell 224) Alex: 5:00-6:30 (Bell 242)
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 39 CSE 331 Dec 9, Announcements Please fill in the online feedback form Sample final has been posted Graded HW 9 on Friday.
Lecture 25 CSE 331 Nov 2, Adding teeth to group talk Form groups of size at most six (6) Pick a group leader I will ask group leader(s) to come.
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 27 CSE 331 Nov 6, Homework related stuff Solutions to HW 7 and HW 8 at the END of the lecture Turn in HW 7.
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 23 CSE 331 Oct 24, Reminder 2 points for Piazza participation 3 points for mini-project.
Lecture 38 CSE 331 Dec 5, OHs today (only online 9:30-11)
Lecture 32 CSE 331 Nov 16, 2016.
Lecture 13 Shortest Path.
Π: nil d: 0 π: nil d: ∞ 2 A B -1 π: nil d: ∞ C D E 4 π: nil d: ∞ π: nil d: ∞
Lecture 23 CSE 331 Oct 26, 2016.
Lecture 17 CSE 331 Oct 3, 2014.
Lecture 34 CSE 331 Nov 26, 2012.
Lecture 21 CSE 331 Oct 21, 2016.
Lecture 24 CSE 331 Oct 27, 2017.
Lecture 36 CSE 331 Nov 29, 2017.
Lecture 36 CSE 331 Nov 30, 2016.
Lecture 35 CSE 331 Nov 27, 2017.
Lecture 34 CSE 331 Nov 20, 2017.
Lecture 33 CSE 331 Nov 18, 2016.
Lecture 33 CSE 331 Nov 17, 2017.
Lecture 17 CSE 331 Oct 10, 2012.
Lecture 35 CSE 331 Nov 28, 2016.
Lecture 37 CSE 331 Dec 1, 2017.
Lecture 24 CSE 331 Oct 25, 2013.
Lecture 27 CSE 331 Nov 3, 2017.
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 26 CSE 331 Nov 2, 2012.
Lecture 22 CSE 331 Oct 24, 2016.
Richard Anderson Lecture 21 Shortest Path Network Flow Introduction
Shortest Path Algorithms
Richard Anderson Lecture 21 Shortest Paths
Lecture 37 CSE 331 Nov 30, 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 21, 2016.
Lecture 22 CSE 331 Oct 15, 2014.
Lecture 18 CSE 331 Oct 9, 2017.
Lecture 14 Shortest Path (cont’d) Minimum Spanning Tree
Lecture 39 CSE 331 Dec 5, 2011.
Lecture 24 CSE 331 Oct 24, 2014.
Lecture 36 CSE 331 Nov 28, 2011.
Lecture 36 CSE 331 Nov 30, 2012.
Lecture 37 CSE 331 Dec 2, 2016.
Lecture 11 CSE 331 Sep 21, 2017.
Autumn 2016 Lecture 10 Minimum Spanning Trees
Lecture 8 CSE 331 Sep 15, 2011.
Lecture 23 CSE 331 Oct 24, 2011.
Lecture 26 CSE 331 Nov 1, 2010.
Lecture 11 CSE 331 Sep 22, 2016.
Lecture 25 CSE 331 Oct 28, 2011.
Lecture 19 CSE 331 Oct 10, 2016.
Richard Anderson Lecture 20 Shortest Paths and Network Flow
Winter 2019 Lecture 10 Minimum Spanning Trees
Lecture 15 CSE 331 Oct 4, 2010.
Lecture 13 Shortest Path (cont’d) Minimum Spanning Tree
Lecture 27 CSE 331 Nov 4, 2016.
Lecture 27 CSE 331 Nov 1, 2013.
Lecture 36 CSE 331 Nov 22, 2013.
Lecture 24 CSE 331 Oct 29, 2018.
Presentation transcript:

Lecture 37 CSE 331 Dec 3, 2018

Quiz 2 1:00-1:10pm Lecture starts at 1:15pm

Final Reminder

No quiz discussion on piazza till Noon

Review sessions/extra OH Friday lecture will be a Q&A session

HWs 6-9 solutions At the end of the lecture

Shortest Path Problem Input: (Directed) Graph G=(V,E) and for every edge e has a cost ce (can be <0) t in V Output: Shortest path from every s to t Assume that G has no negative cycle 1 100 -1000 899 s t Shortest path has cost negative infinity

When to use Dynamic Programming There are polynomially many sub-problems Richard Bellman Optimal solution can be computed from solutions to sub-problems There is an ordering among sub-problem that allows for iterative solution

Sub-problems OPT(u,i) = cost of shortest path from u to t with at most i edges

Today’s agenda Finish Bellman-Ford algorithm Analyze the run time

The recurrence OPT(u,i) = shortest path from u to t with at most i edges OPT(u,i) = min { OPT(u,i-1), min(u,w) in E { cu,w + OPT(w, i-1)} }

OPT(u,n-1) is shortest path cost between u and t Some consequences OPT(u,i) = cost of shortest path from u to t with at most i edges OPT(u,i) = min { OPT(u, i-1), min(u,w) in E { cu,w + OPT(w,i-1)} } OPT(u,n-1) is shortest path cost between u and t Group talk time: How to compute the shortest path between s and t given all OPT(u,i) values