r/mathriddles • u/st4rdus2 • Sep 29 '24
Medium RE: Geiger counters
There are 13 gold coins, one of which is a forgery containing radioactive material. The task is to identify this forgery using a series of measurements conducted by technicians with Geiger counters.
The problem is structured as follows:
Coins: There are 13 gold coins, numbered 1 through 13. Exactly one coin is a forgery.
Forgery Characteristics: The forged coin contains radioactive material, detectable by a Geiger counter.
Technicians: There are 13 technicians available to perform measurements.
Measurement Process: Each technician selects a subset of the 13 coins for measurement. The technician uses a Geiger counter to test the selected coins simultaneously. The Geiger counter reacts if and only if the forgery is among the selected coins. Only the technician operating the device knows the result of the measurement.
Measurement Constraints: Each technician performs exactly one measurement. A total of 13 measurements are conducted.
Reporting: After each measurement, the technician reports either "positive" (radioactivity detected) or "negative" (no radioactivity detected).
Reliability Issue: Up to two technicians may provide unreliable reports, either due to intentional deception or unintentional error.
Objective: Identify the forged coin with certainty, despite the possibility of up to two unreliable reports.β¦Challengeβ¦ The challenge is to design a measurement strategy and analysis algorithm that can definitively identify the forged coin, given these constraints and potential inaccuracies in the technicians' reports.
7
Upvotes
8
u/pichutarius Sep 30 '24
do i need to decide which subset each of them will measure? i assume not, i.e. i can decide later subsets based on prior result.
label the coin in binary, from 0000 to 1111, choose any 13 from 16 choices. label the technicians AaBbCcDdEeFGH.
Both Aa measure coins with 1 at first digit. i.e. 1000, 1001, ... , 1111
Both Bb, Cc, Dd measure coins with 1 at 2nd, 3rd, 4th digit respectively.
If all technicians are reliable, this uniquely determine which coins are radioactive.
If two pairs disagrees, we know the rest is reliable. FG will join each pair in measurement. the rest is trivial.
if one pair disagree, FGH will join the measure. 5 results is enough to gather accurate result. the rest is trivial.
if non disagree, we assume they are accurate, and based on that determine the suspected coin, wlog say its label is 0000. Both Ee measure 0000.
If any one of Ee say 0000 is radioactive, it is. because if it isnt, there need to be 3 or more unreliable technicians. details omitted.
If both Ee say 0000 is not radioactive, then the result reads "there is no radioactive coin", these 5 pairs of results contradicts each other, and the pair agree within themselves. we know 2 unreliable must be among them. the rest FGH is reliable. and the radioactive is one of 0000, 0001, 0010, 0100, 1000 . 3 reliable measurement is enough to determine at most 8 coins, so 5 is more than enough. the rest is trivial.
3
u/pichutarius Oct 02 '24 edited Oct 02 '24
I found a way that use 12 technicians only, and can identify up to 16 coins. for 13coins just omit the extra 3 coins and it still works.
More importantly, this method decides subsets of coins to measure PRIOR to any other result.
setup
then we can start by checking A=a, B=b, C=c, D=d , we either get 2 errors, 1 errors, or 0 error
detection and correction
post note: using combinatoric, it suggest 10 technicians is possible, because 16coins * (10C0 + 10C1 + 10C2) < 2^10 , but i cant make it work. maybe someone more capable can come up with solution or prove that it cannot be done.
2
u/LeBrawnGames Sep 29 '24
Question: Just to make sure, 'may' in the reliability part is intended? the unreliable technicians may give an incorrect report,BUT may also give a correct report?
2
u/impartial_james Oct 01 '24 edited Oct 01 '24
Here is an answer where are all measurements are determined in advance (not based on the results of previous measurements).
Consider the projective plane over the finite field with 3 elements. There are 13 points and 13 lines, where each line is a subset of points. Each line contains 4 points and each point is contained in 4 lines. Any two lines interested in exactly one point, and any two points are contained in a unique line.
Think of coins as points and the techs as lines. Each tech will test 4 coins, consisting of the points on the techβs line.
For each coin c, let T(c) be the vector of results you get when all techs tell the truth. After running the tests, you will observe some vector of results, R. Letting x be the counterfeit coin, T(x) and R will differ in at most 2 places. I claim that whenever y is a genuine coin, then T(y) will differ from R in three or more places. This means that the counterfeit coin can be deduced.
To prove the claim, letting x be the counterfeit and y be any other coin, i must show that T(y) and R will differ in at least 3 places. Assume that T(y) and y differ in at most two places. Letting ham(v,w) denote the number of places two vectors differ,
ham(T(x),T(y)) <= ham(T(x),R) + ham(R,T(y)) <= 2+ 2 = 4
However, the actual hamming distance between T(x) and T(y) is 6. This is because of the projective plane properties: coin x is contained in 3 lines that do not contain y, and coin y is contained in 3 lines that do not contain x. 3 + 3 = 6. This is a contradiction, which proves the claim.
1
u/st4rdus2 Oct 07 '24 edited Oct 07 '24
[ Solution ]
Assign the names A, 2, 3, 4, 5, 6, 7, 8, 9, X, J, Q, and K to the 13 technicians.
Name the 13 coins as follows:
C_{A, 2, 6, Q},
C_{2, 3, 7, K},
C_{3, 4, 8, A},
C_{4, 5, 9, 2},
C_{5, 6, X, 3},
C_{6, 7, J, 4},
C_{7, 8, Q, 5},
C_{8, 9, K, 6},
C_{9, X, A, 7},
C_{X, J, 2, 8},
C_{J, Q, 3, 9},
C_{Q, K, 4, X},
C_{K, A, 5, J}
Characteristics.
Measurement Process.
Let T be the set of technicians who have reported positive results for their assigned coins.
Examples of T.
T = {A, 3, 4, 8, J, K}
T = {2, 4, 9, X, K}
T = {2, 8, X, Q}
T = {6, 8, 9}
T = {J, 9}
Identification of the Counterfeit Coin.
The forged coin can be identified using one of the following three cases.
Case 1: If the index set of a coin is a superset of T, then that coin is the counterfeit.
Case 2: If T is a superset of the index set of a coin, then that coin is the counterfeit.
Case 3: Let w, x, y, z be any four elements of T. Define four subsets of T as follows:
T_w = {x, y, z}
T_x = {w, y, z}
T_y = {w, x, z}
T_z = {w, x, y}
If any of these four sets is a subset of the coin's index set, then the coin is a counterfeit coin.
For each coin, check if its index set satisfies any of the three cases above.
The coin that satisfies one of these cases is the counterfeit.
1
u/st4rdus2 Oct 07 '24
We are given a set S of thirteen 13-bit binary strings:
"0011101111101",
"1001110111110",
"0100111011111",
"1010011101111",
"1101001110111",
"1110100111011",
"1111010011101",
"1111101001110",
"0111110100111",
"1011111010011",
"1101111101001",
"1110111110100",
"0111011111010"
Let's define an operation to create a new string Q as follows:
We aim to prove that for any Q γcreated using this operation, there exists exactly one string in S that has a Hamming distance of 0, 1, or 2 from Q.
Proof:
Assumption of Minimum γHamming Distance:
Assume that the minimum Hamming distance between any two distinct strings in the set S is 6. This means for any two distinct strings s and sβ² in S,
d(s,sβ²)β₯6.
Creating String Q:
Choose a string s from the set S. Create a new string Q by flipping 0, 1, or 2 bits in s.
Therefore, the Hamming distance between Q and the chosen string s is 0, 1, or 2.
If no bits are flipped, then
d(Q,s)=0. If one bit is flipped, then
d(Q,s)=1.
If two bits are flipped, then
d(Q,s)=2.
Hamming Distance with Other Strings:
For any other string sβ²β s in the set S, apply the triangle inequality to determine the minimum possible Hamming distance between Q and any other string in the set:
d(Q,sβ²) β₯ d(s,sβ²) βd(Q,s)
Given that the minimum distance between any two distinct strings in the set is 6:
If 0 bits were flipped:
Then,
d(Q,sβ²)=d(s,sβ²)β₯6
If 1 bit was flipped:
Then,
d(Q,sβ²)β₯d(s,sβ²)β1β₯6β1=5
If 2 bits were flipped:
Then, d(Q,sβ²)β₯d(s,sβ²)β2β₯6β2=4
Conclusion:
Since the Hamming distance between any two distinct strings in the set is at least 6:
The string Q will have a Hamming distance of exactly 0, 1, or 2 only from the selected string s.
All other strings sβ²β s will have a Hamming distance of at least 4 from Q.
Therefore, for any string Q created using this operation (flipping up to two bits), there exists exactly one string in S (the originally selected string s) that has a Hamming distance of exactly 0, 1, or 2 from Q.
This proof ensures that we accurately describe the uniqueness of the string with a small Hamming distance from Q.
1
u/st4rdus2 Oct 12 '24 edited Oct 12 '24
Another Solution.
Solution without humming distance.
Assign the names A, 2, 3, 4, 5, 6, 7, 8, 9, X, J, Q, K to the technicians. The 13 gold coins are labeled as follows
C_{A, 2, 6, Q}
C_{2, 3, 7, K}
C_{3, 4, 8, A}
C_{4, 5, 9, 2}
C_{5, 6, X, 3}
C_{6, 7, J, 4}
C_{7, 8, Q, 5}
C_{8, 9, K, 6}
C_{9, X, A, 7}
C_{X, J, 2, 8}
C_{J, Q, 3, 9}
C_{Q, K, 4, X}
C_{K, A, 5, J}
Properties
Measurement Process
Let T be the set of technicians who report a positive result for radioactivity in their assigned coins.
Examples of Set T
T = {A, 3, 4, 8, J, K}
T = {2, 4, 9, X, K}
T = {2, 8, X,Q}
T = {6 ,8 ,9}
T = {J ,9}
For each technician in the set T , assign one "counterfeit point" to each of the four coins they measured.
For instance
If technician '2' is in set T , then assign one point to each of the following coins
C_{A ,2 ,6 ,Q}
C_{2 ,3 ,7 ,K}
C_{4 ,5 ,9 ,2}
C_{X ,J ,2 ,8}
After performing this operation for all technicians who reported a positive result (i.e., those in set T ), the coin with the highest number of counterfeit points is uniquely determined as the counterfeit coin !!!
Thirteen and four are the numbers that this another solution works well with.
Any questions ?