Re: Direct Euler Cycle and de Brujin Sequence
- From: Robby Goetschalckx <robby@xxxxxxxxxxxxxx>
- Date: Tue, 17 Oct 2006 11:23:54 +0200
eKo1 wrote:
Let G be a directed graph with vertices corresponding to all bit
strings of length n - 1. A directed edge exists from x_1 ... x_(n - 1)
to x_2 ... x_n. Show that a directed Euler cycle in G corresponds to a
de Brujin sequence.
I think this problem is bogus because I can produce a quick
counter-example for n - 1 = 2: Let G = (V, E) where V = {00, 01, 11,
10} and E = {(00, 00), (00, 01), (01, 10), (01, 11), (10, 01), (10,
00), (11, 10), (11, 11)}. Let C = (00, 00, 01, 10, 01, 11, 11, 10, 00)
be a directed Euler cycle in G. The sequence is 000001100111111000.
Note that I'm not able to find the substring 0010 in the sequence so
this sequence is not a de Brujin sequence.
Or maybe I'm just understand the problem wrong?
Yes, I think so. The sequence from your Euler cycle is 0001011100. Every
edge corresponds to adding one symbol to the back of the sequence. To
create the sequence: write the start node of your graph, and then every
symbol which corresponds to the appropriate edges.
Check if it is a De Bruijn sequence:
000,001,010,011,100,101,110,111 are all in this sequence, so it is indeed a
De Bruijn sequence of order 3.
The proof in the general case is left as an exercise to the reader :-)
--
Robby Goetschalckx
Department of Computer Science
Catholic University Leuven
Celestijnenlaan 200A
B-3001 Heverlee
Belgium
.
- Follow-Ups:
- References:
- Direct Euler Cycle and de Brujin Sequence
- From: eKo1
- Direct Euler Cycle and de Brujin Sequence
- Prev by Date: Direct Euler Cycle and de Brujin Sequence
- Next by Date: Re: Direct Euler Cycle and de Brujin Sequence
- Previous by thread: Direct Euler Cycle and de Brujin Sequence
- Next by thread: Re: Direct Euler Cycle and de Brujin Sequence
- Index(es):
Relevant Pages
|