R. Bar-Yehuda © www.cs.technion.ac.il/~cs234141 1 Graph theory – תורת הגרפים 2.3 CAYLEY’S THEOREM – משפט קיילי מבוסס על הספר : S. Even, "Graph Algorithms",

Slides:



Advertisements
Similar presentations
Min-Max Relations, Hall’s Theorem, and Matching-Algorithms Graphs & Algorithms Lecture 5 TexPoint fonts used in EMF. Read the TexPoint manual before you.
Advertisements

Trees Chapter 11.
 Theorem 5.9: Let G be a simple graph with n vertices, where n>2. G has a Hamilton circuit if for any two vertices u and v of G that are not adjacent,
Theory of Computing Lecture 18 MAS 714 Hartmut Klauck.
EMIS 8374 Vertex Connectivity Updated 20 March 2008.
CompSci 102 Discrete Math for Computer Science April 19, 2012 Prof. Rodger Lecture adapted from Bruce Maggs/Lecture developed at Carnegie Mellon, primarily.
CSC401 – Analysis of Algorithms Lecture Notes 14 Graph Biconnectivity
3.3 Spanning Trees Tucker, Applied Combinatorics, Section 3.3, by Patti Bodkin and Tamsen Hunter.
Graph. Undirected Graph Directed Graph Simple Graph.
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",
What is the first line of the proof? a). Assume G has an Eulerian circuit. b). Assume every vertex has even degree. c). Let v be any vertex in G. d). Let.
R. Bar-Yehuda © 1 Graph theory – תורת הגרפים 2.4 Directed Trees – עצים מכוונים מבוסס על הספר : S. Even, "Graph Algorithms",
R. Bar-Yehuda © 1 Graph theory – תורת הגרפים 2.6 THE NUMBER OF SPANNING TREE מבוסס על הספר : S. Even, "Graph Algorithms",
Section 3.1 Properties of Trees Sarah Graham. Tree Talk: Vocabulary oTree: a tree is a special type of graph that contains designated vertex called a.
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.
Is the following graph Hamiltonian- connected from vertex v? a). Yes b). No c). I have absolutely no idea v.
Computability and Complexity 24-1 Computability and Complexity Andrei Bulatov Approximation.
Is C 6 2-critical? a). Yes b). No c). I have absolutely no idea.
MATH 310, FALL 2003 (Combinatorial Problem Solving) Lecture 11, Wednesday, September 24.
R. Bar-Yehuda © 1 קומבינטוריקה למדעי - המחשב – הרצאה #16 EULER GRAPHS גרפים אויילרים מבוסס על הספר : S. Even, "Graph Algorithms",
3/29/05Tucker, Sec Applied Combinatorics, 4th Ed. Alan Tucker Section 4.2 Minimal Spanning Trees Prepared by Amanda Dargie and Michele Fretta.
What is the next line of the proof? a). Assume the theorem holds for all graphs with k edges. b). Let G be a graph with k edges. c). Assume the theorem.
R. Bar-Yehuda © 1 Graph theory – תורת הגרפים 4. ORDERED TREES 4.1 UNIQUELY DECIPHERABLE CODES מבוסס על הספר : S. Even,
Coloring 3/16/121. Flight Gates flights need gates, but times overlap. how many gates needed? 3/16/122.
Counting Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan
Approximating Minimum Bounded Degree Spanning Tree (MBDST) Mohit Singh and Lap Chi Lau “Approximating Minimum Bounded DegreeApproximating Minimum Bounded.
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.
1 CS104 : Discrete Structures Chapter V Graph Theory.
 Rooted tree and binary tree  Theorem 5.19: A full binary tree with t leaves contains i=t-1 internal vertices.
