[Paper Review] Counting De Bruijn sequences as perturbations of linear recursions
This paper derives a generating function for counting binary De Bruijn sequences that differ from a given linear recursion in exactly k positions, using a weighted Matrix Tree Theorem and a correspondence between in-trees and Hamiltonian paths in the De Bruijn graph. The key result expresses the generating function as a product over cycles in the state space, with each cycle contributing a factor of $ p_k(y) = (1+y)^k - (1-y)^k $, generalizing Flye Sainte-Marie's 1894 count of De Bruijn sequences.
Every binary De~Bruijn sequence of order n satisfies a recursion 0=x_n+x_0+g(x_{n-1}, ..., x_1). Given a function f on (n-1) bits, let N(f; r) be the number of functions generating a De Bruijn sequence of order n which are obtained by changing r locations in the truth table of f. We prove a formula for the generating function \sum_r N(\ell; r) y^r when \ell is a linear function. The proof uses a weighted Matrix Tree Theorem and a description of the in-trees (or rooted trees) in the n-bit De Bruijn graph as perturbations of the Hamiltonian paths in the same graph.
Motivation & Objective
- To generalize Flye Sainte-Marie's 1894 count of De Bruijn sequences by refining it to count sequences differing in exactly k positions from a given linear recursion.
- To develop a generating function $ G(f;y) = \sum_k N(f;k) y^k $ that enumerates De Bruijn sequences obtainable by flipping k bits in the truth table of a linear function $ f $.
- To establish a connection between the structure of in-trees (rooted spanning trees) in the $ n $-bit De Bruijn graph and Hamiltonian paths, enabling enumeration via spectral methods.
- To prove that for a linear function $ \ell $, the generating function factors into a product over primitive necklace cycles in the state space, with each cycle contributing a term $ p_k(y) = (1+y)^k - (1-y)^k $.
Proposed method
- Uses a weighted adjacency matrix $ W_{\ell,n} $ on the $ n $-bit De Bruijn graph, where edges are weighted by $ 1 $ or $ y $, depending on whether they agree with the linear recursion or not.
- Applies a weighted Matrix Tree Theorem to relate the generating function to the characteristic polynomial of $ W_{\ell,n} $, leveraging the fact that row and column sums of $ (1+y)I - W_{\ell,n} $ are zero.
- Introduces a character-based decomposition of the state space using $ X_\alpha = \sum_x (-1)^{\alpha \cdot x} [x] $, which diagonalizes the action of $ W_{\ell,n} $.
- Identifies eigenspaces of $ W_{\ell,n} $ via Galois cycles in the character space, showing that each cycle of length $ r $ with $ k $ ones in the first bit contributes a factor $ z^r - (1+y)^{r-k}(1-y)^k $ to the characteristic polynomial.
- Maps Galois cycles in the character space to cycles in the state space via linear functionals, particularly $ \beta_{n-1} $, to equate cycle structures and derive the final product formula.
- Uses the correspondence between in-trees and Hamiltonian paths in the De Bruijn graph to justify the use of the Matrix Tree Theorem in the spectral enumeration.
Experimental results
Research questions
- RQ1How many De Bruijn sequences of order $ n $ can be obtained by flipping exactly $ k $ entries in the truth table of a given linear function $ \ell $?
- RQ2Can the generating function $ G(\ell;y) = \sum_k N(\ell;k) y^k $ for such perturbations be expressed in closed form for linear $ \ell $?
- RQ3What is the algebraic structure of the weighted adjacency matrix $ W_{\ell,n} $ that encodes the perturbation of a linear recursion?
- RQ4How do the cycles in the state space of the linear recursion relate to the eigenvalues of $ W_{\ell,n} $, and how can this be used to compute the generating function?
- RQ5Is there a uniform formula for $ G(\ell;y) $ that depends only on the cycle decomposition of the linear recursion in the De Bruijn graph?
Key findings
- For any linear function $ \ell: \mathbb{F}_2^{n-1} \to \mathbb{F}_2 $ with zero constant term, the generating function is $ G(\ell;y) = 2^{-n} \prod_{{\bf c} \in C(\ell)} p_{d({\bf c})}(y) $, where $ p_k(y) = (1+y)^k - (1-y)^k $ and $ d({\bf c}) $ is the number of ones in the primitive necklace class $ {\bf c} $.
- Evaluating the generating function at $ y=1 $ recovers Flye Sainte-Marie's classical result: the total number of De Bruijn sequences of order $ n $ is $ 2^{2^{n-1} - n} $.
- When $ \ell $ generates a $ (2^n - 1) $-cycle without $ n $ consecutive zeros, the formula reduces to $ G(\ell;y) = 2^{-n} \left( (1+y)^{2^{n-1}} - (1-y)^{2^{n-1}} \right) $, confirming a result of Fryers (2015).
- For the zero function $ 0_n $, the generating function is $ G(0_n;y) = 2^{-n} \prod_i p_i(y)^{e_{n,i}} $, where $ e_{n,i} = \sum_{d|n} L(d,i) $, and $ L(d,i) $ counts primitive necklaces of length $ d $ with $ i $ ones.
- The method establishes a spectral correspondence between the Galois cycles in the character space and the state space, showing that the eigenvalues of $ W_{\ell,n} $ are determined by cycle lengths and the number of ones in the first bit of the cycle.
- The proof confirms a conjecture by the second author based on experimental data and random permutation analogies, and generalizes earlier results on $ N(\ell;3) $ by Helleseth and Kløve.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.