A Parallel Solution for The 0-1 Knapsack Problem Using Firefly Algorithm

被引:0
|
作者
Hoseini, Farnaz [1 ]
Shahbahrami, Asadollah [2 ]
Hajarian, Mohammad [3 ]
机构
[1] Islamic Azad Univ, Rasht Branch, Fac Engn, Rasht, Iran
[2] Univ Guilan, Fac Engn, Dept Comp Engn, Rasht, Iran
[3] Islamic Azad Univ, Karaj Branch, Dept Comp Engn, Karaj, Iran
关键词
Firefly Algorithm; Knapsack Problem; the 0-1 Knapsack Problem CUDA; GPU; Parallel Processing; OPTIMIZATION;
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
The knapsack problem is known as a NP-hard problem. There is a dynamic programming solution for this problem which is called the 0-1 knapsack. Firefly's innovative optimization algorithm is an algorithm, inspired by the behavior of fireflies flashing. This study represents a parallel solution for the 0-1 knapsack problem using firefly algorithm. Regarding parallel nature of most optimization algorithms they can be used successfully in a graphical processing unit (GPU). Since it is time consuming to test all the cases, when increasing the items and iterations, Compute Unified Device Architecture (CUDA) is used to implement the solution in a parallel way. The results of simulating the 0-1 knapsack problem using firefly algorithm on GPU hardware showed that the execution time of this method in a parallel way decreases with the increase of the population of fireflies and it is 320 times faster than serial solution and this rate is because of synchrony in execution of the blocks on GPU hardware.
引用
收藏
页码:25 / 30
页数:6
相关论文
共 50 条