• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 20:25
CET 02:25
KST 10:25
  • 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
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
[BSL21] Ro.16 Group Stage (C->B->A->D)4Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win2RSL Season 3: RO16 results & RO8 bracket13Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge2[TLMC] Fall/Winter 2025 Ladder Map Rotation14
StarCraft 2
General
When will we find out if there are more tournament Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win SC: Evo Complete - Ranked Ladder OPEN ALPHA Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge RSL Season 3: RO16 results & RO8 bracket
Tourneys
Tenacious Turtle Tussle [Alpha Pro Series] Nice vs Cure RSL Revival: Season 3 $5,000+ WardiTV 2025 Championship StarCraft Evolution League (SC Evo Biweekly)
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 501 Price of Progress Mutation # 500 Fright night Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death
Brood War
General
Which season is the best in ASL? [BSL21] Ro.16 Group Stage (C->B->A->D) Data analysis on 70 million replays FlaSh on: Biggest Problem With SnOw's Playstyle soO on: FanTaSy's Potential Return to StarCraft
Tourneys
[Megathread] Daily Proleagues [BSL21] RO16 Tie Breaker - Group B - Sun 21:00 CET [BSL21] GosuLeague T1 Ro16 - Tue & Thu 22:00 CET [BSL21] RO16 Tie Breaker - Group A - Sat 21:00 CET
Strategy
Game Theory for Starcraft How to stay on top of macro? Current Meta PvZ map balance
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Beyond All Reason The Perfect Game Should offensive tower rushing be viable in RTS games?
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
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Mafia Game Mode Feedback/Ideas
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Artificial Intelligence Thread Things Aren’t Peaceful in Palestine YouTube Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Where to ask questions and add stream? The Automated Ban List
Blogs
Thanks for the RSL
Hildegard
The Health Impact of Joining…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2046 users

[Math Puzzle] Day 1

Blogs > evanthebouncy!
Post a Reply
1 2 Next All
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
Last Edited: 2009-04-27 17:39:20
April 27 2009 17:13 GMT
#1
I stopped playing massive game so I'll keep u guys entertained with these puzzles. This is round 1. The first to have the right answer with correct methods and intuitions(and put into a spoiler here) will be in honorary mention in the next round. I'll give more clarifications as I see people making different assumptions than what is intended(there are some math conventions not being explicit but expected).
Should be fun, shall we go?

[image loading]

You have a stick that is 100cm long, and you can place ants on it. The ants can be placed anywhere on the stick, and facing anyway.
Important facts:
-Ants takes no length, you can think of them as dots.
-Ants crawls at 1cm/s.
-When 2 ants run into each other, they immediately turn back on each other and crawls away from each other.
-Ants will fall off at the edge.

Your Experiment:
Place 100 ants on the stick anyway you want, i.e. any direction/position. And start stopwatch. When the clock begins to tick, the ants will begin to crawl, collide, and fall off the edge. When the last ant falls off the stick, stop stopwatch.

Your Job:
Maximize the time recorded on your watch with a particular configuration of ants.

Good Luck!

What I hope:
People posting and discussing the problem. I hate writing blogs with no replies.

Clarifications:
-Stick is 1-dimentional
-Ants CAN be placed at the same spot in a sense that since ants are points, you can have the distances between two points as small as possible, while maintaining that one point is on the left/right of another.

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!
phase
Profile Blog Joined January 2008
United States399 Posts
April 27 2009 17:28 GMT
#2
question of clarification: can multiple ants occupy the same spot?

+ Show Spoiler +

Assuming ants take up 1cm each:
Start at the left of the stick and place ants starting at 0cm to 100cm on the stick, with no ants at 50cm. The ants from 0cm-49cm should be facing left, and the ants from 51cm to 100cm should be facing right. This way, there are no ant collisions and each second, two ants fall off the stick. THere should be no ants on the stick by just after 49 seconds

