GATE CE 2026 · Set-1 · Numerical Computation & Estimation
MCQ · 2 marks · Problem GA-QUAN-0288
Consider a linear arrangement of seven bulbs, each of which can be in the ON or OFF states. The initial configuration of the bulbs is shown in the figure. In every Step, the states of the bulbs are changed based on the following rules:Any OFF bulb with exactly one ON neighbour at the end of the previous Step is turned ON.
Any ON bulb with both neighbours ON at the end of the previous Step is turned OFF.
The state of any bulb not meeting the conditions above is left unchanged.The state of bulbs at the end of Step 1 and Step 2 are also shown in the figure.The number of bulbs which are ON at the end of Step 8 is .
Show the worked solutionRepresent ON by 1 and OFF by 0.From the figure, the initial configuration is:\(0001000\)The updating rules are applied simultaneously at every step.Step 1:\(0001000
\rightarrow
0011100\)(This matches the figure.)Step 2:\(0011100
\rightarrow
0110110\)(This also matches the figure.)Continuing similarly,Step 3:\(0110110
\rightarrow
1110111\)Step 4:\(1110111
\rightarrow
1010101\)Step 5:\(1010101
\rightarrow
1010101\)The configuration becomes stable and remains unchanged thereafter.Hence,\(\text{State at Step 8}
=
1010101\)Number of bulbs that are ON:\(1+1+1+1=4\)
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com