HP Forums
N-Queens Benchmark On 38E - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: N-Queens Benchmark On 38E (/thread-14406.html)



N-Queens Benchmark On 38E - Dave Britten - 01-24-2020 03:03 PM

It turns out that the 38E and the 12C have effectively identical programming capabilities (minus the 12C's added financial functions like bonds and depreciation), and that includes the (mis)use of CFj and Nj to do indirect addressing, so you can use the 12C version of the benchmark program as-is on a 38.

See here for program listings:

https://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/articles.cgi?read=700

There is one minor stylistic issue to note with the 12C program listing: STO g Nj isn't actually a valid key sequence on either model. What happens is that the g cancels out the previous STO prefix, and you're just executing Nj. That's fine, because that's how you store a value. Pressing STO g Nj on the 38 puts the keycode 25 15 into program memory, which is just g Nj.

Anyway, the run time that I got on my 38E was 1h06m12s. That means the 12C is only about 15-16% faster than the 38E. I'd be curious to know if the 38C differs significantly.

And for anybody that was questioning the utility of the D.MSΔ% function I put in my percentage program for the 65, there you go. Big Grin


RE: N-Queens Benchmark On 38E - xerxes - 01-25-2020 08:21 PM

Thank you for testing the 38E. I've updated the list with your result.


RE: N-Queens Benchmark On 38E - Raymond Del Tondo - 01-25-2020 10:00 PM

(01-24-2020 03:03 PM)Dave Britten Wrote:  Anyway, the run time that I got on my 38E was 1h06m12s. That means the 12C is only about 15-16% faster than the 38E.
However the 12C batteries last for a decade longer on a single charge;-)
SCNR...


RE: N-Queens Benchmark On 38E - Dave Britten - 01-26-2020 01:51 PM

(01-25-2020 10:00 PM)Raymond Del Tondo Wrote:  
(01-24-2020 03:03 PM)Dave Britten Wrote:  Anyway, the run time that I got on my 38E was 1h06m12s. That means the 12C is only about 15-16% faster than the 38E.
However the 12C batteries last for a decade longer on a single charge;-)
SCNR...

No kidding! I don't think I can remember ever having to change the batteries on my 12C. Plus it's got bonds and depreciation (which I never use). But I do like how the 38 introduced the now-standard 5-variable TVM equation that allows for easy what-ifs with any combination of variables.


RE: N-Queens Benchmark On 38E - Gamo - 01-27-2020 12:02 AM

The HP-12C should include the Combination, Permutation, and Pricing Calculation functions.
If the original 12C doesn't have enough memory there no excute to provide these function to
the HP-12C Platinum.

Gamo