All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Logic
Lights switched (Posted on 2009-06-03) Difficulty: 4 of 5
Consider a 3x3 array of lighted buttons:
If any one of these buttons is pressed, it and all of its directly adjacent neighbors will toggle their status on/off. (Diagonals do not change.)

The goal is to get all of the lights to be off. Which buttons must be pressed to accomplish this?

Which buttons would accomplish this goal in the minimum number of presses for 4x4, 5x5, 6x6, 7x7, 8x8, and 9x9 arrays?

A nice site with the game from 3 x 3 up to 8 x 8 is here.

No Solution Yet Submitted by Jer    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
re(3): computer solution | Comment 4 of 5 |
(In reply to re(2): computer solution by Charlie)

Thank you for your quick reply.

What I meant was if you found, say 10100 you wouldnt have to list (or even try 00101).

No matter your program seems fast enough.  And they are easy enough to remove by inspection.

Now to search for patterns...

  Posted by Jer on 2009-06-04 13:48:23

Please log in:
Remember me:
Sign up! | Forgot password

Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (2)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Copyright © 2002 - 2018 by Animus Pactum Consulting. All rights reserved. Privacy Information