










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











(^) Known as a recursive method. (^) Can call itself either directly or indirectly through another method.
(^) When the method recognizes the base case, it returns a result to the previous copy of the method. (^) A sequence of returns ensues until the original method call returns the final result to the caller.
(^) This is known as an indirect recursive call or indirect recursion.
(^) An infinite loop occurs with iteration if the loop-continuation test never becomes false (^) Infinite recursion occurs if the recursion step does not reduce the problem each time in a manner that converges on the base case, or if the base case is not tested.
(^) Can be expensive in terms of both processor time and memory space.
(^) this set of copies can consume considerable memory space.