Skip to main content
QUICK REVIEW

[Paper Review] Weight Distributions of Hamming Codes

Dae San Kim|ArXiv.org|Oct 8, 2007
Coding theory and cryptographyComputer Science7 references4 citations
TL;DR

This paper derives a recursive formula for computing the weight distribution of $q$-ary Hamming codes $H(m,q)$ when $(m, q-1) = 1$, using the Pless power moment identity and exponential sum techniques, particularly leveraging Kloosterman sum identities. The key contribution is a closed-form recurrence that enables exact computation of weight enumerator coefficients $C_h$ for all $h \geq 1$, resolving a long-standing gap in nonbinary Hamming code weight distribution theory.

ABSTRACT

We derive a recursive formula determing the weight distribution of the [n=(q^m-1)/(q-1), n-m, 3] Hamming code H(m,q), when (m, q-1)=1. Here q is a prime power. The proof is based on Moisio's idea of using Pless power moment identity together with exponential sum techniques.

Motivation & Objective

  • To determine the weight distribution of $q$-ary Hamming codes $H(m,q)$ in the nonbinary case, where no such recursive formula was previously known.
  • To address the lack of systematic computational tools for weight distributions in nonbinary Hamming codes, especially for $q > 2$.
  • To extend Moisio’s method of using Pless power moment identity and exponential sums to derive exact weight enumerator coefficients.
  • To establish a recursive framework that computes $C_h$, the number of codewords of weight $h$, for all $h \geq 1$, under the condition $(m, q-1) = 1$.

Proposed method

  • Applies the Pless power moment identity to the dual code $H(m,q)^\perp$, which is shown to be isomorphic to the trace representation $\{ \operatorname{Tr}(a\gamma^{i(q-1)}) \}_{i=0}^{n-1}$ for $a \in \mathbb{F}_{q^m}^*$.
  • Expresses the weight of each codeword $c(a)$ in terms of exponential sums involving the trace function and additive characters.
  • Uses Theorem 8 to relate sums over $\mathbb{F}_{q^m}^*$ of $\lambda_m(\alpha a x^{q-1})$ to Kloosterman sums $K_{m-1}(N(\alpha a))$.
  • Leverages the norm map $N: \mathbb{F}_{q^m}^* \to \mathbb{F}_q^*$ and the identity $\sum_{x \in \mathbb{F}_{q^m}^*} \lambda_m(\alpha x^{q-1}) = (-1)^{m-1}(q-1)K_{m-1}(N(\alpha))$.
  • Expands the $h$-th power of the weight expression using binomial expansion and applies the Pless identity to equate moments of weights to moments of dual code weights.
  • Derives a recurrence by isolating the $C_h$ term and solving for $h! C_h$, resulting in a formula involving Stirling numbers of the second kind and binomial coefficients.

Experimental results

Research questions

  • RQ1Can a recursive formula be derived for the weight distribution of $q$-ary Hamming codes $H(m,q)$ when $q > 2$?
  • RQ2How can the Pless power moment identity be combined with exponential sum techniques to compute weight distributions in nonbinary codes?
  • RQ3What role does the condition $(m, q-1) = 1$ play in enabling the derivation of a closed-form recurrence for $C_h$?
  • RQ4Are there explicit expressions for the first few weight enumerator coefficients $C_h$ that can be computed via the derived recurrence?
  • RQ5Can the method used for binary codes be generalized to nonbinary Hamming codes using character sum identities?

Key findings

  • A recursive formula is established for $h! C_h$ in terms of $C_i$ for $i < h$, involving Stirling numbers of the second kind, binomial coefficients, and powers of $q$.
  • The formula yields explicit closed-form expressions for $C_3$ through $C_{10}$, each expressed as a rational function in $q^m$ and $q$ with integer coefficients.
  • For $C_3$, the result is $C_3 = \frac{1}{6}(q^m - 1)(-q + q^m)$, confirming that the number of weight-3 codewords grows quadratically in $q^m$.
  • For $C_4$, the expression $C_4 = \frac{1}{24}(q^m - 1)(-6q + 5q^2 + 6q^m + q^{2m} - 6q^{1+m})$ shows a quartic dependence on $q^m$.
  • The recurrence correctly produces $C_1 = C_2 = 0$, consistent with the minimum distance 3 of the Hamming code.
  • The derivation confirms that the weight distribution is fully determined by the structure of the dual code and the exponential sum identities under the condition $(m, q-1) = 1$.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.