• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 17:53
CEST 23:53
KST 06:53
  • 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
[ASL20] Ro8 Preview Pt1: Mile High10Team TLMC #5 - Finalists & Open Tournaments2[ASL20] Ro16 Preview Pt2: Turbulence10Classic Games #3: Rogue vs Serral at BlizzCon10[ASL20] Ro16 Preview Pt1: Ascent10
Community News
StarCraft II 5.0.15 PTR Patch Notes187BSL 2025 Warsaw LAN + Legends Showmatch2Weekly Cups (Sept 8-14): herO & MaxPax split cups4WardiTV TL Team Map Contest #5 Tournaments1SC4ALL $6,000 Open LAN in Philadelphia8
StarCraft 2
General
StarCraft II 5.0.15 PTR Patch Notes Why Storm Should NOT Be Nerfed – A Core Part of Pr #1: Maru - Greatest Players of All Time SC4ALL: A North American StarCraft LAN Team TLMC #5 - Finalists & Open Tournaments
Tourneys
RSL: Revival, a new crowdfunded tournament series SC2's Safe House 2 - October 18 & 19 Stellar Fest KSL Week 80 StarCraft Evolution League (SC Evo Biweekly)
Strategy
Custom Maps
External Content
Mutation # 492 Get Out More Mutation # 491 Night Drive Mutation # 490 Masters of Midnight Mutation # 489 Bannable Offense
Brood War
General
[ASL20] Ro8 Preview Pt1: Mile High BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ ASL ro8 Upper Bracket HYPE VIDEO StarCraft Stellar Forces had bad maps
Tourneys
SC4ALL $1,500 Open Bracket LAN [ASL20] Ro16 Group D BSL 2025 Warsaw LAN + Legends Showmatch [ASL20] Ro16 Group C
Strategy
Simple Questions, Simple Answers Muta micro map competition
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile Borderlands 3 General RTS Discussion Thread
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
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
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread The Big Programming Thread UK Politics Mega-thread
Fan Clubs
The Happy Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023
World Cup 2022
Tech Support
Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s)
TL Community
BarCraft in Tokyo Japan for ASL Season5 Final The Automated Ban List
Blogs
The Dark Side of South Kore…
Peanutsc
Too Many LANs? Tournament Ov…
TrAiDoS
I <=> 9
KrillinFromwales
A very expensive lesson on ma…
Garnet
hello world
radishsoup
Lemme tell you a thing o…
JoinTheRain
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2029 users

1000 Milk Jars

Blogs > Slithe
Post a Reply
Normal
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.
Slithe
Profile Blog Joined February 2007
United States985 Posts
May 16 2008 18:36 GMT
#21
On May 17 2008 03:35 KarlSberg~ wrote:
+ 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.

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


I've fixed the problem description such that you do not know exactly how long it takes the poison to kill the rat.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2008-05-16 18:46:54
May 16 2008 18:43 GMT
#22
On May 17 2008 03:35 Slithe wrote:
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.

ohhh wait i see where I'm off I think

ok I get how you guys did it lol
math is neato
himurakenshin
Profile Blog Joined April 2006
Canada1845 Posts
May 16 2008 18:46 GMT
#23
Elements is 100% right, that's the right answer
Slithe
Profile Blog Joined February 2007
United States985 Posts
May 16 2008 18:46 GMT
#24
The 3 rats did drink from other jars but...

For example let's take jar 51. binary = 0000110011.

In this case, the 1st, 2nd, 5th, and 6th rat drank from it. Thus if the 51st jar was poisoned, then these 4 rats will die. You know it's not the 50th jar because the 1st rat died. Each jar has a unique combination of rats that drank from it, and as a result you can figure out exactly which jar it is based on which of the 10 rats died.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
May 16 2008 18:47 GMT
#25
the binary is just confusing me lol

but don't worry I get it now, thanks for being patient dude
perisie xx
Profile Blog Joined February 2008
429 Posts
May 16 2008 18:49 GMT
#26
lol travis come on XD

