PeerJ Computer Science (Apr 2023)

An efficient optimizer for the 0/1 knapsack problem using group counseling

  • Yazeed Yasin Ghadi,
  • Tamara AlShloul,
  • Zahid Iqbal Nezami,
  • Hamid Ali,
  • Muhammad Asif,
  • Hanan Aljuaid,
  • Shahbaz Ahmad

DOI
https://doi.org/10.7717/peerj-cs.1315
Journal volume & issue
Vol. 9
p. e1315

Abstract

Read online Read online

The field of optimization is concerned with determining the optimal solution to a problem. It refers to the mathematical loss or gain of a given objective function. Optimization must reduce the given problem’s losses and disadvantages while maximizing its earnings and benefits. We all want optimal or, at the very least, suboptimal answers because we all want to live a better life. Group counseling optimizer (GCO) is an emerging evolutionary algorithm that simulates the human behavior of counseling within a group for solving problems. GCO has been successfully applied to single and multi-objective optimization problems. The 0/1 knapsack problem is also a combinatorial problem in which we can select an item entirely or drop it to fill a knapsack so that the total weight of selected items is less than or equal to the knapsack size and the value of all items is as significant as possible. Dynamic programming solves the 0/1 knapsack problem optimally, but the time complexity of dynamic programming is O(n3). In this article, we provide a feature analysis of GCO parameters and use it to solve the 0/1 knapsack problem (KP) using GCO. The results show that the GCO-based approach efficiently solves the 0/1 knapsack problem; therefore, it is a viable alternative to solving the 0/1 knapsack problem.

Keywords