Assuming ants don't really take up space and you are really precise with placing ants:
Place an equal number of ants at both 0cm and 100cm in such a way that each ant is incrementally spaced between itself and another ant. Set them up facing their respective ends of the sticks. Almost right after you start, there should be no ants on the stick.
NathanSC
Profile Blog Joined February 2008
United States620 Posts
April 27 2009 17:33 GMT
#3
On April 28 2009 02:28 phase wrote:
question of clarification: can multiple ants occupy the same spot?

+ Show Spoiler +

Assuming ants take up 1cm each:
Start at the left of the stick and place ants starting at 0cm to 100cm on the stick, with no ants at 50cm. The ants from 0cm-49cm should be facing left, and the ants from 51cm to 100cm should be facing right. This way, there are no ant collisions and each second, two ants fall off the stick. THere should be no ants on the stick by just after 49 seconds

Assuming ants don't really take up space and you are really precise with placing ants:
Place an equal number of ants at both 0cm and 100cm in such a way that each ant is incrementally spaced between itself and another ant. Set them up facing their respective ends of the sticks. Almost right after you start, there should be no ants on the stick.

Your Job:
Maximize the time recorded on your watch with a particular configuration of ants.
LiAlH4
Profile Joined October 2007
New Zealand111 Posts
April 27 2009 17:33 GMT
#4
+ Show Spoiler +

Well by using the picture you gave us as an idea of the nature of the stick - i.e. round and presumably having edges only at the two cut ends...
Have all the ants facing perpendicular to the length of stick. They will all walk the circumference of the stick ad infinitum, and never fall off.
seppolevne
Profile Blog Joined February 2009
Canada1681 Posts
April 27 2009 17:35 GMT
#5
On April 28 2009 02:33 LiAlH4 wrote:
+ Show Spoiler +

Well by using the picture you gave us as an idea of the nature of the stick - i.e. round and presumably having edges only at the two cut ends...
Have all the ants facing perpendicular to the length of stick. They will all walk the circumference of the stick ad infinitum, and never fall off.


GG
J- Pirate Udyr WW T- Pirate Riven Galio M- Galio Annie S- Sona Lux -- Always farm, never carry.
Lemonwalrus
Profile Blog Joined August 2006
United States5465 Posts
April 27 2009 17:49 GMT
#6
+ Show Spoiler +
50 ants from 0cm-49cm, spaced 1cm apart, all facing 100 cm, and 50 ants from 51cm-100cm, spaced 1cm apart, all facing 0cm. When it starts the first pair (49cm and 51cm) will collide and turn around, and then collide with the ants directly behind them, sending a wave in either direction that will lead to a pair of ants falling off each end and the rest traveling back towards the center, ending with the middle pair being the last ants to fall off (after 50 revolutions of the situation above.)
Oddly enough, I believe this will only last 2 seconds longer than just putting a single ant at 0cm facing 100cm, but I could be wrong.
There might be more efficient ways to do it as far as positioning, but the above is the general idea.
Chill
Profile Blog Joined January 2005
Calgary25989 Posts
April 27 2009 17:51 GMT
#7
Oh I thought the stick was two dimensional haha
Anyways I suck at these kind of things but I'll be reading the replies.
Moderator
Day[9]
Profile Blog Joined April 2003
United States7366 Posts
Last Edited: 2009-04-27 17:55:53
April 27 2009 17:52 GMT
#8
100s

+ Show Spoiler +
when two ants bump into eachother and reverse direction, you can view this as two ants passing through eachother. That is, you can just imagine placing ants and they walk mindlessly straight until they fall off. So, just place one ant at the far end of the stick facing the other direction, and place the other ants however the hell you want. all the ants will walk off in <=100s with at least one taking exactly 100s


hot damn i'm good
Whenever I encounter some little hitch, or some of my orbs get out of orbit, nothing pleases me so much as to make the crooked straight and crush down uneven places. www.day9.tv
Lemonwalrus
Profile Blog Joined August 2006
United States5465 Posts
Last Edited: 2009-04-27 17:57:39
April 27 2009 17:56 GMT
#9
On April 28 2009 02:52 Day[9] wrote:
100s

