A businessman decides to hold a party at his villa. His guests gift him with bottles of wine . By the end of the party, he has 1000 bottles of wine . However, he is informed that one of these bottles has poison. The businessman decides to test those bottles by making mice drink samples from each bottle . One mouse can drink one or more samples. The poison affects the mice the next morning. How many minimum mice are required to carry out this test within one day?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Let the bottles be numbered from 1 to 1000 in binary. Since 1000 < 1024, we only need 10 digits to do this.
Let the mice be numbered from 0 to 9, and let each mouse i sample every bottle that has a '1' in its binary expansion in the ith position.
The next morning, a subset of the mice will have been poisoned. Translate the powers of two represented by the mice and add them up. This is the binary code of the poisonous wine.
For example, if mice 1, 4, and 7 are poisoned, then the index of the poisonous wine is 2^7 + 2^4 + 2^1 = 128 + 16 + 2 = 146.