• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 00:50
CEST 06:50
KST 13:50
  • 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 ASL60Weekly Cups (June 23-29): Reynor in world title form?13FEL Cracov 2025 (July 27) - $8000 live event19Esports World Cup 2025 - Final Player Roster16Weekly Cups (June 16-22): Clem strikes back1
StarCraft 2
General
Statistics for vetoed/disliked maps Program: SC2 / XSplit / OBS Scene Switcher The SCII GOAT: A statistical Evaluation Weekly Cups (June 23-29): Reynor in world title form? PiG Sty Festival #5: Playoffs Preview + Groups Recap
Tourneys
FEL Cracov 2025 (July 27) - $8000 live event RSL: Revival, a new crowdfunded tournament series Korean Starcraft League Week 77 Master Swan Open (Global Bronze-Master 2) [GSL 2025] Code S: Season 2 - Semi Finals & Finals
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
Player “Jedi” cheat on CSL ASL20 Preliminary Maps SC uni coach streams logging into betting site Flash Announces Hiatus From ASL BGH Mineral Boosts Tutorial Video
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
Stormgate/Frost Giant Megathread Nintendo Switch Thread 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 Russo-Ukrainian War Thread Trading/Investing Thread Things Aren’t Peaceful in Palestine 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
2024 - 2025 Football Thread Formula 1 Discussion 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: 569 users

Math Puzzle [num 20] - Page 5

Blogs > evanthebouncy!
Post a Reply
Prev 1 2 3 4 5 6 Next All
rotinegg
Profile Blog Joined April 2009
United States1719 Posts
Last Edited: 2011-11-13 13:08:08
November 13 2011 13:05 GMT
#81
On November 13 2011 21:06 sidr wrote:
Show nested quote +
On November 13 2011 18:48 rotinegg wrote:
On November 13 2011 18:44 Warble wrote:
On November 13 2011 18:41 rotinegg wrote:
On November 13 2011 18:32 Warble wrote:
On November 13 2011 17:46 rotinegg wrote:
You have a 99 meter pole, and it is one-dimensional. There are 100 cats that occupy the pole, all evenly spaced so that there is a cat every meter. These ain't no normal cats: they have no width or length; just height. They also walk at a constant speed of 1m/s, and have infinite acceleration so they can start walking or turn in the opposite direction instantaneously. Now, 50 cats on the left side of the bar start out facing right, and the other 50 on the right side start out facing left. When you blow a whistle, they will all start walking in the direction they are facing, but turn around and start walking the other way once they hit another cat. If they reach the end of the bar, they will just fall off. Assuming this, how long does it take for all the cats to fall off the bar?


+ Show Spoiler +

So we want to find out how long it takes for the middle cats to fall off. Time and distance are equivalent in this puzzle.

Let's consider the 50th cat.

It walks for 0.5 s right and bumps. Turns and walks 0.5 s left and bumps into cat 49. This means cat 50 ends up back where it started after 1 s and cat 49 is now facing left.

We don't really need to follow the analysis for cat 49 because now it's obvious that the "bump wave" travels left at 1 m/s starting from the middle after 0.5 s.

Now let's consider cat 1. It's travelling right at 1 m/s. Combine this with the wave and we see that they're approaching each other at 2 m/s. So cat 1 is bumped after 22.5 s + 0.5 s. After which cat 1 is doomed.

What about cat 2? There is a new "bump wave" every 1 s, ...

Due to symmetry, we can treat this puzzle as a 45.5 metre pole with a wall on one end. So the analysis for this side applies to the other side.

Actually, forget all that. This puzzle is simple. We can already see that each bump wave will knock off 1 cat. There are 50 cats, so cat 50 will carry the 50th bump wave all the way to the end. Since each bump wave lasts 1 s, and begins after 0.5 s, the 50th bump wave occurs at 50.5 s, whereupon cat 50 has 99/2 = 45.5 m to walk.

So the last pair of cats fall off at 96 seconds.


The 50th cat would walk 0.5s right and bump, correct, but it would walk less than 0.5s to the left because cat 49 also walked during that time, no? hehe answer is off


The distance between cat 49 and cat 50 is 1 m and doesn't change until cat 50 bumps into cat 51, after which 49 and 50 approach each other at 2 m/s, which means 0.5 s to close the gap.

