Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
courses:cs211:winter2012:journals:mike:home [2012/03/28 03:36] – [Least Squares] whitem12courses:cs211:winter2012:journals:mike:home [2012/03/28 03:59] – [Adding a variable] whitem12
Line 101: Line 101:
  
 ==== Adding a variable ==== ==== Adding a variable ====
 +The subset sums problem is where each event has a value and a weight.  There is a limit on the weight you can take on, so you want to optimize the sum of the values given a maximum weight W.  There is no greedy algorithm to find this solution, so we look for dynamic programming.  We build a 2D table (matrix) of optimal solutions to find the overall optimal solution for all w's and combinations.
  
 +
 +The knapsack problem is one where each element has a value and a weight.  You want to maximize the sum of the values while keeping the weight below a certain amount.  This is solved the same was as the scheduling problem.  
courses/cs211/winter2012/journals/mike/home.txt · Last modified: 2012/03/28 04:00 by whitem12
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0