In addition to part (a) please show how you are getting the formulas. I know you have to go through and say T(6) = T(5) + T(4) + 1 etc. but I don’t know how you would do that for T(5) because you’re going to get T(5/2). What would you end up substituting into that?
Please note that T(n) = T(n/2) + T(n-1) is for when n is ODD. I apologize if I seem rude, but this is the third time I’ve asked this question on chegg. The first time they showed no work, the second time they misread the question and had this equation for when n is even.
3. (a) Draw the recursion treefor T (n) when n = 6 where T(n) T(n/2) +T(n-1) if n s odd and n-3 and T(n) = T(n-1) + T(n-2) 1 if n is even. Assume T(1) = 1 and T(0) 0.