Change-Making Problem (Change-Making Problem)

From Algorithm Wiki
Revision as of 10:26, 15 February 2023 by Admin (talk | contribs) (Created page with "{{DISPLAYTITLE:Change-Making Problem (Change-Making Problem)}} == Description == Given an unlimited amount of coins of denominations $c_1, \ldots, c_n$, and a desired sum $S$, find the minimum number of coins necessary to make $S$. == Parameters == <pre>n: number of coin denominations S: sum to be made</pre> == Table of Algorithms == {| class="wikitable sortable" style="text-align:center;" width="100%" ! Name !! Year !! Time !! Space !! Approximation Factor !!...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

Given an unlimited amount of coins of denominations $c_1, \ldots, c_n$, and a desired sum $S$, find the minimum number of coins necessary to make $S$.

Parameters

n: number of coin denominations
S: sum to be made

Table of Algorithms

Name Year Time Space Approximation Factor Model Reference
Brute Force 1940 $O(S^n)$ $O(n)$ Exact Deterministic
Dynamic Programming 1953 $O(Sn)$ $O(Sn)$ Exact Deterministic Time
Probabilistic Convolution Tree 2014 $O(n log n)$ $O(n log n)$ Deterministic Time & Space

Time Complexity graph

Change-Making Problem - Time.png

Space Complexity graph

Change-Making Problem - Space.png

Pareto Decades graph

Change-Making Problem - Pareto Frontier.png