If you want to get a light bulb solution example, read through our sample. It will help you if you are stuck with your assignment. It is free, gives you clues how to deal with your homework, and helps you in understanding the problem. When you think about getting help with assignment writing, consider AssignmentShark.com. If you want to use our service, simply place an order with your requirements and set the deadline.
If you want more than an example of the light bulb solution and to pay someone to do programming homework, get individual help from one of our professional experts. In case you are using our service for the first time, don’t worry – it is rather simple. If you have any questions, you may contact an expert directly via chat. We work 24/7 to give our customers the opportunity to contact us anytime they want. Using our service is the simplest way to succeed in your education.
You don’t need to put in any effort or spend your time – our experts are ready to help you right now. All of them have degrees and experience in handling different types of assignments. Unlike other services, we guarantee that your personal information will be secure and never passed to third parties. So, read through our sample in order to see how our experts work. You don’t need to struggle with your homework anymore.
Light Bulb Problem
You stand in front of a closed room in which there are three light bulbs. There are three switches on the wall in front of you: each of them enables or disables one of the light bulbs. You need to learn the relations between each switch and each light when you enter the room, because you can only once.
The status of the switches is random, and the order of the connection is not known beforehand. When you enter the room, you can do anything with lights, but you can not go back to the switches. Initially, all the lights are off.
If you want to solve the problem on your own, but there’s nothing coming to mind, you can use this hint:
Light bulbs have only two initial conditions: on or off. It is clear that this is not enough to divide them into three groups. You need to come up with another status for the lights and a way to achieve this status using the switches.
Logically, you can turn on one light and turn off the second one, but it is not clear what to do with the third. There are only two statuses for the lights: either “enabled” or “disabled.” The most popular way to solve this problem is to separate lamps using the “cold” or “hot” criteria.
First, you have to wait for some time to cool down the lamps in case that they have recently been working. Then, turn on one light to heat it. Turn it off and then turn on any other light. When you will enter the room after these operations, one lamp will be lighting the room, the second one will not be lit and will be cold, and the third one will not be lit and will be hot.
Now, it’s obvious that the one which is not lit and is hot is the one that you have turned on, heated and turned off, and the bulb that you have lit will be the one that you have just turned on, and the one which is not lit and is cold is the one that you never touched.
Another option is to add the status “burned out” if it is possible to apply a higher voltage than you need for the switch. Further action in this option is similar to the previous scheme.
As an extra, there is the idea to add the controller which will make the lamp blink to one of the switches. However, the most common way is described in the first solution.