TOPICS
Search

de Bruijn Torus


A de Bruijn torus is a rectangular array over a finite alphabet, with rows and columns read cyclically, in which each possible m×n array over that alphabet occurs exactly once as a contiguous window (Kreitzer et al. 2024). Reading past the last row or column continues at the first, so opposite boundaries are identified as on a torus. This is a two-dimensional generalization of a de Bruijn sequence.

For an alphabet of size q, an R×C de Bruijn torus with m×n windows necessarily satisfies

 RC=q^(mn),

since there is one window starting at each position and q^(mn) possible windows.

For example, the binary array

 [1 0 1 1; 1 0 0 0; 0 0 0 1; 1 1 0 1]

contains all 16 possible 2×2 binary windows exactly once when read with wraparound (Kreitzer et al. 2024).


See also

de Bruijn Sequence, Torus

Explore with Wolfram|Alpha

References

Kreitzer, M.; Nica, M.; and Pereira, R. "Using Alternating de Bruijn Sequences to Construct de Bruijn Tori." Des. Codes Cryptogr. 92, 1439-1454, 2024. https://doi.org/10.1007/s10623-023-01351-0.

Cite this as:

Weisstein, Eric W. "de Bruijn Torus." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/deBruijnTorus.html

Subject classifications