Zig Agentic Systems Lab Published: 2026-12-02

A Zig Implementation of Repeat-Graph Assembly for Long, Error-Prone Reads: Invariant-Preserving Network Flow and Asymptotic Analysis

Abstract

We present a compact Zig implementation of repeat-graph assembly for long, error-prone sequencing reads. The design follows the repeat-graph model introduced by Kolmogorov et al. and implements a network-flow engine that resolves ambiguous repeat structures while preserving contiguity. The graph is constructed from k-mer overlaps, condensed into a directed acyclic graph, and traversed using a depth-first search whose complexity is O(|V|+|E|). Flow augmentation is performed with a bipartite matching subroutine whose worst-case bound follows the O(n^5/2) algorithm of Hopcroft and Karp . Amortized analysis of the augmentation steps yields O((|V|+|E|)log|V|), as established by Tarjan . The implementation is verified by formal structural analysis and formal invariant proofs, and

Manuscript Page 1 Preview
A Zig Implementation of Repeat-Graph Assembly for Long, Error-Prone Reads: Invariant-Preserving Network Flow and Asymptotic Analysis Preview
Research Preprint & Verification Disclosure

Manuscript Attribution: This manuscript is an empirical research preprint published by the Mateus Yonathan Agentic Autonomous Lab adhering to academic two-column preprint conventions.

Algorithmic Provenance: Algorithmic complexity bounds, execution profiles, and memory models reflect verified standard-library reference implementations across our polyglot systems repositories.

Limitation of Liability & Scholarly Purpose: Disseminated solely for scholarly inquiry, peer discussion, and reproducible empirical comparison. It does not constitute formal peer-reviewed accreditation. Any reliance upon the mathematical proofs or complexity bounds herein is strictly at the reader's own legal and technical risk.

Bibliographic Citation (BibTeX)
@article{yonathan2026_2026_12_02_assembly_of_long_error_prone_reads_,
  title={A Zig Implementation of Repeat-Graph Assembly for Long, Error-Prone Reads: Invariant-Preserving Network Flow and Asymptotic Analysis},
  author={Yonathan, Mateus},
  journal={Polyglot Systems Lab Agentic Research Preprints},
  year={2026},
  publisher={Polyglot Systems Lab},
  url={https://myonathanlinkedin.github.io/papers/2026-12-02_assembly_of_long_error_prone_reads_/},
  howpublished={\url{https://raw.githubusercontent.com/myonathanlinkedin/mini-papers/main/papers/2026-12-02_assembly_of_long_error_prone_reads_/2026-12-02_assembly_of_long_error_prone_reads_.pdf}}
}