Ooh, you're right, my brain farted for a second... there's still a mistake somewhere because the correct answer is off.. hmmm.. also there is a very simple way of solving this, which made me go nuts after I heard it, because by that point my brain was full of cats walking back and forth, bouncing off of eachother and falling off poles.. haha

edit: your mistake was at 99/2 = 45.5m and no idea where you got the 22.5s from... I get 24.25s...


I'm guessing this is the simple solution you're talking about:


+ Show Spoiler +
Don't consider collisions as bouncing cats. Instead, every collision has the same effect as having the two cats pass through one another. Thus, the time will be the maximum of the times it would take each individual cat to fall off if no other cats were present. We have a 99m pole and a cat on the left facing right moving at 1m/s, so this is 99s.

Bingo.

you have 20 prisoners on death row. The day before the execution, the executioner decides to have a bit of mercy and lets them know exactly what is going to go down. He says:
  • They will be lined up in one row, so that they stand behind one another.
  • The executioner will come up behind each of them and randomly put on a red or blue hat.
  • You will not be able to see your own hat, or any of those behind you, but you will be able to see those in front of you.
  • The executioner will start from the very back, and ask you what your hat color is. You are permitted to only say either red or blue, and if correct, you will live. If not, your brains will be blown out.
  • You will be given one night to come up with a strategy as a group to save the most men.
  • You may not communicate with each other during the execution day; if you so much as blink or breathe in a peculiar pattern, all 20 of you will be shot immediately.

All the prisoners are very astute and logical, and place no importance on their own life over others'. How would you save the most people, and how many people would you save on average using said strategy?
Translator
BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
Last Edited: 2011-11-13 13:38:06
November 13 2011 13:29 GMT
#82
Here's a naive solution to the prisoners' problem:

+ Show Spoiler +
The first ten will, in order, announce that they are wearing the color of the hats of the first ten men. Then the last ten men will know their own colors.

Alternatively, the odd-numbered prisoners will announce the color of the person in front of them, saving the even-numbered prisoners. Either way, you're sacrificing one for one.

Assuming uniform distribution, this will save 7.5 prisoners on average.

.... I hope guessing your own color is done out loud and is not considered extra communication. Without communication and knowing the distribution, I don't think this has any real solution.
Compilers are like boyfriends, you miss a period and they go crazy on you.
BrTarolg
Profile Blog Joined June 2009
United Kingdom3574 Posts
November 13 2011 14:05 GMT
#83
Working iteratively,

with 1 person, its 50/50
with 2 people, the first guy is always 50/50, but the second guy can be saved by the first
with 3 people, the first guy can announce a "same/different" signal, and save the following two (i.e, red = following two have same colour, blue = following two have different colour)

With this strategy, you have a 50/50 chance for 1/3 prisoners, and 100% chance for everyone else

With 18 players, you save 12 of them and 50/50 for 6 of them, and with the last two you save 1 and 50/50 the other
meaning you save 13 and 50/50 7 of them giving you an average of 16.5 saved

A pretty decent solution, thinking of a better one now
BrTarolg
Profile Blog Joined June 2009
United Kingdom3574 Posts
November 13 2011 14:23 GMT
#84
NOTE: a very cheap solution (and i think beyond the intentions of the question) - lets say for the front 19 people there are 19^2 possible combinations. Well the first guy can simply "count" up to the combination number in seconds, wait that amount of time, and then make his answer. He could halve the time required by making his answer either red/blue to signal two different combo sets
Then every person in front having memorized that set would be able to easily win.

Thus from now on, i am assuming each prisoner must answer instantly, however each prisoner will be allowed to know what happened to the guys before them (shot or alive)
-----

Continuing from the previous solution if i'm on the right track

ASSUMING the prisoners get to hear whether the guy behind them is shot or not

in a 4 person game, first guy can use a red blue to signal one of 2 possible combos, RRR/BBB (all same) or 2 of one colour and 1 of the other colour
Given an all same, the next part is easy, and all 3 are saved

Given a 2:1 combo, the next guy will see one of two things - either RR/BB (both same) or RB/BR
In an RR/BB situation, this is ideal as he knows exactly what his colour is
Then the no3 and no4 will know they are holding the same colour hats, and will have an easy time answering

in a RB/BR situation, no2 will be in a bit of a pickle. Now, if prisoner 1 was allowed to use the "wait 1 second then answer or wait 2 seconds and answer" - he would be able to announce both the combination, and what colour no2 is wearing (wait 1 = red, wait 2 = blue)
If you play this waiting game (on a reasonable time frame) then no2 will always be saved, and no3 will know the combo (2:1) and two of the colours, allowing him to save himself and the guy in front

