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 9203161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:24:39+00:00 2026-06-17T23:24:39+00:00

I am looking to prove that T(n)=T(n/2)+sqrt(n) is O(sqrt(n)) given T(1)=1 using only induction.

  • 0

I am looking to prove that T(n)=T(n/2)+sqrt(n) is O(sqrt(n)) given T(1)=1
using only induction.
It is easy to solve using the Master theorem but this is not the case.
I tried to assume

T(n/2) < c*sqrt(n/2)

but didnt get very far with the rest of the proof.
Thank you all in advance for your answers.

Edit:
my line of solution (after the assumption above) is:

T(n) <= c*sqrt(n/2)+sqrt(n) = sqrt(n)(c/sqrt(2)+1) <= sqrt(n)(c+1)

I dont know how to move from this to the required

T(n)<=c*sqrt(n)

  • 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-06-17T23:24:40+00:00Added an answer on June 17, 2026 at 11:24 pm

    ok, you’re close. So basically, as I mentioned in the comment, base case is simple. For induction case, you want to show that T(n) is O(sqrt(n)) given that T(n/2) is O(sqrt(n/2)).

    So, it goes like this:

    T(n) = T(n/2) + sqrt(n)               ; this is just your recurrence
         < c sqrt(n/2) + sqrt(n)          ; since T(n/2) is O(sqrt(n))
                                          ; wlog here, assume c > 4
         = c sqrt(n) / sqrt(2) + sqrt(n)
         = (c/sqrt(2) + 1) sqrt(n)
    

    observe that for c > 4, c / sqrt(2) + 1 < c, so

    (c/sqrt(2) + 1) sqrt(n) < c sqrt(n)
    

    so

    T(n) < c sqrt(n)
    

    Therefore, T(n) is O(sqrt(n))

    So there’s a couple key points here that you missed.

    The first is that you can always increase the c to whatever value you want. This is because big O only requires <. if it’s < c f(n) then it is < d f(n) where d > c.

    The second is to note that the line f(c) = c/sqrt(2) + 1 intersects with the line f(c) = c at about c = sqrt(2) / (sqrt(2)-1) = 3.4143 (or so), so all you have to do is force c to be > this value in order to get (c/sqrt(2) + 1) < c. 4 certainly works, so that’s where the 4 comes from.

    In retrospect, I should have given the key points as hints. My fault. Sorry!

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

Sidebar

Related Questions

Looking for a proven to work algorithm for production. Did see this example but
Looking to do a bit of refactoring... Using NHibernate I have this query currently
I am looking for ways to measure and prove that our team is improving,
I apologize for asking such a generalized question, but it's something that can prove
I'm looking for a means to prove that the bicriteria shortest path problem is
I'm trying to simply prove here that this simple function isn't good enough to
I am looking for an algorithm that would make it possible to prove any
Trying to find a way to prove that my program is not running correctly
I'm looking to write a html sanitiser, and obviously to test/prove that it works
I am looking for an idea, concept or proven datastructure that would be very

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.