Fast additive constant approximation algorithms for the safe deposit boxes problem with two and three currencies

Boaz Ben-Moshe, Yefim Dinitz

Research output: Contribution to conferencePaperpeer-review

Abstract

The following variant of the knapsack problem is considered; Suppose there are n safe deposit boxes, each containing known amounts of m currencies, and there is a certain need for each currency. The problem is to open the minimal number of boxes, in order to collect at least the prescribed amount of each currency. In a technical report, by Y. Dinitz and A. Karzanov, it is shown that this problem is NP-hard, and that its non-degenerate case can be solved within an absolute error of at most m - 1 in O(nm+1) time, assuming m is constant. They also suggested an O(n2) algorithm, with an absolute error of at most 1, for the general case of two currencies. We suggest new combinatorial algorithms with significantly improved runtime for the two and three currency cases (2D,3D). The 2D algorithm runs in O(nlog2 n) time, while the 3D algorithm runs in O(n2 log2 n) time. In addition to linear programming techniques, used in previous works, we also use the parametric search approach of N. Megiddo [10] for decreasing the running time. The degenerate case is formulated as an interesting problem, solved by combinatorial techniques.

Original languageEnglish
Pages53-56
Number of pages4
StatePublished - 1 Dec 2007
Event19th Annual Canadian Conference on Computational Geometry, CCCG 2007 - Ottawa, ON, Canada
Duration: 20 Aug 200722 Aug 2007

Conference

Conference19th Annual Canadian Conference on Computational Geometry, CCCG 2007
Country/TerritoryCanada
CityOttawa, ON
Period20/08/0722/08/07

Fingerprint

Dive into the research topics of 'Fast additive constant approximation algorithms for the safe deposit boxes problem with two and three currencies'. Together they form a unique fingerprint.

Cite this