Abstract
We consider a modification of dynamic programming algorithm (DPA), which is called as graphical algorithm (GA). For the knapsack problem (KP) it is shown that the time complexity of GA is less than the time complexity of DPA. Moreover, the running time of GA is often essentially reduced. GA can also solve big scale instances and instances, where the parameters are not only positive integer. The paper outlines different methods of parallelizing GA taking into account its main features and advantages to various parallel architectures, in particular by using OpenCL and MPI framework. Experiments show that ”hard” instances of KP for GA have correlation p j ≃ kw j for all j, where p j and w j are utility and capacity of item j = 1, 2, …, n.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Bellman, R.: Dynamic Programming. Princeton Univ. Press, Princeton (1957)
Gafarov, E.R., Lazarev, A.A., Werner, F.: Algorithms for Some Maximization Scheduling Problems on a Single Machine. Automation and Remote Control 71(10), 2070–2084 (2010)
Keller, H., Pferschy, U., Pisinger, D.: Knapsack Problems. Springer, Hidelberg (2010)
Lawler, E.L., Moore, J.M.: A Functional Equation and its Application to Resource Allocation and Sequencing Problems. Management Science 16(1), 77–84 (1969)
Lazarev, A.A., Werner, F.: A Graphical Realization of the Dynamic Programming Method for Solving NP-Hard Combinatorial Problems. Computers and Mathematics with Applications 58(4), 619–631 (2009)
Lazarev, A.A., Werner, F.: Algorithms for Special Cases of the Single Machine Total Tardiness Problem and an Application to the Even-Odd Partition Problem. Mathematical and Computer Modelling 49(9-10), 2061–2072 (2009)
Papadimitrou, C., Steiglitz, K.: Combinatorial Optimization: Algorithms and Complexity. Dover Publications, INC., New York (1998)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2011 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Lazarev, A., Salnikov, A., Baranov, A. (2011). Graphical Algorithm for the Knapsack Problems. In: Malyshkin, V. (eds) Parallel Computing Technologies. PaCT 2011. Lecture Notes in Computer Science, vol 6873. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-23178-0_41
Download citation
DOI: https://doi.org/10.1007/978-3-642-23178-0_41
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-23177-3
Online ISBN: 978-3-642-23178-0
eBook Packages: Computer ScienceComputer Science (R0)