{"id":36,"date":"2011-08-02T02:16:34","date_gmt":"2011-08-01T23:16:34","guid":{"rendered":"http:\/\/www.nicau.ro\/?p=36"},"modified":"2013-04-30T19:41:51","modified_gmt":"2013-04-30T16:41:51","slug":"the-monk-and-the-mountain","status":"publish","type":"post","link":"https:\/\/www.nicau.ro\/?p=36","title":{"rendered":"The monk and the mountain"},"content":{"rendered":"<p><a href=\"http:\/\/www.nicau.ro\/wp-content\/uploads\/2011\/08\/monk.png\"><img loading=\"lazy\" src=\"http:\/\/www.nicau.ro\/wp-content\/uploads\/2011\/08\/monk.png\" alt=\"\" title=\"monk\" width=\"200\" height=\"179\" class=\"aligncenter size-full wp-image-276\" \/><\/a><\/p>\n<p>The other day, while talking to a friend he asked if I was up for a puzzle. As I always enjoy a good challenge I answered: what puzzle? Then he started telling and telling, where in the end there was this simple question. From the very start I had an answer but it was restraining the generality, therefore unacceptable. After a bit of analyzing, I have found something much better along with some pitfalls for the careless solver. In this article we will discuss the pitfalls and of course, the *solution* .<\/p>\n<p>First, let&#8217;s have a look at the puzzle:<\/p>\n<table style=\"background-color: #f7e7cd;\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>A monk starts one morning a journey from the base of the mountain to a monastery at the top. He leaves at 8am and gets there at 5pm. He spends night at the monastery and the next morning he climbs down retracing the route. He leaves at 8am from the top and arrives at the base at 5pm. Is there such moment (of the day) when he&#8217;ll be at same location in both days?<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><strong>SPOILER WARNING&gt;<\/strong> If you wish solving this puzzle independently stop reading here.<\/p>\n<p>&nbsp;<br \/>\nAt a glance, the naive answer is &#8211; sure, it is possible as long as he&#8217;s going with constant speed, both days. The moment will be around noon, more precisely 12.30pm ( 8 + ( 17 &#8211; 8 ) \/ 2) at half distance. This answer induces a new parameter, the speed being constant which affects the question generality, therefore we might as well ignore it.<br \/>\n<br \/>\n<center><img src=\"http:\/\/chart.apis.google.com\/chart?chtt=First+Day+Ascent&amp;chts=000000,12&amp;chs=300x150&amp;chf=bg,s,ffffff|c,s,ffffff&amp;chxt=x,y&amp;chxl=0:|0|1|2|3|4|5|6|7|8|9|1:|0|1|2|3|4|5|6|7|8|9|10&amp;cht=lxy&amp;chd=t:0.00,33.33,100.00|0.00,60.00,100.00&amp;chdl=Climbing+Monk&amp;chco=cc3300\" alt=\"Google Chart\"\/><\/center><br \/>\nSo what is the right answer? Let us read the problem again. Text seems to be straightforward: 8am at the base, goes walking with variable speed. Maybe he starts with great speed covering 6\/10 of distance in just 1\/3 of time, then for the last 4\/10 incredibly slow, enjoying the scenery, consuming the remaining 2\/3 of time. He&#8217;s reaching summit at 17. We can think in terms of functions. On the <b>X<\/b> we&#8217;re representing <b>time<\/b> from 0 to 9, where we add to 8am to obtain the absolute hour. On the <b>Y<\/b> axis we&#8217;re representing the <b>distance from start<\/b> from 0 to 10. The problem does not state the exact distance from base to summit. That&#8217;s not important.<br \/>\n<br \/>\n<center><img src=\"http:\/\/chart.apis.google.com\/chart?chtt=Second+Day+Descent&amp;chts=000000,12&amp;chs=300x150&amp;chf=bg,s,ffffff|c,s,ffffff&amp;chxt=x,y&amp;chxl=0:|0|1|2|3|4|5|6|7|8|9|1:|0|1|2|3|4|5|6|7|8|9|10&amp;cht=lxy&amp;chd=t:0.00,66.66,100.00|0.00,10.00,100.00&amp;chdl=Descending+Monk&amp;chco=339900\" alt=\"Google Chart\"\/><\/center><br \/>\nOn the next day he&#8217;s taking the same route but starting at 8am from the summit. Let us assume he&#8217;s going relatively slow, watching birds with binoculars or something. After 2\/3 of time he&#8217;s covered just 1\/10 of distance. When he realizes how late and how much more distance, knowing how mountains are not safe after nightfall, starts racing down. Back in the day the monk used to be athletic, doing mountain marathons so he&#8217;s reaching base at precisely 17.00.<br \/>\n<br \/>\nAll good so far. We have read most of the text, taking two extreme examples and representing them on such nice charts :). What about the question? It is suggesting somehow, no matter what variables, <b>there should exist a same hour each day when monk&#8217;s location will be the same<\/b>. How could it be? In the above examples, the monk is at very different locations at say, 10am &#8211; which is 1 hour offset from the start. And &#8220;start&#8221; means the first day close to the base, the next day close to the mountain top. Doesn&#8217;t this look like a valid counter-example, sufficient to answer the puzzle with &#8220;NO, it is impossible&#8221;? This is the first trap. Actually, no. The puzzle question asks whether there is such moment in time (<b>if it exists<\/b>) and not if every hour meets the criteria. Finding a certain hour where the criteria doesn&#8217;t fulfill is wrong. Instead of proving universal quantification we need to prove existential quantification.<br \/>\n<br \/>\nIt might be a good idea representing both ascending and descending functions on the same graph. For ex. let us name <b>f<\/b> the ascending function and <b>g<\/b> the descending function. Each function take <b>x<\/b> as elapsed time and produce <b>y<\/b> as distance from the start. Can you think of a condition for both functions to test the puzzle question? Yes, you&#8217;re right. We need to put the two in a system of equations:<br \/>\n<center><code><br \/>\ny = f(x)<br \/>\ny = g(x)<br \/>\n<\/code><\/center><br \/>\nSame x time of the day produces same y monk location. Let us have the ascending and descending functions drawn on a same graphic.<br \/>\n<br \/>\n<center><br \/>\n<img src=\"http:\/\/chart.apis.google.com\/chart?chtt=Journey&amp;chts=000000,12&amp;chs=300x150&amp;chf=bg,s,ffffff|c,s,ffffff&amp;chxt=x,y&amp;chxl=0:|0|1|2|3|4|5|6|7|8|9|1:|0|1|2|3|4|5|6|7|8|9|10&amp;cht=lxy&amp;chd=t:100.00,33.33,0.00|100.00,60.00,0.00|100.00,66.66,0.00|100.00,10.00,0.00&amp;chdl=Climbing+Monk|Descending+Monk&amp;chco=cc3300,339900\" alt=\"Google Chart\"\/><br \/>\n<\/center><br \/>\n<br \/>\nWe see no intersections other than at 8am and at 17pm. But then we know it&#8217;s impossible for the monk to be in the same location. At 8am in the first day he&#8217;s at the base of the mountain, the next day he&#8217;s at the monastery. Wasn&#8217;t this graph supposed to show us the solution? Where is the error? &#8230;And this is how we find the 2nd trap :). Anybody not paying attention could fall for it. There is nothing wrong with having intersections at start and at finish. On <b>Y<\/b> axis we&#8217;re representing <b>distance from the start<\/b>. Situation where intersections have some other meaning &#8212; the monk does start at 8am (0 offset on <b>X<\/b> axis ) and he does reach destination 9 hours later.<br \/>\n<br \/>\nThe question is what we choose to represent on <b>Y<\/b> axis. To be meaningful for the puzzle-question, we should have represented <b>absolute location<\/b>. &#8220;..when he\u2019ll be at same location in both days?&#8221; &#8211; same location can only be referred to as in absolute terms, or needs to be computed. We&#8217;re taking the easier option. The ascending function stays the same, he starts from 0 and reaches mountain top at location 10. We need to modify the descending function which given changes will start at location 10 and as time passes, reach location 0.<br \/>\n<br \/>\n<center><br \/>\n<img src=\"http:\/\/chart.apis.google.com\/chart?chtt=Correct+Rep.+of+Journey&amp;chts=000000,12&amp;chs=300x150&amp;chf=bg,s,ffffff|c,s,ffffff&amp;chxt=x,y&amp;chxl=0:|0|1|2|3|4|5|6|7|8|9|1:|0|1|2|3|4|5|6|7|8|9|10&amp;cht=lxy&amp;chd=t:100.00,33.33,0.00|100.00,60.00,0.00|0.00,66.66,100.00|100.00,90.00,0.00&amp;chdl=Climbing+Monk|Descending+Monk&amp;chco=cc3300,339900\" alt=\"Google Chart\"\/><br \/>\n<\/center><br \/>\n<br \/>\n<b>CONCLUSION><\/b> Just by watching the above graphic we understand some takeaways. The monk retraces his steps. The trail is uninterrupted. Continually, his current location is a place he has visited both days, only at different moments of the day. For each location, we compute a positive difference between the moments of the day he&#8217;s passed that location. Value range for this amount looks like a reversed bell. It&#8217;s maximum for locations close to base or summit &#8212; almost 9 hours. But as he&#8217;s walking towards midpoint, the amount is decreasing to a point where is zero. That&#8217;s the location\/moment we&#8217;ve been searching for.<br \/>\n<br \/>&nbsp;<br \/>The answer is obvious now &#8212; YES.<br \/>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The other day, while talking to a friend he asked if I was up for a puzzle. As I always enjoy a good challenge I answered: what puzzle? Then he started telling and telling, where in the end there was this simple question. From the very start I had an answer but it was restraining [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.nicau.ro\/index.php?rest_route=\/wp\/v2\/posts\/36"}],"collection":[{"href":"https:\/\/www.nicau.ro\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nicau.ro\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nicau.ro\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nicau.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=36"}],"version-history":[{"count":158,"href":"https:\/\/www.nicau.ro\/index.php?rest_route=\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":339,"href":"https:\/\/www.nicau.ro\/index.php?rest_route=\/wp\/v2\/posts\/36\/revisions\/339"}],"wp:attachment":[{"href":"https:\/\/www.nicau.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nicau.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nicau.ro\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}