Question: Consider the following recursive algorithm. 1 . Algorithm F ( n ) 2 . if n = 1 3 . return 1 4 . else
Consider the following recursive algorithm.
Algorithm Fn
if n
return
else
return Fn
Assume that Pn indicates the number of plus operations to be executed in the line number Using the notation, you are going to represent the initial condition of the recursive algorithm. Select the correct one.
a P
b None of these.
c P
d P
e P
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
