Drug problems in Rats

Source: Internet
Author: User

We have many bottles of colorless liquid, one of which is poison and the others are distilled water. After the experiment, the mouse will die five minutes later, the mice that drink distilled water are all normal. There are five mice now. How many bottles of liquid can we use these five mice for detection in five minutes?

 

Analysis: For convenience of analysis, we take three mice as an example to export the general formula.

First, we give each bottle from 1 ~ N number, from 0 ~ K is numbered (Here K = 3-1 = 2)

Map k + 1 mouse to each digit of the binary number according to its serial number, as shown below:

Mouse No.: K K-1... 0

Binary: 0 0... 0

 

Next, we feed the I-th bottle of liquid to the mouse that corresponds to the binary I, where the median is 1, as shown below:

 

1 (001)

2 (010)

3 (011)

4 (100)

5 (101)

6 (110)

7 (111)

Rat 0

001

 

011

 

101

 

111

Rat 1

 

010

011

 

 

110

111

Rat 2

 

 

 

100

101

110

111

 

If five minutes later, the mouse died, And the binary position 1 corresponding to the mouse serial number can be determined which bottle of liquid is toxic,

For example, if 0th and 2nd mice die, the binary position 1 corresponding to the serial number is 101, that is, 5, that is, 5th bottles of liquid are toxic, if none of them are dead, it indicates that the serial number bottle is non-toxic. Then the total amount of liquid that can be measured is 23-1 = 7 bottles.

 

Similarly, for five mice, 25-1 = 31 bottles can be detected, and for k, 2k-1 bottles can be detected.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.