Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6784689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:01:40+00:00 2026-05-26T17:01:40+00:00

I have the following recursion: T(n) = 2*T(n/4) + T(n/2) + n and I

  • 0

I have the following recursion: T(n) = 2*T(n/4) + T(n/2) + n and I need to know the exact equation, I know Master theorem won’t help me, and the iteration seems to be wrong…

Please tell me how to do it in general for such recursions.
Thanks in advance.

Hey all, thanks for replying I need complexity. I need to understand how to solve such problems.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:01:41+00:00Added an answer on May 26, 2026 at 5:01 pm

    T(n) = O(nlogn) and W(nlogn)

    To prove that, by definition of O, we need to find constants n0 and c such that:
    for every n>=n0, T(n)<=cnlogn.

    We will use induction on n to prove that T(n)<=cnlogn for all n>=n0

    Let’s skip the base case for now… (we’ll return later)

    Hipothesis: We assume that for every k<n, T(k)<=cklogk

    Thesis: We want to prove that T(n)<=cnlogn

    But, T(n)=2T(n/4)+T(n/2)+n

    Using the hipothesis we get:

    T(n)<=2(c(n/4)log(n/4))+c(n/2)log(n/2)+n=cnlogn + n(1-3c/2)

    So, taking c>=2/3 would prove our thesis, because then T(n)<=cnlogn

    Now we need to prove the base case:

    We will take n0=2 because if we take n0=1, the logn would be 0 and that wouldn’t work with our thesis. So our base cases would be n=2,3,4. We need the following propositions to be true:

    T(2) <= 2clog2

    T(3) <= 3clog3

    T(4) <= 4clog4

    So, by taking c=max{2/3, T(2)/2, T(3)/3log3, T(4)/8} and n0=2, we would be finding constants c and n0 such that for every natural n>=n0, T(n)<=cnlogn

    The demonstration for T(n) = W(nlogn) is analog.

    So basically, in these cases where you can’t use the Masther Theorem, you need to ‘guess’ the result and prove it by induction.

    For more information on these kind of demonstrations, refer to ‘Introduction to Algorithms’

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need help with a oracle query. Here is my setup: I have 2
I need some help with recursion. I'm trying do a binary tree in C#,
I need information which should be collected in a recursion. I have a wpf
I have the following url /dir1/dir2/page.php I need to generate a an array of
Wondering if anyone can help with the following. Basically I have a form which
I have the following recursive code and it doesn't behave as expected (see details
I have following plist: <?xml version=1.0 encoding=UTF-8?> <!DOCTYPE plist PUBLIC -//Apple//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd>
I have following source. In insertMessage(..), it calls selectMessage to check whether duplicate record
I have following div in a page (I can not modify). <div id=:0.control>Click me</div>
I have following fiddle: http://jsfiddle.net/BFSH4/ As you see there are two issues: The h1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.