An Algorithm for Computing Generalized Hamming Weights and the Sage Package <tt>GHWs</tt>
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.
Authors
- Rodrigo San–José (ORCID: https://orcid.org/0000-0002-0944-7584)
Institutions
- Universidad de Valladolid (ES)
Publication Details
- Journal
- ACM Transactions on Mathematical Software
- Published
- 2025-10-27
- DOI
- https://doi.org/10.1145/3773284
- Primary Topic
- Coding theory and cryptography
- Type
- article
- Field-Weighted Citation Impact
- 0.00