Abstract
The knapsack problem is a well-known strongly NP-complete problem where the profits of collection of items in knapsack is maximized under a certain weight capacity constraint. In this paper, a novel Binary Mother Tree Optimization Algorithm (BMTO) and Knapsack Problem Framework (KPF) are proposed to find an efficient solution for 0/1 knapsack problem in a short time. The proposed BMTO method is built on the original MTO and a binary module to solve an optimization problem in a discrete space. The binary module converts a set of real numbers equal to the dimension of the knapsack problem to a binary number using a threshold and the sigmoid function. In fact, the KPF makes the implementation of a metaheuristic algorithm to solve the knapsack problem much simpler. In order to assess the performance of the proposed solutions, extensive experiments are conducted. In this regard, several statistical analyses on the resulting solution are evaluated when solved for two sets of knapsack instances (small and large scale). The results demonstrate that BMTO can produce an efficient solution for knapsack instances of different sizes in a short time, and it outperforms two other algorithms Binary Particle Swarm Optimization (BPSO) and Binary Bacterial Foraging (BBF) algorithms in terms of best solution and time. In addition, the results of BPSO and BBF show the effectiveness of KPF compared to the results in the literature.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
KNAPSACK_01 data for the 01 knapsack problem. https://people.sc.fsu.edu/~jburkardt/datasets/knapsack_01/knapsack_01.html. Accessed 17 Aug 2014
Ali, I.M., Essam, D., Kasmarik, K.: An efficient differential evolution algorithm for solving 0ā1 knapsack problems. In: 2018 IEEE Congress on Evolutionary Computation (CEC), pp. 1ā8. IEEE (2018)
Alomoush, A., Alsewari, A.A., Alamri, H.S., Zamli, K.Z.: Solving 0/1 knapsack problem using hybrid HS and Jaya algorithms. Adv. Sci. Lett. 24(10), 7486ā7489 (2018)
David, D., Ronny, R., Widayanti, T., et al.: Modification of attractiveness and movement of the firefly algorithm for resolution to knapsack problems. In: 2022 4th International Conference on Cybernetics and Intelligent System (ICORIS), pp. 1ā5. IEEE (2022)
Korani, W., Mouhoub, M.: Discrete mother tree optimization for the traveling salesman problem. In: Yang, H., Pasupa, K., Leung, A.C.-S., Kwok, J.T., Chan, J.H., King, I. (eds.) ICONIP 2020. LNCS, vol. 12533, pp. 25ā37. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-63833-7_3
Korani, W., Mouhoub, M.: Review on nature-inspired algorithms. Oper. Res. Forum 2(3), 1ā26 (2021). https://doi.org/10.1007/s43069-021-00068-x
Korani, W., Mouhoub, M., Spiteri, R.J.: Mother tree optimization. In: 2019 IEEE International Conference on Systems, Man and Cybernetics (SMC), pp. 2206ā2213. IEEE (2019)
Liu, Y., Liu, C.: A schema-guiding evolutionary algorithm for 0ā1 knapsack problem. In: 2009 International Association of Computer Science and Information Technology-Spring Conference, pp. 160ā164. IEEE (2009)
Locatelli, A., Iori, M., Cacchiani, V.: Optimization methods for knapsack and tool switching problems (2023)
Mavrotas, G., Diakoulaki, D., Kourentzis, A.: Selection among ranked projects under segmentation, policy and logical constraints. Eur. J. Oper. Res. 187(1), 177ā192 (2008)
Niu, B., Bi, Y.: Binary bacterial foraging optimization for 0/1 knapsack problem. In: 2014 IEEE Congress on Evolutionary Computation (CEC), pp. 647ā652. IEEE (2014)
Peeta, S., Salman, F.S., Gunnec, D., Viswanath, K.: Pre-disaster investment decisions for strengthening a highway network. Comput. Oper. Res. 37(10), 1708ā1719 (2010)
Senju, S., Toyoda, Y.: An approach to linear programming with 0ā1 variables. Manag. Sci. 15, B196āB207 (1968)
Shih, W.: A branch and bound method for the multiconstraint zero-one knapsack problem. J. Oper. Res. Soc. 30(4), 369ā378 (1979)
Vanderster, D.C., Dimopoulos, N.J., Parra-Hernandez, R., Sobie, R.J.: Resource allocation on computational grids using a utility model and the knapsack problem. Futur. Gener. Comput. Syst. 25(1), 35ā50 (2009)
Wojtczak, D.: On strong NP-completeness of rational problems. In: Fomin, F.V., Podolskii, V.V. (eds.) CSR 2018. LNCS, vol. 10846, pp. 308ā320. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-90530-3_26
Yan, T.S., Guo, G.Q., Li, H.M., He, W.: A genetic algorithm for solving knapsack problems based on adaptive evolution in dual population. In: Advanced Materials Research, vol. 756, pp. 2799ā2802. Trans Tech Publ (2013)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
Ā© 2024 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Korani, W. (2024). Binary Mother Tree Optimization Algorithm forĀ 0/1 Knapsack Problem. In: Luo, B., Cheng, L., Wu, ZG., Li, H., Li, C. (eds) Neural Information Processing. ICONIP 2023. Lecture Notes in Computer Science, vol 14447. Springer, Singapore. https://doi.org/10.1007/978-981-99-8079-6_16
Download citation
DOI: https://doi.org/10.1007/978-981-99-8079-6_16
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-99-8078-9
Online ISBN: 978-981-99-8079-6
eBook Packages: Computer ScienceComputer Science (R0)