Skip to main content

A Quartile-Based Hyper-heuristic for Solving the 0/1 Knapsack Problem

  • Conference paper
  • First Online:
Advances in Soft Computing (MICAI 2017)

Abstract

This research describes three novel heuristic-based approaches for solving the 0/1 knapsack problem. The knapsack problem, in its many variants, arises in many practical scenarios such as the selection of investment projects and budget control. As an NP-hard problem, it is not always possible to compute the optimal solution by using exact methods and, for this reason, the problem is usually solved by using heuristic-based strategies. In this document, we use information of the distributions of weight and profit of the items in the knapsack instances to design and implement new heuristic-based methods that solve those instances. The solution model proposed in this work is two-fold: the first part focuses on the generation of two new heuristics, while the second explores the combination of solving methods through a hyper-heuristic approach. The heuristics proposed, as well as the hyper-heuristic model, were tested on a heterogeneous set of knapsack problem instances and compared against four heuristics taken from the literature. One of the proposed heuristics proved to be highly competent with respect to heuristics available in the literature. By using the hyper-heuristic, a solver that dynamically selects heuristics based on the problem features, we improved the results obtained by the new heuristics proposed and, achieved the best results among all the methods tested in this investigation.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 74.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    As the reader may have already noticed, GWR requires to know the optimal solution for the instances used for testing the methods. Given the sizes of the instances studied in this work, the optimal solution was found through dynamic programming. Unfortunately, this metric might not be useful for other instances, as for some of them it could be unfeasible to obtain the optimal solution.

