Tricks of the trade: Recursion to Iteration, Part 4: The Trampoline

from blog Tom Moertel's Blog, | ↗ original
By Tom Moertel Posted on June 12, 2013 Tags: programming, recursion, iteration, python, recursion-to-iteration series, tail calls, data structures, trampolines This is the fourth article in a series on converting recursive algorithms into iterative algorithms. If you haven’t read the earlier articles first, you may want to do so before...