Grid-Based Circuits from de Bruijn Sequences

Year: 2019 Authors: Karl Kattchee

Core claim

De Bruijn sequences induce grid-based circuits whose low-order cases can be classified and whose forms generate visually rich compositions.

Topics

de Bruijn sequences, grid-based design, classification, art composition

Domains

combinatorics, permutations, binary sequences, graphical paths, mathematical art, generative design, hand-drawn illustration, visual composition

Methods

classification by order, permutation rotation, complement transformation, brute-force search

Media

hand-drawn illustrations, grid diagrams, array notation, digital figures

Paper text

The text below is the locally extracted OCR/Markdown version of the paper. Raw PDF files remain local and are not published here.

Bridges 2019 Conference Proceedings

Grid-Based Circuits from de Bruijn Sequences

Karl Kattchee

Mathematics, University of Wisconsin-La Crosse, USA; kkattchee@uwlax.edu

Abstract

We define a new kind of grid-based design called a de Bruijn circuit and begin a classification scheme. The text is accompanied by hand-drawn illustrations of de Bruijn circuits, which naturally become more interesting in higher orders. We conclude with a composition based on the de Bruijn circuit forms.

Introduction

At the end of my 2018 Bridges paper “Art of de Bruijn Sequences” [2], I proposed that the permutations which arise naturally from de Bruijn sequences could be deployed in the same manner as in the 2016 paper “Combinatorial Poppies” [3], jointly authored with Craig Kaplan. This paper pursues that idea.

In Figure 1, we see an example of a combinatorial poppy together with a diagram which describes the way it is constructed. Each row of the array is a permutation of the numbers 0, 1, 2, 3, 4, 5. Each column (and forward-leaning diagonal) specifies a location on the grid. Moving left to right, we form a path through the points , , , , , etc. The first segment goes across the top row.

img-0.jpeg Figure 1: A Combinatorial Poppy

We will denote permutations of by Greek letters and write

The permutations which induced the poppies were alternating in the sense that

a _ {0} < a _ {1}, a _ {1} > a _ {2}, a _ {2} < a _ {3}, a _ {3} > a _ {4}, a _ {4} > a _ {5}, a _ {5} > a _ {6}, \text {a n d} a _ {6} > a _ {0}

and, moreover, they alternated between values above and below .

The permutations we work with in this paper arise from de Bruijn sequences. Recall that a de Bruijn sequence of order is a binary sequence of length with the property that the list of its contiguous substrings of length forms a complete list of all binary strings of length (including wraparound). In his landmark article [1], de Bruijn verified that the number of de Bruijn sequences of order (then called “ -cycles”) is

Kattchee

Since every substring of length can be interpreted as a base-two number, we can convert them to decimal form and get a permutation of , which we will call a de Bruijn permutation. For example, the string 0011 is a de Bruijn sequence of order 2 and gives rise to the permutation . It must be the only de Bruijn sequence of order 2, since in de Bruijn’s result (1). Even simpler is the string 01, the only order-1 de Bruijn sequence, whose corresponding de Bruijn permutation is simply .

Figures 2a and 2b display the closed paths which correspond to the arrays and , respectively. Since the rows are de Bruijn permutations, we call them de Bruijn arrays, and the corresponding closed paths are called de Bruijn circuits.

img-1.jpeg Figure 2: de Bruijn circuits

Note that the array describes the same de Bruijn circuit as , but if we only shift (“rotate”) the top row, there is a change in the circuit form. For example, yields the circuit in Figure 2c.

We customarily write de Bruijn arrays so that a zero appears in the lower left entry. To indicate that a de Bruijn permutation has been rotated by steps, write . For example, if , then and we can abbreviate . The reader can check that Figures 2d and 2e correspond to the arrays and .

We conclude this section with a useful definition and property:

If is a permutation of the digits , then the complement is defined by .

It is not hard to see that if is a de Bruijn permutation, then is also a de Bruijn permutation. For example, the de Bruijn permutation arises from the order-3 de Bruijn sequence 00010111. If we swap 0s and 1s, we get a new de Bruijn sequence 11101000, whose associated de Bruijn permutation is the complement , which can in turn be considered as the permutation , where .

Classification in Order One and Order Two

Since is the only de Bruijn permutation of order 1, the only arrays we need to consider are and . Both of those arrays correspond to the circuit in Figure 2a, and the order-1 case is settled. It’s just a square.

Similarly, we know that Figures 2b, 2c, 2d, and 2e comprise the full set of de Bruijn circuits of order 2, since is the only de Bruijn permutation of order 2, and we only need to consider the arrays

Grid-Based Circuits from de Bruijn Sequences

and . These four circuits are pictured in Figure 2. But, since they differ by orientation and not in structure, we really only have one de Bruijn circuit of order 2. This completes the classification in order 1 and order 2.

Classification in Order Three

To handle the order-3 case, note that there are only two de Bruijn sequences of order 3 (because ), and they are 00010111 and 00011101. The associated de Bruijn permutations are and . As noted above, they are complements of each other, up to a rotation. In particular,

A brute-force search for all possible order-3 de Bruijn circuits is feasible. Nevertheless, we claim that it is sufficient to focus our search to arrays of the form . To see why this is the case, consider an arbitrary de Bruijn circuit induced by the de Bruijn array . The reader can verify the following:

is a horizontal flip (Figure 2b Figure 2d, for example); is a vertical flip; and is a rotation.

Now, by means of one of these transformations, any de Bruijn circuit of the form , or can be converted into the form without changing the type of circuit, only its orientation. Figure 3 shows the four distinct de Bruijn circuits of that form, and the classification of order 3 is complete.

img-2.jpeg (a)

img-3.jpeg (b)

img-4.jpeg (c)

img-5.jpeg (d) Figure 3: de Bruijn circuits of order 3

Order Four

There are de Bruijn sequences of order 4, so classification in this case is a larger task, and we’ll leave that to a future project. In the meantime, note that the 16 de Bruijn permutations of order 4 organize themselves into 8 complementary pairs. For example, the two de Bruijn sequences 0000111101001011 and 0000101101001111 induce the permutations and , which are complements of each other in the sense that

Kattchee

and . The beginning of a classification of order-4 de Bruijn circuits appears in Figure 4, where the de Bruijn circuits are gathered. Those are all the distinct ones of that form. One begins to see recurring motifs in the de Bruijn circuit forms.

img-6.jpeg Figure 4: Order four de Bruijn Circuits

Order Five and Conclusion

To conclude this paper, we present an example, in Figure 5, from among the vast number of de Bruijn circuits of order 5. It is accompanied by a lively image composed of de Bruijn circuit forms, one of my first artworks based on the concept.

img-7.jpeg Figure 5: Order five example and artistic composition

img-8.jpeg

References

[1] N. G. de Bruijn. “A Combinatorial Problem.” Koninklijke Nederlandsche Akademie Van Wetenschappen, vol. 49, no. 6, 1946, pp. 758-764. [2] K. Kattchee. “Art of de Bruijn Sequences.” Bridges Conference Proceedings, Stockholm, Sweden, July 25-29, 2018, pp. 447-450. https://archive.bridgesmathart.org/2018/bridges2018-447.. [3] C. S. Kaplan and K. Kattchee. “Combinatorial Poppies.” Bridges Conference Proceedings, Jyväskylä, Finland, Aug. 9-13, 2016, pp. 111-118. http://archive.bridgesmathart.org/2016/bridges2016-111..

0 items under this folder.