A New Genetic Algorithm for the 0-1 Knapsack Problem

Volume: 4 Number: 3 October 1, 2016
EN

A New Genetic Algorithm for the 0-1 Knapsack Problem

Abstract

In this paper, The 0-1 Knapsack Problem (KP) which occurs in many different applications is studied and a new genetic algorithm to solve the KP is proposed. In our methodology, n items are represented by n genes on a bit array that compactly stores the values 0 or 1. When calculating fitness values of items, coefficients of items whose values are 1 in the bit array are summed. Roulette wheel method is used for chosing parents; in this way it is provided that strong individuals produce more children. Crossover is applied in such a way  that roulette wheel is rotated on genes with the same index of parents, that the dominant parent can transfer its genes to the child. Mutation is applied for randomly chosen 25% genes and this process is repeated for the number of individuals. The algorithm is written in C programming language and is tested on randomly generated instances. In order to find the optimal solutions of these problems, a program that has been written by dynamic programming technique is used. It is seen that the algorithm yields optimal solutions for all instances.

References

  1. R. Battiti, G. Tecchiolli, Parallel biased search for combinatorial optimization: Genetic algorithms and tabu search, Microprocessors and Microsystems, 16, 351–367 (1992).
  2. P. C. Chu: A Genetic Algorithm Approach for Combinatorial Optimization Problems, Ph.D. thesis at the Management School, Imperial College of Science, London, (1997).
  3. Chu, P., and Beasley, J., A genetic algorithm for the multidimensional knapsack problem. Journal of Heuristics, 4, 63–86 (1998).
  4. Falkenauer, E., A hybrid grouping genetic algorithm for bin packing. Journal of Heuristics, 2, 5–30 (1996).
  5. Garey M. R. and Johnson D. S., Computers and Intractability: A Guide to the Theory of NP-Completeness, (Freeman, San Francisco, 1979).
  6. D. E. Goldberg, Genetic Algorithms in Search, Optimization and Machine Learning, (Addison–Wesley, 1989).
  7. Horowitz E., Sahni, S. and Rajasekaran, S., Computer algorithms, (New York: Computer Science Press, W.H. Freeman & Co., 1994).
  8. Hussain, S. A., and Sastry, V. U. K., Application of genetic algorithm for bin packing, International Journal of Computer Mathematics, 63, 203–214 (1997).

Details

Primary Language

English

Subjects

-

Journal Section

-

Publication Date

October 1, 2016

Submission Date

July 15, 2016

Acceptance Date

-

Published in Issue

Year 2016 Volume: 4 Number: 3

APA
Berberler, M. E., Güler, A., & Nuriyev, U. (2016). A New Genetic Algorithm for the 0-1 Knapsack Problem. Academic Platform - Journal of Engineering and Science, 4(3). https://doi.org/10.21541/apjes.14020
AMA
1.Berberler ME, Güler A, Nuriyev U. A New Genetic Algorithm for the 0-1 Knapsack Problem. APJES. 2016;4(3). doi:10.21541/apjes.14020
Chicago
Berberler, Murat Erşen, Aslı Güler, and Urfat Nuriyev. 2016. “A New Genetic Algorithm for the 0-1 Knapsack Problem”. Academic Platform - Journal of Engineering and Science 4 (3). https://doi.org/10.21541/apjes.14020.
EndNote
Berberler ME, Güler A, Nuriyev U (October 1, 2016) A New Genetic Algorithm for the 0-1 Knapsack Problem. Academic Platform - Journal of Engineering and Science 4 3
IEEE
[1]M. E. Berberler, A. Güler, and U. Nuriyev, “A New Genetic Algorithm for the 0-1 Knapsack Problem”, APJES, vol. 4, no. 3, Oct. 2016, doi: 10.21541/apjes.14020.
ISNAD
Berberler, Murat Erşen - Güler, Aslı - Nuriyev, Urfat. “A New Genetic Algorithm for the 0-1 Knapsack Problem”. Academic Platform - Journal of Engineering and Science 4/3 (October 1, 2016). https://doi.org/10.21541/apjes.14020.
JAMA
1.Berberler ME, Güler A, Nuriyev U. A New Genetic Algorithm for the 0-1 Knapsack Problem. APJES. 2016;4. doi:10.21541/apjes.14020.
MLA
Berberler, Murat Erşen, et al. “A New Genetic Algorithm for the 0-1 Knapsack Problem”. Academic Platform - Journal of Engineering and Science, vol. 4, no. 3, Oct. 2016, doi:10.21541/apjes.14020.
Vancouver
1.Murat Erşen Berberler, Aslı Güler, Urfat Nuriyev. A New Genetic Algorithm for the 0-1 Knapsack Problem. APJES. 2016 Oct. 1;4(3). doi:10.21541/apjes.14020