R. Bar-Yehuda © www.cs.technion.ac.il/~cs234141 1 קומבינטוריקה למדעי - המחשב – הרצאה #16 1.4 DE BRUIJN SEQUENCES מבוסס על הספר : S. Even, "Graph Algorithms",

Slides:



Advertisements
Similar presentations
CS 336 March 19, 2012 Tandy Warnow.
Advertisements

Connectivity - Menger’s Theorem Graphs & Algorithms Lecture 3.
 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,
Chapter 8 Topics in Graph Theory
Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
Walks, Paths and Circuits Walks, Paths and Circuits Sanjay Jain, Lecturer, School of Computing.
De Bruijn sequences Rotating drum problem:
Graph-02.
 期中测验时间:本周五上午 9 : 40  教师 TA 答疑时间 : 周三晚上 6 : 00—8 : 30  地点:软件楼 315 房间,  教师 TA :李弋老师  开卷考试.
9.7 Planar Graphs. Intro problem- 3 houses and 3 utilities K 3,3 problem: Can 3 houses be connected to 3 utilities so that no 2 lines cross? Similarly,
Section 14.1 Intro to Graph Theory. Beginnings of Graph Theory Euler’s Konigsberg Bridge Problem (18 th c.)  Can one walk through town and cross all.
De Bruijn Sequences Define an alphabet A consisting of k elements E.g. A={0,1}, A={a,b,c}, A= { 图,论,很,好, 玩 } K=2 , K=3 , and K=5 in the preceding example.
R. Bar-Yehuda © 1 Graph theory – תורת הגרפים 4.4 CATALAN NUMBERS מבוסס על הספר : S. Even, "Graph Algorithms", Computer.
Section 2.1 Euler Cycles Vocabulary CYCLE – a sequence of consecutively linked edges (x 1,x2),(x2,x3),…,(x n-1,x n ) whose starting vertex is the ending.
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.
R. Bar-Yehuda © 1 Graph theory – תורת הגרפים 2.3 CAYLEY’S THEOREM – משפט קיילי מבוסס על הספר : S. Even, "Graph Algorithms",
Is the following graph Hamiltonian- connected from vertex v? a). Yes b). No c). I have absolutely no idea v.
CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker.
R. Bar-Yehuda © 1 קומבינטוריקה למדעי - המחשב – הרצאה #16 EULER GRAPHS גרפים אויילרים מבוסס על הספר : S. Even, "Graph Algorithms",
4/17/2017 Section 8.5 Euler & Hamilton Paths ch8.5.
03/01/2005Tucker, Sec Applied Combinatorics, 4th Ed. Alan Tucker Section 3.1 Properties of Trees Prepared by Joshua Schoenly and Kathleen McNamara.
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,
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
Based on slides by Y. Peng University of Maryland
Introduction to Graph Theory
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
Chapter 6: Graphs 6.1 Euler Circuits
 Quotient graph  Definition 13: Suppose G(V,E) is a graph and R is a equivalence relation on the set V. We construct the quotient graph G R in the follow.
Chapter 9.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 6th ed., by Kenneth H.
Introduction to Graph Theory
1) Find and label the degree of each vertex in the graph.
9.5 Euler and Hamilton graphs. 9.5: Euler and Hamilton paths Konigsberg problem.
Trees.
De Bruijn sequences 陳柏澍 Novembers Each of the segments is one of two types, denoted by 0 and 1. Any four consecutive segments uniquely determine.
Discrete Structures – CNS2300
Introduction to Trees Section 11.1.
The Definition of Algorithm
Euler Circuits William T. Trotter and Mitchel T. Keller
What is the next line of the proof?
Can you draw this picture without lifting up your pen/pencil?
Chapter 10.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 7th ed., by Kenneth H.
Graph Theory.
Chapter 10.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 7th ed., by Kenneth H.
Walks, Paths, and Circuits
Chapter 10.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 7th ed., by Kenneth H.
A path that uses every vertex of the graph exactly once.
Chapter 10.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 7th ed., by Kenneth H.
Chapter 10.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 7th ed., by Kenneth H.
Discrete Mathematics Lecture 13_14: Graph Theory and Tree
CPS420 Euler Circuit Construction
Euler and Hamilton Paths
Graphs G = (V, E) V are the vertices; E are the edges.
Chapter 10.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 8th ed., by Kenneth H.
Euler circuit Theorem 1 If a graph G has an Eulerian path, then it must have exactly two odd vertices. Theorem 2 If a graph G has an Eulerian circuit,
Applied Combinatorics, 4th Ed. Alan Tucker
Warm Up – Tuesday Find the critical times for each vertex.
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Warm Up – 3/17 - Monday A) List the set of vertices.
Richard Anderson Lecture 5 Graph Theory
Chapter 10.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 7th ed., by Kenneth H.
Chapter 10.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 7th ed., by Kenneth H.
Presentation transcript:

R. Bar-Yehuda © 1 קומבינטוריקה למדעי - המחשב – הרצאה # DE BRUIJN SEQUENCES מבוסס על הספר : S. Even, "Graph Algorithms", Computer Science Press, 1979 שקפים, ספר וחומר רלוונטי נוסף באתר הקורס : Slides, book and other related material at:

R. Bar-Yehuda © DE BRUIJN SEQUENCES 1.4 DE BRUIJN SEQUENCES Let  = {0, 1,...,  – 1} be an alphabet of  letters. Clearly there are  n different words of length n over . A de Bruijn sequence is a (circular) sequence a 0 a 1... a l-1 over  such that for every word w of length n over  there exists a unique i such that a i a i+1... a i+n-1 = w,

R. Bar-Yehuda © 3 G ,n (V, E) which has the following structure: 1. V is the set of all  n-1 words of length n – 1 over . 2. E is the set of all  n words of length n over . 3. The edge b 1 b 2 … b n, starts at vertex b 1 b 2 … b n-1 and ends at vertex b 2 b 3 … b n.

R. Bar-Yehuda © 4 Fig 1.5 G 2,3

R. Bar-Yehuda © 5 Fig 1.6 G 2,4

R. Bar-Yehuda © 6 Fig 1.7 G 3,2

R. Bar-Yehuda © 7 Theorem 1.3: For every positive integers  and n, G ,n has a directed Euler circuit. Proof: (Strong Connectivity) קשירות היטב we shall show that G ,n is strongly connected. Let b 1 b 2 … b n-1 and c 1 c 2 … c n-1 be any two vertices; the directed path b 1 b 2 … b n- c 1, b 2 b 3 … b n-1 c 1 c 2, …, b n-1 c 1 c 2 … c n-1 leads from the first to the second.

R. Bar-Yehuda © 8 Theorem 1.3: For every positive integers  and n, G ,n has a directed Euler circuit. Proof (Cont…): (degrees) דרגות we have to show that d out (v) = d in (v) for each vertex v. The vertex b 1 b 2 … b n-1 is entered by edges cb 1 b 2 … b n-1, where c can be chosen in  ways, and is the start vertex of edges b 1 b 2 … b n-1 c, where again c can be chosen in  ways.

R. Bar-Yehuda © 9 Theorem 1.3: For every positive integers  and n, G ,n has a directed Euler circuit. Corollary 1.1: For every positive integers  and n there exists a de Bruijn sequence:

R. Bar-Yehuda © 10 Fig 1.5 G 2,3 001, 011, 111, 110, 101, 010, 100, 000