Leuks is the land of light bulbs, where the bulbs are leading a peaceful life, with no humans at all. Presently there are 100 residents . (Of course, they all are light bulbs!).
Let $a_{1}, a_{2}, . . .,a_{100}$ be the 100 residents.
The relationships that exist among the residents are quite complicated to understand.
For example, say, if $a_{1} $ is ON , then $a_{2}$ and $a_{3}$ are OFF, $a_{7}$ is ON.
If $a_{12}$ is ON and $a_{25}$ is OFF , then $a_{20}$ $a_{92}$ $a_{45}$ are ON.
These are just some examples and there are a lot more relationships like this that exist within the community.
Yearly, the community invites some citizens from Earth (of course Humans like you!) to solve this puzzle:
all the 100 bulbs go and hide in boxes numbered $b_{1}, b_{2}, . . .,b_{100} $ sequentially, i.e., a1 goes to b1 and so on.
They tell you ALL relationship possibilities that exist within the community as I gave in the examples.
Your aim is to figure out all the bulbs which are ON, by opening and looking up the ON/OFF status of minimum number of bulbs.
How will you do it? Can you win the prize!
Notes:
The human who finds all active bulbs with minimum number of lookups win
There is no guarantee that every bulb will be in some relationship. But note that the list of all possible relationships are given to you (For example as a collection of if... then...statements)
I am looking for a general algorithmic approach. For example, to start with, if a bulb is not in any relationship, you have to open the corresponding box for sure.