Solving 0–1 Knapsack Problems Using Sine-Cosine Algorithm

Khaled Mahfouz, Sharaz Ali, M. Al-Betar, M. Awadallah
{"title":"Solving 0–1 Knapsack Problems Using Sine-Cosine Algorithm","authors":"Khaled Mahfouz, Sharaz Ali, M. Al-Betar, M. Awadallah","doi":"10.1109/PICICT53635.2021.00020","DOIUrl":null,"url":null,"abstract":"The task of optimization is no easy task and from a computational point of view, it often involves scanning a large search space to find the best solution that adheres to all the constraints and desired specifications. Designing a customized algorithm to solve several optimization problems is also a challenging task, therefore scientists and engineers utilize metaheuristic algorithms that can provide an optimal solution within a reasonable time. This optimal solution may or may not be the best solution in the search space, but it is usually good enough to satisfy the requirements without spending a lot of computational resources or time. The 0–1 knapsack problem is an constraint-based optimization problem in which a number of items have to be packed into a container by maximizing the value of the items in the container while also adhering to the weight limit of the container. In this paper, sine-cosine algorithm (SCA) is adopted to solve 0–1 knapsack problems. The proposed algorithm is called binary sine-cosine algorithm (BSCA). Due to the binary nature of 0–1 knapsack problem, the SCA is manipulated using a mapping function. The performance of the proposed BSCA is evaluated using 15 well-known datasets. Furthermore, the performance of the proposed BSCA is compared with other comparative algorithms (i.e., GA, PSO, and BFPA) from the literature using the same datasests. It can be observed from the results that the performance of the proposed BSCA is similar to other algorithms by obtaining the optimal results on 10 datasets. While the results of the proposed BSCA are convergent with others for the remaining five datasets.","PeriodicalId":308869,"journal":{"name":"2021 Palestinian International Conference on Information and Communication Technology (PICICT)","volume":"36 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 Palestinian International Conference on Information and Communication Technology (PICICT)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/PICICT53635.2021.00020","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

The task of optimization is no easy task and from a computational point of view, it often involves scanning a large search space to find the best solution that adheres to all the constraints and desired specifications. Designing a customized algorithm to solve several optimization problems is also a challenging task, therefore scientists and engineers utilize metaheuristic algorithms that can provide an optimal solution within a reasonable time. This optimal solution may or may not be the best solution in the search space, but it is usually good enough to satisfy the requirements without spending a lot of computational resources or time. The 0–1 knapsack problem is an constraint-based optimization problem in which a number of items have to be packed into a container by maximizing the value of the items in the container while also adhering to the weight limit of the container. In this paper, sine-cosine algorithm (SCA) is adopted to solve 0–1 knapsack problems. The proposed algorithm is called binary sine-cosine algorithm (BSCA). Due to the binary nature of 0–1 knapsack problem, the SCA is manipulated using a mapping function. The performance of the proposed BSCA is evaluated using 15 well-known datasets. Furthermore, the performance of the proposed BSCA is compared with other comparative algorithms (i.e., GA, PSO, and BFPA) from the literature using the same datasests. It can be observed from the results that the performance of the proposed BSCA is similar to other algorithms by obtaining the optimal results on 10 datasets. While the results of the proposed BSCA are convergent with others for the remaining five datasets.
用正弦余弦算法求解0-1背包问题
优化任务不是一项简单的任务,从计算的角度来看,它通常涉及扫描一个大的搜索空间,以找到符合所有约束和期望规范的最佳解决方案。设计一个定制的算法来解决几个优化问题也是一项具有挑战性的任务,因此科学家和工程师利用元启发式算法,可以在合理的时间内提供最优解。这种最优解决方案可能是也可能不是搜索空间中的最佳解决方案,但它通常足以满足需求,而无需花费大量计算资源或时间。0-1背包问题是一个基于约束的优化问题,该问题要求在不限制容器重量的前提下,使容器内物品的价值最大化,并将若干物品装入一个容器中。本文采用正弦余弦算法(SCA)求解0-1背包问题。该算法被称为二进制正弦余弦算法(BSCA)。由于0-1背包问题的二进制性质,使用映射函数来操作SCA。使用15个知名数据集对所提出的BSCA的性能进行了评估。此外,将所提出的BSCA的性能与文献中使用相同数据集的其他比较算法(即GA、PSO和BFPA)进行了比较。从结果中可以看出,所提出的BSCA在10个数据集上获得了最优结果,性能与其他算法相似。而对于其余五个数据集,建议的BSCA的结果与其他结果是收敛的。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信