{"id":454,"date":"2003-07-22T18:54:32","date_gmt":"2003-07-22T22:54:32","guid":{"rendered":"\/?p=454"},"modified":"2006-08-09T13:03:39","modified_gmt":"2006-08-09T17:03:39","slug":"two-geeks-shoot-the-shit","status":"publish","type":"post","link":"https:\/\/www.godofthemachine.com\/?p=454","title":{"rendered":"Two Geeks Shoot the Shit"},"content":{"rendered":"<p>(Two geeks are waiting for the elevator on the seventh floor of a seven-story building. The elevator ascends to five and then begins to descend.)<\/p>\n<p><i>Geek 1<\/i>: I hate when people do that.<br \/>\n<i>Geek 2<\/i>: Yeah. Why should they care where the elevator&#8217;s going when they&#8217;re getting out anyway?<br \/>\n<i>Geek 1<\/i>: If they have to press a button, they might choose four at least. That would make sense.<br \/>\n<i>Geek 2<\/i>: Not so fast. If we disregard the intra-building trips &#8212; which are probably negligible in a residential building &#8212; then half of the elevator trips will originate from the first floor and the other half will start at floors two through seven, randomly distributed.<br \/>\n<i>Geek 1<\/i>: OK, I see where you&#8217;re going with this&#8230;<br \/>\n<i>Geek 2<\/i>: So, if we take a sample of twelve trips according to the expected distribution, six will originate from the first floor, and one each from floors 2 through 7, which comes to [sums 2 through 7 using <a href=\"http:\/\/www.openetwork.com\/set.html\">Gauss&#8217;s trick<\/a>] 27 + 6 is 33, divided by 12, so in fact the optimal floor for the elevator to rest at, to minimize its travel time, is less than 3.<br \/>\n<i>Geek 1<\/i>: Immaterial, since floors are integral. But wait a second. Who on the second floor is going to use the elevator anyway?  <br \/>\n<i>Geek 2<\/i>: Good point. So if we remove the second floor then we&#8217;ll add the floors for ten random trips, 5 + 25, divided by 10, looks like the third floor even.<br \/>\n<i>Geek 1<\/i>: No way it could be less than the third floor. <br \/>\n<i>Geek 2<\/i>: You live on seven. That sounds like special pleading. <br \/>\n<i>Geek 1<\/i>: Anyway the whole calculation is off. People tend to leave in the morning and return at night, therefore the optimal floor for the elevator is time-dependent&#8230;<\/p>\n<p>Yes, it&#8217;s very, very sad.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(Two geeks are waiting for the elevator on the seventh floor of a seven-story building. The elevator ascends to five and then begins to descend.) Geek 1: I hate when people do that. Geek 2: Yeah. Why should they care where the elevator&#8217;s going when they&#8217;re getting out anyway? Geek 1: If they have to <a href='https:\/\/www.godofthemachine.com\/?p=454' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-454","post","type-post","status-publish","format-standard","hentry","category-code","category-5-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/www.godofthemachine.com\/index.php?rest_route=\/wp\/v2\/posts\/454","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.godofthemachine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.godofthemachine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.godofthemachine.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.godofthemachine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=454"}],"version-history":[{"count":0,"href":"https:\/\/www.godofthemachine.com\/index.php?rest_route=\/wp\/v2\/posts\/454\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.godofthemachine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.godofthemachine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=454"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.godofthemachine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}