• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 11:45
CEST 17:45
KST 00:45
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL19] Finals Recap: Standing Tall9HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Flash Announces Hiatus From ASL50Weekly Cups (June 23-29): Reynor in world title form?12FEL Cracov 2025 (July 27) - $8000 live event16Esports World Cup 2025 - Final Player Roster16Weekly Cups (June 16-22): Clem strikes back1
StarCraft 2
General
The GOAT ranking of GOAT rankings The SCII GOAT: A statistical Evaluation How does the number of casters affect your enjoyment of esports? Statistics for vetoed/disliked maps Esports World Cup 2025 - Final Player Roster
Tourneys
Master Swan Open (Global Bronze-Master 2) RSL: Revival, a new crowdfunded tournament series [GSL 2025] Code S: Season 2 - Semi Finals & Finals $5,100+ SEL Season 2 Championship (SC: Evo) FEL Cracov 2025 (July 27) - $8000 live event
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ Player “Jedi” cheat on CSL Unit and Spell Similarities Help: rep cant save Flash Announces Hiatus From ASL
Tourneys
[BSL20] Grand Finals - Sunday 20:00 CET [Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Path of Exile What do you want from future RTS games? Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Trading/Investing Thread The Games Industry And ATVI
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
Formula 1 Discussion 2024 - 2025 Football Thread NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Blogs
Culture Clash in Video Games…
TrAiDoS
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 741 users

1000 Milk Jars

Blogs > Slithe
Post a Reply
1 2 3 Next All
Slithe
Profile Blog Joined February 2007
United States985 Posts
Last Edited: 2008-05-16 18:30:05
May 16 2008 18:06 GMT
#1
Another math puzzle.

You've got 1000 jars of milk, and exactly one of them is poisoned. You want to figure out which one is poisoned. What you have at your disposal is an infinite number of rats that you can feed the milk. You have 3 hours to figure out which one is the poisoned one, and the poison takes a nondeterministic amount of time between 2 and 3 hours to kill a rat.

The question is, what's the fewest number of rats you have to use to find out for sure which jar is poisoned?

Here's a trivial hint:
+ Show Spoiler +
We have an upper bound of 1000 rats, since you can feed each rat a different jar of milk, and the one that dies corresponds to the poisoned milk jar. Useful hint eh?


*****
goldrush
Profile Blog Joined June 2004
Canada709 Posts
May 16 2008 18:10 GMT
#2
How many 'doses' does each jar contain?
Slithe
Profile Blog Joined February 2007
United States985 Posts
May 16 2008 18:11 GMT
#3
Infinite
Slithe
Profile Blog Joined February 2007
United States985 Posts
May 16 2008 18:12 GMT
#4
Hmm actually the way I formulated this problem might be problematic, give me a sec to review
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
May 16 2008 18:14 GMT
#5
Kinda depends on how much milk you can get the rats to drink.

are we to suppose that we are able to feed rats milk infinitely fast, that it takes no time to open and close the jars of milk?
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2008-05-16 18:16:11
May 16 2008 18:15 GMT
#6
given that it takes 2 hours to feel the effect, my answer is
+ Show Spoiler +

999 rats.

keNn)
Profile Blog Joined February 2003
Philippines297 Posts
May 16 2008 18:16 GMT
#7
can 1 rat drink more than 1 jar of milk? if so only 1 rat will die.
^_^
Elements
Profile Joined September 2007
United States13 Posts
Last Edited: 2008-05-16 18:19:11
May 16 2008 18:17 GMT
#8
+ Show Spoiler +
log2(1000) rounded up equals 10 rats.

Each milk is fed to a unique subset of the rats, depending on which subset dies, then you know the milk that was fed to that group was poisoned. With 10 rats, there are 2^10 = 1024 different subsets, which is enough.
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
May 16 2008 18:17 GMT
#9
999 rats?? xD
Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2008-05-16 18:19:40
May 16 2008 18:19 GMT
#10
On May 17 2008 03:17 Elements wrote:
+ Show Spoiler +
log2(1000) rounded up equals 10 rats.

Each milk is fed to a unique subset of the rats, depending on which subset dies, then you know the milk it came from was poisoned. With 10 rats, there are 2^10 = 1024 different subsets, which is enough.


you have a time limit.

(even though i think this answer is what he wanted the correct answer to the riddle to be, he just made the time limit wrong )
goldrush
Profile Blog Joined June 2004
Canada709 Posts
Last Edited: 2008-05-16 18:25:17
May 16 2008 18:20 GMT
#11
+ Show Spoiler +


My strategy: assumes that even the smallest dose of the poison will kill the rat, you can mix the milk together and still retain the poison, you can split the milk into enough portions, the time of death is exactly 2 hours (not a single second off) and the rat can drink that bloody much.

