Hello , i'm relativly new to this forum.
I have an algorithm for a insert function that is adapted to a quadtree datastructure.
My functions runs 4 recursion but only one recursion for each run. That is , it has
four recursions calls but they're call is based on conditions that need to be hold.
Ex:
if .. then
recursion
if .. then
recursion
and so on
My question is though, is the time complexity still considered as T(n-1) for every recursive call ?, or is it something else. I find it hard to think that it would be something else though as it only calls for one recursion for each recursion. But i'm a newbie on time complexity too.
Time complexity for recursive algorithms
Started by Krews, May 04 2010 07:46 AM
1 reply to this topic


Sign In
Create Account

Back to top