Repeating this style, you get 15 saved, and 5 prisoners on a 50/50, resulting in 17.5 saved
(bad answer)
----

However, this hinges on the "wait 1 second and answer or wait 2 seconds answer"

If you must answer instantly, as i presumed before, then you have a few combinations. No3 and no4 are always saved as they know what happens to the guy before him.
No1 is always 50/50, no matter what
The possible combos for no2 are
RRR
RRB
RBR
BRR
BBR
BRB
RBB
BBB

Thus, at least 2/8 times he is saved.
For the remaining 6 combinations, he is saved in an additional 2 of them BRR and RBB

Leaving 4 tricky ones, RBR, BBR, RRB, BRB
In these situations, he has a 50/50 chance to survive

Thus, out of 8 combos, he survives 6 of them on average, and has a 75% chance of survival.
Thus for 4 players, we have 50%, 75%, 100% 100%, giving us 3.25 saved on average, giving us 16.25 saved overall.
This is a worse solution than the one i posted above, leaving me to believe that iterative solutions in general, will fail

Thus, i think the solution i posted above is the best
DJWilma
Profile Blog Joined April 2011
Canada740 Posts
Last Edited: 2011-11-13 15:31:54
November 13 2011 15:19 GMT
#85
+ Show Spoiler +
Super Easy.... let x be whether the egg breaks (true or false), and y be the floor number...
Step 1. Start at y=10, test x, if x=true continue to step 3, if x=false continue to step 2
Step 2, add 10 to y, test x, if x=false repeat step 2, if x=true continue to step 3
Step 3. subtract 9 from y, test x. if x=true continue to step 5, if x=false continue to step 4
Step 4. Add 1 to y, test x, if x=true continue to step 5, if x=false repeat step 4
Step 5. we conclude our answer to be what y was equal to when x=true minus 1.
Doing this method will give you a maximum value for fewest drops of 19, and a minimum of 1.

DJ WILMA OUT!

I may have misunderstood the question, but the average outcome of drops is equal to 10 drops, if thats what your looking for I'm pretty sure mines the best

I write stuff on LiquidDota also I own omwproductions.com
BrTarolg
Profile Blog Joined June 2009
United Kingdom3574 Posts
November 13 2011 15:41 GMT
#86
On November 14 2011 00:19 DJWilma wrote:
+ Show Spoiler +
Super Easy.... let x be whether the egg breaks (true or false), and y be the floor number...
Step 1. Start at y=10, test x, if x=true continue to step 3, if x=false continue to step 2
Step 2, add 10 to y, test x, if x=false repeat step 2, if x=true continue to step 3
Step 3. subtract 9 from y, test x. if x=true continue to step 5, if x=false continue to step 4
Step 4. Add 1 to y, test x, if x=true continue to step 5, if x=false repeat step 4
Step 5. we conclude our answer to be what y was equal to when x=true minus 1.
Doing this method will give you a maximum value for fewest drops of 19, and a minimum of 1.

DJ WILMA OUT!

I may have misunderstood the question, but the average outcome of drops is equal to 10 drops, if thats what your looking for I'm pretty sure mines the best



weve had solutions where the maximum is 14 and that's the best
rotinegg
Profile Blog Joined April 2009
United States1719 Posts
November 13 2011 18:12 GMT
#87
On November 13 2011 23:05 BrTarolg wrote:
Working iteratively,

with 1 person, its 50/50
with 2 people, the first guy is always 50/50, but the second guy can be saved by the first
with 3 people, the first guy can announce a "same/different" signal, and save the following two (i.e, red = following two have same colour, blue = following two have different colour)

With this strategy, you have a 50/50 chance for 1/3 prisoners, and 100% chance for everyone else

With 18 players, you save 12 of them and 50/50 for 6 of them, and with the last two you save 1 and 50/50 the other
meaning you save 13 and 50/50 7 of them giving you an average of 16.5 saved

A pretty decent solution, thinking of a better one now

you can save an expected 19.5 prisoners with 19 as the worst case
Translator
Frozenhelfire
Profile Joined May 2010
United States420 Posts
Last Edited: 2011-11-13 18:38:25
November 13 2011 18:36 GMT
#88
I hope that rule doesn't count voice inflections :d
Prisoners:

