...
/Challenge: Splitting the Pirate Loot
Challenge: Splitting the Pirate Loot
Solve the 3-Partition Problem.
Problem
3-Partition Problem
Partition a set of integers into three subsets with equal sums.
Input: A sequence of integers , ,…, .
Output: Check whether it is possible to partition them into three subsets with equal sums, i.e., check whether there exist three disjoint sets , , ⊆ { ...