R. Bar-Yehuda © www.cs.technion.ac.il/~cs234141 1 Graph theory – תורת הגרפים 2.6 THE NUMBER OF SPANNING TREE מבוסס על הספר : S. Even, "Graph Algorithms",

Slides:



Advertisements
Similar presentations
Great Theoretical Ideas in Computer Science for Some.
Advertisements

CS 473Lecture 131 CS473-Algorithms I Lecture 13-A Graphs.
Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Graph-02.
13 May 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction.
1 Slides based on those of Kenneth H. Rosen Slides by Sylvia Sorkin, Community College of Baltimore County - Essex Campus Graphs.
3.3 Spanning Trees Tucker, Applied Combinatorics, Section 3.3, by Patti Bodkin and Tamsen Hunter.
GOLOMB RULERS AND GRACEFUL GRAPHS
Tirgul 8 Graph algorithms: Strongly connected components.
Realizability of Graphs Maria Belk and Robert Connelly.
R. Bar-Yehuda © 1 Graph theory – תורת הגרפים 4.4 CATALAN NUMBERS מבוסס על הספר : S. Even, "Graph Algorithms", Computer.
R. Bar-Yehuda © 1 קומבינטוריקה למדעי - המחשב – הרצאה # DE BRUIJN SEQUENCES מבוסס על הספר : S. Even, "Graph Algorithms",
R. Bar-Yehuda © 1 קומבינטוריקה למדעי - המחשב – הרצאה #17 Chapter 2: TREES מבוסס על הספר : S. Even, "Graph Algorithms",
SE561 Math Foundations Week 11 Graphs I
Dynamic Programming Technique. D.P.2 The term Dynamic Programming comes from Control Theory, not computer science. Programming refers to the use of tables.
R. Bar-Yehuda © 1 Graph theory – תורת הגרפים 2.4 Directed Trees – עצים מכוונים מבוסס על הספר : S. Even, "Graph Algorithms",
What is the next line of the proof? a). Let G be a graph with k vertices. b). Assume the theorem holds for all graphs with k+1 vertices. c). Let G be a.
R. Bar-Yehuda © 1 Graph theory – תורת הגרפים 2.3 CAYLEY’S THEOREM – משפט קיילי מבוסס על הספר : S. Even, "Graph Algorithms",
Graph Theory in CS Route Search in Online Map Services
Chapter 9 Graph algorithms Lec 21 Dec 1, Sample Graph Problems Path problems. Connectedness problems. Spanning tree problems.
Graphs G = (V,E) V is the vertex set. Vertices are also called nodes and points. E is the edge set. Each edge connects two different vertices. Edges are.
R. Bar-Yehuda © 1 קומבינטוריקה למדעי - המחשב – הרצאה #16 EULER GRAPHS גרפים אויילרים מבוסס על הספר : S. Even, "Graph Algorithms",
4/17/2017 Section 8.5 Euler & Hamilton Paths ch8.5.
MATH 310, FALL 2003 (Combinatorial Problem Solving) Lecture 10, Monday, September 22.
R. Bar-Yehuda © 1 Graph theory – תורת הגרפים 4. ORDERED TREES 4.1 UNIQUELY DECIPHERABLE CODES מבוסס על הספר : S. Even,
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Introduction to Graph Theory
GRAPH Learning Outcomes Students should be able to:
Graph Theoretic Concepts. What is a graph? A set of vertices (or nodes) linked by edges Mathematically, we often write G = (V,E)  V: set of vertices,
Graph Theory Topics to be covered:
GRAPHS CSE, POSTECH. Chapter 16 covers the following topics Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component,
Approximating the Minimum Degree Spanning Tree to within One from the Optimal Degree R 陳建霖 R 宋彥朋 B 楊鈞羽 R 郭慶徵 R
Trees and Distance. 2.1 Basic properties Acyclic : a graph with no cycle Forest : acyclic graph Tree : connected acyclic graph Leaf : a vertex of degree.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
7.1 and 7.2: Spanning Trees. A network is a graph that is connected –The network must be a sub-graph of the original graph (its edges must come from the.
Module 5 – Networks and Decision Mathematics Chapter 23 – Undirected Graphs.
Tree A connected graph that contains no simple circuits is called a tree. Because a tree cannot have a simple circuit, a tree cannot contain multiple.
1 CS104 : Discrete Structures Chapter V Graph Theory.
5.5.2 M inimum spanning trees  Definition 24: A minimum spanning tree in a connected weighted graph is a spanning tree that has the smallest possible.
5.2 Trees  A tree is a connected graph without any cycles.
Chapter 1 Fundamental Concepts Introduction to Graph Theory Douglas B. West July 11, 2002.
Maximum Flow. p2. Maximum Flow A flow network G=(V, E) is a DIRECTED graph where each has a nonnegative capacity u.
5.5.2 M inimum spanning trees  Definition 24: A minimum spanning tree in a connected weighted graph is a spanning tree that has the smallest possible.
Chapter 5 Graphs  the puzzle of the seven bridge in the Königsberg,  on the Pregel.
Relation. Combining Relations Because relations from A to B are subsets of A x B, two relations from A to B can be combined in any way two sets can be.
Data Structures & Algorithms Graphs Richard Newman based on book by R. Sedgewick and slides by S. Sahni.
GRAPHS. Graph Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component, spanning tree Types of graphs: undirected,
Basic properties Continuation
Graphs Basic properties.
Graphs Lecture 2. Graphs (1) An undirected graph is a triple (V, E, Y), where V and E are finite sets and Y:E g{X V :| X |=2}. A directed graph or digraph.
CSE 421 Algorithms Richard Anderson Winter 2009 Lecture 5.
8.4 Closures of Relations Definition: The closure of a relation R with respect to property P is the relation obtained by adding the minimum number of.
Great Theoretical Ideas in Computer Science for Some.
 Hamilton paths.  Definition 20: A Hamilton paths is a path that contains each vertex exactly once. A Hamilton circuit is a circuit that contains.
C&O 355 Lecture 19 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A A A A A A A A.
Week 11 - Wednesday.  What did we talk about last time?  Graphs  Paths and circuits.
(CSC 102) Lecture 30 Discrete Structures. Graphs.
Lecture 5 Graph Theory prepped by Lecturer ahmed AL tememe 1.
Trees.
Computing Connected Components on Parallel Computers
Advanced Algorithms Analysis and Design
Graph Operations And Representation
Based on slides by Y. Peng University of Maryland
Graph Operations And Representation
Trees L Al-zaid Math1101.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Graphs G = (V,E) V is the vertex set.
Agenda Review Lecture Content: Shortest Path Algorithm
Presentation transcript:

R. Bar-Yehuda © 1 Graph theory – תורת הגרפים 2.6 THE NUMBER OF SPANNING TREE מבוסס על הספר : S. Even, "Graph Algorithms", Computer Science Press, 1979 שקפים, ספר וחומר רלוונטי נוסף באתר הקורס : Slides, book and other related material at:

R. Bar-Yehuda © THE NUMBER OF SPANNING TREE A subgraph H of a finite digraph G is called a directed spanning tree of G if H is a directed tree which includes all the vertices of G. If r is the root of H, then it is clearly a root of G. Also, if r is a root of G, then a spanning directed tree H of G exists with root r.

R. Bar-Yehuda © 3 In-degree matrix where k is the number of edges in G from i to j

R. Bar-Yehuda © 4 In-degree matrix Lemma 2.1: A finite digraph G(V, E), with no self- loops is a directed tree with root r if and only if its in- degree matrix D has the following two properties: (2) The minor, resulting from erasing the rth row and column from D and computing the determinant, is 1.

R. Bar-Yehuda © 5 Proof (2.1) Assume that G(V, E) is a directed tree with root r. By Theorem 2.5, part c, D satisfies property (1). Now, renumber the vertices in such a way that 1 is the root and if i  j then i < j. This can be achieved by numbering the vertices of unit distance from 1 as 2, 3,.... Next number the vertices of distance two, three, etc. The new in-degree matrix is deri- vable from the previous one by performing some permutation on the rows, and the same permutation on the columns. Since such a permutation does not change the determinant, the two minors are the same. The new in- degree matrix D ' satisfies the following properties: D '(1, 1) = 0, D '(i, i) = 1 for i = 2, 3,..., n, D'(i,j) = 0 if i > j. Thus, the minor, resulting from the erasure of the first row and the first column from D ' and computing the determinant, is 1.

R. Bar-Yehuda © 6 Proof (2.1) – Cont. Now assume that D satisfies properties (1) and (2). By property (1) and Theorem 2.6, if G is not a directed tree then its underlying undirected graph contains a simple circuit. The vertex r cannot be one of the vertices of the circuit, for this would imply that either din(r) > 0 or for some other vertex v din(v) > 1, contrary to property (1). The circuit must be of the form: i1  i2  …  il  i1, where l is the length of the circuit, and no vertex appears on it twice.

R. Bar-Yehuda © 7 Proof (2.1) – Cont. Also, there may be other edges out of i1,i2,…,il, but none can enter. Thus, each of the columns of D, corresponding to one of these vertices, has exactly one +1 (on the main diagonal of D ) and one -1 and all the other entries are 0. Also, each of the rows of this submatrix is either all zeros, or there is one +1 and one –1. The sum of these columns is therefore a zero column, and thus, the minor is 0. This contradicts property (2), Q.E.D.

R. Bar-Yehuda © 8 Theorem 2.9: The number of directed spanning trees with root r of a di-graph with no self- loops is given by the minor of its in- degree matrix which results from the erasure of the r-th row and column.

R. Bar-Yehuda © 9 Theorem 2.9: - Example

R. Bar-Yehuda © 10 Theorem 2.10: The number of spanning trees of an undirected graph with no self-loops is equal to any of the minors of its degree matrix which results from the erasure of a row and a corresponding column..

R. Bar-Yehuda © 11 Theorem 2.10  Kayley הפחת עמודה ראשונה מכל העמודות האחרות הוסף את כל השורות לשורה ראשונה