1 rat. Feed it very, very small sample of a different jar of milk every 3 seconds and note what time it dies.

If you can't measure the time of death that accurately, then simply add more rats and stagger the milk intake, combined with feeding the different rats with different combination of milks

Elements
Profile Joined September 2007
United States13 Posts
Last Edited: 2008-05-16 18:24:23
May 16 2008 18:23 GMT
#12
On May 17 2008 03:19 travis wrote:
Show nested quote +
On May 17 2008 03:17 Elements wrote:
+ Show Spoiler +
log2(1000) rounded up equals 10 rats.

Each milk is fed to a unique subset of the rats, depending on which subset dies, then you know the milk it came from was poisoned. With 10 rats, there are 2^10 = 1024 different subsets, which is enough.


you have a time limit.

(even though i think this answer is what he wanted the correct answer to the riddle to be, he just made the time limit wrong )


The time limit is no problem, you do it simultanously.
An example might be better:
+ Show Spoiler +
with 4 jars and 2 rats,
rat 1 drinks jar 2 and 4
rat 2 drinks jar 3 and 4

two hours later...

if no rats die, it was jar 1
if only rat 1 dies, it was jar 2
if only rat 2 dies, it was jar 3
if both rat 1 and rat 2 die, it was jar 4
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
May 16 2008 18:25 GMT
#13
On May 17 2008 03:23 Elements wrote:
Show nested quote +
On May 17 2008 03:19 travis wrote:
On May 17 2008 03:17 Elements wrote:
+ Show Spoiler +
log2(1000) rounded up equals 10 rats.

Each milk is fed to a unique subset of the rats, depending on which subset dies, then you know the milk it came from was poisoned. With 10 rats, there are 2^10 = 1024 different subsets, which is enough.


you have a time limit.

(even though i think this answer is what he wanted the correct answer to the riddle to be, he just made the time limit wrong )


The time limit is no problem, you do it simultanously.
An example might be better:
+ Show Spoiler +
with 4 jars and 2 rats,
rat 1 drinks jar 2 and 4
rat 2 drinks jar 3 and 4

two hours later...

if no rats die, it was jar 1
if only rat 1 dies, it was jar 2
if only rat 2 dies, it was jar 3
if both rat 1 and rat 2 die, it was jar 4



yes but u have to wait 2 hours so by the time u get it narrowed down to less jars, you have no time let to do a second wave of experiments
Slithe
Profile Blog Joined February 2007
United States985 Posts
Last Edited: 2008-05-16 18:26:21
May 16 2008 18:25 GMT
#14
So the main thing I wanted to avoid was gold rush's answer which utilizes time to figure out when the rats die.

It should be that you cannot really discern any information about when the rats died, and therefore should be unable to figure out when the rat died simply by time.

@travis
The rats have infinite capacity, and you have the ability to feed the rats any amount of milk instantly. The main reason for the time limit is to make sure you can't feed the rats poison after a rat has already died.

@Elements
Congratulations you have solved the problem.
goldrush
Profile Blog Joined June 2004
Canada709 Posts
May 16 2008 18:26 GMT
#15
On May 17 2008 03:25 travis wrote:
Show nested quote +
On May 17 2008 03:23 Elements wrote:
On May 17 2008 03:19 travis wrote:
On May 17 2008 03:17 Elements wrote:
+ Show Spoiler +
log2(1000) rounded up equals 10 rats.

Each milk is fed to a unique subset of the rats, depending on which subset dies, then you know the milk it came from was poisoned. With 10 rats, there are 2^10 = 1024 different subsets, which is enough.


you have a time limit.

(even though i think this answer is what he wanted the correct answer to the riddle to be, he just made the time limit wrong )


The time limit is no problem, you do it simultanously.
An example might be better:
+ Show Spoiler +
with 4 jars and 2 rats,
rat 1 drinks jar 2 and 4
rat 2 drinks jar 3 and 4

two hours later...

if no rats die, it was jar 1
if only rat 1 dies, it was jar 2
if only rat 2 dies, it was jar 3
if both rat 1 and rat 2 die, it was jar 4



yes but u have to wait 2 hours so by the time u get it narrowed down to less jars, you have no time let to do a second wave of experiments


Thing is, after the first time, you already know exactly what jar it is. You haven't narrowed down the possibility; you've found the only jar that could be poison.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
May 16 2008 18:27 GMT
#16
On May 17 2008 03:20 goldrush wrote:
+ Show Spoiler +


My strategy: assumes that even the smallest dose of the poison will kill the rat, you can mix the milk together and still retain the poison, you can split the milk into enough portions, the time of death is exactly 2 hours (not a single second off) and the rat can drink that bloody much.

1 rat. Feed it very, very small sample of a different jar of milk every 3 seconds and note what time it dies.

If you can't measure the time of death that accurately, then simply add more rats and stagger the milk intake, combined with feeding the different rats with different combination of milks





