{"title":"A parallel solution for the 0–1 knapsack problem using firefly algorithm","authors":"Mohammad Hajarian, A. Shahbahrami, F. Hoseini","doi":"10.1109/CSIEC.2016.7482134","DOIUrl":null,"url":null,"abstract":"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.","PeriodicalId":268101,"journal":{"name":"2016 1st Conference on Swarm Intelligence and Evolutionary Computation (CSIEC)","volume":"258 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2016-03-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"8","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2016 1st Conference on Swarm Intelligence and Evolutionary Computation (CSIEC)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/CSIEC.2016.7482134","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 8
Abstract
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.