Ask Question
14 August, 18:41

Can a recursive algorithm splits a problem into a base case and a recursive case

+1
Answers (1)
  1. 14 August, 21:24
    0
    Yes, a recursive algorithm involves splitting a problem into at least one base, also known as non-recursive or trivial case and at least one recursive case.

    The base case is an essential part of the recursive algorithm because it is where the algorithm terminates otherwise the recursive calls will never break, resulting in infinity loop.

    The recursive part of the algorithm will ensure that recursive calls actually reaches the base case and problem is solved in the recursive part of the algorithm.

    All iterative solution can be written recursively and sometimes its more efficient.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Can a recursive algorithm splits a problem into a base case and a recursive case ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers