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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:42:13+00:00 2026-05-30T19:42:13+00:00

I know what the O(lg n) and the T(n) mean, and in algorithm analysis

  • 0

I know what the O(lg n) and the T(n) mean, and in algorithm analysis I don’t know how to calculate the T(n) = 3T(n/3) + O(lg n). Should I expand it?

Just like:

T(n) = 3^2 *T(n/3^2) + O(lg n/3) + O(lg n) and so on...

then I get

T(n) = 3^(log b^n) * T(1)+ 3^[log b ^ (n-1)]* lg (n/(3^[log b ^(n-1)])) ...+ O(lg n/3) +O(lg n)

But how can I get the right answer, and can I get an easy way to find it out?

  • 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-30T19:42:15+00:00Added an answer on May 30, 2026 at 7:42 pm

    I think you can use Masters Theorem.

    T(n)=aT(n/b) + f(n)
    Here a=3, b=3 and f(n)=O(log n)
    f(n) = O(log n) = O(n)
    

    which implies the answer as BigTheta(n)

    For Masters theorem formula plz see Wikipedia. There are three rules and are quite simple

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

Sidebar

Related Questions

If you don't know what I mean, check this image out: Multiple images I
Does anyone know a way to get the mean amplitude of a .wav file
What does ! mean in pseudo-code? I know ! stands for factorial but I
I know that it is possible to calculate the mean of a list of
You know the one I mean: Is there a way to disable this? I'm
I want to know what does RETURN_VALUE mean! I'm stuck at this thing. How
Does anyone know what the q factor HTTP headers emitted by Firefox 3 mean?
How do I know which is the current folder of an App? I mean...
Does anyone know of any resources that can give me an idea of how
I would like to know why the Visual C++ compiler gets me an warning/error

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.