i didnt know the answer but i knew which answer to raise my eyebrows to and which to frown and audibly "tch" at
Slithe
Profile Blog Joined February 2007
United States985 Posts
May 16 2008 18:50 GMT
#27
Yeah the binary is probably just making it harder to understand if you haven't worked with it a lot. My explanations have a natural computer science bias, especially since I get most of my puzzles from other CS majors.
UmmTheHobo
Profile Blog Joined April 2008
United States650 Posts
May 16 2008 18:59 GMT
#28
All you need is one rat. You just have to get really really lucky.
...
freelander
Profile Blog Joined December 2004
Hungary4707 Posts
May 16 2008 19:04 GMT
#29
this was a nice math question
And all is illuminated.
paper
Profile Blog Joined September 2004
13196 Posts
May 16 2008 19:25 GMT
#30
the poison takes a nondeterministic amount of time between 2 and 3 hours to kill a rat.


lol. that's so poorly worded: it's possible for none of the rats to die within the 3 hours you have, especially given the fact that your actions don't take ... zero seconds.
Hates Fun🤔
fusionsdf
Profile Blog Joined June 2006
Canada15390 Posts
May 16 2008 19:26 GMT
#31
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


you dont do a second round :O

you just use exceptions

if you have 2 rats and feed them like so:
rat 1 - jar 2 and 3
rat 2 - jar 3 and 4

if no rats die (and one of those 4 jars has to have poison) then jar 1 (the one not used) was the poison.

if jar 2 is poison, only rat 1 will die

if jar 3 is poison rat 1 and 2 will both die

if jar 4 is poison only rat 2 will die


I think its something like that, but on a larger scale
SKT_Best: "I actually chose Protoss because it was so hard for me to defeat Protoss as a Terran. When I first started Brood War, my main race was Terran."
fusionsdf
Profile Blog Joined June 2006
Canada15390 Posts
May 16 2008 19:28 GMT
#32
On May 17 2008 03:46 Slithe wrote:
The 3 rats did drink from other jars but...

For example let's take jar 51. binary = 0000110011.

In this case, the 1st, 2nd, 5th, and 6th rat drank from it. Thus if the 51st jar was poisoned, then these 4 rats will die. You know it's not the 50th jar because the 1st rat died. Each jar has a unique combination of rats that drank from it, and as a result you can figure out exactly which jar it is based on which of the 10 rats died.


I really like this explanation
SKT_Best: "I actually chose Protoss because it was so hard for me to defeat Protoss as a Terran. When I first started Brood War, my main race was Terran."
Slithe
Profile Blog Joined February 2007
United States985 Posts
May 16 2008 19:34 GMT
#33
On May 17 2008 04:25 paper wrote:
Show nested quote +
the poison takes a nondeterministic amount of time between 2 and 3 hours to kill a rat.


lol. that's so poorly worded: it's possible for none of the rats to die within the 3 hours you have, especially given the fact that your actions don't take ... zero seconds.


Contrary to what you may think, your actions do indeed take exactly zero seconds. It's pretty awesome.
pooper-scooper
Profile Joined May 2003
United States3108 Posts
May 16 2008 19:41 GMT
#34
You should have used something cute like puppies or bunnies. Rats, I just want to kill them, thus would not be motivated to not feed them all poison.
Good...Bad... Im the guy with the gun
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
May 16 2008 19:53 GMT
#35
im sorta confused still but then i never really lked math but i half get it so its ok :D cool stuf
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!
o3.power91
Profile Blog Joined November 2007
Bahrain5288 Posts
Last Edited: 2008-05-16 20:08:55
May 16 2008 20:03 GMT
#36
+ Show Spoiler +
998 rats, you're the 999th tester. If no one dies, the last is the poisoned one.


Edited with spoiler

Edit: Changed answer

Edit: Elements got a good answer
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
May 16 2008 20:12 GMT
#37
On May 17 2008 04:26 fusionsdf wrote:
Show nested quote +
On May 17 2008 03:25 travis wrote:
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


you dont do a second round :O

you just use exceptions

if you have 2 rats and feed them like so:
rat 1 - jar 2 and 3
rat 2 - jar 3 and 4

if no rats die (and one of those 4 jars has to have poison) then jar 1 (the one not used) was the poison.

if jar 2 is poison, only rat 1 will die

if jar 3 is poison rat 1 and 2 will both die

