• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 04:18
CEST 10:18
KST 17:18
  • 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
Team TLMC #5: Winners Announced!0[ASL20] Ro8 Preview Pt2: Holding On9Maestros of the Game: Live Finals Preview (RO4)5TL.net Map Contest #21 - Finalists4Team TLMC #5: Vote to Decide Ladder Maps!0
Community News
5.0.15 Patch Balance Hotfix (2025-10-8)29Weekly Cups (Sept 29-Oct 5): MaxPax triples up3PartinG joins SteamerZone, returns to SC2 competition245.0.15 Balance Patch Notes (Live version)118$2,500 WardiTV TL Map Contest Tournament 152
StarCraft 2
General
5.0.15 Patch Balance Hotfix (2025-10-8) 5.0.15 Balance Patch Notes (Live version) The New Patch Killed Mech! Weekly Cups (Sept 29-Oct 5): MaxPax triples up Team TLMC #5: Winners Announced!
Tourneys
Tenacious Turtle Tussle Sea Duckling Open (Global, Bronze-Diamond) $2,500 WardiTV TL Map Contest Tournament 15 RSL Offline Finals Dates + Ticket Sales! Stellar Fest
Strategy
Custom Maps
External Content
Mutation # 494 Unstable Environment Mutation # 493 Quick Killers Mutation # 492 Get Out More Mutation # 491 Night Drive
Brood War
General
ASL20 General Discussion Question regarding recent ASL Bisu vs Larva game [BSL21] - How to Qualify to Each League ? BW General Discussion RepMastered™: replay sharing and analyzer site
Tourneys
[Megathread] Daily Proleagues [ASL20] Ro8 Day 4 Small VOD Thread 2.0 [ASL20] Ro8 Day 3
Strategy
Current Meta TvZ Theorycraft - Improving on State of the Art Proposed Glossary of Strategic Uncertainty 9 hatch vs 10 hatch vs 12 hatch
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread ZeroSpace Megathread Dawn of War IV Path of Exile
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
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
SPIRED by.ASL Mafia {211640} TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread UK Politics Mega-thread The Games Industry And ATVI
Fan Clubs
The herO Fan Club! The Happy Fan Club!
Media & Entertainment
Movie Discussion! Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023 NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
Recent Gifted Posts The Automated Ban List BarCraft in Tokyo Japan for ASL Season5 Final
Blogs
What your "aura" says about…
Peanutsc
Mental Health In Esports: Wo…
TrAiDoS
Try to reverse getting fired …
Garnet
[ASL20] Players bad at pi…
pullarius1
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2359 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 1h 42m
[ Submit Event ]
Live Streams
Refresh
StarCraft: Brood War
Sea 816
actioN 800
Zeus 278
Killer 205
EffOrt 194
Shinee 179
Leta 162
Light 119
ToSsGirL 109
zelot 63
[ Show more ]
yabsab 17
NotJumperer 14
Noble 12
scan(afreeca) 11
Dota 2
XcaliburYe526
ODPixel309
XaKoH 246
League of Legends
JimRising 524
Counter-Strike
shoxiejesuss616
olofmeister347
Other Games
summit1g8933
ceh9537
Happy234
Tasteless157
Mew2King51
Nina38
Organizations
Other Games
gamesdonequick573
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• LUISG 25
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 3
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Rush1257
• Stunt774
Upcoming Events
The PondCast
1h 42m
Map Test Tournament
2h 42m
OSC
7h 42m
SKillous vs Krystianer
GgMaChine vs Demi
ArT vs Creator
INexorable vs TBD
ReBellioN vs TriGGeR
UedSoldier vs Iba
sOs vs Moja
Map Test Tournament
1d 2h
OSC
1d 4h
Korean StarCraft League
1d 18h
CranKy Ducklings
2 days
Map Test Tournament
2 days
OSC
2 days
[BSL 2025] Weekly
2 days
[ Show More ]
Safe House 2
2 days
Sparkling Tuna Cup
3 days
Map Test Tournament
3 days
OSC
3 days
IPSL
3 days
Bonyth vs Art_Of_Turtle
Razz vs rasowy
Liquipedia Results

Completed

Acropolis #4 - TS2
Maestros of the Game
HCC Europe

Ongoing

BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
C-Race Season 1
IPSL Winter 2025-26
WardiTV TLMC #15
EC S1
ESL Pro League S22
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

Upcoming

SC4ALL: Brood War
BSL Season 21
BSL 21 Team A
RSL Offline Finals
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
eXTREMESLAND 2025
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
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.