GATE | GATE CS 1997 | Question 59
Consider the following function
Function F (n, m: integer): integer;
begin
If (n<=0) or (m<=0) then F:=1
else
F:= F(n-1,m) + F(n, m-1);
end;
Use the recurrence relation to answer the following question.

Assume that n, m are positive integers. Write only the answers without any explanation.
a. What is the value of F(n,2)?
b. What is the value of (n,m)?
c. How many recursive calls are made to the function F, including the original call, when evaluating F(n,m).
Answer:
Explanation:
Quiz of this Question
Recommended Posts:
- GATE | GATE CS 1997 | Question 46
- GATE | GATE CS 1997 | Question 53
- GATE | GATE CS 1997 | Question 54
- GATE | GATE CS 1997 | Question 56
- GATE | GATE CS 1997 | Question 57
- GATE | GATE CS 1997 | Question 63
- GATE | GATE CS 1997 | Question 52
- GATE | GATE CS 1997 | Question 41
- GATE | GATE CS 1997 | Question 46
- GATE | GATE CS 1997 | Question 47
- GATE | GATE CS 1997 | Question 48
- GATE | GATE CS 1997 | Question 49
- GATE | GATE CS 1997 | Question 36
- GATE | GATE CS 1997 | Question 72
- GATE | GATE CS 1997 | Question 50


