Commit graph

2 commits

Author SHA1 Message Date
Bradley M. Kuhn
dfcdb3f611 This script is released under the GPLv3. I am the sole copyright holder. 2013-01-08 13:40:06 -05:00
Bradley M. Kuhn
2dca069d81 Perl solution to the Subset Sum problem.
This uses the well-known Dynamic Programming solution.  I found two
different incarnations of it around, one for nonnegative set, and one for
integers.

Reference for the nonnegative one:
  http://stackoverflow.com/questions/4355955/subset-sum-algorithm

Reference for integers one:
  http://en.wikipedia.org/wiki/Subset_sum_problem
2013-01-08 13:38:23 -05:00