What is Complexity?
- From: "c.lang.myself@xxxxxxxxx" <c.lang.myself@xxxxxxxxx>
- Date: Tue, 18 Nov 2008 20:09:17 -0800 (PST)
What is complexity of this algorithm:
int fun(int i)
{
int temp=0;
if((i==0)||(i==1))
return 1;
for(int n=1;n<i;n++)
{
temp+=fun(n)*fun(i-n);
}
return temp;
}
.
- Follow-Ups:
- Re: What is Complexity?
- From: Ed Prochak
- Re: What is Complexity?
- From: Andrew Tomazos
- Re: What is Complexity?
- From: Richard Heathfield
- Re: What is Complexity?
- Prev by Date: Re: fast stable sort
- Next by Date: Re: Red-black trees?
- Previous by thread: Obtain filenames from a directory (Pcap program)
- Next by thread: Re: What is Complexity?
- Index(es):
Relevant Pages
|