计算机科学 > 数据结构与算法
[提交于 2009年3月21日 (v1),最后修订于 2009年3月21日 (此版本, v2)]
标题:Canonical Coin Systems for Change-Making Problems
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:The Change-Making Problem is to represent a given value with the fewest coins under a given coin system. As a variation of the knapsack problem, it is known to be NP-hard. Nevertheless, in most real money systems, the greedy algorithm yields optimal solutions. In this paper, we study what type of coin systems that guarantee the optimality of the greedy algorithm. We provide new proofs for a sufficient and necessary condition for the so-called \emph{canonical} coin systems with four or five types of coins, and a sufficient condition for non-canonical coin systems, respectively. Moreover, we present an $O(m^2)$ algorithm that decides whether a tight coin system is canonical.
提交历史
来自:Xuan Cai[v2] 2009年3月21日 星期六 16:12:55 UTC