There are N lamps b1, b2, ... bn with its buttons under each lamp. The button has a strange behaviour, if the button of a lamp bi is pressed once, bi changed from lights on into lights off or from lights off into lights on. In addition, there are some lamps too that follow to change, from lights on into lights off or from lights off into lights on. Relations between other lamps that also change expressed by the relation (i, j). If the relation (i, j) is exists, then keystrokes on bi will have an impact too on the lamp bj, and vice versa, keystrokes in bj will impact too on the lamp bi.
There are 5 lamps: b1, b2, b3, b4, and b5, and there is a relation (1, 2), (1, 5), (2, 3), (2, 4), (3, 5), ( 4, 5). If at first all the lights off, what happens with b1 and b2 if a pressure is applied successively on the buttons b1, b2 and b3, and b5, respectively once? (A) both of the lamps lights off (B) both of the lamps lights on (C) light b1 and b2 lights off (D) lights off and b2 lights on
@jiteshmeghwal9 This question actually using my national language. So sorry if it has many wrong grammar.
keystroke = pressure
you know squeeze the button
I will write again the question There are 5 lamps: b1, b2, b3, b4, and b5, and there is a relation (1, 2), (1, 5), (2, 3), (2, 4), (3, 5), ( 4, 5). If at first all the lights off, what happens with b1 and b2 if a pressure is applied successively on the buttons b1, b2 and b3, and b5, respectively once? (A) both lamps lights off (B) both lamps lights on (C) b1 lights on and b2 lights off (D) lights off and b2 lights on
It still same with the question above, I just fix some wrong grammar
Option (A) is the answer ??
B
They just provide image as a keyword
I'll upload it. Maybe it can help you
sorry i was going to ask u about option B because in the end all the lamps will light on
I see... Pls tell how is it
Initially all the lamps were off. Pressing b_1=lamps 1,2,5 lights on & lamps 3,4 were off. (1, 2), (1, 5) Pressing b_2=Lamps 3,5 lights on & lamps 1,2,4 switches off.(2,3)(2,4) Pressing b_3=Lamp 2 on & lamps 1,3,4,5 switches off.(2,3)(3,5) Pressing b_5=Lamp 1,2,3,4,5 switches on.(1,5)(3,5)(4,5)
I got it Thx
yw
Join our real-time social learning platform and learn together with your friends!