The last prisoner says the color of the hat the person in front of him is wearing.
Odd numbers inflect the color of their hat as a question i.e. blue? if the person in front of them has the same color hat.
Even numbers inflect if the person has a different hat.

As for Day

+ Show Spoiler +
Once he reaches the water he can rip off a finger and throw it at the monster. The monster will stop to eat it while Day runs. :D I guess he could do that multiple times if needed.
polar bears are fluffy
rotinegg
Profile Blog Joined April 2009
United States1719 Posts
November 13 2011 18:45 GMT
#89
On November 14 2011 03:36 Frozenhelfire wrote:
I hope that rule doesn't count voice inflections :d
Prisoners:

The last prisoner says the color of the hat the person in front of him is wearing.
Odd numbers inflect the color of their hat as a question i.e. blue? if the person in front of them has the same color hat.
Even numbers inflect if the person has a different hat.


voice inflections also count as cheating
Translator
Frozenhelfire
Profile Joined May 2010
United States420 Posts
November 13 2011 20:39 GMT
#90
I guess I'm stumped here. Are there ten hats of each color or could all the prisoners end up with the same hat?
polar bears are fluffy
JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
Last Edited: 2011-11-13 21:29:09
November 13 2011 21:04 GMT
#91
On November 14 2011 03:12 rotinegg wrote:
Show nested quote +
On November 13 2011 23:05 BrTarolg wrote:
Working iteratively,

with 1 person, its 50/50
with 2 people, the first guy is always 50/50, but the second guy can be saved by the first
with 3 people, the first guy can announce a "same/different" signal, and save the following two (i.e, red = following two have same colour, blue = following two have different colour)

With this strategy, you have a 50/50 chance for 1/3 prisoners, and 100% chance for everyone else

With 18 players, you save 12 of them and 50/50 for 6 of them, and with the last two you save 1 and 50/50 the other
meaning you save 13 and 50/50 7 of them giving you an average of 16.5 saved

A pretty decent solution, thinking of a better one now

you can save an expected 19.5 prisoners with 19 as the worst case


here's what I'm thinking now, I think this solves it
+ Show Spoiler +

yeah i wrote something long here but I deleted it
anyway last prisoner simply announces RED if the number of red hats in front of him is odd, or BLUE if the number of red hats is even. knowing this info, everyone else can make the correct guess about their hat color, assuming everyone can hear everyone else's guess.
i only really thought of this because you gave away the expected number of prisoners that live

e: shit maybe not
e2: nope nevermind it works, i'm crazy. re-added tldr version of solution
(\o/)  If you want it, you find a way. Otherwise you find excuses. No exceptions.
 /_\   aka Shinbi (requesting a name change since 27/05/09 ☺)
Frozenhelfire
Profile Joined May 2010
United States420 Posts
November 13 2011 22:21 GMT
#92
On November 14 2011 06:04 JeeJee wrote:
Show nested quote +
On November 14 2011 03:12 rotinegg wrote:
On November 13 2011 23:05 BrTarolg wrote:
Working iteratively,

with 1 person, its 50/50
with 2 people, the first guy is always 50/50, but the second guy can be saved by the first
with 3 people, the first guy can announce a "same/different" signal, and save the following two (i.e, red = following two have same colour, blue = following two have different colour)

With this strategy, you have a 50/50 chance for 1/3 prisoners, and 100% chance for everyone else

With 18 players, you save 12 of them and 50/50 for 6 of them, and with the last two you save 1 and 50/50 the other
meaning you save 13 and 50/50 7 of them giving you an average of 16.5 saved

A pretty decent solution, thinking of a better one now

you can save an expected 19.5 prisoners with 19 as the worst case


here's what I'm thinking now, I think this solves it
+ Show Spoiler +

yeah i wrote something long here but I deleted it
anyway last prisoner simply announces RED if the number of red hats in front of him is odd, or BLUE if the number of red hats is even. knowing this info, everyone else can make the correct guess about their hat color, assuming everyone can hear everyone else's guess.
i only really thought of this because you gave away the expected number of prisoners that live

e: shit maybe not
e2: nope nevermind it works, i'm crazy. re-added tldr version of solution


