De Bruijn sequences 陳柏澍 Novembers Each of the segments is one of two types, denoted by 0 and 1. Any four consecutive segments uniquely determine.

Slides:



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

Advanced Topics in Algorithms and Data Structures
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,
8.3 Representing Relations Connection Matrices Let R be a relation from A = {a 1, a 2,..., a m } to B = {b 1, b 2,..., b n }. Definition: A n m  n connection.
Walks, Paths and Circuits Walks, Paths and Circuits Sanjay Jain, Lecturer, School of Computing.
De Bruijn sequences Rotating drum problem:
Graph-02.
Introduction to Graphs
MCA 520: Graph Theory Instructor Neelima Gupta
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.
GOLOMB RULERS AND GRACEFUL GRAPHS
Representing Relations Using Matrices
DAG Warm-Up Problem. McNally and fellow guard Brandyn Curry, who combined for 26 second-half points, came up big for Harvard throughout the final frame.
Applied Discrete Mathematics Week 12: Trees
R. Bar-Yehuda © 1 קומבינטוריקה למדעי - המחשב – הרצאה # DE BRUIJN SEQUENCES מבוסס על הספר : 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.
Introduction to Graphs
Graphs and Trees This handout: Trees Minimum Spanning Tree Problem.
Is the following graph Hamiltonian- connected from vertex v? a). Yes b). No c). I have absolutely no idea v.
CS5371 Theory of Computation Lecture 1: Mathematics Review I (Basic Terminology)
Chapter 4 Graphs.
MATH 310, FALL 2003 (Combinatorial Problem Solving) Lecture 6, Friday, September 12.
Let us switch to a new topic:
9.2 Graph Terminology and Special Types Graphs
Summing degree sequences work out degree sequence, and sum.
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,
Chapter 2 Graph Algorithms.
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.
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.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 9 (Part 2): Graphs  Graph Terminology (9.2)
Chapter 1 Fundamental Concepts II Pao-Lien Lai 1.
1 CS104 : Discrete Structures Chapter V Graph Theory.
Based on slides by Y. Peng University of Maryland
 Rooted tree and binary tree  Theorem 5.19: A full binary tree with t leaves contains i=t-1 internal vertices.
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.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Chapter 5 Graphs  the puzzle of the seven bridge in the Königsberg,  on the Pregel.
Math 3121 Abstract Algebra I Lecture 7: Finish Section 7 Sections 8.
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
 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.
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.
1) Find and label the degree of each vertex in the graph.
 2004 SDU 1 Lecture5-Strongly Connected Components.
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
COMPSCI 102 Introduction to Discrete Mathematics.
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.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 10.
Math 3121 Abstract Algebra I Lecture 6 Midterm back over+Section 7.
Trees.
37TH ANNUAL AMATYC CONFERENCE A Modern Existence Proof Through Graphs
Applied Discrete Mathematics Week 14: Trees
Graphs: Definitions and Basic Properties
Chapter 9 (Part 2): Graphs
Basic Concepts Graphs For more notes and topics visit:
Based on slides by Y. Peng University of Maryland
Depth Estimation via Sampling
Lecture 15: Graph Theory II
Relations (sections 7.1 – 7.5)
Connectivity Section 10.4.
Walks, Paths, and Circuits
Trees L Al-zaid Math1101.
Trees 11.1 Introduction to Trees Dr. Halimah Alshehri.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
GRAPHS Lecture 17 CS2110 Spring 2018.
Applied Combinatorics, 4th Ed. Alan Tucker
Warm Up – 3/17 - Monday A) List the set of vertices.
Applied Discrete Mathematics Week 13: Graphs
Based on slides by Y. Peng University of Maryland
Heaps Chapter 6 Section 6.9.
Locality In Distributed Graph Algorithms
Presentation transcript:

De Bruijn sequences 陳柏澍 Novembers 2005

Each of the segments is one of two types, denoted by 0 and 1. Any four consecutive segments uniquely determine the position of the drum. Rotating drum problem

Rotating drum problem The problem above means that the 16 possible quadruples of consecutive 0 ’ s and 1 ’ s on the drum should be the binary representations of the integers 0 to 15 ( in other words, all distinct ).

Rotating drum problem The first, can this be done ? The second, if yes, in how many different ways ?

Rotating drum problem Both questions were treated by N. G. de Bruijn ( 1946 ) and for this reason the graphs described later and the corresponding circular sequence are often called De Bruijn graphs and De Bruijn sequences, respectively.

Rotating drum problem Consider a diagraph by taking all 3-bit binary words as vertices and joining the vertex by a directed edge to and. The arc is labeled.

Rotating drum problem

Rotating drum problem Clearly, the graph is strong connected and every vertex has in-degree 2 and out-degree 2. So the graph is Eulerian. The Eulerian circuit with specified edge label forms the circular arrangement we desired.

Rotating drum problem De Bruijn sequence : Such a closed path is also called a complete cycle. De Bruijn graph

A cyclic sequence is called De Bruijn sequence if following two properties are satisfied : ( 1 ) ( 2 ) distinct n-dim vectors Example : De Bruijn sequence

De Bruijn graph De Bruijn graph is a weighted diagraph that satisfies following two properties : ( 1 ) ( 2 ) Connecting to with the directed edge having the weight

De Bruijn graph Lemma 1 : is Eulerian. Proof : Clearly, is strong connected and. Thus, it ’ s Eulerian. Lemma 2 : All weights in are all distinct. Proof : Trivial from the definition.

De Bruijn sequence Theorem 1 : De Bruijn sequence exists. Proof : By Lemma 1, there exists a Eulerian circuit C in. Suppose C passes through edges. Suppose the weight of each edge is.

De Bruijn sequence Let, thus is the desired De Bruijn sequence. It can be easily check that any n consecutive segments of the sequence above maps to the weight of the unique edge. By Lemma2, they are all distinct.

Doubled graph of De Bruijn graph Let De Bruijn graph. Define the doubled graph of as follows : ( 1 ) each edge of corresponds to a vertex of.

Doubled graph of De Bruijn graph

Clearly,. Example :

2-in 2-out graph 2-in 2-out graph is the diagraph with in- degree 2 and out-degree 2 for very vertex. Clearly, and are both 2-in 2-out graph.

How many different ways Theorem 2 : Let be a 2-in 2-out graph on vertices with complete cycles. Then has complete cycles.

How many different ways Proof : Induction on ( a ) If then has one vertex and two loops. Then which has one complete cycle

How many different ways

Example : 2 A

How many different ways

We just treat the third class here, the other two are similar

How many different ways