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




Users browsing this thread: 14 Guest(s)