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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T05:54:01+00:00 2026-05-25T05:54:01+00:00

Determine the positive number c & n0 for the following recurrences (Using Substitution Method):

  • 0

Determine the positive number c & n0 for the following recurrences (Using Substitution Method):

  1. T(n) = T(ceiling(n/2)) + 1 … Guess is Big-Oh(log base 2 of n)

  2. T(n) = 3T(floor(n/3)) + n … Guess is Big-Omega (n * log base 3 of n)

  3. T(n) = 2T(floor(n/2) + 17) + n … Guess is Big-Oh(n * log base 2 of n).

I am giving my Solution for Problem 1:

Our Guess is: T(n) = O (log_2(n)).
By Induction Hypothesis assume T(k) <= c * log_2(k) for all k < n,here c is a const & c > 0

     T(n) = T(ceiling(n/2)) + 1
<=>  T(n) <= c*log_2(ceiling(n/2)) + 1
<=>   "   <= c*{log_2(n/2) + 1} + 1
<=>   "    = c*log_2(n/2) + c + 1
<=>   "    = c*{log_2(n) - log_2(2)} + c + 1
<=>   "    = c*log_2(n) - c + c + 1
<=>   "    = c*log_2(n) + 1
<=>   T(n) not_<= c*log_2(n)      because c*log_2(n) + 1 not_<= c*log_2(n).

To solve this remedy used a trick a follows:

    T(n) = T(ceiling(n/2)) + 1
<=>  "  <= c*log(ceiling(n/2)) + 1 
<=>  "  <= c*{log_2 (n/2) + b} + 1             where  0 <= b < 1
<=>  "  <= c*{log_2 (n) - log_2(2) + b) + 1  
<=>  "   = c*{log_2(n) - 1 + b} + 1
<=>  "   = c*log_2(n) - c + bc + 1
<=>  "   = c*log_2(n) - (c - bc - 1)      if c - bc -1 >= 0  
                                             c >= 1 / (1 - b)
<=> T(n) <= c*log_2(n) for c >= {1 / (1 - b)}

so T(n) = O(log_2(n)).

This solution is seems to be correct to me ... My Ques is: Is it the proper approach to   do?

Thanks to all of U.
  • 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-25T05:54:02+00:00Added an answer on May 25, 2026 at 5:54 am

    For the first exercise:
    We want to show by induction that T(n) <= ceiling(log(n)) + 1.

    Let’s assume that T(1) = 1, than T(1) = 1 <= ceiling(log(1)) + 1 = 1 and the base of the induction is proved.

    Now, we assume that for every 1 <= i < nhold that T(i) <= ceiling(log(i)) + 1.

    For the inductive step we have to distinguish the cases when n is even and when is odd.

    If n is even: T(n) = T(ceiling(n/2)) + 1 = T(n/2) + 1 <= ceiling(log(n/2)) + 1 + 1 = ceiling(log(n) - 1) + 1 + 1 = ceiling(log(n)) + 1.

    If n is odd: T(n) = T(ceiling(n/2)) + 1 = T((n+1)/2) + 1 <= ceiling(log((n+1)/2)) + 1 + 1 = ceiling(log(n+1) - 1) + 1 + 1 = ceiling(log(n+1)) + 1 = ceiling(log(n)) + 1

    The last passage is tricky, but is possibile because n is odd and then it cannot be a power of 2.

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

Sidebar

Related Questions

I am currently using isnumber to determine whether a specific word exist within a
From Java Malik textbook- determine if an number is divisible by 11.. Code Solution
I am trying to determine the sign of a number to use in a
A positive whole number n > 2 is primed if no number between 2
How would I determine if a directory (not a file) existed using C++ in
Is there any way, purely in MSSQL, to determine if the following maxtrix would
I'd like to determine a background-color C depending on an integer X (number of
I am using resolveActivityInfo to determine if my app was set as a home
Suppose I want to determine if Admin inherits from ActiveRecord::Base . One way is
I’m trying to determine the relationship of a given compiler’s integer types’ sizes using

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.