Towards Enhancing Energy Consumption and Time Complexity of Combinatorial Algorithms for Solving the Knapsack Problem

Authors

  • Saminu Isah Kanoma Federal University Gusau, Zamfara State Nigeria
  • Bashar Bin Usman National Hajj Commission of Nigeria
  • Danlami Gabi Department of Computer Science, Kebbi State University of Science and Technology Aliero, Kebbi State Nigeria.
  • Abubakar Sidiq Nurudeen Federal Polytechnic Kaltungo
  • Hassan Umar Suru Kebbi State University of Science and Technology Aliero, Kebbi State Nigeria.

DOI:

https://doi.org/10.57233/ijsgs.v10i4.730

Keywords:

knapsack problem, power model, energy consumption, time complexity greedy and dynamic programming algorithms

Abstract

The increasing demand for energy-efficient and time-optimized computational systems has driven research into combinatorial algorithms, particularly those used to solve the knapsack problem. The knapsack problem is one of the most significant in combinatorial optimization, which involves determining the optimal selection of items to include in a knapsack while adhering to specific constraints, such as weight or profit limits. This study compares the energy consumption and time complexity of the greedy and dynamic programming algorithms applied to this problem. Using power models to measure total energy consumption and execution time, the research reveals that the greedy algorithm is far more efficient, with negligible energy consumption across various scenarios. In contrast, the dynamic programming algorithm, while delivering accurate solutions, consumes more energy and takes longer due to its memory-intensive operations. These findings highlight the need to consider energy and time efficiency in algorithm design, contributing to more sustainable computing practices. Future research will explore larger datasets and focus on instruction-level energy analysis to optimize algorithm performance.

Author Biographies

Saminu Isah Kanoma, Federal University Gusau, Zamfara State Nigeria

ICT Directorate Federal University Gusau, Zamfara State Nigeria

Bashar Bin Usman, National Hajj Commission of Nigeria

National Hajj Commission of Nigeria

Danlami Gabi, Department of Computer Science, Kebbi State University of Science and Technology Aliero, Kebbi State Nigeria.

Department of Computer Science,

Kebbi State University of Science and Technology Aliero,

Kebbi State Nigeria.

Abubakar Sidiq Nurudeen, Federal Polytechnic Kaltungo

Federal Polytechnic Kaltungo

Hassan Umar Suru, Kebbi State University of Science and Technology Aliero, Kebbi State Nigeria.

Department of Computer Science,

Kebbi State University of Science and Technology Aliero,

Kebbi State Nigeria.

Downloads

Published

2024-12-31

How to Cite

Kanoma, S. I. ., Usman, B. B. ., Gabi, D. ., Nurudeen, A. S. ., & Suru, H. U. . (2024). Towards Enhancing Energy Consumption and Time Complexity of Combinatorial Algorithms for Solving the Knapsack Problem. International Journal of Science for Global Sustainability, 10(4), 20–27. https://doi.org/10.57233/ijsgs.v10i4.730