{"id":262,"date":"2009-06-14T16:57:26","date_gmt":"2009-06-14T23:57:26","guid":{"rendered":"http:\/\/new-gro.dyn.hhhh.org\/joeboy\/blog\/?p=262"},"modified":"2010-01-25T14:17:33","modified_gmt":"2010-01-25T21:17:33","slug":"closed-roombox-with-three-light-bulbs-and-three-switches","status":"publish","type":"post","link":"https:\/\/www.hhhh.org\/joeboy\/blog\/?p=262","title":{"rendered":"Closed room\/box with three light bulbs and three switches"},"content":{"rendered":"<blockquote><p>There is a room with a door (closed) and three light bulbs. Outside the room there are three switches, connected to the bulbs. You may manipulate the switches as you wish, but once you open the door you can&#8217;t change them. Identify each switch with its bulb.<\/p><\/blockquote>\n<p>Assumptions:<\/p>\n<ol>\n<li>Assuming the lights are not the newer LED bulbs that dont get warm to the touch we can assume if we leave thei light on it will get warm.<\/li>\n<li>We are powering up the box \/ it does not exsist before time T0. If not it is possible that the heating and cooling times will make the following simplification not work.<\/li>\n<\/ol>\n<p><em><span style=\"text-decoration: underline;\">Two bulb Solution<\/span><\/em><\/p>\n<p>{S1\u00a0S2} = {a,b} &#8211;&gt; Starting test state &#8211; wait for an hour.<\/p>\n<p>{S1\u00a0!S2} = {a,!b} &#8211;&gt; Toggle switch states and open the door.<\/p>\n<ol>\n<li>Light that was constantly on should now be warm and on.<\/li>\n<li>Light that was constantly off should still be off and cold.<\/li>\n<li>Light that was on and is now off should be off and cold.<\/li>\n<li>Light that was off and is now on shoudl be on and cold.<\/li>\n<\/ol>\n<p>Tests 1 and 2 uniquely identify S1, and you get S2 by process of elimination.<\/p>\n<p><em><span style=\"text-decoration: underline;\">Three bulb Solution<\/span><\/em><\/p>\n<ol>\n<li>{S1\u00a0 S2\u00a0 S3} = {a,\u00a0 b,\u00a0\u00a0 c} &#8211;&gt; Starting test state &#8211; wait for X mins.<\/li>\n<li>{S1\u00a0 S2\u00a0!S3} = {a,\u00a0 b, !c} &#8211;&gt; Toggle switch and wait for\u00a0Y mins.<\/li>\n<li>{S1\u00a0!S2\u00a0 S3} = {a,!b, c} &#8211;&gt; Toggle switch and pen the door.<\/li>\n<\/ol>\n<p>Decoding then is<\/p>\n<ol>\n<li>S1. Light that was constantly on should either be ambient temperature and off or very hot and on.<\/li>\n<li>S2. Should either be heated for X+Y mins and off, or\u00a0ambient and on.<\/li>\n<li>S3. Should either be heated for X-Y mins and on, or heated Y mins and off.<\/li>\n<\/ol>\n<p>Four temperatures possible: Ambient, Y, X-Y, X+Y<\/p>\n<ol>\n<li>Ambient and off light is S1.<\/li>\n<li>Ambient and on light is S2.<\/li>\n<li>Heated (X+Y) and on is S1.<\/li>\n<li>heated (X+Y) and off it is S2.<\/li>\n<li>Heated X-Y and on is S3 and heated Y and off is S3. So\u00a0the medium temperature (either\u00a0Y or X-Y) \u00a0is S3.<\/li>\n<\/ol>\n<p>From 5 above we can collapse the temperature range to Ambient , {Y, X-Y}, X+Y. So just picking a X\/Y ratio that allows for adaquade difference in heating and cooling times is all that is needed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is a room with a door (closed) and three light bulbs. Outside the room there are three switches, connected to the bulbs. You may manipulate the switches as you wish, but once you open the door you can&#8217;t change them. Identify each switch with its bulb. Assumptions: Assuming the lights are not the newer [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-262","post","type-post","status-publish","format-standard","hentry","category-puzzles"],"_links":{"self":[{"href":"https:\/\/www.hhhh.org\/joeboy\/blog\/index.php?rest_route=\/wp\/v2\/posts\/262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hhhh.org\/joeboy\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hhhh.org\/joeboy\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hhhh.org\/joeboy\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hhhh.org\/joeboy\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=262"}],"version-history":[{"count":5,"href":"https:\/\/www.hhhh.org\/joeboy\/blog\/index.php?rest_route=\/wp\/v2\/posts\/262\/revisions"}],"predecessor-version":[{"id":525,"href":"https:\/\/www.hhhh.org\/joeboy\/blog\/index.php?rest_route=\/wp\/v2\/posts\/262\/revisions\/525"}],"wp:attachment":[{"href":"https:\/\/www.hhhh.org\/joeboy\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hhhh.org\/joeboy\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hhhh.org\/joeboy\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}