if jar 4 is poison only rat 2 will die


I think its something like that, but on a larger scale


ur like 80 years late
ThatGuy
Profile Blog Joined April 2008
Canada695 Posts
May 16 2008 20:32 GMT
#38
You could mix all the milk into 1 jar. Then you would only need 1 rat to find out the answer.
hellhawk123
Profile Joined December 2007
United States84 Posts
May 16 2008 20:45 GMT
#39
This is a nice way to explain hashing
[xyn]
Last Romantic
Profile Blog Joined June 2006
United States20661 Posts
May 16 2008 21:08 GMT
#40
FIVE HUNDRED
ㅋㄲㅈㅁ
Folca
Profile Blog Joined October 2006
2235 Posts
May 16 2008 21:09 GMT
#41
boring
Dea : one time when he was playing vs the comps he asked me "how do I make that flying unit that makes the other stuff invisible" and I reply "ur playing terran zomg"
HamerD
Profile Blog Joined January 2008
United Kingdom1922 Posts
May 16 2008 21:13 GMT
#42
Well I thought it was super cool and it made me wish I knew all these special and cool maths answers because then, probably, I would score with all the hot chicks.
"Oh no, we've drawn Judge Schneider" "Is that bad?" "Well, he's had it in for me ever since I kinda ran over his dog" "You did?" "Yeah...if you replace the word *kinda* with *repeatedly*...and the word *dog* with son"
Elvin_vn
Profile Blog Joined March 2004
Vietnam2038 Posts
Last Edited: 2008-05-16 21:14:50
May 16 2008 21:14 GMT
#43
+ Show Spoiler +
now let's replace poison milks with aids chicks
do not agrue with idiots, they will pull you down to their level and beat you with their experiences
Slayer91
Profile Joined February 2006
Ireland23335 Posts
Last Edited: 2008-05-16 21:34:54
May 16 2008 21:15 GMT
#44
From the top of my head
+ Show Spoiler +

100 jars

10 x 10 would be
12345678910
11xxxxxxxxx
12xxxxxxxxx
13xxxxxxxxx
14xxxxxxxxx
15xxxxxxxxx
16xxxxxxxxx
17xxxxxxxxx
18xxxxxxxxx
19xxxxxxxxx
20xxxxxxxxx
So each rat would drink 10, but if one got sick you could tell from the way the other rats who drank the same column/row..
So if you did the same with 100 x 10 it would make 110 rats.


EDIT: Sqrt of 1000 ~=32 so if you manage a 32 x 32 grid and you have 64 rats. ?

Gandalf
Profile Joined August 2004
Pakistan1905 Posts
Last Edited: 2008-05-16 21:41:48
May 16 2008 21:29 GMT
#45
nvm my solution si wrong, I forgot the time it takes for the poison to work. My math knowledge is rudimentary, but I think you could create overlapping mixtures, feed them to the rats, and find out which jar it is in one go.

eg with 3 jars, you could create mixtures 12, 23, 13, and feed each to 3 rats. Based on which rats die, the culprit should be identifiable.

Slayer91
Profile Joined February 2006
Ireland23335 Posts
May 16 2008 21:36 GMT
#46
On May 17 2008 06:29 Gandalf wrote:
11 rats

+ Show Spoiler +


split the jars into two groups of 500. mix a small amount of milk from every jar in each group to form a mixture that represents each group, and feed it to two rats. One rat will die and eliminate 500 jars. Then divide the remaining 500 into two groups of 250 and so on.

The rat that doesnt die gets recycled for the next cycle. So we have:

first two rats: 500 jars left
one more rat: 250 left
one more rat: 125 left
one more rat: 63 left
one more rat: 32 left
one more rat: 16 left
one more rat: 8 left
one more rat: 4 left
one more rat: 2 left
one more rat: jar is identified, one rat stays alive, 11 used in all




