Implementing Basic Arithmetic in Fp via F2, and Its Application for Computing the Hamming Distance of Linear Codes

Abstract

We present a new general method for performing basic arithmetic in the finite field~Fp for any prime p>2 by using traditional binary operations over~F2. 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 and F7. 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 Magma and GAP/Guava on single-core processors, multicore processors, and shared-memory multiprocessors.

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…