JOURNAL ARTICLE

Greedy, genetic, and greedy genetic algorithms for the quadratic knapsack problem

Abstract

Augmenting an evolutionary algorithm with knowledge of its target problem can yield a more effective algorithm, as this presentation illustrates. The Quadratic Knapsack Problem extends the familiar Knapsack Problem by assigning values not only to individual objects but also to pairs of objects. In these problems, an object's value density is the sum of the values associated with it divided by its weight. Two greedy heuristics for the quadratic problem examine objects for inclusion in the knapsack in descending order of their value densities. Two genetic algorithms encode candidate selections of objects as binary strings and generate only strings whose selections of objects have total weight no more than the knapsack's capacity. One GA is naive; its operators apply no information about the values associated with objects. The second extends the naive GA with greedy techniques from the non-evolutionary heuristics. Its operators examine objects for inclusion in the knapsack in orders determined by tournaments based on objects' value densities. All four algorithms are tested on twenty problem instances whose optimum knapsack values are known. The greedy heuristics do well, as does the naive GA, but the greedy GA exhibits the best performance. In repeated trials on the test instances, it identifies optimum solutions more than nine times out of every ten.

Keywords:
Knapsack problem Greedy algorithm Heuristics Continuous knapsack problem Change-making problem Mathematics Greedy randomized adaptive search procedure Genetic algorithm Mathematical optimization Algorithm Generalized assignment problem Optimization problem Combinatorics Computer science

Metrics

66
Cited By
4.14
FWCI (Field Weighted Citation Impact)
25
Refs
0.94
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Optimization and Packing Problems
Physical Sciences →  Engineering →  Industrial and Manufacturing Engineering
Metaheuristic Optimization Algorithms Research
Physical Sciences →  Computer Science →  Artificial Intelligence
Optimization and Search Problems
Physical Sciences →  Computer Science →  Computer Networks and Communications

Related Documents

JOURNAL ARTICLE

Applying greedy genetic algorithm on 0/1 multiple knapsack problem

Vinod JainJay Shankar Prasad

Journal:   International Journal of Advanced Technology and Engineering Exploration Year: 2018 Vol: 5 (45)Pages: 292-296
JOURNAL ARTICLE

Scheduling problem solving using genetic and greedy algorithms

A. MuthiahR. Rajkumar

Journal:   International Journal of Computer Aided Engineering and Technology Year: 2017 Vol: 9 (2)Pages: 207-207
JOURNAL ARTICLE

Scheduling problem solving using genetic and greedy algorithms

R. RajkumarA. Muthiah

Journal:   International Journal of Computer Aided Engineering and Technology Year: 2017 Vol: 9 (2)Pages: 207-207
© 2026 ScienceGate Book Chapters — All rights reserved.