# Solve the recurrence in java plzzzzzz

• December 8th, 2011, 02:25 AM
inthu
Solve the recurrence in java plzzzzzz
Consider the following recurrence:

T(1) = 4
T(n) = 2T(n/2) + 5n + 3

• Evaluate the value of T(n) for n = 2, 4, 8, 16, 32
• Solve the above recurrence exactly by finding a closed form expression
for it using recursion technique.:confused:
• December 8th, 2011, 07:20 AM
Norm
Re: Solve the recurrence in java plzzzzzz
Is this a programming question?
Do you have some code you are having a problem with?
• December 12th, 2011, 05:42 AM
Vishwanath
Re: Solve the recurrence in java plzzzzzz
So you want this Equation to be developed in Java. If I am not wrong, T(1) will not be 4. Can you justify your statement.

Quote:

Originally Posted by Norm
Is this a programming question?
Do you have some code you are having a problem with?

• December 12th, 2011, 09:47 PM
inthu
Re: Solve the recurrence in java plzzzzzz
yes i want in java code ..
bcz i dont know.
i have this question to do as work
i cant understand i they ask me
so i need u help plzz
• December 13th, 2011, 06:16 AM
Norm
Re: Solve the recurrence in java plzzzzzz
Do you know what recursion is?
Have you looked at some of the sample programs that use recursion?
Search here on the forum or use Google to get some samples.
• December 13th, 2011, 07:25 AM
KevinWorkman
Re: Solve the recurrence in java plzzzzzz
Quote:

Originally Posted by inthu
yes i want in java code ..
bcz i dont know.
i have this question to do as work
i cant understand i they ask me
so i need u help plzz

This is absolutely not how this works, and you're being extremely rude. Read the link in my signature on asking questions the smart way before posting again. Come back only when you have a specific technical question about a piece of code that you have written.