menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Data Science News

>

Using Bina...
source image

Dev

1M

read

417

img
dot

Image Credit: Dev

Using Binary To Solve the Poisoned Barrel Puzzle

  • A king has 100 barrels of wine, but one of them is poisoned.
  • To identify the poisoned barrel in just one round of testing, the king doesn't need 100 testers.
  • By allowing testers to combine efforts and using binary encoding, the number of required testers can be reduced.
  • For 100 barrels, only 7 testers are needed to identify the poisoned barrel.

Read Full Article

like

25 Likes

For uninterrupted reading, download the app