I applied the Master theorem to a recurrence for a running time I encountered
However, this hides a constant dependent on r in the big-oh notation: our recurrence has depth O(log2n) so at the final level we have O(4log2n)=O(n2) subproblems, each of which takes O(r) time to be handled. This means the actual running time is O(n2r) (or worse: this analysis only talks about the lowest level).
This is my actual recursion:
No comments:
Post a Comment