+ Show Spoiler +
when two ants bump into eachother and reverse direction, you can view this as two ants passing through eachother. That is, you can just imagine placing ants and they walk mindlessly straight until they fall off. So, just place one ant at the far end of the stick facing the other direction, and place the other ants however the hell you want. all the ants will walk off in <=100s with at least one taking exactly 100s


hot damn i'm good

+ Show Spoiler +
Damn, you are right, my solution assumed 102 ants and a 102 centimeter stick because I am retarded.
SoulMarine
Profile Blog Joined January 2009
United States586 Posts
April 27 2009 17:59 GMT
#10
On April 28 2009 02:52 Day[9] wrote:
100s

+ Show Spoiler +
when two ants bump into eachother and reverse direction, you can view this as two ants passing through eachother. That is, you can just imagine placing ants and they walk mindlessly straight until they fall off. So, just place one ant at the far end of the stick facing the other direction, and place the other ants however the hell you want. all the ants will walk off in <=100s with at least one taking exactly 100s


hot damn i'm good


win
베이비 폭스 WeMade 파이팅! ~ WeMade 팬 ~ BaBy 팬 ~ щ(゚Д゚щ) Gee Gee Gee Gee BaBy BaBy BaBy ♫♫
magusmind
Profile Blog Joined May 2008
50 Posts
April 27 2009 18:02 GMT
#11
On April 28 2009 02:52 Day[9] wrote:
100s

+ Show Spoiler +
when two ants bump into each other and reverse direction, you can view this as two ants passing through each other. That is, you can just imagine placing ants and they walk mindlessly straight until they fall off. So, just place one ant at the far end of the stick facing the other direction, and place the other ants however the hell you want. all the ants will walk off in <=100s with at least one taking exactly 100s


hot damn i'm good


brilliant
myzael
Profile Blog Joined November 2008
Poland605 Posts
April 27 2009 18:02 GMT
#12
On April 28 2009 02:52 Day[9] wrote:
100s

+ Show Spoiler +
when two ants bump into eachother and reverse direction, you can view this as two ants passing through eachother. That is, you can just imagine placing ants and they walk mindlessly straight until they fall off. So, just place one ant at the far end of the stick facing the other direction, and place the other ants however the hell you want. all the ants will walk off in <=100s with at least one taking exactly 100s


hot damn i'm good

Win. Shame I haven't even thought of the problem this way
Osmoses
Profile Blog Joined October 2008
Sweden5302 Posts
April 27 2009 18:19 GMT
#13
Day[9] wins the day. I was too busy trying to find some flaw about collision detection since the ants were minuscule to even begin to think about what a 1-dimensional stick really entailed
Excuse me hun, but what is your name? Vivian? I woke up next to you naked and, uh, did we, um?
vAltyR
Profile Blog Joined July 2008
United States581 Posts
April 27 2009 18:38 GMT
#14
Day[9]: Lateral thinking FTW.
내 호버크라프트는 장어로 가득 차 있어요
Polemarch
Profile Joined August 2005
Canada1564 Posts
April 27 2009 18:45 GMT
#15
On April 28 2009 02:52 Day[9] wrote:
100s

+ Show Spoiler +
when two ants bump into eachother and reverse direction, you can view this as two ants passing through eachother. That is, you can just imagine placing ants and they walk mindlessly straight until they fall off. So, just place one ant at the far end of the stick facing the other direction, and place the other ants however the hell you want. all the ants will walk off in <=100s with at least one taking exactly 100s


hot damn i'm good


