Connecting Tech Pros Worldwide Forums | Help | Site Map

Complexity Problem

Newbie
 
Join Date: Nov 2009
Posts: 2
#1: 3 Weeks Ago
I have an algorithm wich I'm trying my best to find it's complexity but I realy have a problem with recursions. I have two versions.
I've come down to this:
Version1: T(n) = 2n * Sum(1<i<n)[ T(i) + T(n-i) ]
Version2: T(n) = n * Sum(1<i<n)[ T(i) + T(n-i) ]

I wanna know the complexity in the form of O(something), can anyone enlight me on this?

Newbie
 
Join Date: Nov 2009
Posts: 2
#2: 3 Weeks Ago

re: Complexity Problem


Quote:

Originally Posted by desaurido View Post

I have an algorithm wich I'm trying my best to find it's complexity but I realy have a problem with recursions. I have two versions.
I've come down to this:
Version1: T(n) = 2n * Sum(1<i<n)[ T(i) + T(n-i) ]
Version2: T(n) = n * Sum(1<i<n)[ T(i) + T(n-i) ]

I wanna know the complexity in the form of O(something), can anyone enlight me on this?

I forgot to say that T(0) = T(1) = 1
JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#3: 2 Weeks Ago

re: Complexity Problem


What is T(2)? It isn't defined by your recurrence relations (1 < i < n)

kind regards,

Jos
Newbie
 
Join Date: Jan 2007
Location: coimbatore
Posts: 23
#4: 2 Weeks Ago

re: Complexity Problem


Can you give insight of your algorithm. and might be helpful for better understanding.
Reply

Tags
complexity