Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ackermann Function
#31
In Editor! Well, it was already late. I looked in the program folder. It works now. Thanks!

Increasing from 16MB to 26MB doesn't do much: 80,438 to 80,219 seconds.

[Image: Ackerm-Funktioniert2022-07-20.jpg]
Reply
#32
I've been experimenting a bit, and I think I've come across an interesting point: the variable types.

The screenshot is practically self-explanatory. 
It is fastest if one declare the type with _Unsigned Integer in the declaration and in the function itself: 76.922 seconds.
In both Long is the slowest: 90.711 seconds, and Long in the declaration and _Unsigned Integer in the function, is in the middle: 80,219 seconds.

PS: And so, some more tenths of a second less: 76.484   Wink
Code: (Select All)
Declare Function ackermann(m as _Unsigned Integer, n as _Unsigned Integer) as _Unsigned Integer


[Image: Variablen-Typ-Geschwindigke.jpg]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ListArray and Simplemenu (function) Rudy M 4 489 12-26-2025, 04:52 PM
Last Post: Rudy M
  GWBASIC DEF Function doughayman 2 852 08-18-2024, 10:47 PM
Last Post: doughayman
  Wave Function Collapse dbox 10 2,590 07-09-2024, 04:23 PM
Last Post: dbox

Forum Jump:


Users browsing this thread: 1 Guest(s)