Computational complexity of swarm-based algorithms: a detailed analysis
María-Luisa Pérez-Delgado , Jesús-Ángel Román-Gallego
AIMS Mathematics ›› 2025, Vol. 10 ›› Issue (7) : 15539 -15587.
In recent years, swarm-based algorithms have been applied to numerous optimization problems. These algorithms use a set or population of solutions that are updated in an iterative process to obtain an approximate solution to the problem. Many articles use these methods to solve complex problems, but do not include information about how time-consuming the methods are. On the other hand, the literature on swarm-based algorithms does not usually include the analysis of computational complexity of the algorithms. The structure of these algorithms makes them time-consuming, so it is essential to know that cost to assess whether it is appropriate to apply them. This article aims to fill the gap by showing a detailed analysis of the computational complexity of a set of 10 popular swarm-based algorithms (particle swarm optimization, shuffled-frog leaping algorithm, artificial bee colony, firefly algorithm, gravitational search, cuckoo search, bat algorithm, grey wolf optimization, chicken swarm optimization, and whale optimization). The operations associated with each method are described using a homogeneous notation, and then the computational complexity is analyzed. Furthermore, the methods are applied to 20 problems, and statistical tests are performed on the results. Although the algorithms have a common basic structure, it is observed that the computational cost is not the same for all of them. Furthermore, the algorithms that consume the most time are not always the ones that generate the best results, so it is advisable to take this information into account before choosing a specific algorithm to solve a complex problem.
swarm-based method / computational complexity / optimization / heuristic
| [1] |
|
| [2] |
A. E. Hassanien, E. Emary, Swarm intelligence: principles, advances, and applications, Boca Raton: CRC Press, 2018. https://doi.org/10.1201/9781315222455 |
| [3] |
Bilal, M. Pant, H. Zaheer, L. Garcia-Hernandez, A. Abraham, Differential evolution: a review of more than two decades of research, Eng. Appl. Artif. Intel., 90 (2020), 103479. https://doi.org/10.1016/j.engappai.2020.103479 |
| [4] |
A. Chakraborty, A. K. Kar, Swarm intelligence: a review of algorithms, In: Nature-inspired computing and optimization, Cham: Springer, 2017,475–494. https://doi.org/10.1007/978-3-319-50920-4_19 |
| [5] |
|
| [6] |
|
| [7] |
|
| [8] |
M. Guerrero-Luis, F. Valdez, O. Castillo, A review on the cuckoo search algorithm, In: Fuzzy logic hybrid extensions of neural and optimization algorithms: theory and applications, Cham: Springer, 2021,113–124. https://doi.org/10.1007/978-3-030-68776-2_7 |
| [9] |
|
| [10] |
|
| [11] |
J. Kennedy, R. Eberhart, Particle swarm optimization, In: Proceedings of ICNN'95-international conference on neural networks, Perth, WA, Australia, 1995, 1942–1948. |
| [12] |
|
| [13] |
D. Karaboga, An idea based on honey bee swarm for numerical optimization, Erciyes University, Engineering Faculty, Computer Engineering Department, 2005, Technical Report-TR06. |
| [14] |
|
| [15] |
X.-S. Yang, Firefly algorithms for multimodal optimization, In: Stochastic algorithms: foundations and applications, Heidelberg: Springer, 2009,169–178. https://doi.org/10.1007/978-3-642-04944-6_14 |
| [16] |
|
| [17] |
X.-S. Yang, S. Deb, Cuckoo search via Lévy flights, In: 2009 World congress on nature & biologically inspired computing (NaBIC), Coimbatore, India, 2009,210–214. https://doi.org/10.1109/NABIC.2009.5393690 |
| [18] |
X.-S. Yang, A new metaheuristic bat-inspired algorithm, In: Nature inspired cooperative strategies for optimization (NICSO 2010), Heidelberg: Springer, 2010, 65–74. https://doi.org/10.1007/978-3-642-12538-6_6 |
| [19] |
|
| [20] |
X. Meng, Y. Liu, X. Gao, H. Zhang, A new bio-inspired algorithm: chicken swarm optimization, In: Advances in swarm intelligence, Cham: Springer 2014, 86–94. https://doi.org/10.1007/978-3-319-11857-4_10 |
| [21] |
|
| [22] |
X.-S. Yang, Cuckoo search algorithm – matlab implementation, 2020. Available from: http://www.mathworks.in/matlabcentral/fileexchange/29809-cuckoo-search-cs-algorithm/content/cuckoo_search.m/ |
| [23] |
|
| [24] |
|
| [25] |
|
| [26] |
|
| [27] |
|
| [28] |
M.-L. Pérez-Delgado, Recent applications of swarm-based algorithms to color quantization, In: Recent advances on memetic algorithms and its applications in image processing, Singapore: Springer, 2020, 93–118. https://doi.org/10.1007/978-981-15-1362-6_5 |
| [29] |
D. E. Knuth, Sorting by merging, In: The art of computer programming: sorting and searching, Addison-Wesley, 1998,158–168. |
| [30] |
|
| [31] |
|
/
| 〈 |
|
〉 |