Re: hey help in solving the following recurrence...
- From: "Googmeister" <googmeister@xxxxxxxxx>
- Date: 28 Jan 2007 19:28:15 -0800
On Jan 28, 9:13 pm, "sarah" <sarahsmit...@xxxxxxxxx> wrote:
hi can yu hep me solve the following recurrence,
T(n)=T(n-1)+lgn
T(2) and T(1) are constants...
If you expand it out (assuming T(0) = 0):
T(n) = T(n-1) + lg n
= T(n-2) + lg(n-1) + lg n
...
= lg 1 + lg 2 + ... + lg n
= lg (n!)
= Theta(n log n)
.
- Follow-Ups:
- Re: hey help in solving the following recurrence...
- From: Alf P. Steinbach
- Re: hey help in solving the following recurrence...
- References:
- hey help in solving the following recurrence...
- From: sarah
- hey help in solving the following recurrence...
- Prev by Date: Re: hey help in solving the following recurrence...
- Next by Date: Re: hey help in solving the following recurrence...
- Previous by thread: hey help in solving the following recurrence...
- Next by thread: Re: hey help in solving the following recurrence...
- Index(es):