Linear Complexity Distributions for Periodic Binary Sequences

This direction is merged into another direction: sequence predictability. Its last version stays readable and citable here.

Version 1 of 15 papers16 conceptsfrozen 2026-10-04

In stream ciphers, the unpredictability of a bitstream is often measured by its linear complexity—the length of the shortest Linear Feedback Shift Register (LFSR) capable of generating it. However, a high linear complexity is not enough for security. If changing just one or two bits drastically reduces that complexity, the sequence is "unstable" and potentially vulnerable.

To quantify this, researchers use $k$-error linear complexity, which is the minimum linear complexity achievable by flipping at most $k$ bits within one period of the sequence. Recent work by Jianqin Zhou and colleagues has focused on characterizing the exact distributions and "descent points" of this complexity for sequences with a period of $2^n$.

The Parity Symmetry of Error Thresholds

One of the most striking properties of $2^n$-periodic binary sequences is a specific parity symmetry: for a sequence with maximum linear complexity, the $k$-error complexity is often identical to the $(k+1)$-error complexity.

As Jianqin Zhou and Jun Liu demonstrate in Characterization of $2^n$-periodic binary sequences with fixed 3-error or 4-error linear complexity, this occurs whenever $k$ is odd. This happens because flipping an even number of bits preserves the odd Hamming weight required to maintain certain high-complexity states.

This symmetry simplifies the analysis of sequence stability. Instead of treating every possible number of bit flips as a unique case, researchers can group adjacent error weights (like 3 and 4 errors) into single analytical cases. This reveals that certain error thresholds do not degrade sequence predictability any further than the threshold preceding them.

Combinatorial Sieving to Avoid Overcounting

Determining the exact number of sequences that fall into a specific complexity bracket is a difficult counting problem. The challenge lies in redundancy: many different sets of bit flips (error vectors) can result in the same simplified sequence.

To solve this, Jianqin Zhou and Jun Liu employ combinatorial sieving in The 4-error linear complexity distribution for $2^n$-periodic binary sequences. This is an inclusion-exclusion process that filters out overlapping error vectors. By systematically merging base sequences of known complexity with defined error patterns and then subtracting the overlaps, they can derive exact counting functions that pass computer-verified checks, correcting errors found in earlier cryptographic literature.

Cube Theory: A Structural Perspective

While algebraic methods are standard, they can be opaque. Jianqin Zhou and Xifeng Wang introduced Cube Theory in Cube Theory and k-error Linear Complexity Profile to provide a more intuitive framework.

In Cube Theory, a sequence is decomposed into disjoint structural building blocks called "cubes." This allows researchers to visualize complexity reduction as a physical process:

  1. A sequence is a sum of these cubes.
  2. An error pattern is itself a set of components.
  3. If an error pattern matches the structure of a component in the original sequence, it "negates" or cancels that component.

This structural view makes it easier to identify descent points—the specific values of $k$ where the linear complexity drops. In On the Second Descent Points for the K-Error Linear Complexity of 2n-Periodic Binary Sequences, the authors use this theory alongside the Games-Chan algorithm to characterize the "multi-step" profile of a sequence, showing exactly how many errors are needed to trigger successive collapses in complexity. This provides a constructive way to assess the cryptographic strength of a keystream beyond a single static value.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_linear_complexity_distributions_for_peri_f98b825f,
  title = {Linear Complexity Distributions for Periodic Binary Sequences},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/linear-complexity-distributions-for-periodic-binary-sequences/rdr_f98b825f002e40a1b45c41d0588c2494},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-05},
}

This exact version (version 1, frozen text):

@misc{lacuna_linear_complexity_distributions_for_peri_f98b825f_v1,
  title = {Linear Complexity Distributions for Periodic Binary Sequences},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/linear-complexity-distributions-for-periodic-binary-sequences/rdr_f98b825f002e40a1b45c41d0588c2494/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-05},
}