• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 07:40
CEST 13:40
KST 20:40
  • 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
Weekly Cups (June 30 - July 6): Classic Doubles0[BSL20] Non-Korean Championship 4x BSL + 4x China7Flash Announces Hiatus From ASL64Weekly Cups (June 23-29): Reynor in world title form?13FEL Cracov 2025 (July 27) - $8000 live event22
StarCraft 2
General
Weekly Cups (June 30 - July 6): Classic Doubles Program: SC2 / XSplit / OBS Scene Switcher The SCII GOAT: A statistical Evaluation Statistics for vetoed/disliked maps Weekly Cups (June 23-29): Reynor in world title form?
Tourneys
RSL: Revival, a new crowdfunded tournament series FEL Cracov 2025 (July 27) - $8000 live event Sparkling Tuna Cup - Weekly Open Tournament WardiTV Mondays Korean Starcraft League Week 77
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 481 Fear and Lava Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma
Brood War
General
ASL20 Preliminary Maps Flash Announces Hiatus From ASL SC uni coach streams logging into betting site Player “Jedi” cheat on CSL BW General Discussion
Tourneys
[BSL20] Grand Finals - Sunday 20:00 CET [BSL20] Non-Korean Championship 4x BSL + 4x China CSL Xiamen International Invitational The Casual Games of the Week Thread
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread 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 Stop Killing Games - European Citizens Initiative Summer Games Done Quick 2024! Summer Games Done Quick 2025! Russo-Ukrainian War Thread
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
Formula 1 Discussion 2024 - 2025 Football Thread NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Blogs
Culture Clash in Video Games…
TrAiDoS
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 737 users

[Math Puzzle] Day11

Blogs > evanthebouncy!
Post a Reply
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
Last Edited: 2009-05-23 13:30:05
May 23 2009 12:29 GMT
#1
edit: please put the total number of races in your solutions, it's a pain to count lol

Phew it's been awhile, but since finals are over I can start posting some more.

Last time's puzzle was first solved by Valkynaz or Muirhead(2nd but with a clearer explanation), good job!

+ Show Spoiler [solution] +

Use Muirhead's solution, it's more intuitive than the one I have in mind.


Today's puzzle would be abit simpler, and here it is:
You have 25 horses, each has a different speed, you can race them 5 at a time. You can only tell the speed of the horses comparatively (i.e. you cannot measure the speed of the horses, you can only see who comes in first, second, and so on...)
How many races do you need to find the top 3 horses?
Justify your answer.

