English

Implementing Basic Arithmetic in $\mathbb{F}_p$ via $\mathbb{F}_2$, and Its Application for Computing the Hamming Distance of Linear Codes

Information Theory 2026-04-01 v1 math.IT

Abstract

We present a new general method for performing basic arithmetic in the finite field~Fp\mathbb{F}_p for any prime p>2p>2 by using traditional binary operations over~F2\mathbb{F}_2. Our new approach is efficient and competitive with current state-of-art methods. We apply our new arithmetic method to the computation of the minimum Hamming distance of random linear codes for the fields F3\mathbb{F}_3 and F7\mathbb{F}_7. Our new arithmetic method allows to apply new techniques such as the isometric addition that accelerate the computation of the Hamming distance. We have developed implementations in the C programming language for computing the Hamming distance that clearly outperform both state-of-art licensed software and open-source software such as \textsc{Magma} and \textsc{GAP}/\textsc{Guava} on single-core processors, multicore processors, and shared-memory multiprocessors.

Keywords

Cite

@article{arxiv.2603.29942,
  title  = {Implementing Basic Arithmetic in $\mathbb{F}_p$ via $\mathbb{F}_2$, and Its Application for Computing the Hamming Distance of Linear Codes},
  author = {Fernando Hernando and Gregorio Quintana-Ortí},
  journal= {arXiv preprint arXiv:2603.29942},
  year   = {2026}
}

Comments

25 pages, 7 figures, and 5 tables

R2 v1 2026-07-01T11:46:37.275Z