Optimally making change-representing a given value with the fewest coins from a set of denominations-is in general NP-hard. In most real money systems however, the greedy algorithm is optimal. We give a polynomial-time algorithm to determine, for a given coin system, whether the greedy algorithm is optimal. (C) 2004 Elsevier B.V. All rights reserved.
机构:
Univ Warwick, Dept Comp Sci, Coventry CV4 7AL, W Midlands, England
Univ Warwick, Ctr Discrete Math & Its Applicat, Coventry CV4 7AL, W Midlands, EnglandUniv Warwick, Dept Comp Sci, Coventry CV4 7AL, W Midlands, England
Adamaszek, Anna
Adamaszek, Michal
论文数: 0引用数: 0
h-index: 0
机构:
Univ Warwick, Ctr Discrete Math & Its Applicat, Coventry CV4 7AL, W Midlands, England
Univ Warwick, Warwick Math Inst, Coventry CV4 7AL, W Midlands, EnglandUniv Warwick, Dept Comp Sci, Coventry CV4 7AL, W Midlands, England