This is a puzzle question .... The warden meets with 23 new prisoners when they arrive. He tells them, "You may meet today and plan a strategy. But after today, you will be in isolated cells and will have no communication with one another. "In the prison is a switch room, which contains two light switches labeled A and B, each of which can be in either the 'on' or the 'off' position. I am not telling you their present positions. The switches are not connected to anything. "After today, from time to time whenever I feel so inclined, I will select one prisoner at random and escort him to the switch room. This prisoner will select one of the two switches and reverse its position. He must move one, but only one of the switches. He can't move both but he can't move none either. Then he'll be led back to his cell. "No one else will enter the switch room until I lead the next prisoner there, and he'll be instructed to do the same thing. I'm going to choose prisoners at random. I may choose the same guy three times in a row, or I may jump around and come back. "But, given enough time, everyone will eventually visit the switch room as many times as everyone else. At any time anyone of you may declare to me, 'We have all visited the switch room.' and be 100% sure. "If it is true, then you will all be set free. If it is false, and somebody has not yet visited the switch room, you will be fed to the alligators." What is the strategy they come up with so that they can be free?
6 15030two MIT math grads bump into each other at Fairway on the upper west side. they haven't seen each other in over 20 years. the first grad says to the second: "how have you been?" second: "great! i got married and i have three daughters now" first: "really? how old are they?" second: "well, the product of their ages is 72, and the sum of their ages is the same as the number on that building over there.." first: "right, ok.. oh wait.. hmm, i still don't know" second: "oh sorry, the oldest one just started to play the piano" first: "wonderful! my oldest is the same age!" problem: how old are the daughters?
2 6581What is the maximum amount of memory any single process on Windows can address? Is this different than the maximum virtual memory for the system? How would this affect a system design?
2 10357Describe the difference between Interface-oriented, Object-oriented and Aspect-oriented programming
1 11894When you?re running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?
2 7385Post New Programming Languages AllOther Questions
When we have two versions of the dot net installed how does the compiler know which version of DLL it has to select to an application.
in IT trend mantis meant what? how to know mantis in IT trends? detail description about mantis?
hi This is radhika.Can anyone help me to know the question papers of NATIONAL INFORMATICS CENTRE for the post of scientific officer/engineer? if anyone know plz tell me question paper pattern
what is the difference between an OS(operating system) and Framework?
9.Difference between even and odd signals?explain with the diagram?
iam confused among testing ,.net and java. can anybody help me.
Hi I am Rathnam, How To Remove the duplicates with out using remove duplicate stage in the datastage
what is programmable BIST in today ic design
Any real time example of O2C process from taking order till creating invoice.
Tag for turning an image into a hyperlink is
Difference between views and index in sas programming
When we delete logfiles such as screenshots how does it affect the ldf file? Ive seen huge change while adding screenshots in the ldf file but a very minor one deleting them.Please Explain
hii I inntrested abt scjp certification but i dont knw abt scjp plz send details abt scjp exam and syllabus.
1.what is the vesition managment.
Given a set. Write the pseudo code to get all the subsets for the given set. Eg. Input : {1,2} Output : (),(1),(2),(1,2)