Good solution. I thought it would be something simple. I forgot that everyone can see what is in front of them instead of just the last prisoner.
polar bears are fluffy
Luepert
Profile Blog Joined June 2011
United States1933 Posts
November 13 2011 23:09 GMT
#93
I'm fairly certain if you drop an egg from the first floor it will break because you can drop eggs from like 4 feet off the group and they break...
esports
corumjhaelen
Profile Blog Joined October 2009
France6884 Posts
November 13 2011 23:39 GMT
#94
On November 14 2011 07:21 Frozenhelfire wrote:
Show nested quote +
On November 14 2011 06:04 JeeJee wrote:
On November 14 2011 03:12 rotinegg wrote:
On November 13 2011 23:05 BrTarolg wrote:
Working iteratively,

with 1 person, its 50/50
with 2 people, the first guy is always 50/50, but the second guy can be saved by the first
with 3 people, the first guy can announce a "same/different" signal, and save the following two (i.e, red = following two have same colour, blue = following two have different colour)

With this strategy, you have a 50/50 chance for 1/3 prisoners, and 100% chance for everyone else

With 18 players, you save 12 of them and 50/50 for 6 of them, and with the last two you save 1 and 50/50 the other
meaning you save 13 and 50/50 7 of them giving you an average of 16.5 saved

A pretty decent solution, thinking of a better one now

you can save an expected 19.5 prisoners with 19 as the worst case


here's what I'm thinking now, I think this solves it
+ Show Spoiler +

yeah i wrote something long here but I deleted it
anyway last prisoner simply announces RED if the number of red hats in front of him is odd, or BLUE if the number of red hats is even. knowing this info, everyone else can make the correct guess about their hat color, assuming everyone can hear everyone else's guess.
i only really thought of this because you gave away the expected number of prisoners that live

e: shit maybe not
e2: nope nevermind it works, i'm crazy. re-added tldr version of solution


Good solution. I thought it would be something simple. I forgot that everyone can see what is in front of them instead of just the last prisoner.

A nice variant is that everyone can see everyone' else's colors but their own. But instead of two colors, you can work a solution for n colors, and in fact if I remember well the "paper" solutions with "infinite" colors/prisonners, at least in some special cases.
‎numquam se plus agere quam nihil cum ageret, numquam minus solum esse quam cum solus esset
rotinegg
Profile Blog Joined April 2009
United States1719 Posts
November 13 2011 23:43 GMT
#95
On November 14 2011 06:04 JeeJee wrote:
Show nested quote +
On November 14 2011 03:12 rotinegg wrote:
On November 13 2011 23:05 BrTarolg wrote:
Working iteratively,

with 1 person, its 50/50
with 2 people, the first guy is always 50/50, but the second guy can be saved by the first
with 3 people, the first guy can announce a "same/different" signal, and save the following two (i.e, red = following two have same colour, blue = following two have different colour)

With this strategy, you have a 50/50 chance for 1/3 prisoners, and 100% chance for everyone else

With 18 players, you save 12 of them and 50/50 for 6 of them, and with the last two you save 1 and 50/50 the other
meaning you save 13 and 50/50 7 of them giving you an average of 16.5 saved

A pretty decent solution, thinking of a better one now

you can save an expected 19.5 prisoners with 19 as the worst case


here's what I'm thinking now, I think this solves it
+ Show Spoiler +

yeah i wrote something long here but I deleted it
anyway last prisoner simply announces RED if the number of red hats in front of him is odd, or BLUE if the number of red hats is even. knowing this info, everyone else can make the correct guess about their hat color, assuming everyone can hear everyone else's guess.
i only really thought of this because you gave away the expected number of prisoners that live

e: shit maybe not
e2: nope nevermind it works, i'm crazy. re-added tldr version of solution

Nice job!

I don't remember any more off the top of my head at the moment haha
Translator
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
November 13 2011 23:51 GMT
#96
On November 13 2011 22:05 rotinegg wrote:
Show nested quote +
On November 13 2011 21:06 sidr wrote:
On November 13 2011 18:48 rotinegg wrote:
On November 13 2011 18:44 Warble wrote:
On November 13 2011 18:41 rotinegg wrote:
On November 13 2011 18:32 Warble wrote:
On November 13 2011 17:46 rotinegg wrote:
You have a 99 meter pole, and it is one-dimensional. There are 100 cats that occupy the pole, all evenly spaced so that there is a cat every meter. These ain't no normal cats: they have no width or length; just height. They also walk at a constant speed of 1m/s, and have infinite acceleration so they can start walking or turn in the opposite direction instantaneously. Now, 50 cats on the left side of the bar start out facing right, and the other 50 on the right side start out facing left. When you blow a whistle, they will all start walking in the direction they are facing, but turn around and start walking the other way once they hit another cat. If they reach the end of the bar, they will just fall off. Assuming this, how long does it take for all the cats to fall off the bar?


