Computer Science, asked by umairasghar25, 1 month ago

Q: How many requirements of a recursive algorithm. Keep in mind class discussion
h​

Answers

Answered by bhawna4121
1

Answer:

Like the robots of Asimov, all recursive algorithms must obey three important laws: A recursive algorithm must call itself, recursively. A recursive algorithm must have a base case. A recursive algorithm must change its state and move toward the base case

Answered by Saraswatisahujj
0

Answer:

If every recursive step shrinks the problem, and the base case lies at the bottom, then the recursion is guaranteed to be finite. A recursive implementation may have more than one base case, or more than one recursive step. For example, the Fibonacci function has two base cases, n=0 and n=1.

Similar questions