Lecture 17 CSE 331 Oct 10, 2012.

Slides:



Advertisements
Similar presentations
CSE 2331/5331 CSE 780: Design and Analysis of Algorithms Lecture 14: Directed Graph BFS DFS Topological sort.
Advertisements

What is a graph ? G=(V,E) V = a set of vertices E = a set of edges edge = unordered pair of vertices
1. Find the cost of each of the following using the Nearest Neighbor Algorithm. a)Start at Vertex M.
Chapter 9: Graphs Topological Sort
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.
CS344: Lecture 16 S. Muthu Muthukrishnan. Graph Navigation BFS: DFS: DFS numbering by start time or finish time. –tree, back, forward and cross edges.
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 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.
CSC 2300 Data Structures & Algorithms March 30, 2007 Chapter 9. Graph Algorithms.
CS2420: Lecture 36 Vladimir Kulyukin Computer Science Department Utah State University.
Lecture 11 CSE 331 Sep 25, Homeworks Please hand in your HW 2 now HW 3 and graded HW 1 at the end of class.
CISC 235: Topic 11 Shortest Paths Algorithms. CISC 235 Topic 112 Outline Single-Source Shortest Paths Algorithm for Unweighted Graphs Algorithm for Weighted,
Introduction to Graphs. Introduction Graphs are a generalization of trees –Nodes or verticies –Edges or arcs Two kinds of graphs –Directed –Undirected.
© 2004 Goodrich, Tamasia Recall: Digraphs A digraph is a graph whose edges are all directed Short for “directed graph” Applications one-way streets flights.
Section 13  Questions  Graphs. Graphs  A graph representation: –Adjacency matrix. Pros:? Cons:? –Neighbor lists. Pros:? Cons:?
CSC2100B Tutorial 10 Graph Jianye Hao.
CSE 421 Algorithms Richard Anderson Winter 2009 Lecture 5.
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 19 Minimal Spanning Trees CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
CSE 421 Algorithms Richard Anderson Autumn 2015 Lecture 5.
COP 3530 Spring2012 Data Structures & Algorithms Discussion Session.
Spanning Trees Alyce Brady CS 510: Computer Algorithms.
Topological Sort. Sorting technique over DAGs (Directed Acyclic Graphs) It creates a linear sequence (ordering) for the nodes such that: –If u has an.
Representing Graphs Depth First Search Breadth First Search Graph Searching Algorithms.
Lecture 16 CSE 331 Oct 5, 2011.
CSE 373 Topological Sort Graph Traversals
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.
SINGLE-SOURCE SHORTEST PATHS IN DAGs
More Graph Algorithms.
Topological Sort.
Lecture 15 CSE 331 Oct 5, 2012.
Lecture 15 CSE 331 Sep 29, 2014.
Lecture 15 CSE 331 Oct 3, 2016.
Topological Sort.
Lecture 14 CSE 331 Sep 30, 2016.
Lecture 13 CSE 331 Sep 29, 2010.
"Learning how to learn is life's most important skill. " - Tony Buzan
Lecture 14 CSE 331 Sep 30, 2011.
CS223 Advanced Data Structures and Algorithms
Topological Sort CSE 373 Data Structures Lecture 19.
Lecture 13 CSE 331 Oct 1, 2012.
Graph Representation (23.1/22.1)
Lecture 16 CSE 331 Oct 4, 2017.
CSE 373 Graphs 4: Topological Sort reading: Weiss Ch. 9
Lecture 19 CSE 331 Oct 13, 2010.
Lecture 14 CSE 331 Oct 3, 2012.
Lecture 12 CSE 331 Sep 28, 2012.
Lecture 14 CSE 331 Sep 29, 2017.
Lecture 16 CSE 331 Oct 8, 2012.
Lecture 16 CSE 331 Oct 2, 2013.
Lecture 31 CSE 331 Nov 12, 2010.
Lecture 11 CSE 331 Sep 23, 2011.
Richard Anderson Winter 2009 Lecture 6
Lecture 15 CSE 331 Oct 3, 2011.
Lecture 11 CSE 331 Sep 19, 2014.
Lecture 11 CSE 331 Sep 21, 2017.
Lecture 17 CSE 331 Oct 7, 2011.
CSE 417: Algorithms and Computational Complexity
Lecture 11 CSE 331 Sep 22, 2016.
Richard Anderson Winter 2019 Lecture 6
Richard Anderson Lecture 5 Graph Theory
Lecture 15 CSE 331 Oct 4, 2010.
CS 250, Discrete Structures, Fall 2015 Nitesh Saxena
DAGs Longin Jan Latecki
Lecture 11 CSE 331 Sep 20, 2013.
Lecture 37 CSE 331 Dec 3, 2018.
Presentation transcript:

Lecture 17 CSE 331 Oct 10, 2012

Mid term bog post up

Online OH No. 5 @9:30pm tonite

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

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

Directed graphs Adjacency matrix is not symmetric Each vertex has two lists in Adj. list rep.

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

Today’s agenda DAG  topological sorting

Run of TopOrd algorithm