Abstract

Iteration and recursion are two of the important programming techniques used to develop algorithms and software. Recursive programs are generally not considered as advantageous as iterative functions in the introductory curriculum of computer science. This is because the course books focuses primarily on branched top to bottom versions of recursion which is an inefficient way to create algorithms while iterations have low memory overhead. Recursive algorithms calculate values for the same perimeters repeatedly resulting in wastage of processor time and memory. However, different variants of recursions exist such as linear, tail and branched which are hardly mentioned in conventional studies and are more efficient than branched recursive. Like dynamic programming, tail recursion can provide remedy for such redundant processing. This paper will focus on alternative recursive solutions for some of the most popular known mathematical problems such as factorial, Fibonacci and binomial coefficient with same efficiency as iterative code that is widely discussed in the course books.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.