+ Show Spoiler +

So we want to find out how long it takes for the middle cats to fall off. Time and distance are equivalent in this puzzle.

Let's consider the 50th cat.

It walks for 0.5 s right and bumps. Turns and walks 0.5 s left and bumps into cat 49. This means cat 50 ends up back where it started after 1 s and cat 49 is now facing left.

We don't really need to follow the analysis for cat 49 because now it's obvious that the "bump wave" travels left at 1 m/s starting from the middle after 0.5 s.

Now let's consider cat 1. It's travelling right at 1 m/s. Combine this with the wave and we see that they're approaching each other at 2 m/s. So cat 1 is bumped after 22.5 s + 0.5 s. After which cat 1 is doomed.

What about cat 2? There is a new "bump wave" every 1 s, ...

Due to symmetry, we can treat this puzzle as a 45.5 metre pole with a wall on one end. So the analysis for this side applies to the other side.

Actually, forget all that. This puzzle is simple. We can already see that each bump wave will knock off 1 cat. There are 50 cats, so cat 50 will carry the 50th bump wave all the way to the end. Since each bump wave lasts 1 s, and begins after 0.5 s, the 50th bump wave occurs at 50.5 s, whereupon cat 50 has 99/2 = 45.5 m to walk.

So the last pair of cats fall off at 96 seconds.


The 50th cat would walk 0.5s right and bump, correct, but it would walk less than 0.5s to the left because cat 49 also walked during that time, no? hehe answer is off


The distance between cat 49 and cat 50 is 1 m and doesn't change until cat 50 bumps into cat 51, after which 49 and 50 approach each other at 2 m/s, which means 0.5 s to close the gap.

Ooh, you're right, my brain farted for a second... there's still a mistake somewhere because the correct answer is off.. hmmm.. also there is a very simple way of solving this, which made me go nuts after I heard it, because by that point my brain was full of cats walking back and forth, bouncing off of eachother and falling off poles.. haha

edit: your mistake was at 99/2 = 45.5m and no idea where you got the 22.5s from... I get 24.25s...


I'm guessing this is the simple solution you're talking about:


+ Show Spoiler +
Don't consider collisions as bouncing cats. Instead, every collision has the same effect as having the two cats pass through one another. Thus, the time will be the maximum of the times it would take each individual cat to fall off if no other cats were present. We have a 99m pole and a cat on the left facing right moving at 1m/s, so this is 99s.

Bingo.

you have 20 prisoners on death row. The day before the execution, the executioner decides to have a bit of mercy and lets them know exactly what is going to go down. He says:
  • They will be lined up in one row, so that they stand behind one another.
  • The executioner will come up behind each of them and randomly put on a red or blue hat.
  • You will not be able to see your own hat, or any of those behind you, but you will be able to see those in front of you.
  • The executioner will start from the very back, and ask you what your hat color is. You are permitted to only say either red or blue, and if correct, you will live. If not, your brains will be blown out.
  • You will be given one night to come up with a strategy as a group to save the most men.
  • You may not communicate with each other during the execution day; if you so much as blink or breathe in a peculiar pattern, all 20 of you will be shot immediately.

All the prisoners are very astute and logical, and place no importance on their own life over others'. How would you save the most people, and how many people would you save on average using said strategy?


+ Show Spoiler +

you can save 19 at least. Last guy shout the parity of the blue hat in front (encoded as blue/red). And the ppl in front knows everything, they can subtract the ppl they see in front to find his own color, and once he declares his own color, again, everyone in front of him knows the parity exactly.
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
Last Edited: 2011-11-14 00:14:08
November 14 2011 00:13 GMT
#97
On November 14 2011 08:39 corumjhaelen wrote:
Show nested quote +
On November 14 2011 07:21 Frozenhelfire wrote:
On November 14 2011 06:04 JeeJee wrote:
On November 14 2011 03:12 rotinegg wrote:
On November 13 2011 23:05 BrTarolg wrote:
Working iteratively,

with 1 person, its 50/50
with 2 people, the first guy is always 50/50, but the second guy can be saved by the first
with 3 people, the first guy can announce a "same/different" signal, and save the following two (i.e, red = following two have same colour, blue = following two have different colour)