References

  1. Amuthan, A., Thilak, K.D.: Survey on Tabu search meta-heuristic optimization. In: 2016 International Conference on Signal Processing, Communication, Power and Embedded System (SCOPES), pp. 1539–1543, October 2016

    Google Scholar 

  2. Banda, J., Velasco, J., Berrones, A.: A hybrid heuristic algorithm based on mean-field theory with a simple local search for the quadratic knapsack problem. In: 2017 IEEE Congress on Evolutionary Computation (CEC), pp. 2559–2565, June 2017

    Google Scholar 

  3. Barichard, V., Hao, J.K.: Genetic Tabu search for the multi-objective knapsack problem. Tsinghua Sci. Technol. 8(1), 8–13 (2003)

    MATH  Google Scholar 

  4. Burke, E., Kendall, G.: Search Methodologies: Introductory Tutorials in Optimization and Decision Support Techniques. Springer, Heidelberg (2005). https://doi.org/10.1007/0-387-28356-0

    Book  MATH  Google Scholar 

  5. Burke, E.K., Hyde, M., Kendall, G., Ochoa, G., Özcan, E., Woodward, J.R.: A classification of hyper-heuristic approaches. In: Gendreau, M., Potvin, J.Y. (eds.) Handbook of Metaheuristics, pp. 449–468. Springer, Boston (2010). https://doi.org/10.1007/978-1-4419-1665-5_15

    Chapter  Google Scholar 

  6. Chou, Y.H., Yang, Y.J., Chiu, C.H.: Classical and quantum-inspired Tabu search for solving 0/1 knapsack problem. In: 2011 IEEE International Conference on Systems, Man, and Cybernetics, pp. 1364–1369, October 2011

    Google Scholar 

  7. Cui, X., Wang, D., Yan, Y.: AES algorithm for dynamic knapsack problems in capital budgeting. In: 2010 Chinese Control and Decision Conference, pp. 481–485, May 2010

    Google Scholar 

  8. Dorigo, M., Stützle, T.: The Ant Colony Optimization Metaheuristic, pp. 25–64. MIT Press, Cambridge (2004)

    Book  Google Scholar 

  9. Gagliardi, E.O., Dorzán, M.G., Leguizamón, M.G., Peñalver, G.H.: Approximations on minimum weight pseudo-triangulation problem using ant colony optimization metaheuristic. In: 2011 30th International Conference of the Chilean Computer Science Society, pp. 238–246, November 2011

    Google Scholar 

  10. Garey, M.R., Johnson, D.S.: Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman & Co., New York (1979)

    MATH  Google Scholar 

  11. Hifi, M., Otmani, N.: A first level scatter search for disjunctively constrained knapsack problems. In: 2011 International Conference on Communications, Computing and Control Applications (CCCA), pp. 1–6, March 2011

    Google Scholar 

  12. Jaszkiewicz, A.: On the performance of multiple-objective genetic local search on the 0/1 knapsack problem - a comparative experiment. IEEE Trans. Evol. Comput. 6(4), 402–412 (2002)

    Article  Google Scholar 

  13. Kiss, Z.I., Hosu, A.C., Varga, M., Polgar, Z.A.: Load balancing solution for heterogeneous wireless networks based on the knapsack problem. In: 2015 38th International Conference on Telecommunications and Signal Processing (TSP), pp. 1–6, July 2015

    Google Scholar 

  14. Kulkarni, A.J., Shabir, H.: Solving 0–1 knapsack problem using cohort intelligence algorithm. Int. J. Mach. Learn. Cybern. 7(3), 427–441 (2016)

    Article  Google Scholar 

  15. Lv, J., Wang, X., Huang, M., Cheng, H., Li, F.: Solving 0–1 knapsack problem by greedy degree and expectation efficiency. Appl. Soft Comput. J. 41, 94–103 (2016)

    Article  Google Scholar 

  16. Maashi, M., Özcan, E., Kendall, G.: A multi-objective hyper-heuristic based on choice function. Expert Syst. Appl. 41(9), 4475–4493 (2014)

    Article  Google Scholar 

  17. Naldi, M., Nicosia, G., Pacifici, A., Pferschy, U., Leder, B.: A simulation study of fairness-profit trade-off in project selection based on HHI and knapsack models. In: 2016 European Modelling Symposium (EMS), pp. 85–90, November 2016

    Google Scholar 

  18. Niar, S., Freville, A.: A parallel Tabu search algorithm for the 0–1 multidimensional knapsack problem. In: Proceedings 11th International Parallel Processing Symposium, pp. 512–516, April 1997

    Google Scholar 

  19. Ortiz-Bayliss, J.C., Terashima-Marín, H., Conant-Pablos, S.E.: Combine and conquer: an evolutionary hyper-heuristic approach for solving constraint satisfaction problems. Artif. Intell. Rev. 46(3), 327–349 (2016)

    Article  Google Scholar 

  20. Özcan, E., Bilgin, B., Korkmaz, E.E.: A comprehensive analysis of hyper-heuristics. Intell. Data Anal. 12(1), 3–23 (2008)

    Article  Google Scholar 

  21. Ren, Z., Jiang, H., Xuan, J., Hu, Y., Luo, Z.: New insights into diversification of hyper-heuristics. IEEE Trans. Cybern. 44(10), 1747–1761 (2014)

    Article  Google Scholar 

  22. Sapra, D., Sharma, R., Agarwal, A.P.: Comparative study of metaheuristic algorithms using knapsack problem. In: 2017 7th International Conference on Cloud Computing, Data Science Engineering - Confluence, pp. 134–137, January 2017

    Google Scholar 

  23. Terashima-Marín, H., Flores-Alvarez, E.J., Ross, P.: Hyper-heuristics and classifier systems for solving 2D-regular cutting stock problems. In: Proceedings of the 7th annual conference on Genetic and evolutionary computation, pp. 637–643. ACM (2005)

    Google Scholar 

Download references

Acknowledgments

This research was supported in part by CONACyT Basic Science Projects under grant 241461 and ITESM Research Group with Strategic Focus in intelligent Systems.

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Fernando Gómez-Herrera or José Carlos Ortiz-Bayliss .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Gómez-Herrera, F., Ramirez-Valenzuela, R.A., Ortiz-Bayliss, J.C., Amaya, I., Terashima-Marín, H. (2018). A Quartile-Based Hyper-heuristic for Solving the 0/1 Knapsack Problem. In: Castro, F., Miranda-Jiménez, S., González-Mendoza, M. (eds) Advances in Soft Computing. MICAI 2017. Lecture Notes in Computer Science(), vol 10632. Springer, Cham. https://doi.org/10.1007/978-3-030-02837-4_10

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-02837-4_10

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-02836-7

  • Online ISBN: 978-3-030-02837-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics