Re: OT: New RPN Calculator Message #18 Posted by Serguei_Tarassov on 15 Dec 2007, 4:44 p.m., in response to message #9 by Xerxes
Xerxes,
As I said, current variant was a Citizen FX-4500PA manual recoding.
I check again my first variant of N-Queen test originally written using pascal-coded algorithm and it gives queen's positions correctly (Qa8, Qb4, Qc1, Qd3, Qe6, Qf2, Qg7, Qh5).
So following code is more faster: 8 seconds.
Could you please modify MK-152 data in the list?
Here is a program to reproduce.
Thanks in advance.
00.Cx 01.1 02. 2 03.MS0 04.Cx 05.KMS0 06.MR0 07.Fx=0 08.04 09.8
10.MRB 11.- 12.Fx<>0 13.56 14.MRB 15.1 16.+ 17.MSB 18.8 19.KMSB
20.MR9 21.1 22.+ 23.MS9 24.MRB 25.MSA 26.MRA 27.1 28.- 29.MSA
30.Fx<>0 31.09 32.KMRB 33.KMRA 34.- 35.Fx<>0 36.44 37.K|x| 38.MRB 39.MRA
40.- 41.- 42.Fx=0 43.26 44.KMRB 45.1 46.- 47.KMSB 48.Fx=0 49.20
50.MRB 51.1 52.- 53.MSB 54.Fx=0 55.44 56.MR9 57.S/P
|