Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

An evil king has a cellar containing n bottles of expensive wine, and his guards have just caught a spy trying to poison the kings

An evil king has a cellar containing n bottles of expensive wine, and his guards have just caught a spy trying to poison the kings wine. Fortunately, the guards caught the spy after he succeeded in poisoning only one bottle. Unfortunately, they dont know which one. To make matters worse, the poison the spy used was very deadly; just one drop diluted even a billion to one will still kill someone. Even so, the poison works slowly; it takes a full month for the person to die. Design a scheme that allows the evil king to determine exactly which one of his wine bottles was poisoned in just one months time while expending at most O(logn) of his taste testers.

You are not allowed to use n testers, one for each bottle, and see which one tester dies after 30 days.(No pseudocode needed. Just answer in words, how many testers you use, how you use them and why you correctly identify the poisoned bottle in 30 days)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions