The king can identify the poisoned bottle using a binary identification system with the 10 prisoners. Here's the step-by-step explanation:
-
Number the Bottles: Assign each of the 1000 bottles a unique number from 0 to 999.
-
Binary Representation: Convert each bottle's number into a 10-bit binary code (since (2^{10} = 1024) covers all 1000 bottles). For example:
- Bottle 0 →
0000000000
- Bottle 1 →
0000000001
- Bottle 1000 →
1111101000 (binary of 1000).
-
Assign Prisoners to Bits: Label the prisoners as Prisoner 1 (for the 1st bit) to Prisoner 10 (for the 10th bit).
-
Testing:
- For each bottle, if the nth bit in its binary number is 1, have Prisoner n drink from that bottle.
- Every prisoner drinks from all bottles where their assigned bit is 1.
-
Identify the Poisoned Bottle:
- After 24 hours, note which prisoners have died.
- Treat the dead prisoners as 1s and alive prisoners as 0s, reading from Prisoner 10 (most significant bit) to Prisoner 1 (least significant bit). This binary number corresponds to the poisoned bottle's ID.
Example:
If prisoners 3, 5, and 7 die, their binary representation (0000101010) translates to decimal 34 (if counting from the right) or 906 (if counting from the left as the most significant bit). Ensure consistency in bit order (e.g., left-to-right for prisoners 10 to 1).
Why This Works:
- Each bottle is uniquely identified by a 10-bit number.
- The prisoners act as binary sensors, with their survival/death indicating each bit.
- This method minimizes the number of prisoners needed (10 is the minimum for 1000 bottles) and guarantees identification within 24 hours.
Final Answer:
Label each bottle with a 10-bit binary number (0 to 999). Assign each prisoner to a bit position. Have each prisoner drink from all bottles where their bit is 1. After 24 hours, the combination of dead prisoners reveals the binary ID of the poisoned bottle. The poisoned bottle is identified as \boxed{\text{the decimal equivalent of the binary number formed by the dead prisoners (1 for dead, 0 for alive)}}.