mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Puzzles

Reply
 
Thread Tools
Old 2023-03-30, 10:18   #1
tgan
 
Jul 2015

538 Posts
Default Ponder This - April 2023

https://research.ibm.com/haifa/ponde...April2023.html
tgan is offline   Reply With Quote
Old 2023-03-30, 16:01   #2
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

184416 Posts
Default

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
henryzz is offline   Reply With Quote
Old 2023-03-31, 11:24   #3
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

22×1,439 Posts
Default

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.
EdH is offline   Reply With Quote
Old 2023-04-01, 22:55   #4
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

22·1,439 Posts
Default

Darn! My 5000 line C program burned out all the bulbs. Back to the programming board. . .
EdH is offline   Reply With Quote
Old 2023-04-16, 01:46   #5
Max0526
 
"Max"
Jun 2016
Toronto

3×311 Posts
Default 24x24 manually

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.
Attached Files
File Type: zip 24.zip (1.26 MB, 59 views)
Max0526 is offline   Reply With Quote
Old 2023-04-18, 04:16   #6
Max0526
 
"Max"
Jun 2016
Toronto

3·311 Posts
Default 30x30 in 429 steps

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
Max0526 is offline   Reply With Quote
Old 2023-04-18, 11:55   #7
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

22·1,439 Posts
Default

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.
EdH is offline   Reply With Quote
Old 2023-04-20, 04:07   #8
Max0526
 
"Max"
Jun 2016
Toronto

3×311 Posts
Default

Quote:
Originally Posted by EdH View Post
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.
The idea here is too basic -- parity. Although to develop it, it took me a couple of days playing 8x8 on a randomly set board.
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!
Max0526 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
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

All times are UTC. The time now is 04:45.


Sun Sep 24 04:45:27 UTC 2023 up 11 days, 2:27, 0 users, load averages: 1.38, 1.21, 1.26

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