Submitted:
25 April 2025
Posted:
29 April 2025
Read the latest preprint version here
Abstract

Keywords:
1. Introduction
2. Related Work
2.1. Evolution and Recent Advances in Rank Metric and MRD Code Constructions
2.2. Heuristic and Automated Searches for MRD Codes
3. Algebraic Background
3.1. Rank Metric
3.2. Singleton Bound and Singleton-Like Bound
3.3. Maximum Rank-Distance (MRD) Codes
3.4. Gabidulin Codes
4. Theoretical Framework
4.1. Particle Swarm Optimisation
4.2. Problem Formulation
4.3. Objective Function
4.4. Search Space and Constraints
4.5. Representation and Initialisation
4.6. PSO Algorithm for MRD Code Construction
5. Proposed PSO-Guided Construction Method
5.1. Initialisation
- Fix a normal basis of .
- Generate a random array over .
- Map each m-tuple of -coefficients to the field element .
- If the resulting matrix has full -rank, accept; otherwise repeat.
5.2. Fitness Evaluation
- maximise itself;
- subject to (a), maximise the second–smallest rank (a proxy for the second generalised rank weight);
- subject to (a)–(b), minimise the Hamming weight of the generator (promoting sparse descriptions).
5.3. Velocity and Position Update
5.4. Constraint Handling
- Penalty. If we subtract from the fitness, with an adaptive penalty weight that grows once every ten iterations.
- Repair. After every position update we test . If we replace the shortest set of dependent rows with random full-rank rows, repeating until full rank is restored.
5.5. Termination Criteria
- the iteration counter reaches ;
- a particle achieves and all secondary criteria (a)–(c) in the fitness hierarchy;
- the global-best score has not improved for consecutive iterations, where .
5.6. Algorithm Summary
| Algorithm 1 PSO -Guided MRD Code Construction |
|
6. Discussion
6.1. Advantages of the PSO Approach
- Generality: The algorithm is applicable to a broad range of MRD parameters, including regimes beyond classical Gabidulin families.
- Scalability: Larger dimensions can be tackled by increasing the swarm size or by tuning the fitness-evaluation schedule.
- Adaptability: Domain insight—e.g. seeding particles with Gabidulin-like structures—can be injected seamlessly to accelerate convergence.
- Exploratory power: The population nature of PSO balances exploration and exploitation, a desirable trait for navigating highly irregular search landscapes.
6.2. Limitations and Challenges
- Curse of dimensionality: The search space grows exponentially with the generator-matrix size, making convergence slower for large instances.
- Expensive fitness: Computing the minimum rank distance for every particle is costly, especially when k or m is large.
- No optimality guarantee: PSO finds high-quality—but not provably optimal—solutions; post-processing heuristics may be required.
- Initialization sensitivity: Swarm quality depends heavily on the diversity and structure of the initial population.
6.3. Future Work
- Hybrid heuristics: Combine PSO with algebraic insights or other metaheuristics (e.g., genetic algorithms) to improve robustness.
- Richer fitness: Incorporate generalised rank weights or decoding complexity into the objective.
- Parallelisation: Leverage GPUs and distributed architectures to accelerate particle updates and fitness checks.
- Applications: Deploy the discovered codes in network coding, cryptography, and distributed storage to assess real-world gains.
- Quantum computation: Investigate quantum-inspired PSO variants and explore how MRD codes can support quantum error-correction or other quantum-information tasks.
7. Conclusion
References
- Delsarte, P. Bilinear forms over a finite field, with applications to coding theory. Journal of Combinatorial Theory, Series A 1978, 25, 226–241. [CrossRef]
- Gabidulin, E.M. Theory of codes with maximum rank distance. Problems of Information Transmission 1985, 21, 1–12.
- Gabidulin, E.M. Rank Codes; TUM.University Press: Technical University of Munich, Arcisstrasse 21, 80333 Munich, 2021. Translated by Vladimir Sidorenko. Layout design, typesetting, and cover design by Vladimir Sidorenko and Caroline Ennemoser. [CrossRef]
- Sheekey, J. A new family of linear maximum rank distance codes. Advances in Mathematics of Communications 2016, 10, 475–488. [CrossRef]
- Bartoli, D.; Giulietti, M.; Marino, G.; Polverino, O. Maximum Scattered Linear Sets and Complete Caps in Galois Spaces. Combinatorica 2015, 38, 255–278. [CrossRef]
- Alfarano, G.N.; Neri, A.; Zullo, F. Maximum Flag-Rank Distance Codes. arXiv preprint arXiv:2303.16653 2023. [CrossRef]
- Kennedy, J.; Eberhart, R. Particle swarm optimization. In Proceedings of the Proceedings of ICNN’95-International Conference on Neural Networks. IEEE, 1995, Vol. 4, pp. 1942–1948. [CrossRef]
- van Zyl, J.P.; Engelbrecht, A.P. Set-Based Particle Swarm Optimisation: A Review. Mathematics 2023, 11, 2980. [CrossRef]
- Hamming, R.W. Error Detecting and Error Correcting Codes. The Bell System Technical Journal 1950, 29, 147–160. [CrossRef]
- Kshevetskiy, A.; Gabidulin, E. The new construction of rank codes. In Proceedings of the Proceedings. International Symposium on Information Theory, 2005. ISIT 2005., 2005, pp. 2105–2108. [CrossRef]
- Csajbók, B.; Marino, G.; Polverino, O.; Zullo, F. Maximum scattered linear sets and MRD-codes. Journal of Algebraic Combinatorics 2017, 46, 193–213. [CrossRef]
- Bartoli, D.; Csajbók, B.; Montanucci, M. On a conjecture about maximum scattered subspaces of q6 × q6. arXiv preprint 2021. [CrossRef]
- Sheekey, J. MRD Codes: Constructions and Connections. In Combinatorics and Finite Fields: Difference Sets, Polynomials, Pseudorandomness and Applications; Schmidt, K.U.; Winterhof, A., Eds.; Radon Series on Computational and Applied Mathematics, De Gruyter, 2019. [CrossRef]
- Csajbók, B.; Marino, G.; Polverino, O.; Zhou, Y. MRD codes with maximum idealizers. Discrete Mathematics 2020, 343, 111985. [CrossRef]
- Cuéllar, M.P.; Gómez-Torrecillas, J.; Lobillo, F.J.; Navarro, G. Genetic algorithms with permutation-based representation for computing the distance of linear codes. arXiv preprint 2020. [CrossRef]
- Azouaoui, A.; Belkasmi, M. Efficient Dual Domain Decoding of Linear Block Codes Using Genetic Algorithms. Journal of Electrical and Computer Engineering 2012. [CrossRef]
- Lunardon, G.; Trombetti, R.; Zhou, Y. Generalized twisted Gabidulin codes. Journal of Combinatorial Theory, Series A 2018, 159, 79–106. [CrossRef]
- Hostetter, M. Galois: A performant NumPy extension for Galois fields, 2020. GitHub repository containing implementation and documentation. Available at https://github.com/mhostetter/galois.
- Dehghani, B. PSO-Guided Construction of MRD Codes in Rank Metric, 2025. GitHub repository containing implementation and documentation. Available at https://github.com/behnamde/pso_mrd.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).