Post Reply 
[VA] SRC #012a - Then and Now: Probability
10-18-2022, 09:08 AM
Post: #69
RE: [VA] SRC #012a - Then and Now: Probability
(10-16-2022 05:52 PM)Valentin Albillo Wrote:  So, this is my original solution, a 13-line, 683-byte program.
[..]
Now for the big (30, 60) case:
>RUN
    Rows,Steps= 30,60 [ENDLINE] -> 9.51234350207E-6   27.46"



(10-17-2022 08:38 PM)Valentin Albillo Wrote:  
(10-17-2022 08:16 PM)Albert Chan Wrote:  Here is a version that simulate swapping of array name [...]
>RUN
[VA]SRC012A R,S= 30,60
...
91.38     30 60      9.51234350205E-6

Just one question: the quoted time (91.38 seconds) applies when your program is run on what machine ? A physical HP-71B ? If not, what's the time for a physical HP-71B ?

With the various machines and platforms running HP-71 code (Android, Windows, go71, Emu71/Win, Emu71/DOS w/ or w/o DOSBox), it's difficult to compare execution times.
Downloading and running each code on a physical HP-71 is not convenient, and not everybody has the means to do it - although they should :-)

So I propose the use Valentin's solution as the reference.
Here are the results for my solution:
VA's reference solution: 91"
my solution : 63" = 0.69 in Valentin's units :-)
Note I used the symmetry of the problem.

J-F
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [VA] SRC #012a - Then and Now: Probability - J-F Garnier - 10-18-2022 09:08 AM



User(s) browsing this thread: 9 Guest(s)