![]() |
![]() |
#1 |
Jul 2015
43 Posts |
![]() |
![]() |
![]() |
![]() |
#2 |
Just call me Henry
"David"
Sep 2007
Liverpool (GMT/BST)
23·19·41 Posts |
![]()
Unless I am being clueless the basic puzzle is solvable easily in excel.
Edit: maybe not Last fiddled with by henryzz on 2023-03-31 at 09:17 |
![]() |
![]() |
![]() |
#3 |
"Ed Hall"
Dec 2009
Adirondack Mtns
3·17·113 Posts |
![]()
I think a visual aid for a manual version would be easy to code in Excel, but it's been a lot of years since I did any Visual Basic programming.
My initial thought was to skip this one, but now I'm wondering what a brute force effort would look like. |
![]() |
![]() |
![]() |
#4 |
"Ed Hall"
Dec 2009
Adirondack Mtns
3·17·113 Posts |
![]()
Darn! My 5000 line C program burned out all the bulbs. Back to the programming board. . .
![]() |
![]() |
![]() |
![]() |
#5 |
"Max"
Jun 2016
Toronto
3·311 Posts |
![]()
If anybody wants to try solving 24x24 manually, the QB64 (https://qb64.com/) code and Windows executables for manual solving and replaying (checking) are attached. Consider downgrading the screen resolution to 800x600.
My first try produced a solution in 576 steps (will be saved in save.txt). It definitely could be less steps. Now I wonder whether it is possible to build a quick optimizer to shorten a saved solution. If so, I could click-solve the 30x30 and then shorten it to less than 430 steps, if possible. |
![]() |
![]() |
![]() |
#6 |
"Max"
Jun 2016
Toronto
3·311 Posts |
![]()
24x24 is solvable in 280 steps and 30x30 in 429 steps.
The longest run for a Windows executable written in QB64 (~250 lines of code) took ~40 seconds to find 429 steps. Last fiddled with by Max0526 on 2023-04-18 at 04:18 |
![]() |
![]() |
![]() |
#7 |
"Ed Hall"
Dec 2009
Adirondack Mtns
3×17×113 Posts |
![]()
I've tried a random approach in C and so far the most bulbs I have had lit are 371 after several days of running.
|
![]() |
![]() |
![]() |
#8 | |
"Max"
Jun 2016
Toronto
11101001012 Posts |
![]() Quote:
Each bulb is put on the intersection of a row and a column. Count parity for each row and each column (how many bulbs are on/1 in each row and each column). Then each bulb can be assigned one of the three priority levels: 1) both row and column have odd parity; 2) both row and column have even parity; 3) one has odd and one has even parity. Your goal is to turn all bulbs on making everything even parity. a) Which level (1, 2, or 3) do you think has the highest priority and dictates one of the next moves? b) Which level goes next? c) Which one has the lowest priority? Make a random move in the highest priority level. The whole board will immediately change. Recalculate the priority levels for each bulb. Repeat. Assigning the correct order for a), b), c) guarantees solving any board, but not necessarily in the least number of steps. Good luck! |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ponder This - March 2023 | Xyzzy | Puzzles | 36 | 2023-04-13 14:25 |
Ponder This - February 2023 | tgan | Puzzles | 2 | 2023-02-07 19:22 |
Ponder This - December 2022 | tgan | Puzzles | 12 | 2023-02-03 07:09 |
Ponder This - January 2023 | Xyzzy | Puzzles | 2 | 2023-01-09 10:36 |
Ponder This - November 2022 | tgan | Puzzles | 8 | 2022-11-02 13:28 |