Upon analyzing a function's time complexity, the above relation came up. Then what does belong to?
Notations: , , and are standard Landau notations .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
At first , the recurrence might be a bit overwhelming, but if we look at it by changing variables, we can see more easily! So let m = lo g ( n ) . So that the recurrence becomes: T ( 2 m ) = 1 6 T ( ⌊ 2 4 m ⌋ ) + m 2 Now, let another recurrence variate R ( m ) = T ( 2 m ) . So that we have , R ( m ) = 1 6 R ( 4 m ) + m 2 Now, we'll apply Master Theorem to solve this recurrence. We have, R ( m ) = Θ ( m 2 lo g ( lo g ( m ) ) ) Plugging m = lo g ( n ) we get: T ( n ) = Θ ( lo g 2 ( n ) lo g ( lo g ( lo g ( n ) ) ) ) As, Θ ( n ) = O ( n ) So, T ( n ) ∈ O ( lo g 2 ( n ) lo g ( lo g ( lo g ( n ) ) ) )