Does that work with the time limit? It takes 2-3 hours for the poison to work you have 3 hours.
Luddite
Profile Blog Joined April 2007
United States2315 Posts
May 16 2008 22:19 GMT
#47
this is a very clever puzzle. My first thought was also "oh it must be like those weighing problems where you have to keep dividing in half 10 times" so 10, but I couldn't think of any way to make it work, so all i could think of was 999. I'm glad elements explained it so well.
Can't believe I'm still here playing this same game
xmShake
Profile Blog Joined February 2007
United States1100 Posts
May 16 2008 22:19 GMT
#48
Fuck the rats, just get one of your friends to drink a small sip of each milk jar until he finds one that tastes funny. Problem solved.
fusionsdf
Profile Blog Joined June 2006
Canada15390 Posts
May 16 2008 23:07 GMT
#49
On May 17 2008 05:12 travis wrote:
Show nested quote +
On May 17 2008 04:26 fusionsdf wrote:
On May 17 2008 03:25 travis wrote:
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


you dont do a second round :O

you just use exceptions

if you have 2 rats and feed them like so:
rat 1 - jar 2 and 3
rat 2 - jar 3 and 4

if no rats die (and one of those 4 jars has to have poison) then jar 1 (the one not used) was the poison.

if jar 2 is poison, only rat 1 will die

if jar 3 is poison rat 1 and 2 will both die

if jar 4 is poison only rat 2 will die


I think its something like that, but on a larger scale


ur like 80 years late


yeah well Im like 600 years awesome
SKT_Best: "I actually chose Protoss because it was so hard for me to defeat Protoss as a Terran. When I first started Brood War, my main race was Terran."
Day[9]
Profile Blog Joined April 2003
United States7366 Posts
May 17 2008 00:28 GMT
#50
log(n) where n is the number of poisoned bottles

Whenever I encounter some little hitch, or some of my orbs get out of orbit, nothing pleases me so much as to make the crooked straight and crush down uneven places. www.day9.tv
Cascade
Profile Blog Joined March 2006
Australia5405 Posts
May 17 2008 00:37 GMT
#51
ahh, sweet problem! Me like.

A better formulation may have been that you are allowed to feed each rat only one bowl of milk (in which you then could mix), then you wouldnt have the confusion on the instantaneous milk-mixing.

And cuter things like bunnies wouldnt work very well, since people would just find a safe sort of milk and keep feeding the bunnies (from the infinite amount of milk) and cuddle with them.
H
Profile Blog Joined July 2007
New Zealand6138 Posts
May 17 2008 00:41 GMT
#52
I send my infinite army of rats to take over the world.
[iHs]HCO | のヮの | pachi & plexa ownz | RIP _
Normal
Please log in or register to reply.
Live Events Refresh
Next event in 12h 7m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
CosmosSc2 121
StarCraft: Brood War
Shuttle 372
Artosis 52
Sexy 5
Dota 2
monkeys_forever517
Pyrionflax221
capcasts149
NeuroSwarm112
League of Legends
JimRising 371
Counter-Strike
Stewie2K175
Heroes of the Storm
Khaldor221
Other Games
summit1g9613
FrodaN5217
Grubby3209
B2W.Neo760
fl0m654
C9.Mang0165
KnowMe147
Mew2King83
Organizations
Other Games
EGCTV1056
gamesdonequick1002
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• RyuSc2 77
• davetesta34
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• FirePhoenix8
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Doublelift5365
Other Games
• imaqtpie994
• Shiphtur265
Upcoming Events
Afreeca Starleague
12h 7m
Barracks vs Mini
Wardi Open
13h 7m
Monday Night Weeklies
18h 7m
Sparkling Tuna Cup
1d 12h
Afreeca Starleague
1d 12h
Snow vs EffOrt
PiGosaur Monday
2 days
LiuLi Cup
2 days
The PondCast
3 days
CranKy Ducklings
4 days
Maestros of the Game
5 days
Clem vs Reynor
[ Show More ]
[BSL 2025] Weekly
5 days
[BSL 2025] Weekly
5 days
BSL Team Wars
6 days
Liquipedia Results

Completed

Proleague 2025-09-18
Chzzk MurlocKing SC1 vs SC2 Cup #2
HCC Europe

Ongoing

BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
LASL Season 20
Maestros of the Game
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

Upcoming

IPSL Winter 2025-26
BSL Season 21
SC4ALL: Brood War
BSL 21 Team A
Stellar Fest
SC4ALL: StarCraft II
EC S1
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
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.