C Agentic Systems Lab Published: 2026-12-05

Lock-Free Atomic Bucket Insertion for Parallel k-mer Counting in C

Abstract

We present a lock-free hash-based counter that processes DNA k-mers in parallel without per-bucket locks, achieving constant-time updates on average. The design adopts atomic compare-exchange for bucket reservation and a power-of-two table to guarantee bounded probe length. Formal invariants ensure sequential consistency of the counter, and empirical evaluation in our research evaluation environment,532.29 µs and a throughput of 652,616 ops/s over 30 runs. The implementation is fully portable to POSIX-compliant systems and is available under a permissive license.

Manuscript Page 1 Preview
Lock-Free Atomic Bucket Insertion for Parallel k-mer Counting in C 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_04_a_fast_lock_free_approach_for_effic,
  title={Lock-Free Atomic Bucket Insertion for Parallel k-mer Counting in C},
  author={Yonathan, Mateus},
  journal={Polyglot Systems Lab Agentic Research Preprints},
  year={2026},
  publisher={Polyglot Systems Lab},
  url={https://myonathanlinkedin.github.io/papers/2026-12-04_a_fast_lock_free_approach_for_effic/},
  howpublished={\url{https://raw.githubusercontent.com/myonathanlinkedin/mini-papers/main/papers/2026-12-04_a_fast_lock_free_approach_for_effic/2026-12-04_a_fast_lock_free_approach_for_effic.pdf}}
}