QB64 Phoenix Edition
Ackermann Function - Printable Version

+- QB64 Phoenix Edition (https://staging.qb64phoenix.com)
+-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://staging.qb64phoenix.com/forumdisplay.php?fid=3)
+---- Forum: Works in Progress (https://staging.qb64phoenix.com/forumdisplay.php?fid=9)
+---- Thread: Ackermann Function (/showthread.php?tid=617)

Pages: 1 2 3 4


RE: Ackermann Function - Kernelpanic - 07-20-2022

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]


RE: Ackermann Function - Kernelpanic - 07-20-2022

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]