Ackermann function: Difference between revisions
Content added Content deleted
(→With Memoization and Optimization: A(3;1000000)) |
(→{{header|Risc-V}}: update Risc-V -> RISC-V Assembly) |
||
Line 8,243: | Line 8,243: | ||
Ackermann(3, 4) = 125</pre> |
Ackermann(3, 4) = 125</pre> |
||
=={{header| |
=={{header|RISC-V Assembly}}== |
||
the basic recursive function, because memorization and other improvements would blow the clarity. |
the basic recursive function, because memorization and other improvements would blow the clarity. |
||
<syntaxhighlight lang="risc-v">ackermann: #x: a1, y: a2, return: a0 |
<syntaxhighlight lang="risc-v">ackermann: #x: a1, y: a2, return: a0 |