Cs Sem2
Cs Sem2
]
Your Roll NorwLL2023
Sr. No. of Question Paper : 1268 F
Semester : II
2. Section A is compulsory.
SECTION A
0if n=0
1 if n=1
Fib(n)
Fib(n-1)+Fib(n-2) if n>=2
How many tÉmes will f() be called when n=4 ?
SECTION B
H
W
(a) (c)
answers.
your it For qucuc,and Write
is
1 i) i) acach
binary any
of two
search the
real-life
10
12
followíng
trec 6
12
10 applications
11 or
20
not.trees,
22
GiVe
specífy
cach
reasns
wheth of
(4)
stat.k
(6) for
er
J, Write(c) (b)
1263
elements Consider
performed
of
16
the
C++ a stack
of 22 23 iii)
pop ()push(6) push
(22) push push push
(12) (16), (2), pop(), push
(5), (10),
push onthe
an after
following a
program
array stack 25 26
each 7
using of 42
size
operation.sequence
to
asum 5.
recursive Show 2172551201
n' of
the
number operations
function. contents
(5)
(4) of
7. 1263
of a do
a
Master's for
aC++ suitable you
singly recurrence solving
program understand
linked example.
theorem recurrences.
8
to
list.insert
T(a)=r+T
for by
solving the
an DraW
element Recursion-tree
recurrences a
Recursion
3 2n
at Cn. +
(4) the (5) (6)