5.2 Trees  A tree is a connected graph without any cycles.
5.5.3 Rooted tree and binary tree  Definition 25: A directed graph is a directed tree if the graph is a tree in the underlying undirected graph.  Definition.
Introduction to Graph Theory
Trees Thm 2.1. (Cayley 1889) There are nn-2 different labeled trees
Xuding Zhu Zhejiang Normal University Budapest Circular flow of signed graphs.
NP-completeness NP-complete problems. Homework Vertex Cover Instance. A graph G and an integer k. Question. Is there a vertex cover of cardinality k?
Introduction to Graph Theory
Great Theoretical Ideas in Computer Science for Some.
Prims Algorithm for finding a minimum spanning tree
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Trees Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering, IIT
1 Assignment #3 is posted: Due Thursday Nov. 15 at the beginning of class. Make sure you are also working on your projects. Come see me if you are unsure.
COMPSCI 102 Introduction to Discrete Mathematics.
What is the chromatic number of this graph?. We have found a four-coloring. How do we know the chromatic number is not less than four?
5.6 Prefix codes and optimal tree Definition 31: Codes with this property which the bit string for a letter never occurs as the first part of the bit string.
MCA 520: Graph Theory Instructor Neelima Gupta
Trees.
Discrete Mathematics Graph: Planar Graph Yuan Luo
Prüfer code algorithm Algorithm (Prüfer code)
Proof technique (pigeonhole principle)
Minimum Spanning Tree Chapter 13.6.
Minimum Spanning Tree 8/7/2018 4:26 AM
Euler Circuits William T. Trotter and Mitchel T. Keller
What is the next line of the proof?
Shortest Path Problems
Biconnectivity SEA PVD ORD FCO SNA MIA 11/16/2018 2:31 AM
Autumn 2016 Lecture 9 Dijkstra’s algorithm
Trees.
Shortest Path Problems
Problem Solving 4.
Great Theoretical Ideas In Computer Science
Miniconference on the Mathematics of Computation
Winter 2019 Lecture 9 Dijkstra’s algorithm
Biconnectivity SEA PVD ORD FCO SNA MIA 5/6/2019 5:08 PM Biconnectivity
Discrete Mathematics for Computer Science
Biconnectivity SEA PVD ORD FCO SNA MIA 5/23/ :21 PM
Richard Anderson Lecture 5 Graph Theory
Autumn 2019 Lecture 9 Dijkstra’s algorithm
Presentation transcript:

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

R. Bar-Yehuda © CAYLEY’S THEOREM משפט קיילי Theorem 2.4: The number of spanning trees for n distinct vertices is n n-2. Proof: )Prüfer( Assume V = {1, 2,..., n}. Let us display a one-to-one correspondence between the set of the spanning trees and the n n-2 words of length n – 2 over the alphabet {1, 2,..., n}. The algorithm for finding the word which corresponds to a given tree is as follows:

R. Bar-Yehuda © 3 Theorem 2.4: The number of spanning trees for n distinct vertices is n n-2. V = {1, 2,..., n} קלט: עץ עם צמתים: {1, 2,..., n} מעל א"ב n-2 פלט: מילה באורך For i=1 to n-2 do Among all leaves of the current tree let j be the least one. Eliminate j and its incident edge e from the tree. The i-th letter of the word is the other endpoint of e.

R. Bar-Yehuda © 4 a[i] = j j עלה מינימלי

R. Bar-Yehuda © 5 i = 1; j=3; min=1 a[1] = 3 3 עלה מינימלי

R. Bar-Yehuda © 6 i = 2; j=2; min=3; a[2] = 2 3 עלה מינימלי

R. Bar-Yehuda © 7 i = 3; j=2; min=4; a[3] = 2 3 עלה מינימלי

R. Bar-Yehuda © 8 i = n-2 w="322" בסיום:

R. Bar-Yehuda © 9 Theorem 2.4: The number of spanning trees for n distinct vertices is n n-2. {1, 2,..., n} מעל א"ב n-2 קלט: מילה באורך V = {1, 2,..., n} פלט: עץ עם צמתים: For i=1 to n-2 do Let j be the least vertex for which d(j) = 1. Construct an edge j – a i, d(j)  0 and d(a i )  d(a i ) – l. Construct an edge between the two vertices whose degree is 1