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


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: Solve the recurrence in java plzzzzzz

  1. #1
    Junior Member
    Join Date
    Dec 2011
    Posts
    3
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default 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. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,152
    Thanks
    49
    Thanked 2,158 Times in 2,131 Posts

    Default Re: Solve the recurrence in java plzzzzzz

    Is this a programming question?
    Do you have some code you are having a problem with?
    Please post the code and ask your questions or describe your problem.

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

    inthu (December 8th, 2011)

  4. #3
    Junior Member
    Join Date
    Aug 2011
    Posts
    12
    My Mood
    Cheerful
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default 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 View Post
    Is this a programming question?
    Do you have some code you are having a problem with?
    Please post the code and ask your questions or describe your problem.

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

    inthu (December 12th, 2011)

  6. #4
    Junior Member
    Join Date
    Dec 2011
    Posts
    3
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default 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. #5
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,152
    Thanks
    49
    Thanked 2,158 Times in 2,131 Posts

    Default 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. #6
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,298
    My Mood
    Hungover
    Thanks
    142
    Thanked 620 Times in 531 Posts

    Default Re: Solve the recurrence in java plzzzzzz

    Quote Originally Posted by inthu View Post
    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.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. how I can solve this program ?
    By Noni in forum Object Oriented Programming
    Replies: 9
    Last Post: January 20th, 2011, 04:33 PM
  2. Solve Them Please
    By omath in forum Java Theory & Questions
    Replies: 1
    Last Post: December 25th, 2010, 03:26 PM
  3. solve it plz
    By tillu in forum Java Theory & Questions
    Replies: 4
    Last Post: December 17th, 2010, 12:45 PM
  4. Please solve my error occured java.lang.NullPointerExceptio
    By Viruthagiri in forum JavaServer Pages: JSP & JSTL
    Replies: 1
    Last Post: March 24th, 2010, 08:29 AM
  5. Replies: 3
    Last Post: June 14th, 2009, 09:31 PM