Lecture 16 CSE 331 Oct 4, 2017.

Slides:



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

Lecture 16 CSE 331 Oct 9, Announcements Hand in your HW4 Solutions to HW4 next week Remember next week I will not be here so.
Lecture 15 CSE 331 Oct 7, Mid-term stuff Chapters 1-3 in [KT] Sample mid-term (and graded HW3) at the END of class The web version has the correct.
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.
Lecture 32 CSE 331 Nov 16, 2016.
Lecture 31 CSE 331 Nov 14, 2016.
Lecture 26 CSE 331 Nov 2, 2016.
Lecture 20 CSE 331 Oct 15, 2010.
Lecture 15 CSE 331 Oct 3, 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.
Topological Sort.
Lecture 34 CSE 331 Nov 26, 2012.
Lecture 10 CSE 331 Sep 21, 2016.
Lecture 10 CSE 331 Sep 20, 2017.
Lecture 15 CSE 331 Sep 29, 2014.
Lecture 15 CSE 331 Oct 3, 2016.
Lecture 21 CSE 331 Oct 21, 2016.
Lecture 21 CSE 331 Oct 20, 2017.
Lecture 14 CSE 331 Sep 30, 2016.
Lecture 20 CSE 331 Oct 14, 2016.
Lecture 17 CSE 331 Oct 7, 2016.
Lecture 17 CSE 331 Oct 10, 2012.
Lecture 37 CSE 331 Dec 1, 2017.
Lecture 24 CSE 331 Oct 25, 2013.
Lecture 9 CSE 331 Sep 18, 2017.
Lecture 19 CSE 331 Oct 12, 2016.
Lecture 18 CSE 331 Oct 12, 2011.
Lecture 19 CSE 331 Oct 8, 2014.
Lecture 20 CSE 331 Oct 17, 2011.
Lecture 19 CSE 331 Oct 13, 2010.
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.
Lecture 14 CSE 331 Sep 29, 2017.
Lecture 33 CSE 331 Nov 15, 2013.
Lecture 34 CSE 331 Nov 18, 2011.
Lecture 16 CSE 331 Oct 8, 2012.
Lecture 9 CSE 331 Sep 19, 2016.
Lecture 16 CSE 331 Oct 2, 2013.
Lecture 18 CSE 331 Oct 9, 2017.
Richard Anderson Winter 2009 Lecture 6
Lecture 15 CSE 331 Oct 3, 2011.
Lecture 20 CSE 331 Oct 13, 2017.
Lecture 11 CSE 331 Sep 19, 2014.
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 30, 2012.
Lecture 37 CSE 331 Dec 2, 2016.
Lecture 11 CSE 331 Sep 21, 2017.
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 16 CSE 331 Oct 4, 2017

Mini Project Pitch due TODAY Some of the chosen algorithm are now up! Form your group on Autolab BEFORE submitting your pitch Do not forget to add URL to your references

Quiz 1 on Monday

Directed Acyclic Graph (DAG) No directed cycles Precedence relationships are consistent

Topological Sorting of a DAG Order the vertices so that all edges go “forward” Topological sorting  DAG

TopOrd(G=(V,E)) If |V| = {u}, return u Let w be a node with no incoming edges Let G’ be G\{w} Return w; TopOrd(G’)

Run of TopOrd algorithm

Todays’ agenda Prove Lemma 3 Run time analysis of TopOrd Greedy algorithms

Mid-term material Everything we have covered so far (essentially Chaps 1-3 except Sec 1.2) See piazza post on how to prepare for the 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?

Rest of today’s agenda Prove the correctness of the algorithm