well given the specificity of the rules I would have to say this is a very clever answer. though it would never workd in the real world cuz digestion doesn't work like that hehe
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
May 16 2008 18:30 GMT
#17
I am so confused by what you guys are saying right now. with a 2 hour delay, how can u possibly find out with only 10 rats?



let's say it's the 50th jar out of the 1000 jars. how do you find out with only 10 rats?
goldrush
Profile Blog Joined June 2004
Canada709 Posts
May 16 2008 18:30 GMT
#18
Well, I assumed that if you gave the time limit and the time to die that they would be used...
KarlSberg~
Profile Blog Joined September 2003
731 Posts
Last Edited: 2008-05-16 18:37:41
May 16 2008 18:35 GMT
#19
+ Show Spoiler +
Does the poison take exactly 2 hours to kill a rat?

If so, give a dose from a different jar each 3.6 seconds to the same rat. See when it dies, substract 2 hours and you know exactly at what time it drank the poisoned milk.


I must admit this solution doesn't seem very feasible in a real situation... but nothing in the ridle says it is not =)

EDIT: ouch fuck, it does. Did I misread or was that the part that was edited in the OP?
There are 01 kind of people who know binary. Those who understand little endian and those who don t.
Slithe
Profile Blog Joined February 2007
United States985 Posts
Last Edited: 2008-05-16 18:40:43
May 16 2008 18:35 GMT
#20
@travis
+ Show Spoiler +

Let's say we represent every single jar in binary. This requires 10 binary digits (2^10 = 1024 > 1000). Each of the 10 rats corresponds to one of these digits.

After you have represented all your jars in binary, you take your first rat, and feed it milk from all the jars that has a 1 in the first digit. Take the second rat, and feed it milk from all the jars that has a 1 in the second digit. Do this for all 10 rats.

The number 50 in binary is 0000110010. Each digit of the 10 digit binary number corresponds to one of the 10 rats, so you will feed the 2nd, 5th, and 6th rat some milk from the 50th jar. After 2 hours, these three rats will die, and you will know that it had to be the 50th jar, because no other jar had exactly these 3 rats drink from it.
1 2 3 Next All
Please log in or register to reply.
Live Events Refresh
OSC
13:00
King of the Hill #216
davetesta90
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 339
Hui .259
Vindicta 53
StarCraft: Brood War
Britney 55779
Calm 4685
Rain 3107
Shuttle 3057
EffOrt 1592
Horang2 1251
Hyuk 1093
Larva 720
BeSt 341
hero 182
[ Show more ]
Mini 162
Nal_rA 155
Light 142
Mind 127
ToSsGirL 108
Rush 76
Snow 68
Mong 61
Barracks 57
Hyun 48
Shinee 48
Movie 36
soO 33
JYJ26
HiyA 16
Shine 13
yabsab 10
SilentControl 10
IntoTheRainbow 9
Backho 7
zelot 4
Dota 2
Gorgc9712
qojqva3542
League of Legends
singsing2639
Trikslyr29
Counter-Strike
zeus364
Foxcn254
byalli99
edward55
Other Games
Grubby2666
B2W.Neo1577
hiko1078
Lowko406
Fuzer 327
FrodaN256
Pyrionflax56
QueenE36
LuMiX1
Organizations
StarCraft 2
WardiTV19
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• iHatsuTV 2
• poizon28 1
• Kozan
• IndyKCrew
• sooper7s
• AfreecaTV YouTube
• Migwel
• intothetv
• LaughNgamezSOOP
StarCraft: Brood War
• Michael_bg 10
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 2938
• WagamamaTV528
League of Legends
• Nemesis6970
• Jankos1488
• TFBlade878
Other Games
• Shiphtur28
Upcoming Events
WardiTV European League
15m
Scarlett vs Percival
Jumy vs ArT
YoungYakov vs Shameless
uThermal vs Fjant
Nicoract vs goblin
Harstem vs Gerald
FEL
15m
Big Brain Bouts
15m
RotterdaM353
Korean StarCraft League
11h 15m
CranKy Ducklings
18h 15m
RSL Revival
18h 15m
ByuN vs Cham
herO vs Reynor
FEL
1d
RSL Revival
1d 18h
Clem vs Classic
SHIN vs Cure
FEL
1d 20h
BSL: ProLeague
2 days
Dewalt vs Bonyth
[ Show More ]
Replay Cast
3 days
Sparkling Tuna Cup
3 days
The PondCast
4 days
Replay Cast
5 days
RSL Revival
5 days
Replay Cast
6 days
RSL Revival
6 days
Liquipedia Results

Completed

Proleague 2025-06-28
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025

Upcoming

2025 ACS Season 2: Qualifier
CSLPRO Last Chance 2025
2025 ACS Season 2
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.