A treasure hunter has just found 14 sacks of gold on a pedestal in a temple. The problem is, by taking the gold sacks he awakened the two guardians of the temple and was captured. The guardians have agreed to spare his life if he can give to both of them the same non-zero amount of gold, without opening the sacks.
Each sack is marked with a distinct 3 digit number (anything from 001 to 999) and contains that much gold.
After the guardians have received their gold, the treasure hunter must place all remaining gold sacks back on the pedestal.
To make this more difficult for you, I will not tell you how much gold each sack contains. Instead I will ask you to show that the treasure hunter can always appease the guardians.
A more mathematical way of phrasing the problem: given a set of 14 integers S = {n1, n2, ..., n14}, where 0 < ni < 1000 for all i, show that there must exist two disjoint non-empty subsets of S with the same sum.
Question
Rainman
A treasure hunter has just found 14 sacks of gold on a pedestal in a temple. The problem is, by taking the gold sacks he awakened the two guardians of the temple and was captured. The guardians have agreed to spare his life if he can give to both of them the same non-zero amount of gold, without opening the sacks.
To make this more difficult for you, I will not tell you how much gold each sack contains. Instead I will ask you to show that the treasure hunter can always appease the guardians.
A more mathematical way of phrasing the problem: given a set of 14 integers S = {n1, n2, ..., n14}, where 0 < ni < 1000 for all i, show that there must exist two disjoint non-empty subsets of S with the same sum.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.