Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not all recursive functions can be rewritten to be non-recursive. The Ackerman function is one such example. It's clearly tail recursive, but not only tail recursive so it must use some kind of stack or tree or something which isn;t linear like a loop. there's some explanation on the Computerphile youtube channel discussing it: https://www.youtube.com/watch?v=Mv9NEXX1VHc


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: