Tue Oct 19 11:55:31 2021 knapsack_01_test: Python version: 3.6.9 Test knapsack_01() subset_gray_next_test Python version: 3.6.9 subset_gray_next generates all subsets of an N set. using the Gray code ordering: 0 0 1 0 1 means the subset contains 3 and 5. Gray code 1 0 0 0 0 0 2 1 0 0 0 0 3 1 1 0 0 0 4 0 1 0 0 0 5 0 1 1 0 0 6 1 1 1 0 0 7 1 0 1 0 0 8 0 0 1 0 0 9 0 0 1 1 0 10 1 0 1 1 0 11 1 1 1 1 0 12 0 1 1 1 0 13 0 1 0 1 0 14 1 1 0 1 0 15 1 0 0 1 0 16 0 0 0 1 0 17 0 0 0 1 1 18 1 0 0 1 1 19 1 1 0 1 1 20 0 1 0 1 1 21 0 1 1 1 1 22 1 1 1 1 1 23 1 0 1 1 1 24 0 0 1 1 1 25 0 0 1 0 1 26 1 0 1 0 1 27 1 1 1 0 1 28 0 1 1 0 1 29 0 1 0 0 1 30 1 1 0 0 1 31 1 0 0 0 1 32 0 0 0 0 1 subset_gray_next_test Normal end of execution. knapsack_01_brute_test: Python version: 3.6.9 Knapsack maximum capacity is 100 Come as close as possible to filling the knapsack. # 0/1 Weight 0 1 16 1 1 17 2 0 23 3 1 24 4 0 39 5 1 40 Total: 97 knapsack_01_brute_test Normal end of execution. knapsack_01_test: Normal end of execution. Tue Oct 19 11:55:31 2021