DAGs Longin Jan Latecki latecki@temple.edu.

Slides:



Advertisements
Similar presentations
Introduction to Algorithms Graph Algorithms
Advertisements

CSE 2331/5331 CSE 780: Design and Analysis of Algorithms Lecture 14: Directed Graph BFS DFS Topological sort.
Discrete Mathematics University of Jazeera College of Information Technology & Design Khulood Ghazal Connectivity Lecture _13.
Simple Graph Warmup. Cycles in Simple Graphs A cycle in a simple graph is a sequence of vertices v 0, …, v n for some n>0, where v 0, ….v n-1 are distinct,
Minimum cost spanning tree and activity networks Data structure 2002/12/2.
Directed Graphs. Given vertices u and v of a digraph G , we say that u reaches v (and v is reachable from u ) if G  has a directed path from u to.
1 Data Structures DFS, Topological Sort Dana Shapira.
Lecture 10 Topics Application of DFS 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.
1 Graph Introduction Definitions. 2 Definitions I zDirected Graph (or Di-Graph) is an ordered pair G=(V,E) such that yV is a finite, non-empty set (of.
Spring 2010CS 2251 Graphs Chapter 10. Spring 2010CS 2252 Chapter Objectives To become familiar with graph terminology and the different types of graphs.
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.
Is the following graph Hamiltonian- connected from vertex v? a). Yes b). No c). I have absolutely no idea v.
Chapter 4 Graphs.
CS2420: Lecture 36 Vladimir Kulyukin Computer Science Department Utah State University.
1 Partial Orderings Based on Slides by Chuck Allison from Rosen, Chapter 8.6 Modified by.
Introduction to Graphs. Introduction Graphs are a generalization of trees –Nodes or verticies –Edges or arcs Two kinds of graphs –Directed –Undirected.
Lecture 17 Trees CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
© 2004 Goodrich, Tamasia Recall: Digraphs A digraph is a graph whose edges are all directed Short for “directed graph” Applications one-way streets flights.
Jan Topological Order and SCC Edge classification Topological order Recognition of strongly connected components.
1 Chapter 22 Elementary Graph Algorithms. 2 Introduction G=(V, E) –V = vertex set –E = edge set Graph representation –Adjacency list –Adjacency matrix.
Section 13  Questions  Graphs. Graphs  A graph representation: –Adjacency matrix. Pros:? Cons:? –Neighbor lists. Pros:? Cons:?
CSC2100B Tutorial 10 Graph Jianye Hao.
Graphs Chapter 28 © 2015 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. Data Structures and Abstractions with Java, 4e Frank Carrano.
Graph Concepts and Algorithms Using LEDA By Caroline Moore and Carmen Frerichs (252a-at and 252a-ao) each graph in the presentation was created using gw_basic_graph_algorithms.
1 Partial Orderings Based on Slides by Chuck Allison from Rosen, Chapter 8.6 Modified by.
Abdulrahman Azab 5, Apr Workflow Management on Abel.
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.
Introduction to Algorithms
Topological Sorting.
Chapter 22 Elementary Graph Algorithms
CSE 2331/5331 Topic 9: Basic Graph Alg.
Lecture 20 CSE 331 Oct 15, 2010.
Lecture 15 CSE 331 Oct 3, 2016.
CS200: Algorithm Analysis
SINGLE-SOURCE SHORTEST PATHS IN DAGs
More Graph Algorithms.
Topological Sort.
Graph Algorithms "A charlatan makes obscure what is clear; a thinker makes clear what is obscure. " - Hugh Kingsmill.
Lecture 15 CSE 331 Oct 3, 2016.
Topological Sort.
Graph Algorithms – 2 DAGs Topological order
Lecture 10 Algorithm Analysis
Graphs Chapter 13.
Graph Algorithms – 2.
Advanced Algorithms Analysis and Design
"Learning how to learn is life's most important skill. " - Tony Buzan
CS223 Advanced Data Structures and Algorithms
Lecture 17 CSE 331 Oct 10, 2012.
Topological Sort CSE 373 Data Structures Lecture 19.
Graph Representation (23.1/22.1)
Chapter 11 Graphs.
Graph Theory By Amy C. and John M..
Graphs.
10.1 Graphs and Graph Models
CSCI2100 Data Structures Tutorial
A Introduction to Computing II Lecture 13: Trees
Graph Algorithms "A charlatan makes obscure what is clear; a thinker makes clear what is obscure. " - Hugh Kingsmill CLRS, Sections 22.2 – 22.4.
Graphs G = (V, E) V are the vertices; E are the edges.
CSE 417: Algorithms and Computational Complexity
Algorithms CSCI 235, Spring 2019 Lecture 35 Graphs IV
Important Problem Types and Fundamental Data Structures
CHAPTER 15 Graph Theory.
Graph Vocabulary.
Richard Anderson Winter 2019 Lecture 6
Richard Anderson Lecture 5 Graph Theory
Heaps Chapter 6 Section 6.9.
Advanced Algorithms Analysis and Design
Presentation transcript:

DAGs Longin Jan Latecki latecki@temple.edu

DAGs In mathematics and computer science, a directed acyclic graph (DAG), is a directed graph  with no directed cycles. That is, it is formed by a collection of vertices  and directed edges, each edge connecting one vertex to another, such that there is no way to start at some vertex v  and follow a sequence of edges that eventually loops back to v again. DAGs may be used to model many different kinds of information. The reachability relation in a DAG forms a partial order, and any finite partial order may be represented by a DAG using reachability.

Topological Sorting A total ordering is said to be compatible with the partial ordering R if a b whenever a R b. Constructing a total ordering from a partial ordering is called topological sorting.

Topological Sorting

If there is an edge from v to w, then v precedes w in the sequential listing. 1 2 3 4 5 6 7 8 9 9 6 3 4 8 2 5 1 7