Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

>> REGISTER NOW TO START POSTING

Thread: Solve the recurrence in java plzzzzzz

1. 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.

2. Re: Solve the recurrence in java plzzzzzz

Is this a programming question?
Do you have some code you are having a problem with?

3. The Following User Says Thank You to Norm For This Useful Post:

inthu (December 8th, 2011)

4. 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.

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

5. The Following User Says Thank You to Vishwanath For This Useful Post:

inthu (December 12th, 2011)

6. 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

7. 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.

8. Re: Solve the recurrence in java plzzzzzz

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.