Again, answers in spoilers, and attempt the problem(i.e. post something you have in mind, if you think it's not yet ready for an answer, just leave it out of the spoiler) first before opening any spoilers, you'll find the answers more illuminating that way.

Good luck!

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!
deconduo
Profile Blog Joined January 2008
Ireland4122 Posts
May 23 2009 12:45 GMT
#2
+ Show Spoiler +
race 5 races with 5 different horses in each. Then eliminate the slowest 2 from each race. That will leave you with 15. Now race 3 races with the top 5 from the first set, the 2nd from the first set and the 3rds from the first set. We can elimiinate the 4 runners up in the 3rds race, all but 1st and 2nd in the 2nds race, and all but the first 3 in the winners race. We know the winner of the 1sts race is the fastest. So finally we have a race with the 2nd and 3rd from the winners race, the 1st and 2nd of the 2nds race and the winner of the 3rds race. This will give us #2 and #3
goldrush
Profile Blog Joined June 2004
Canada709 Posts
May 23 2009 12:47 GMT
#3
Is it that you can race at most 5 of them at a time? And for the top 3 horses, do you necessarily need to find out the first/second/third? And what if there is a hypothetical four-way tie for first? (the problem does not assume that each horse has a different speed)
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
May 23 2009 12:55 GMT
#4
On May 23 2009 21:47 goldrush wrote:
(the problem does not assume that each horse has a different speed)

the problem has been patched.
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!
deL
Profile Blog Joined March 2009
Australia5540 Posts
May 23 2009 13:04 GMT
#5
+ Show Spoiler +
My initial guess would be 9 races but this is after spending all day doing assignments so I might have missed something

I did: 5 races of 5 horses, take top 3 from each (to cover the possibility of all 3 fastest being in one group)

3 races of 5 horses; arranged so that the first from each group forms one group of 5, all 2nd place in another and all 3rd place in another. The winner of the group with all winners is definitely in the top 3.

This then leaves 5 more horses to race and the top two are the others. This is because 2nd-5th in the group that all came 3rd all have at least 3 horses faster than them, the group where all came 2nd 3 of them can be rules out in this way, and in two in the first group have 3 more horses faster than them (and one is automatically faster than the others).

However; it might be that you know which horses are which and you can keep on record the fact that say when you have the three groups there may be a horse in one that you know has lost to a horse already eliminated (e.g. the winner of group with all 2nd place might have come 2nd to the horse which came last in the group of all 1st, thus has at least 5 horses faster than it).

If we assume this works out all nicely like that then you could get the answer with just 8 races because of a circumstance in which:

Winner of 2nd group has lost to 3rd or worse in first group and winner of 3rd group has lost to one of the horses in the 2nd group obviously. so it is ruled out and in this case it would be where one of the fastest horses are in a different initial group


I hope I explained that OK, like I said I am a little bit out of it :3 will recheck my answer to see if it makes sense tomorrow xD
Gaming videos for fun ~ http://www.youtube.com/user/WijLopenLos
deL
Profile Blog Joined March 2009
Australia5540 Posts
May 23 2009 13:05 GMT
#6
Oh I think the Irish bloke above explained it better, perhaps :3 But still my ideal situation stands.
Gaming videos for fun ~ http://www.youtube.com/user/WijLopenLos
Origami
Profile Blog Joined January 2009
United States266 Posts
Last Edited: 2009-05-23 13:32:00
May 23 2009 13:17 GMT
#7
+ Show Spoiler +
Race all 5 sets of 5 horses. Eliminate the bottom 2 out of each group. Label each group A, B, C, D, and E.

Race the winners of each group. For simplicity I will pretend that A comes in first, B in second, and C in third. It is now completely impossible for any horse in group D/E to be in the top 3 so eliminate both entire groups.

Group C has three horses, but only the best one can possibly be in the top 3 since the winners of Group A+B were better. Eliminate all but the winner of Group C. Group B is in a similar position. B's 3rd place horse cannot possibly be in the top 3, so eliminate that one.

This left us with Group A having 3 horses, B with 2, and C with 1.

Since we know that the winner of Group A is the best horse period thanks to the winners match, we can simply race all the other 5 at once.

The first and second place of this race become the second and third best horses.

Race count:
5 - Establishing original group rankings
1 - Winner's Match
1 - 2nd+3rd placing

Total races: 7


Edited to simplify my explanation.
ssystem
Profile Joined August 2008
United Kingdom337 Posts
May 23 2009 13:34 GMT
#8
+ Show Spoiler +
6 races

It takes 5 races for all the horses to be raced. All you need to do then is take the 5 winners and race them. Top 3 in the winners race are the 3 fastest in the order they finished
Mah Buckit!
Profile Joined April 2009
Finland474 Posts
May 23 2009 13:59 GMT
#9
On May 23 2009 22:34 ssystem wrote:
+ Show Spoiler +
6 races

It takes 5 races for all the horses to be raced. All you need to do then is take the 5 winners and race them. Top 3 in the winners race are the 3 fastest in the order they finished


Sry but no. What if you happen to have the second fastest and/or third fastest in the same group with the fastest horse?

This seems interesting. My guess is somewhere around 10-15 but I have to check it out.
Starcraft? Epic Grimness.
deL
Profile Blog Joined March 2009
Australia5540 Posts
May 23 2009 14:21 GMT
#10
On May 23 2009 22:17 Origami wrote:
+ Show Spoiler +
Race all 5 sets of 5 horses. Eliminate the bottom 2 out of each group. Label each group A, B, C, D, and E.

Race the winners of each group. For simplicity I will pretend that A comes in first, B in second, and C in third. It is now completely impossible for any horse in group D/E to be in the top 3 so eliminate both entire groups.

Group C has three horses, but only the best one can possibly be in the top 3 since the winners of Group A+B were better. Eliminate all but the winner of Group C. Group B is in a similar position. B's 3rd place horse cannot possibly be in the top 3, so eliminate that one.

This left us with Group A having 3 horses, B with 2, and C with 1.

Since we know that the winner of Group A is the best horse period thanks to the winners match, we can simply race all the other 5 at once.

The first and second place of this race become the second and third best horses.

Race count:
5 - Establishing original group rankings
1 - Winner's Match
1 - 2nd+3rd placing

Total races: 7


Edited to simplify my explanation.


Ahhh mang, I think I was getting to this towards the end of mine - I should have noticed it but didn't, yeah
Gaming videos for fun ~ http://www.youtube.com/user/WijLopenLos
ssystem
Profile Joined August 2008
United Kingdom337 Posts
May 23 2009 14:43 GMT
#11
On May 23 2009 22:59 Mah Buckit! wrote:
Show nested quote +
On May 23 2009 22:34 ssystem wrote:
+ Show Spoiler +
6 races

It takes 5 races for all the horses to be raced. All you need to do then is take the 5 winners and race them. Top 3 in the winners race are the 3 fastest in the order they finished


Sry but no. What if you happen to have the second fastest and/or third fastest in the same group with the fastest horse?

This seems interesting. My guess is somewhere around 10-15 but I have to check it out.

Oh right damn. =/
Monoxide
Profile Blog Joined January 2007
Canada1190 Posts
May 23 2009 16:06 GMT
#12
+ Show Spoiler +
Divide the horses into 5 groups A to E and race the groups. The winners of every group, A1, B1, C1, D1, E1 race each other. This is the sixth race, F. The horse that came in second place to the W3 horse in the first race is obviously no in the overall top 3. Same with the horses that came in third to W2 and W3 in the first race. After removing the W1 horse and the above mentioned "not as good" horses, we race the remaining 5 that might have a chance to determine the 2nd and 2rd fastest horse. Total: 7 Races
matamata
Profile Joined February 2005
United States133 Posts
May 23 2009 17:25 GMT
#13
Got the upper bound everyone else got in the same way, but proving that one less is not possible was a little more involved (and is generalizable to similar problems), so before I post it someone point out if I've missed an obvious way
Papvin
Profile Joined May 2009
Denmark610 Posts
May 23 2009 19:47 GMT
#14
+ Show Spoiler +
Okay. First you race all the horses, 5 groups of 5 horses each. From these groups, pick the winner, second place and third place horse from each race, now we have a group of 15 horses (5). Make a group of the winners, a group of the second places, and a group of third places and make them race. From the winners group, pick the winner, second place and third place; from the second place group, pick the winner and the second place, from the third place group, pick only the winner. Now we have excluded every horse that cannot be top 3, since in the second place group, the number 3-5 would have lost to over 3 different horses, the third place group, number 2-5 would also have lost to more than 3 different horses (3). Now we have 6 horses left. But, the winner of the winners group is the fastest horse, since it has beaten the winners of the other groups. So now we have 5 horses left, make them race, pick the winner and the second place, and you have you top 3 horses(1).

Races used: 5+3+1=9

Justifying this is the fastest solution might be tricky, will try to see if I can make an argument on contradiction or something, dunno, will wait with that.
"It's criminally negligent to dismiss Rock's contributions to other people's careers", Dukethegold
flag
Profile Blog Joined July 2007
United States228 Posts
May 23 2009 23:20 GMT
#15
+ Show Spoiler +
7 races total

race 5 groups of 5

race winners of each group

race 2nd, 3rd from that prev race, along with next 2 from winner's original group and next 1 from 2nd place's original group

all possible 2nd and 3rd place horses are in this final 7th race, so it is correct
DeathSpank
Profile Blog Joined February 2009
United States1029 Posts
Last Edited: 2009-05-24 00:04:12
May 23 2009 23:28 GMT
#16
+ Show Spoiler +

yay sorting algorithms!!!
my guess would be 6
so you split the horses up into groups of 5 then have 5 races
take the winner of each and have the final race
of course my guess is wrong...its 9
you gotta race the 1stplace group take top two set them aside
race 2nd and 3rd place groups
take top two of the third place group and top three from 2nd place group and race them
take top three and put in race with 1st place winners and there you have it
yes.
Cambium
Profile Blog Joined June 2004
United States16368 Posts
May 24 2009 00:31 GMT
#17
+ Show Spoiler +
7
Divide horses into 5 groups
I'll call the groups A, B, C, D, E

I will use X.1, X.2, etc. for first place, second place ... in group X.

Race the five groups, and this will give us A.1, B.1, ...

Race A.1, B.1, C.1, D.1, and E.1

Assuming the result of the race is A, B, C, D, E, this tells us A.1 is the fastest horse.

Race

A.2, A.3, B.1, B.2 and C.1

Done.


When you want something, all the universe conspires in helping you to achieve it.
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
May 24 2009 04:54 GMT
#18
bump
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!
Please log in or register to reply.
Live Events Refresh
Wardi Open
11:00
#43
WardiTV498
OGKoka 390
RotterdaM205
Rex130
CranKy Ducklings58
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
OGKoka 390
Harstem 207
RotterdaM 205
Lowko205
Rex 130
IndyStarCraft 76
Creator 52
StarCraft: Brood War
Jaedong 1133
Flash 971
Bisu 795
Hyuk 765
Larva 366
Pusan 355
Soma 344
Stork 322
actioN 274
EffOrt 262
[ Show more ]
Soulkey 228
Snow 151
ZerO 147
Sharp 90
sorry 55
Mind 55
firebathero 48
sSak 48
JulyZerg 45
hero 40
Aegong 37
Icarus 26
zelot 23
Free 22
GoRush 20
HiyA 19
Movie 18
yabsab 17
Barracks 15
JYJ14
Shine 10
PianO 8
IntoTheRainbow 8
Yoon 7
ivOry 3
soO 2
Dota 2
qojqva1959
XaKoH 544
XcaliburYe531
syndereN403
League of Legends
singsing2003
Counter-Strike
x6flipin529
allub143
byalli128
rGuardiaN57
Super Smash Bros
Mew2King234
Other Games
B2W.Neo441
Happy307
crisheroes295
Pyrionflax247
SortOf139
ArmadaUGS28
ZerO(Twitch)21
Organizations
Other Games
gamesdonequick30279
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 680
• lizZardDota2192
Other Games
• WagamamaTV203
Upcoming Events
Replay Cast
12h 20m
Sparkling Tuna Cup
22h 20m
WardiTV European League
1d 4h
MaNa vs sebesdes
Mixu vs Fjant
ByuN vs HeRoMaRinE
ShoWTimE vs goblin
Gerald vs Babymarine
Krystianer vs YoungYakov
PiGosaur Monday
1d 12h
The PondCast
1d 22h
WardiTV European League
2 days
Jumy vs NightPhoenix
Percival vs Nicoract
ArT vs HiGhDrA
MaxPax vs Harstem
Scarlett vs Shameless
SKillous vs uThermal
uThermal 2v2 Circuit
2 days
Replay Cast
2 days
RSL Revival
2 days
ByuN vs SHIN
Clem vs Reynor
Replay Cast
3 days
[ Show More ]
RSL Revival
3 days
Classic vs Cure
FEL
4 days
RSL Revival
4 days
FEL
5 days
FEL
5 days
BSL20 Non-Korean Champi…
5 days
Bonyth vs QiaoGege
Dewalt vs Fengzi
Hawk vs Zhanhun
Sziky vs Mihu
Mihu vs QiaoGege
Zhanhun vs Sziky
Fengzi vs Hawk
Sparkling Tuna Cup
5 days
RSL Revival
5 days
FEL
6 days
BSL20 Non-Korean Champi…
6 days
Bonyth vs Dewalt
QiaoGege vs Dewalt
Hawk vs Bonyth
Sziky vs Fengzi
Mihu vs Zhanhun
QiaoGege vs Zhanhun
Fengzi vs Mihu
Liquipedia Results

Completed

BSL Season 20
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Jiahua Invitational
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
CSL Xiamen Invitational
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.