-1

How can one solve $$T(n)= 3T\left(\frac{n}{4}\right) + n\cdot \log n$$ without using the master method?

I know it has a solution using the master theorem from this link.

eightShirt
  • 143
  • 1
  • 1
  • 8
  • Hello to cs.stackexchange site, you can use latex to write math equation. – Jonathan Prieto-Cubides May 04 '16 at 05:18
  • What's wrong with using the master theorem? Why tie one hand behind your back by refusing to use an appropriate tool? – David Richerby May 04 '16 at 08:12
  • @DavidRicherby I agree. Please convince my teacher. – eightShirt May 04 '16 at 17:25
  • 1
    @eightShirt Aaaaaaah, you're trying to get us to do your homework for you. Well, in that case, the point is to give you experience in using other techniques. That's a perfectly reasonable pedagogical tool but you won't learn anything from us applying other techniques for you. – David Richerby May 04 '16 at 17:38
  • @DavidRicherby He solve recurrences without master method. This recurrence is not a homework, just an exercise that I see here -http://cs.stackexchange.com/questions/3504/solving-tn-3t-fracn4-n-cdot-lgn-using-the-master-theorem I'm trying to understand, but with master method is easy to see is O(nlogn). – eightShirt May 04 '16 at 18:03

1 Answers1

3

Hint:

The master theorem is the result of observing the tree associated to the recursive relation $T(n)$. So, one possible way can be considering draw by yourself this tree, begin with the root, in this case, $n\log n$ and descending with three nodes, each one $T(n/4)$, and so on. When you see the pattern, look at each level of the tree, then sum up all nodes, and sum all levels, the total should give you an answer.

Jonathan Prieto-Cubides
  • 2,219
  • 3
  • 18
  • 26