I'm having trouble with a recursion problem of uni.
I have to get the big-O order of a recursive algorithm, this is the recursion scheme I got:
It comes from an algorithm that uses an V[a..b]
array and makes this return when b-a+1
is > 3
:
return V(X) + f(V, a, Y) + f(V, Z, b)
Where Y
is (2a+b)/3
and Z
is (a+2b)/3
.
How could I solve it?