With this strategy, you have a 50/50 chance for 1/3 prisoners, and 100% chance for everyone else

With 18 players, you save 12 of them and 50/50 for 6 of them, and with the last two you save 1 and 50/50 the other
meaning you save 13 and 50/50 7 of them giving you an average of 16.5 saved

A pretty decent solution, thinking of a better one now

you can save an expected 19.5 prisoners with 19 as the worst case


here's what I'm thinking now, I think this solves it
+ Show Spoiler +

yeah i wrote something long here but I deleted it
anyway last prisoner simply announces RED if the number of red hats in front of him is odd, or BLUE if the number of red hats is even. knowing this info, everyone else can make the correct guess about their hat color, assuming everyone can hear everyone else's guess.
i only really thought of this because you gave away the expected number of prisoners that live

e: shit maybe not
e2: nope nevermind it works, i'm crazy. re-added tldr version of solution


Good solution. I thought it would be something simple. I forgot that everyone can see what is in front of them instead of just the last prisoner.

A nice variant is that everyone can see everyone' else's colors but their own. But instead of two colors, you can work a solution for n colors, and in fact if I remember well the "paper" solutions with "infinite" colors/prisonners, at least in some special cases.


yeah i think that was puzzle number 14 or so.

I really should link every puzzles together haha
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
corumjhaelen
Profile Blog Joined October 2009
France6884 Posts
November 14 2011 00:22 GMT
#98
On November 14 2011 09:13 evanthebouncy! wrote:
Show nested quote +
On November 14 2011 08:39 corumjhaelen wrote:
On November 14 2011 07:21 Frozenhelfire wrote:
On November 14 2011 06:04 JeeJee wrote:
On November 14 2011 03:12 rotinegg wrote:
On November 13 2011 23:05 BrTarolg wrote:
Working iteratively,

with 1 person, its 50/50
with 2 people, the first guy is always 50/50, but the second guy can be saved by the first
with 3 people, the first guy can announce a "same/different" signal, and save the following two (i.e, red = following two have same colour, blue = following two have different colour)

With this strategy, you have a 50/50 chance for 1/3 prisoners, and 100% chance for everyone else

With 18 players, you save 12 of them and 50/50 for 6 of them, and with the last two you save 1 and 50/50 the other
meaning you save 13 and 50/50 7 of them giving you an average of 16.5 saved

A pretty decent solution, thinking of a better one now

you can save an expected 19.5 prisoners with 19 as the worst case


here's what I'm thinking now, I think this solves it
+ Show Spoiler +

yeah i wrote something long here but I deleted it
anyway last prisoner simply announces RED if the number of red hats in front of him is odd, or BLUE if the number of red hats is even. knowing this info, everyone else can make the correct guess about their hat color, assuming everyone can hear everyone else's guess.
i only really thought of this because you gave away the expected number of prisoners that live

e: shit maybe not
e2: nope nevermind it works, i'm crazy. re-added tldr version of solution


Good solution. I thought it would be something simple. I forgot that everyone can see what is in front of them instead of just the last prisoner.

A nice variant is that everyone can see everyone' else's colors but their own. But instead of two colors, you can work a solution for n colors, and in fact if I remember well the "paper" solutions with "infinite" colors/prisonners, at least in some special cases.


yeah i think that was puzzle number 14 or so.

I really should link every puzzles together haha

Way too hard to follow, sorry lol.
‎numquam se plus agere quam nihil cum ageret, numquam minus solum esse quam cum solus esset
kaleidoscope
Profile Blog Joined December 2008
Singapore2887 Posts
November 14 2011 01:31 GMT
#99
On November 14 2011 00:41 BrTarolg wrote:
Show nested quote +
On November 14 2011 00:19 DJWilma wrote:
+ Show Spoiler +
Super Easy.... let x be whether the egg breaks (true or false), and y be the floor number...
Step 1. Start at y=10, test x, if x=true continue to step 3, if x=false continue to step 2
Step 2, add 10 to y, test x, if x=false repeat step 2, if x=true continue to step 3
Step 3. subtract 9 from y, test x. if x=true continue to step 5, if x=false continue to step 4
Step 4. Add 1 to y, test x, if x=true continue to step 5, if x=false repeat step 4
Step 5. we conclude our answer to be what y was equal to when x=true minus 1.
Doing this method will give you a maximum value for fewest drops of 19, and a minimum of 1.

