16-Oct-2022 09:58:10 partition_greedy_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test partition_greedy(). partition_greedy_test01(): partition_greedy() seeks a balanced partition using a greedy method. Partition a set of N integers W so that the subsets have equal sums. I W0 W1 1 19 2 17 3 13 4 9 5 6 -------- -------- 30 34 Discrepancy = 4 partition_greedy_test01(): partition_greedy() seeks a balanced partition using a greedy method. Partition a set of N integers W so that the subsets have equal sums. I W0 W1 1 484 2 114 3 205 4 288 5 506 6 503 7 201 8 127 9 410 -------- -------- 1393 1445 Discrepancy = 52 partition_greedy_test01(): partition_greedy() seeks a balanced partition using a greedy method. Partition a set of N integers W so that the subsets have equal sums. I W0 W1 1 771 2 121 3 281 4 854 5 885 6 734 7 486 8 1003 9 83 10 62 -------- -------- 2656 2624 Discrepancy = -32 partition_greedy_test01(): partition_greedy() seeks a balanced partition using a greedy method. Partition a set of N integers W so that the subsets have equal sums. I W0 W1 1 2 2 10 3 3 4 8 5 5 6 7 7 9 8 5 9 3 10 2 -------- -------- 27 27 Discrepancy = 0 partition_greedy_test01(): partition_greedy() seeks a balanced partition using a greedy method. Partition a set of N integers W so that the subsets have equal sums. I W0 W1 1 3 2 4 3 3 4 1 5 3 6 2 7 3 8 2 9 1 -------- -------- 11 11 Discrepancy = 0 partition_greedy_test(): Normal end of execution. 16-Oct-2022 09:58:10