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

  • Home
  • SEARCH
  • 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 840777
In Process

The Archive Base Latest Questions

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

On my midterm I had the problem: T(n) = 8T(n/2) + n^3 and I

  • 0

On my midterm I had the problem:

T(n) = 8T(n/2) + n^3

and I am supposed to find its big theta notation using either the masters or alternative method. So what I did was

a = 8, b = 2 k = 3

log28 = 3 = k

therefore, T(n) is big theta n3. I got 1/3 points so I must be wrong. What did I do wrong?

  • 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-15T05:40:55+00:00Added an answer on May 15, 2026 at 5:40 am

    T(n) = aT(n/b) + f(n)

    You applied the version when f(n) = O(n^(log_b(a) – e)) for some e > 0.

    This is important, you need this to be true for some e > 0.

    For f(n) = n^3, b = 2 and a = 8,

    n^3 = O(n^(3-e)) is not true for any e > 0.

    So your picked the wrong version of the Master theorem.

    You need to apply a different version of Master theorem:

    if f(n) = Theta ((log n)^k * n^log_b(a)) for some k >= 0,

    then

    T(n) = Theta((log n)^(k+1) * n^log_b(a))

    In your problem, you can apply this case, and that gives T(n) = Theta(n^3 log n).


    An alternative way to solve your problem would be:

    T(n) = 8 T(n/2) + n^3.

    Let g(n) = T(n)/n^3.

    Then

    n^3 *g(n) = 8 * (n/2)^3 * g(n/2)+ n^3

    i.e g(n) = g(n/2) + 1.

    This implies g(n) = Theta(logn) and so T(n) = Theta(n^3 logn).

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

Sidebar

Related Questions

I am practicing for a c++ midterm, and I can't see why the following
Given a problem, how to come up with a recurrence equation? For example :
Labelled as homework because this was a question on a midterm I wrote that
Programming language: DrRacket/scheme Hey guys, I am preparing for my first comp sci midterm,
My knowledge of big-O is limited, and when log terms show up in the
Where can I find the mid-term or long-term road map for python. By which,
We are studying for our CS midterm on Tuesday. Our professor put some study
I have a midterm coming up next week and I was just going over
I am studying for my midterm exam. There is going to be a question
I'm taking a class on Finite Automata. I'm preparing for a midterm and am

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.