(25) N-Queens
|
03-02-2022, 01:20 AM
Post: #1
|
|||
|
|||
(25) N-Queens
References
The program is based on the flowcharts that are linked in Dave Britten's solution. But I had to make some changes:
Registers 0: # of old queens 1: New queen 2: Old queens 3: Chopping block 4: i counter 5: n size of board 6: 10 as constant Initialization and Run CLEAR REG FIX 8 8 STO 0 STO 5 10 STO 6 GTO 13 R/S Solution After about 40 minutes this result is shown: 0.57263148 This corresponds to the following setup: 5 7 2 6 3 1 4 8 8: | | | | | | | |#| 7: | |#| | | | | | | 6: | | | |#| | | | | 5: |#| | | | | | | | 4: | | | | | | |#| | 3: | | | | |#| | | | 2: | | |#| | | | | | 1: | | | | | |#| | | The next solutions will be shown after starting the program again with R/S. However for now it will not detect the end. There simply was no memory left to do so. Program The program can be used in this HP-25C emulator. Code: 01: 24 01 : RCL 1 |
|||
03-02-2022, 01:31 AM
Post: #2
|
|||
|
|||
RE: (25) N-Queens
Wow, impressive! I took a very brief stab at doing this, but I was about 20 steps over the limit, with no obvious way to trim any more fat.
|
|||
08-03-2023, 12:44 PM
Post: #3
|
|||
|
|||
RE: (25) N-Queens
This is really freaking cool. I've done N Queens on each and every calculator and computer (from the HP 9820 in school on) I had under my fingers (not yet on the HP Prime), and am just working on it on my "new" 48GX. I read that it has been done on the HP-65, which is fantastic enough. But on the HP-25 - amazing, unbelievable! Chapeau!
Best Regards, Stefan |
|||
08-05-2023, 11:39 AM
Post: #4
|
|||
|
|||
RE: (25) N-Queens
(08-03-2023 12:44 PM)Stefan Falk Wrote: I've done N Queens on each and every calculator (…) I had under my fingers … You might also like a this solution: N-queens benchmark and the HP-17BII Both are listed in the Calculator Speed Benchmark using the N-Queens Problem. Here's my solution for the HP-25 in the thread: Weakest calculator/pocket computer that can do Tower of Hanoi? It shows how much can be done despite the limitations. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)