Skip to content
Back Home

April Crockett

  • Home
  • CSC 1300/1310 (C++)
  • CSC 2400 (Algorithms)
  • About April
  • Search
Back Home

April Crockett

  • Search
  • Home
  • CSC 1300/1310 (C++)
  • CSC 2400 (Algorithms)
  • About April

Problem Description Given n items of known weights (w1,….,wn) and values (v1,…,vn) and a knapsack of capacity W, find the most valuable subset of the items that fit into the knapsack. The 0-1 Knapsack Problem can be solved using the brute-force exhaustive search technique where you must find all 2n […]

Knapsack Dynamic Programming Algorithm

Change Making Problem

Give change for amount (n) using the minimum number of coins of denominations (d1 < d2 < … < dm).  There is also a greedy algorithm to solve this problem but this post is on the dynamic programming technique algorithm.  In this problem, we assume that there is an unlimited […]

Change Making Dynamic Programming Algorithm

Posts navigation

  • Newer posts Newer posts
    • 1
    • 2
    • 3

© 2026 April Crockett – All rights reserved

Powered by WP – Designed with the Customizr theme