this is a neat problem because we naturally think of the problem by simulating it from an individual ant's perspective, which can get really complex. it takes a zerg player's hive mind to think of the set of ants this way.
I BELIEVE IN CAPITAL LETTER PUNISHMENT!!!!!
Pseudo_Utopia
Profile Blog Joined December 2002
Canada827 Posts
April 27 2009 19:29 GMT
#16
I think if you place 50 ants at left end, walking towards right and 50 ants at right end walking towards left, you maximize the time. You can think of it Day's way.
Retired SchiSm[LighT]
Chromyne
Profile Joined January 2008
Canada561 Posts
April 27 2009 19:38 GMT
#17
Another way to think of Day[9]'s solution is
+ Show Spoiler +
to have all the ants lined up from one end to the other and facing the same direction. It's essentially that one ant on the end walking across the entire length of the stick.
Soli Deo gloria.
Archaic
Profile Blog Joined March 2008
United States4024 Posts
April 27 2009 19:45 GMT
#18
It's a true pleasure to read and hear Day[9]'s mind at work, imo.
edahl
Profile Joined February 2008
Norway483 Posts
April 27 2009 19:55 GMT
#19
+ Show Spoiler +
I'm thinking that the time it takes between each ant falling off is around quadratic, but then I thought the integral of log x would be nice. So I'm guessing x(log(x)-1)-100=0, where x is seconds. So that would be around a hundred. I'd try for one better, but I'm busy ^^
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
Last Edited: 2009-04-27 20:37:50
April 27 2009 20:37 GMT
#20
On April 28 2009 03:45 Polemarch wrote:
Show nested quote +
On April 28 2009 02:52 Day[9] wrote:
100s

+ Show Spoiler +
when two ants bump into eachother and reverse direction, you can view this as two ants passing through eachother. That is, you can just imagine placing ants and they walk mindlessly straight until they fall off. So, just place one ant at the far end of the stick facing the other direction, and place the other ants however the hell you want. all the ants will walk off in <=100s with at least one taking exactly 100s


hot damn i'm good


this is a neat problem because we naturally think of the problem by simulating it from an individual ant's perspective, which can get really complex. it takes a zerg player's hive mind to think of the set of ants this way.


or just a math major :p
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!
1 2 Next All
Please log in or register to reply.
Live Events Refresh
Tenacious Turtle Tussle
00:00
Biweekly #36
CranKy Ducklings136
davetesta33
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft402
elazer 159
ProTech122
Nina 94
SortOf 44
CosmosSc2 37
StarCraft: Brood War
Calm 5181
Artosis 725
ggaemo 253
Aegong 45
Dota 2
NeuroSwarm4
Counter-Strike
Coldzera 970
Fnx 301
Super Smash Bros
hungrybox901
Other Games
tarik_tv6439
shahzam674
JimRising 632
Day[9].tv576
C9.Mang0282
ViBE155
WinterStarcraft149
Organizations
Other Games
gamesdonequick581
Dota 2
PGL Dota 2 - Main Stream160
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• HeavenSC 33
• Adnapsc2 3
• intothetv
• Kozan
• sooper7s
• Migwel
• AfreecaTV YouTube
• LaughNgamezSOOP
• IndyKCrew
StarCraft: Brood War
• 80smullet 13
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21219
League of Legends
• Doublelift4517
Other Games
• imaqtpie1372
• Scarra885
• Day9tv576
Upcoming Events
The PondCast
8h 35m
Replay Cast
21h 35m
OSC
1d 15h
LAN Event
1d 16h
Replay Cast
1d 21h
Replay Cast
2 days
WardiTV Korean Royale
2 days
Sparkling Tuna Cup
3 days
WardiTV Korean Royale
3 days
Replay Cast
3 days
[ Show More ]
Wardi Open
4 days
Monday Night Weeklies
4 days
StarCraft2.fi
4 days
Replay Cast
4 days
Wardi Open
5 days
StarCraft2.fi
5 days
Wardi Open
6 days
StarCraft2.fi
6 days
Liquipedia Results

Completed

SOOP Univ League 2025
RSL Revival: Season 3
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
CSCL: Masked Kings S3
Slon Tour Season 2
META Madness #9
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
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.