I am trying to find a $\Theta$ bound for the following recurrence equation:
$$ T(n,p,k)=T(n,p,k/2)+T(n,p/4,k)+T(n/8,p,k)+npk $$
npk
/ | \
/ | \
T(n,p,k/2) T(n,p/4,k) T(n/8,p,k)
the max height of the recursion tree is $ \log_{8}n $ and the cost of each level is at most npk so i guess the answer is $\Theta (npk \log_{8}n) $
Is my answer right?