• Home
  • Search
  • The Money Changing Problem Revisited: Computing the Frobenius Number in Time O(ka 1)
  • Cite Icon25
  • https://doi.org/10.1007/11533719_97Copy DOI Icon

The Money Changing Problem Revisited: Computing the Frobenius Number in Time O(ka 1)

  • Jan 1, 2005
  • Sebastian Böcker +1 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

The Money Changing Problem (also known as Equality Constrained Integer Knapsack Problem) is as follows: Let a 1 < a 2 < ... < a k be fixed positive integers with \(\gcd(a_1, \dots, a_k) = 1\). Given some integer n, are there non-negative integers x 1, ..., x k such that ∑ i a i x i = n? The Frobenius numberg(a 1, ..., a k ) is the largest integer n that has no decomposition of the above form.There exist algorithms that, for fixed k, compute the Frobenius number in time polynomial in log a k . For variable k, one can compute a residue table of a 1 words which, in turn, allows to determine the Frobenius number. The best known algorithm for computing the residue table has runtime O(ka 1 log a 1) using binary heaps, and O(a 1 (k+log a 1)) using Fibonacci heaps. In both cases, O(a 1) extra memory in addition to the residue table is needed. Here, we present an intriguingly simple algorithm to compute the residue table in time O(ka 1) and extra memory O(1). In addition to computing the Frobenius number, we can use the residue table to solve the given instance of the Money Changing Problem in constant time, for any n.KeywordsPriority QueueGreat Common DivisorFrobenius NumberExtra MemoryLinear Diophantine EquationThese keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Similar Papers
  • Research Article

The Frobenius number for shifted geometric sequences associated with the number of solutions

  • Oct 01, 2024
  • Publicationes Mathematicae Debrecen
  • Takao Komatsu
  • Research Article
  • Citations12

P-Numerical semigroups with p-symmetric properties

  • Jun 26, 2023
  • Journal of Algebra and Its Applications
  • Takao Komatsu +1
  • Conference Article
  • Citations37

Recompression: A Simple and Powerful Technique for Word Equations

  • Feb 18, 2013
  • DROPS (Schloss Dagstuhl – Leibniz Center for Informatics)
  • Artur Jeż
  • Conference Article
  • Citations4

An O(log N) Parallel Time Exact Hidden-Line Algorithm

  • Jan 01, 1988
  • Eurographics
  • Frank Dévai
  • Conference Article
  • Citations5

PAC=PAExact and other equivalent models in learning

  • Nov 16, 2002
  • N.H Bshouty +1
  • Book Chapter
  • Citations34

The Frobenius Problem and Its Generalizations

  • Jan 01, 2008
  • Jeffrey Shallit
  • Research Article
  • Citations12

Frobenius numbers of Pythagorean triples

  • Mar 01, 2015
  • International Journal of Number Theory
  • Byung Keon Gil +8
  • Conference Article
  • Citations1

The random access hierarchy

  • Jan 01, 1983
  • Dale Myers
  • Research Article
  • Citations245

Lattice translates of a polytope and the Frobenius problem

  • Jun 01, 1992
  • Combinatorica
  • Ravi Kannan
  • Research Article
  • Citations3

Irreducible proportionally modular numerical semigroups

  • Feb 01, 2011
  • Publicationes Mathematicae Debrecen
  • Jose Carlos Rosales +1
  • Research Article

Berkovich–Uncu Type Partition Inequalities Concerning Impermissible Sets and Perfect Power Frequencies

  • Mar 16, 2023
  • Annals of Combinatorics
  • Damanvir Singh Binner +2
  • Conference Article
  • Citations7

Parameterized Algorithms on Perfect Graphs for Deletion to (r,l)-Graphs

  • Jan 01, 2016
  • DROPS (Schloss Dagstuhl – Leibniz Center for Informatics)
  • Sudeshna Kolay +3
  • PDF
  • Conference Article
  • Citations8

Byzantine Gathering in Polynomial Time

  • Dec 26, 2018
  • Sébastien Bouchard +2
  • Research Article
  • Citations11

On the Graph Connectivity of Skeleta of Convex Polytopes

  • May 12, 2009
  • Discrete &amp; Computational Geometry
  • Christos A Athanasiadis
  • Research Article

B-Chromatic Sum of Mycielskian of Paths

  • Dec 01, 2017
  • Electronic Notes in Discrete Mathematics
  • P.C Lisna +1
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.