N-Queens results on Casio calculators
|
08-23-2024, 08:59 AM
(This post was last modified: 08-23-2024 09:23 AM by Hlib.)
Post: #15
|
|||
|
|||
RE: N-Queens results on Casio calculators
I offer you a faster CASIO-BASIC(structured) program. It does not look as neat as MicroPython code, but it allows you to get an increase in speed in the range of 17 ... 28% for some CASIO models.
This code is not suitable for CBASIC, as well as for calculators from the old generation (e.g. FX-7450G+/9700GE/9750G+). Code:
t=22.5_sec vs 29_sec, FX-9750GII (SH3, OS 2.0), +22% increase in speed. t=42_sec vs 58.7_sec, FX-9860GII-2 (SH4, OS 2.09), +28%, without USB. t=103_sec (1:43) vs 125_sec (2:05), AFX-2.0+, GRAPH-100+, +17%. I don`t use lists in the above models because with the list-type variables the results are not stable. The more lists are defined in these calculators, the lower the speed of operations with list items. A standard algorithm was used. S=876, result is Mat A=[[8][4][1][3][6][2][7][5]] |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)