De Bruijn sequence
Description
Let and be integers, and let be an alphabet with letters. A de Bruijn sequence of order over is a cyclic word of length with the following property. Every word of length over occurs exactly once as a cyclic factor , with indices taken modulo . Such sequences exist for all and .
Remarks
Example: for and , the word is a de Bruijn sequence. Its eight cyclic factors of length , starting at positions to , are . These are all the binary words of length , each once.
Existence follows from graph theory. The de Bruijn graph is the directed graph whose vertices are the words of length , and in which each word is an edge from to . Each vertex has in-degree and out-degree , and the graph is strongly connected. By the directed form of Euler's theorem, it has an Eulerian circuit. Reading the last letters of the edges along this circuit gives a de Bruijn sequence.
The number of distinct de Bruijn sequences of order over letters, counted as cyclic words, is . For and this is : the words and .
Further reading
About this page
| Tag | GY8F3M39R8 |
|---|---|
| URI | m2://GY8F3M39R8 |
| Kind | object |
| Writing | W0 stub |
| MSC | 68R15, 05A05, 05C45 |
| Same as | |
| Changed | 2 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.