Towards Complexity Analysis of Some Combinatorial Algorithms Using Knapsack Model

Knapsack problem is a combinatorial optimisation problem which is concerned with finding a solution where an exhaustive search is difficult or even impractical to do. Approximate algorithms, also called heuristics are therefore applied in solving Knapsack problems. The goal of this study was to solve the Knapsack model using three heuristics viz: greedy, dynamic programming, and branch-and-bound strategies. The ultimate objective of our study was to evaluate the time complexities of these heuristics as input sizes become larger. In the bid to get that done, a Knapsack problem was solved using the approximate algorithms, employing the same programming environment, with varying input sizes. The problem was simulated using different input data sizes. A synthesis of the results obtained, that is, the various time complexities, was then carried out and a comparative study of the three algorithms was done. The coefficients of the variables used in the Knapsack model for simulation were generated using random numbers generating algorithm. Our results showed that the greedy algorithm was the most efficient computationally. The second best efficient was the dynamic progranmming algorithm while the least in terms of time complexity is branch-and-bound strategy. It is considered a worthwhile effort to study more metrics of complexity measurement. This is recommended as good enough for further research attention. However, our present study has shown in pragmatic form the computational complexity of the greedy, dynamic programming, and branch-and-bound algorithms.

Authors

Institutions

Publication Details

Journal
International Journal of Computer Science and Mobile Computing
Published
2024-08-22
DOI
https://doi.org/10.47760/ijcsmc.2024.v13i08.007
Citations
1
Primary Topic
Teaching and Learning Programming
Type
article
Field-Weighted Citation Impact
0.41
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Towards Complexity Analysis of Some Combinatorial Algorithms Using Knapsack Model

Ibrahim Abdullahi, Bashar Bin Usman, Okeyinka Aderemi Elisha
1 citations
International Journal of Computer Science and Mobile Computing
Teaching and Learning Programming
0.41
article

Towards Complexity Analysis of Some Combinatorial Algorithms Using Knapsack Model

Ibrahim Abdullahi, Bashar Bin Usman, Okeyinka Aderemi Elisha
article en
1 citations

Abstract

Knapsack problem is a combinatorial optimisation problem which is concerned with finding a solution where an exhaustive search is difficult or even impractical to do. Approximate algorithms, also called heuristics are therefore applied in solving Knapsack problems. The goal of this study was to solve the Knapsack model using three heuristics viz: greedy, dynamic programming, and branch-and-bound strategies. The ultimate objective of our study was to evaluate the time complexities of these heuristics as input sizes become larger. In the bid to get that done, a Knapsack problem was solved using the approximate algorithms, employing the same programming environment, with varying input sizes. The problem was simulated using different input data sizes. A synthesis of the results obtained, that is, the various time complexities, was then carried out and a comparative study of the three algorithms was done. The coefficients of the variables used in the Knapsack model for simulation were generated using random numbers generating algorithm. Our results showed that the greedy algorithm was the most efficient computationally. The second best efficient was the dynamic progranmming algorithm while the least in terms of time complexity is branch-and-bound strategy. It is considered a worthwhile effort to study more metrics of complexity measurement. This is recommended as good enough for further research attention. However, our present study has shown in pragmatic form the computational complexity of the greedy, dynamic programming, and branch-and-bound algorithms.

International Journal of Computer Science and Mobile ComputingVol. 13(8)
Ibrahim Badamasi Babangida University (NG)
Openalex Percentile: Top 28%
Teaching and Learning Programming
0.41
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.