Skip to content

Opening book details…

Can I read Recursion Conversion on EtoBox?

Recursion Conversion by Glenn Rhoads is a document available to read on EtoBox.

What is Recursion Conversion about?

The document explains how to convert a recursive Fibonacci method into a non-recursive version using a stack and a series of labeled lines to manage the flow of execution. It details the implementation of a StackItem class to store necessary values and describes the transformation of the recursive calls into a loop with a switch statement to simulate the behavior of gotos. Ultimately, it concludes that while both recursive and iterative methods can compute the same results, the recursive approach is simpler

Author
Glenn Rhoads
Language
EN

More by Glenn Rhoads

Browse all works by Glenn Rhoads