Ackermann Function - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Works in Progress (https://qb64phoenix.com/forum/forumdisplay.php?fid=9) +---- Thread: Ackermann Function (/showthread.php?tid=617) |
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. 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 Code: (Select All) Declare Function ackermann(m as _Unsigned Integer, n as _Unsigned Integer) as _Unsigned Integer |