English

An algorithm for computing generalized Hamming weights and the Sage package GHWs

Information Theory 2025-04-07 v2 math.IT

Abstract

We generalize the Brouwer-Zimmermann algorithm, which is the most efficient general algorithm for computing the minimum distance of a random linear code, to the case of generalized Hamming weights. We also adapt this algorithm to compute the relative generalized Hamming weights of a nested pair of linear codes. In the package GHWs we provide an implementation of this algorithm in Sage, as well as several other utilities for working with generalized Hamming weights. With this implementation, we show that the proposed algorithm is faster than the naive approach of computing the generalized Hamming weights using the definition.

Cite

@article{arxiv.2503.17764,
  title  = {An algorithm for computing generalized Hamming weights and the Sage package GHWs},
  author = {Rodrigo San-José},
  journal= {arXiv preprint arXiv:2503.17764},
  year   = {2025}
}

Comments

For the GitHub repository, see https://github.com/RodrigoSanJose/GHWs

R2 v1 2026-06-28T22:30:52.663Z