DJ WILMA OUT!

I may have misunderstood the question, but the average outcome of drops is equal to 10 drops, if thats what your looking for I'm pretty sure mines the best



weve had solutions where the maximum is 14 and that's the best


i think it can be achieved in 9 steps?

so like, doing a drop on 1st and 100th floor, and then subsequently cut the range into half (e.g 50th floor)..
then if it breaks, do the upper half (75th floor), if it doesnt, do the lower half (e.g 25th), and repeat the process..
대지따라 돌린게 시간이다.. 흘러가고 돌아오지도 않고..
JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
Last Edited: 2011-11-14 04:05:24
November 14 2011 03:44 GMT
#100
On November 14 2011 10:31 kaleidoscope wrote:
Show nested quote +
On November 14 2011 00:41 BrTarolg wrote:
On November 14 2011 00:19 DJWilma wrote:
+ Show Spoiler +
Super Easy.... let x be whether the egg breaks (true or false), and y be the floor number...
Step 1. Start at y=10, test x, if x=true continue to step 3, if x=false continue to step 2
Step 2, add 10 to y, test x, if x=false repeat step 2, if x=true continue to step 3
Step 3. subtract 9 from y, test x. if x=true continue to step 5, if x=false continue to step 4
Step 4. Add 1 to y, test x, if x=true continue to step 5, if x=false repeat step 4
Step 5. we conclude our answer to be what y was equal to when x=true minus 1.
Doing this method will give you a maximum value for fewest drops of 19, and a minimum of 1.

DJ WILMA OUT!

I may have misunderstood the question, but the average outcome of drops is equal to 10 drops, if thats what your looking for I'm pretty sure mines the best



weve had solutions where the maximum is 14 and that's the best


i think it can be achieved in 9 steps?

so like, doing a drop on 1st and 100th floor, and then subsequently cut the range into half (e.g 50th floor)..
then if it breaks, do the upper half (75th floor), if it doesnt, do the lower half (e.g 25th), and repeat the process..


unfortunately you don't have infinite eggs. if you did, then yes that would be the best approach.
e: random puzzle/teaser I recall reading in a book. It's kinda famous but if you haven't heard it before, it's a good illustration of how you approach problems. Reminds me of the ants on a stick problem that was posted earlier in this thread.

You have two houses side by side, with windows facing each other. Owners decide to hang a rope between the windows to dry clothes on. Luckily for the owners, the windows are exactly level with each other. They have a 20 foot rope.

So they tack the rope to each window, such that it hangs down, forming a hump due to gravity. Note that a hanging rope does NOT form a parabola. It forms a catenary shape: http://en.wikipedia.org/wiki/Catenary
Anyway, the vertical distance of this hump is ten feet. How far apart are the houses?
(\o/)  If you want it, you find a way. Otherwise you find excuses. No exceptions.
 /_\   aka Shinbi (requesting a name change since 27/05/09 ☺)
Prev 1 2 3 4 5 6 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 5h 10m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ROOTCatZ 127
StarCraft: Brood War
Leta 786
LuMiX 3
Dota 2
NeuroSwarm195
League of Legends
JimRising 819
Counter-Strike
tarik_tv5748
Heroes of the Storm
Khaldor153
Other Games
summit1g9981
WinterStarcraft397
ViBE202
RuFF_SC2106
ProTech46
SortOf28
Organizations
Other Games
BasetradeTV48
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• Berry_CruncH307
• Hupsaiya 70
• practicex 43
• Sammyuel 6
• Kozan
• Migwel
• sooper7s
• AfreecaTV YouTube
• intothetv
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• Diggity3
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• Lourlo1261
• masondota2724
• Stunt393
Other Games
• Scarra2891
Upcoming Events
RSL Revival
5h 10m
Clem vs Classic
SHIN vs Cure
FEL
7h 10m
WardiTV European League
7h 10m
BSL: ProLeague
13h 10m
Dewalt vs Bonyth
Replay Cast
1d 19h
Sparkling Tuna Cup
2 days
WardiTV European League
2 days
The PondCast
3 days
Replay Cast
3 days
RSL Revival
4 days
[ Show More ]
Replay Cast
4 days
RSL Revival
5 days
FEL
5 days
RSL Revival
6 days
FEL
6 days
FEL
6 days
Liquipedia Results

Completed

BSL 2v2 Season 3
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
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.