Submitted:
09 April 2025
Posted:
10 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 Codes
3.4. Gabidulin Codes
3.5. Twisted Gabidulin Codes
3.6. Generalized Gabidulin Codes
3.7. Connections to Algebraic Structures
4. Theoretical Framework
4.1. Particle Swarm Optimization
4.2. Problem Formulation
4.3. Objective Function
4.4. Search Space and Constraints
4.5. Representation and Initialization
4.6. PSO Algorithm for MRD Code Construction
5. Proposed PSO-Guided Construction Method
5.1. Initialization
5.2. Fitness Evaluation
5.3. Velocity and Position Update
5.4. Constraint Handling
5.5. Termination Criteria
5.6. Algorithm Summary
| Algorithm 1:PSO-Guided MRD Code Construction |
|
6. Discussion
6.1. Advantages of the PSO Approach
- Generality: PSO can be applied to a wide range of MRD code parameters, including those beyond the reach of classical constructions like Gabidulin codes.
- Scalability: The algorithm can be scaled to higher dimensions by increasing the particle population or adjusting the fitness evaluation mechanism.
- Adaptability: By incorporating domain-specific knowledge (e.g., initializing particles with Gabidulin-like structures), the search can be accelerated.
- Exploratory Power: PSO’s population-based approach provides a balance between exploration and exploitation, making it suitable for traversing complex search spaces.
6.2. Limitations and Challenges
- High Dimensionality: The search space for MRD codes grows exponentially with the size of the generator matrix, posing a challenge for convergence.
- Fitness Evaluation Cost: Computing the rank distance for each particle is computationally expensive, especially in high-dimensional settings.
- Lack of Guarantees: While PSO is effective in finding approximate solutions, it does not guarantee optimality. Additional heuristics may be required to refine solutions.
- Sensitivity to Initialization: The quality of the initial population can significantly influence the convergence speed and final solution quality.
6.3. Future Work
- Hybrid Algorithms: Combining PSO with algebraic techniques or other metaheuristics (e.g., Genetic Algorithms) could enhance search capabilities.
- Improved Fitness Functions: Designing more effective fitness functions that incorporate generalized rank weights or other desired properties.
- Parallelization: Exploiting parallel computing architectures to improve scalability and reduce computation time.
- Applications: Applying the proposed approach to practical scenarios such as network coding, cryptography, or distributed storage systems.
7. Conclusions
References
- Delsarte, P. Bilinear forms over a finite field, with applications to coding theory. Journal of Combinatorial Theory, Series A 1978, 25, 226–241. [Google Scholar] [CrossRef]
- Gabidulin, E.M. Theory of codes with maximum rank distance. Problems of Information Transmission 1985, 21, 1–12. [Google Scholar]
- Gabidulin, E.M. Rank Codes; TUM.University Press: Technical University of Munich, Arcisstrasse 21, 80333 Munich, 2021. [Google Scholar] [CrossRef]
- Sheekey, J. A new family of linear maximum rank distance codes. Advances in Mathematics of Communications 2016, 10, 475–488. [Google Scholar] [CrossRef]
- Bartoli, D.; Giulietti, M.; Marino, G.; Polverino, O. Maximum Scattered Linear Sets and Complete Caps in Galois Spaces. Combinatorica 2015, 38, 255–278. [Google Scholar] [CrossRef]
- Alfarano, G.N.; Neri, A.; Zullo, F. Maximum Flag-Rank Distance Codes. arXiv preprint arXiv:2303.16653, 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. [CrossRef]
- Bartoli, D.; Csajbók, B.; Montanucci, M. On a conjecture about maximum scattered subspaces of Fq6×Fq6. arXiv preprint 2021. [Google Scholar] [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. [Google Scholar] [CrossRef]
- Azouaoui, A.; Belkasmi, M. Efficient Dual Domain Decoding of Linear Block Codes Using Genetic Algorithms. Journal of Electrical and Computer Engineering 2012. [Google Scholar] [CrossRef]
- van Zyl, J.P.; Engelbrecht, A.P. Set-Based Particle Swarm Optimisation: A Review. Mathematics 2023, 11, 2980. [Google Scholar] [CrossRef]
- Lunardon, G.; Trombetti, R.; Zhou, Y. Generalized twisted Gabidulin codes. Journal of Combinatorial Theory, Series A 2018, 159, 79–106. [Google Scholar] [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. [Google Scholar] [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]
- Hamming, R.W. Error Detecting and Error Correcting Codes. The Bell System Technical Journal 1950, 29, 147–160. [Google Scholar] [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/).