Topological Sorting.

Slides:



Advertisements
Similar presentations
Math 1316 Prof. Thomas Jay. Homework: Homework problems are designed to reinforce the lecture/reading. If you miss a class, you should attempt to do.
Advertisements

Would you like to donate materials?
Topological Sorting.
UNITED STATES DAILY QUIZ
The BCHS Semester Two Exam Schedule
Greenleys First School Christmas Performances 2016
Welcome to MAT 170 MWF 8:40 SLN
Introduction to MA Day 1.
Introduction to MA Day 1.
Lecture 20 CSE 331 Oct 15, 2010.
Lecture 16 CSE 331 Oct 5, 2016.
Lecture 17 CSE 331 Oct 3, 2014.
3rd Grade AzMERIT rd Grade AzMERIT 2017
Renaissance Place at Grand Community Activities Bldg. May 2018
Lecture 15 CSE 331 Sep 29, 2014.
Year 10 End of Year Exam Timetable
5th Grade AzMERIT th Grade AzMERIT 2017
Last Week of Quarter 3!.
Schedules My Schedule Monday: 9:00-2:00 Work 3:00-6:00 Clean
Lecture 17 CSE 331 Oct 7, 2016.
"Learning how to learn is life's most important skill. " - Tony Buzan
ELC 200 Day 24.
Lecture 17 CSE 331 Oct 10, 2012.
SEMESTER EXAMS & EXEMPTIONS
Topological Sort CSE 373 Data Structures Lecture 19.
Welcome to MAT 142.
3rd Grade AzMERIT rd Grade AzMERIT 2018
SEMESTER EXAMS & EXEMPTIONS
3rd Grade Weekly Newsletter What we are learning in…
No Warm-Up 5/16/17 Happy Tuesday!  We have 8 school days left this year! (and 1 more Tuesday after today!) You can choose your seat today; if you move.
Lecture 16 CSE 331 Oct 4, 2017.
Please save these important dates
Welcome to MAT 142.
Locations for CS 115 Activities
Welcome to MAT 170 MWF.
August 2018 Monday Tuesday Wednesday Thursday Friday
Office of the Registrar
Lecture 18 CSE 331 Oct 12, 2011.
Course calendar (page 1 of 2)
American History Unit: 1950s to Present Topic: Review
Lecture 16 CSE 331 Oct 8, 2012.
Lecture 16 CSE 331 Oct 2, 2013.
Welcome to Mrs. Scanlon’s Class!
7th Grade Math Warm-ups Week of November 7-11, 2016.
CS 336/536: Computer Network Security Fall 2014 Nitesh Saxena
World History A December 2-6.
Welcome To Algebra Concept week semester 2(week 12)
Lecture 5.3: Graph Isomorphism and Paths
Withdrawing vs. dropping
Lecture 17 CSE 331 Oct 7, 2011.
No Warm-Up 5/15/17 Happy Monday!  We have 9 school days left this year! (and 1 more Monday after today!) You can choose your seat today; if you move.
Extended Christmas Hours Thursday December 8th 9am -6:30pm Friday December 9th 9am -6:30pm Saturday December 10th 9am-6pm Thursday December.
GRAPHS G=<V,E> Adjacent vertices Undirected graph
Homework Reading Machine Projects Labs
Exams Begin Today: 2nd and 4th Period
No Warm-Up 5/19/17 Happy Friday!  We have 5 school days left this year! You can choose your seat today; if you move the seats around, please put them.
February 2018 Monday Tuesday Wednesday Thursday Friday
Proposed by the Registrar Approved by the Public Occasions Committee
Monday, April 30th PD Day! No school for students.
The Boy in the Striped pajamas gr. 02
4th Grade AzMERIT & AIMS th Grade AzMERIT & AIMS 2019
Week of November 28 – December 2, 2016
7th Grade Math Warm-ups Week of February 13-17, 2017.
7th Grade Math Warm-ups Week of February 6-10, 2017.
First Year Student Group Advising – Fall & Summer 2019
No Warm-Up 5/18/17 Happy Thursday!  We have 6 school days left this year! (and 1 more Thursday after today!) You can choose your seat today; if you.
Monday, April 30, :00-9:45 Fisher 9:45-10:30 10:30-11:00
AME Spring Lecture 11 - Thrust and aircraft range
Mr. Butler 6th Grade Earth Science
Presentation transcript:

Topological Sorting

Notes: The final exam will be on Wednesday, May 5th All grades (excluding the grades for the Final Exam) will be published on Friday, April 30 You can request revisions of these grades until the day before the final exam Starting on May 5th you can only request revisions for the final exam (once the results are posted) I’ll have office hours on Monday 3rd and Tuesday 4th from10:30AM-11:30AM

Reminder: Digraph, DAG A digraph is a graph in which the edges have directions What does it means for representations with: Adjacency matrix? Adjacency lists? A DAG is a digraph that has no cycles Examples

Problem For getting a degree in Magika Arcana, young apprentices must take 5 courses: elementals, conjuration, necromancy, alchemy and summoning. Apprentices can take one course per semester, and courses have the following pre-requisites: elementals and alchemy have no prerequisites conjuration requires elementals and alchemy Summoning requires conjuration Necromancy requires summoning and conjuration Assuming that apprentices can only take one course per semester, in what order should they take the courses?

Other Related Problems Scheduling Planning Configuration

Solution # 1: Using DFS

Solution # 2: Using The Source

Homework (Optional) 5.3: 1 (for left digraph only), 2.b, 3.a, 5 (for right digraph only), 6, 10 (no pseudocode)