Computation data
A-Bruijn wave–particle comparison
The A-Bruijn framework
An A-Bruijn graph (Pevzner) generalizes the de Bruijn construction: build the standard path graph of k-mers, then glue vertices according to an arbitrary equivalence relation A. Different choices of A give different backbone/defect splits.
| A | Equivalence | Natural for |
|---|---|---|
| A1 | Identity (standard de Bruijn) | Baseline |
| A2 | Nerode (same continuation distribution) | Language, code |
| A3 | Reverse complement (ACGT ↔ TGCA) | DNA |
| A4 | Frequency class (log₂ count bins) | Any (coarse) |
| A5 | Modular hash (mod 7) | Random baseline |
English dictionary (5 KB, D = 2)
| A | |V| | |E| | Harm | Coupling | Gap % |
|---|---|---|---|---|---|
| A1: Identity | 397 | 1112 | 716 | 0.858 | 20.3 |
| A2: Nerode | 197 | 903 | 707 | 0.911 | 49.5 |
| A3: Reverse complement | 323 | 1112 | 790 | 0.893 | 18.4 |
| A4: Frequency class | 8 | 59 | 52 | 0.934 | 16.5 |
| A5: Modular hash | 7 | 49 | 43 | 0.929 | 35.0 |
Nerode compression (A2) halves the vertex count (397 → 197) and more than doubles the spectral gap (20% → 50%). After compressing shared continuations, the cycle interaction concentrates onto fewer, stronger modes.
Synthetic DNA (5 KB, D = 2)
| A | |V| | |E| | Harm | Coupling | Gap % |
|---|---|---|---|---|---|
| A1: Identity | 16 | 64 | 49 | 0.865 | 0.5 |
| A2: Nerode | 16 | 64 | 49 | 0.865 | 0.5 |
| A3: Reverse complement | 10 | 58 | 49 | 0.926 | 4.2 |
| A5: Modular hash | 5 | 23 | 19 | 0.899 | 4.7 |
Nerode does nothing on DNA (A2 = A1): every dinucleotide already has a unique continuation distribution in a 4-letter alphabet. Reverse complement (A3) is the natural compression for DNA, collapsing 16 dinucleotides to 10 and giving the highest coupling (0.926).
N² ratio comparison
| Domain | N² ratio (D=2→3) |
|---|---|
| English (A1: raw) | 0.039 |
| DNA (A1: raw) | 0.082 |
DNA has higher N² (less nilpotent) because the 4-letter alphabet creates near-complete graphs at low depth. Both are well below 1 — approximate nilpotency holds across domains.
Key findings
The doctrine, restated
Connection to genome assembly
Contracting maximal nonbranching paths changes the graph representation while retaining junctions. In the synthetic repeat experiment on this page the resulting graph can be compared by degree counts and energy fractions. Assigning a cycle to a specific repeat or variant in a real sample would require independent sequence evidence.
For a finite directed graph with edges, an Euler circuit exists when all non-isolated vertices are connected in the underlying undirected graph and each has equal in- and out-degree. An open Euler trail allows exactly one start and one end with opposite degree imbalances of one. A directed cycle is already an Euler circuit and supports a nonzero harmonic circulation. The harmonic fraction therefore measures the chosen edge field, rather than certifying assembly or uniqueness.
Reproducibility
research/tlc/abruijn_debruijn.py and research/tlc/genome_debruijn.py. Synthetic DNA generated with controlled repeat structure. English data from /usr/share/dict/words. All scripts accept corpus path and parameters as arguments.Cite this page
Richard Hoekstra. A-Bruijn wave–particle comparison. https://richardhoekstra.nl/data/abruijn-comparison.html