def test1(self): lst1 = [3, 4, 6] lst2 = [1, 2] value1 = 4 value2 = 5 weight = 7 s = Knapsack() res = s.get_max_value(lst1, lst2, value1, value2, weight) print res
def test2(self): lst1 = [3, 4, 6] lst2 = [1, 2] value1 = 1 value2 = 1 weight = 6 s = Knapsack() print res = s.get_max_value_selection(lst1, lst2, value1, value2, weight) print res