Tuesday, 17 December 2013

geometry - Blindfolded and disoriented near the Great Wall of China


You are blindfolded and disoriented, standing exactly 1 mile from the Great Wall of China. How far must you walk to find the wall?


Assume the earth is flat and the Great Wall is infinitely long and straight.



Answer




For each possible orientation of the wall (relative to some arbitrary initial orientation), the point on the wall closest to our starting point is a distance 1 away. The collection of the closest points for all possible orientations of the wall form a circle of radius 1 around our starting point.



If we move a distance r>1 away from the initial point, we intersect two orientations of the wall that are an angle θ apart. In order to reach that point we must have crossed all of the orientations in that angle. In the figure below on the left, those "explored" points are marked by a magenta line.


enter image description here


By trigonometry we can show that θ=2arcsecr. If we traverse the path shown on the right side of the above figure, we travel a worst-case distance of:


r+r(2πθ)r+2r(πarcsecr)


This distance is minimized when r1.04356 for a worst-case distance of 6.99528, an improvement of about 3.95%


However, looking at the figure we can immediately see that the majority of the large circular arc is "wasted" distance. Only the ends contribute to additional "explored" points. If we shrink-wrap the rest of the path around the unit circle, we get the following path:


enter image description here


The worst-case distance of this path is:


r+2r21+(2π2θ)r+2(r21+π2arcsecr)


This happens to be minimized for r=153361.24200 (not the distance shown in the figure), for a worst-case distance of:



9+332+4arctan9+3386.45891


an improvement of 11.32%.


Update


Thanks to Michael Seifert for pointing out that we can do better by letting the radii of the start and end be different, in which case we have the distance:


r1+r211+r221+2πθ1θ2r1+r211+r221+2πarcsecr1arcsecr2


Which is minimized by r1=2/3, r2=2 (with θ1=π/3, θ2=π/2):


enter image description here


(Because of the nice angles, this picture is exactly to scale.) The worst-case distance here is simply


23+13+2π3+π2+1=1+3+7π6


(a 12.16% improvement.)



No comments:

Post a Comment

Understanding Stagnation point in pitot fluid

What is stagnation point in fluid mechanics. At the open end of the pitot tube the velocity of the fluid becomes zero.But that should result...