retagged by
2,895 views

3 Answers

1 votes
1 votes
f(1)=2,f(2)=3, f(3)=3  and f(10)=42  so it may  not be log or exponential or linear it should be quadratic i think
0 votes
0 votes
F1=G1=2

F2=G2=4

F3=G3=6

F4=G4=10

F5=G5=14

F6=G6=16

F10=G10=56

..................

.................

so this means that fn=n*logn+some constant term...

if you form recurence=fn=f(n-1)+f(n/2) which also leads nlogn

so QUADRATIC IS ANS......

OPTION B

.

.
edited by
0 votes
0 votes
x = 1, f(1) = f(0) + g(1) = 1 + 1 = 2, f(1) = 2

x = 2, f(2) = f(1) + g(2) = 2 + f(1) + g(1) = 2 + 2 + 1 = 5, f(2) = 5

x = 3, f(3) = f(2) + g(3) = 5 + f(2) + ~g(1) = 5 + 5 + 1 = 11, f(3) =11

.

.

.

.

Similarly, x = 10, f(10) = 1952

So, it's increasing exponentially.

Related questions