RUS  ENG
Full version
JOURNALS // Modelirovanie i Analiz Informatsionnykh Sistem // Archive

Model. Anal. Inform. Sist., 2018 Volume 25, Number 2, Pages 155–164 (Mi mais618)

This article is cited in 1 paper

Models of Parallelism

On а recursive-parallel algorithm for solving the Knapsack Problem

V. V. Vasilchikov

P.G. Demidov Yaroslavl State University, 14 Sovetskaya str., 14, Yaroslavl, 150003, Russia

Abstract: In this paper, we offer an efficient parallel algorithm for solving the NP-complete Knapsack Problem in its basic, so-called 0-1 variant. To find its exact solution, algorithms belonging to the category "branch and bound methods” have long been used. To speed up the solving with varying degrees of efficiency, various options for parallelizing computations are also used. We propose here an algorithm for solving the problem, based on the paradigm of recursive-parallel computations. We consider it suited well for problems of this kind, when it is difficult to immediately break up the computations into a sufficient number of subtasks that are comparable in complexity, since they appear dynamically at run time. We used the RPM ParLib library, developed by the author, as the main tool to program the algorithm. This library allows us to develop effective applications for parallel computing on a local network in the .NET Framework. Such applications have the ability to generate parallel branches of computation directly during program execution and dynamically redistribute work between computing modules. Any language with support for the .NET Framework can be used as a programming language in conjunction with this library. For our experiments, we developed some C# applications using this library. The main purpose of these experiments was to study the acceleration achieved by recursive-parallel computing. A detailed description of the algorithm and its testing, as well as the results obtained, are also given in the paper.

Keywords: Knapsack Problem, parallel algorithm, recursion, .NET.

UDC: 519.688: 519.85

Received: 27.12.2017

DOI: 10.18255/1818-1015-2018-2-155-164



Bibliographic databases:


© Steklov Math. Inst. of RAS, 2026