• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 09:26
CEST 15:26
KST 22:26
  • 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
[ASL21] Ro24 Preview Pt2: News Flash10[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy21ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book20
Community News
$5,000 WardiTV TLMC tournament - Presented by Monster Energy3GSL CK: More events planned pending crowdfunding7Weekly Cups (May 30-Apr 5): herO, Clem, SHIN win0[BSL22] RO32 Group Stage5Weekly Cups (March 23-29): herO takes triple6
StarCraft 2
General
Team Liquid Map Contest #22 - Presented by Monster Energy Quebec Clan still alive ? BGE Stara Zagora 2026 cancelled Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Weekly Cups (May 30-Apr 5): herO, Clem, SHIN win
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament RSL Revival: Season 5 - Qualifiers and Main Event GSL CK: More events planned pending crowdfunding $5,000 WardiTV TLMC tournament - Presented by Monster Energy Sea Duckling Open (Global, Bronze-Diamond)
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
The PondCast: SC2 News & Results Mutation # 520 Moving Fees Mutation # 519 Inner Power Mutation # 518 Radiation Zone
Brood War
General
JD's Ro24 review BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ ASL21 General Discussion [BSL22] RO32 Group Stage
Tourneys
Escore Tournament StarCraft Season 2 [Megathread] Daily Proleagues [ASL21] Ro24 Group F [BSL22] RO32 Group B - Sunday 21:00 CEST
Strategy
Any training maps people recommend? Fighting Spirit mining rates Muta micro map competition What's the deal with APM & what's its true value
Other Games
General Games
Nintendo Switch Thread Battle Aces/David Kim RTS Megathread Stormgate/Frost Giant Megathread General RTS Discussion Thread Starcraft Tabletop Miniature Game
Dota 2
The Story of Wings Gaming Official 'what is Dota anymore' discussion
League of Legends
G2 just beat GenG in First stand
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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread The China Politics Thread European Politico-economics QA Mega-thread Trading/Investing Thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion Cricket [SPORT] Tokyo Olympics 2021 Thread
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
How Streamers Inspire Gamers…
TrAiDoS
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
ASL S21 English Commentary…
namkraft
StarCraft improvement
iopq
Electronics
mantequilla
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1888 users

A Puzzling Fortnight - Day 10

Blogs > JeeJee
Post a Reply
JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
Last Edited: 2011-06-14 02:21:54
June 13 2011 18:08 GMT
#1
Well, it's been a while since I put these puzzles up. But I never finished the fortnight and it's been bugging me. So here's another puzzle. Hopefully I can find four more good ones to finish this collection.

I posted this one in the Riddles thread, but it's more of a brainteaser/math puzzle and doesn't really fit in as a 'riddle'.

So here it is:
On June 11 2011 12:06 JeeJee wrote:
Show nested quote +
On June 11 2011 10:22 TheAnswerIsZero wrote:

Answer to tree problem
+ Show Spoiler +
Drawing may not be to scale: (The trees are numbered)


[image loading]




Quite well done.
Here's another riddle, more of a math puzzle, from the same source:

TheAnswerIsZero, upon answering JeeJee's riddle correctly, won a square plot of land, each side being one unit. Today, his lawyer informs him that some jerk built a pipe running under his plot of land without TAIZ's permission! This pipe runs in a straight line, parallel to the ground, and passes beneath his plot of land somewhere, but he doesn't know where.

TAIZ doesn't like this of course, so he plans to dig up the perimeter of his land, 4 units, to discover this pipe. His lawyer says, "It's not necessary to dig the entire perimeter!"

"Ah, I know what you mean" Taiz replies. "I can just dig 3 sides and still discover it, since even if it runs through the fourth side, I will find it at the other end point! Only 3 units!"

Lawyer shakes his head. "You're on the right track, but you can do better than that"

What optimal solution does the lawyer have in mind?

edit:
some sample images of how the pipe could run since apparently the explanation isn't very good?
+ Show Spoiler +
[image loading]

Just a straight line through the square somewhere. Naturally you can dig anywhere in the square, not just the perimeter.


Best of luck


Various Solutions
Solutions ordered by length from best to worst. Don't click if you don't want to be spoiled, naturally.

1. Optimal?
+ Show Spoiler +
As far as I'm aware, Kantom's Optimized by Hamster1800 is optimal. Not 100% sure though, and would love to be proven wrong. It is the solution I had in mind.

2. Kantom's Optimized -- by Hamster1800
+ Show Spoiler +
sqrt(2)/2 + 2*(sqrt(2/3)) + (1/sqrt(2) - 1/sqrt(6))
= sqrt(2) + sqrt(3/2)

2.639...

3. Kantom
+ Show Spoiler +
sqrt(2)/2 + 2

2.707...

4. awu25's Optimized -- by Slithe, Zortch
+ Show Spoiler +
4*(1/sqrt(3)) + (1-1/sqrt(3))
= 1+sqrt(3)

2.732...

5. awu25
+ Show Spoiler +
2*sqrt(2)

2.828...

6. Default
+ Show Spoiler +
3


****
(\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 ☺)
awu25
Profile Joined April 2010
United States2003 Posts
Last Edited: 2011-06-13 18:24:02
June 13 2011 18:20 GMT
#2
+ Show Spoiler +
Two diagonal lines forming an X within the plot of land? A total of 2*sqrt(2) units.
Rayeth
Profile Blog Joined April 2010
United States883 Posts
June 13 2011 18:20 GMT
#3
My brain tells me the answer to this is probably + Show Spoiler +
sqrt(2) units
, but I can't figure out how to justify it quite yet.

I will edit this post if I can figure out a good reason for it.
The Innocent shall suffer... big time.
Kantom
Profile Joined August 2010
United Kingdom27 Posts
Last Edited: 2011-06-13 18:25:30
June 13 2011 18:24 GMT
#4
+ Show Spoiler +
[image loading]

Digging along the red lines.

2 + 0.5*sqrt(2) comes out as slightly less than 2*sqrt(2) if my math is correct.


Is the best that I could come up with.

ComaDose
Profile Blog Joined December 2009
Canada10357 Posts
June 13 2011 18:36 GMT
#5
i spoiled myself in the riddles thread
such an interesting optimization problem.
riddle me this is actually a good thread too.
BW pros training sc2 is like kiss making a dub step album.
JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
Last Edited: 2011-06-13 18:40:40
June 13 2011 18:40 GMT
#6
@Rayeth
I would be quite impressed if you can manage such a solution. It's significantly better than what I have in mind. Unfortunately I don't think it's possible -- keep in mind the pipe doesn't have to run perpendicular to any sides or anything. Any angle would do, see the spoiler in OP for illustrations.

@awu
Good start! Not the optimal solution yet though

@Kantom
Ah, very clever. Still, it's possible to improve

I'll keep a leaderboard in the OP.
Kantom #1 now ^^

edit: yes if you spoiled yourself in the riddle thread please don't spoil it for everyone else here just yet. I edited out that solution for now
(\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 ☺)
Slithe
Profile Blog Joined February 2007
United States985 Posts
June 13 2011 21:50 GMT
#7
I couldn't think of anything better than the awu solution. Kantoum's solution is pretty nifty. I'm getting close to giving up soon :/
Hamster1800
Profile Blog Joined August 2008
United States175 Posts
Last Edited: 2011-06-13 21:53:04
June 13 2011 21:52 GMT
#8
I optimized Kantom's solution to get the following:
+ Show Spoiler +

Let x = 1/2 - 1/(2*sqrt(3)). Label the square ABCD clockwise from the top left. Consider an x by x square at the top right, and draw the diagonal from B across it to a point E. Then draw AE, CE, and draw from D to the center of the square. This gives you one segment of length 1/sqrt(2), one of length 1/sqrt(2) - 1/sqrt(6), and two of length 2/sqrt(6), which gives you a total length of sqrt(2) + sqrt(3/2) = 2.6389...

My guess is this still isn't optimal, but it beats the current best ^^. My best lower bound for the answer is 2, although I am pretty sure that it's not attainable.
D is for Diamond, E is for Everything Else
Slithe
Profile Blog Joined February 2007
United States985 Posts
June 13 2011 22:23 GMT
#9
Oh using the same idea as Hamster's optimization we can do something similar to other solution.

+ Show Spoiler +
Instead of having an exact X, we can create an extended shape like this (too lazy to upload picture):

>-<

I dunno if I calculated right but I'm getting a total length of 1+sqrt(3)
Zortch
Profile Blog Joined January 2008
Canada635 Posts
June 13 2011 23:19 GMT
#10
+ Show Spoiler +
Slithe's solution above (once minimized with basic calculus) is optimal among all connected solutions (connected meaning that once you are in the trench you can walk to any other point in the trench without leaving it). However, I don't know how to prove that it is optimal over all solutions that may not be connected like Kantom's above.
Respect is everything. ~ARchon
JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
June 14 2011 00:05 GMT
#11
Ah, quite impressive.
Hamster indeed brought up the solution I had in mind. If you don't mind me asking, how did you come up with that x? The way I came about the solution was forcing a 120degree angle intersection between the 3 lines and calculating the distances from there.

I updated the leaderboard (although it's not really a leaderboard, more of a who thought of what 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 ☺)
Hamster1800
Profile Blog Joined August 2008
United States175 Posts
June 14 2011 01:25 GMT
#12
I just wrote down the lengths in terms of x, differentiated, and set the derivative equal to 0, which becomes a quadratic equation. We should collectively try to improve it or prove that it is optimal. First question: Can anyone prove a lower bound better than 2?
D is for Diamond, E is for Everything Else
Zortch
Profile Blog Joined January 2008
Canada635 Posts
Last Edited: 2011-06-14 02:40:19
June 14 2011 02:00 GMT
#13
Consider this shape:
[image loading]
Where t is half the distance of the horizontal red line. And everything is nice and regular .

Then we can write the equation for the length of the red trench and minimize, which I have done on wolfram: http://www.wolframalpha.com/input/?i=minimize 2(2((1/2-t)^2+(1/2)^2)^1/2 +t)

So once we use calculus to find the minimum it turns out to be 1+sqrt(3)=2.732...
Unless I have made some error?
Respect is everything. ~ARchon
annul
Profile Blog Joined June 2010
United States2841 Posts
June 14 2011 02:10 GMT
#14
consider the bottom left "example"

theoretically the pipe could intersect a corner and not exist anywhere else in the square

therefore, the only way to GUARANTEE finding it is to cut along perimeter. = 4.
Zortch
Profile Blog Joined January 2008
Canada635 Posts
June 14 2011 02:19 GMT
#15
On June 14 2011 11:10 annul wrote:
consider the bottom left "example"

theoretically the pipe could intersect a corner and not exist anywhere else in the square

therefore, the only way to GUARANTEE finding it is to cut along perimeter. = 4.


Hmm? I think there is some misunderstanding. Can you explain your reasoning further?
Respect is everything. ~ARchon
JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
Last Edited: 2011-06-14 02:26:31
June 14 2011 02:23 GMT
#16
On June 14 2011 11:00 Zortch wrote:
Consider this shape:
[image loading]
Where t is half the distance of the horizontal red line. And everything is nice and regular .

Then we can write the equation for the length of the red trench and minimize, which I have done on wolfram: http://www.wolframalpha.com/input/?i=minimize 2(2((1/2-t)^2+(1/2)^2)^1/2 +t)

So once we use calculus to find the minimum it turns out to be 1+sqrt(3)=1.732...
Unless I have made some error?


Indeed that's correct, it's an optimization of the X approach. Don't forget to add the one though, final answer 2.732..

@Hamster
I'm working on a lower bound but it's tricky =(
I'm not a math wiz by any means, most of my solutions are intuitive and lower bound work isn't my area of expertise, it's not really "intuitive" per se
That said, there are some really smart people here...
*nudge nudge*
(\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 ☺)
annul
Profile Blog Joined June 2010
United States2841 Posts
Last Edited: 2011-06-14 03:47:27
June 14 2011 03:46 GMT
#17
On June 14 2011 11:19 Zortch wrote:
Show nested quote +
On June 14 2011 11:10 annul wrote:
consider the bottom left "example"

theoretically the pipe could intersect a corner and not exist anywhere else in the square

therefore, the only way to GUARANTEE finding it is to cut along perimeter. = 4.


Hmm? I think there is some misunderstanding. Can you explain your reasoning further?


edit: nevermind, im a dumb
Cremali
Profile Joined April 2010
Canada15 Posts
Last Edited: 2011-06-15 05:18:26
June 15 2011 05:12 GMT
#18
Nvm. Late night = fail solving.

Hm didn't notice this was a blog post. Posted in the other thread.

+ Show Spoiler +
For a square ABCD, dig up from A to midpoint of CD then from midpoint of CD to B. Gives 2*sqrt(1^2+0.5^2) = 2.23 units

JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
June 15 2011 15:16 GMT
#19
On June 15 2011 14:12 Cremali wrote:
Nvm. Late night = fail solving.

Hm didn't notice this was a blog post. Posted in the other thread.

+ Show Spoiler +
For a square ABCD, dig up from A to midpoint of CD then from midpoint of CD to B. Gives 2*sqrt(1^2+0.5^2) = 2.23 units



I'm afraid that doesn't work
See here:
+ Show Spoiler +

[image loading]


Where black is the square, red is your digging and blue is the potential pipe case not covered by your 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 ☺)
sky`380
Profile Joined January 2011
United States49 Posts
Last Edited: 2011-07-04 20:05:52
July 04 2011 17:18 GMT
#20
On June 14 2011 06:52 Hamster1800 wrote:
I optimized Kantom's solution to get the following:
+ Show Spoiler +

Let x = 1/2 - 1/(2*sqrt(3)). Label the square ABCD clockwise from the top left. Consider an x by x square at the top right, and draw the diagonal from B across it to a point E. Then draw AE, CE, and draw from D to the center of the square. This gives you one segment of length 1/sqrt(2), one of length 1/sqrt(2) - 1/sqrt(6), and two of length 2/sqrt(6), which gives you a total length of sqrt(2) + sqrt(3/2) = 2.6389...

My guess is this still isn't optimal, but it beats the current best ^^. My best lower bound for the answer is 2, although I am pretty sure that it's not attainable.


Could someone please illustrate this?

EDIT: Image should say ".4" not just "4"

My contribution. I think blue can be less than .4. Perhaps even as low as .25
[image loading]
Please log in or register to reply.
Live Events Refresh
OSC
13:00
King of the Hill #243
Liquipedia
WardiTV Team League
11:00
Playoffs Day 3
WardiTV1031
ComeBackTV 679
IndyStarCraft 254
Rex118
3DClanTV 58
Liquipedia
Sparkling Tuna Cup
10:00
Weekly #127
Classic vs SHINLIVE!
CranKy Ducklings114
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
IndyStarCraft 254
LamboSC2 168
Rex 118
ProTech118
StarCraft: Brood War
Britney 66528
Calm 5259
Bisu 2837
Shuttle 964
EffOrt 534
Mini 510
Hyuk 348
actioN 320
BeSt 285
ZerO 270
[ Show more ]
Light 251
ggaemo 232
Rush 225
firebathero 182
Aegong 157
Last 149
Killer 89
ToSsGirL 72
Barracks 71
Mind 64
Nal_rA 62
Hyun 58
Backho 55
Shinee 49
Sea.KH 48
Free 41
Movie 33
soO 24
Hm[arnc] 22
GoRush 22
scan(afreeca) 16
IntoTheRainbow 12
yabsab 12
Terrorterran 5
Icarus 5
ivOry 4
Sexy 4
Dota 2
Gorgc6681
qojqva1219
Fuzer 71
Counter-Strike
zeus735
Heroes of the Storm
Khaldor160
Other Games
singsing2023
B2W.Neo1538
Liquid`RaSZi1122
DeMusliM415
RotterdaM274
XaKoH 254
Mew2King65
QueenE51
ZerO(Twitch)19
Organizations
Counter-Strike
PGL1134
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Berry_CruncH200
• CranKy Ducklings SOOP85
• Adnapsc2 11
• IndyKCrew
• sooper7s
• Migwel
• LaughNgamezSOOP
• intothetv
• Kozan
• AfreecaTV YouTube
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Nemesis2292
• Jankos1879
• TFBlade1406
Upcoming Events
BSL
5h 34m
Sterling vs Azhi_Dahaki
Napoleon vs Mazur
Jimin vs Nesh
spx vs Strudel
IPSL
5h 34m
Artosis vs TBD
Napoleon vs TBD
Replay Cast
19h 34m
Wardi Open
20h 34m
Afreeca Starleague
20h 34m
Soma vs YSC
Sharp vs sSak
Monday Night Weeklies
1d 2h
OSC
1d 10h
Afreeca Starleague
1d 20h
Snow vs PianO
hero vs Rain
WardiTV Map Contest Tou…
1d 20h
GSL
1d 22h
[ Show More ]
Replay Cast
2 days
Kung Fu Cup
2 days
The PondCast
3 days
WardiTV Map Contest Tou…
3 days
Escore
4 days
WardiTV Map Contest Tou…
4 days
Korean StarCraft League
5 days
CranKy Ducklings
5 days
WardiTV Map Contest Tou…
5 days
IPSL
6 days
WolFix vs nOmaD
dxtr13 vs Razz
BSL
6 days
Sparkling Tuna Cup
6 days
WardiTV Map Contest Tou…
6 days
Liquipedia Results

Completed

Escore Tournament S2: W2
RSL Revival: Season 4
NationLESS Cup

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
StarCraft2 Community Team League 2026 Spring
Nations Cup 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026

Upcoming

Escore Tournament S2: W3
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
RSL Revival: Season 5
WardiTV TLMC #16
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
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 © 2026 TLnet. All Rights Reserved.