You are on a boat on the sea and the weather is so foggy that you cannot see anything beyond your own boat. You have a GPS, so that you can plan and accurately execute a travel path, but you do not have a map. You have fuel for 7 miles of travel.
You know that the shore is a straight line, exactly 1 mile from you. You do not know what is the direction of the shoreline. Is there a travel plan that will certainly lead you to the shore before the fuel runs out?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The simplest way to make it to the shore is to take a straight path in one (random) direction, and make a circle of radius 1 mile around the original position. In the worst case scenario this takes 1+2 \pi = 7.28 miles, so it does not work.
A shorter path can be constructed as this: 1 mile straight, followed by a 3/4 of a circle and one mile straight along the tangent of the circle. In the worst case scenario this takes 1+(3/2) \pi + 1 = 6.71miles.