OEIS A228297: Need Help to Find Algorithm
|
09-16-2017, 06:27 PM
Post: #4
|
|||
|
|||
RE: OEIS A228297: Need Help to Find Algorithm
That paper is beyond me, and I'm not familiar with SysRPL, but here's a memoized implementation in C which is quite fast:
Code: #include <stdio.h> If you throw very large arguments at it, you may get a segmentation fault caused by the process running out of stack space. ulimit -s unlimited prevents that, although the program does need O(n) memory, for the stack and the memoization array, so you're going to hit some limit eventually. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)