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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:33:14+00:00 2026-05-19T12:33:14+00:00

I am currently taking a class which is incorporating a topic I have not

  • 0

I am currently taking a class which is incorporating a topic I have not yet had much experience with – Big-O. Here is an example of the type of questions I will need to answer. Please note: these questions resemble that of those which I will need to do for homework, however, the numbers, etc. are changed.

I am not looking for solutions. I am looking for an explanation on how to effectively write the proof up.

The problems look like this (the first equation is f(n) the second is g(n)):

(a) 5^(log_5(n)) and 3n+2
(b) n^2 and sqrt(3)^(log(n))

I understand that, to effectively write the proof, I must prove that

|f(x)| <= c|g(x)| for all x >= k

(k == n_0 depending on how you were taught)
So for the first one I simplify the question to

n is O(3n+2)

and I’m not entirely certain how to begin the second one.

From here, how do I pick values c and k? Are they simply arbitrary values which just make the equation true or is there something more which I am missing? I have seen many examples, but none of these explain how they are getting their values for c and k.

Thanks for your help!

  • 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-19T12:33:15+00:00Added an answer on May 19, 2026 at 12:33 pm

    Remember what the purpose of big-O is anyway: you are trying to show that a function grows, with large enough inputs, at a rate no “faster” than a certain other function (its upper bound). With that in mind, k can be fairly arbitrary, but you probably want to choose the smallest non-negative value of k for which the inequality holds. If you can’t find a definite smallest k, choose one that works. Also, since we typically “throw out” constants on the most significant term of the upper bound, similarly, choose the smallest positive c for which the inequality holds. Again, if you can’t determine a “smallest,” just choose one that works. Once you recall what k and c represent, it isn’t too hard to remember that this is what to do with them.

    Your teacher/professor may have different ideas, so you’ll probably wish to double-check, but this is pretty much what this particular music-major-who-took-some-graduate-comp-sci remembers from Algorithms class.

    Hope that helps!

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

Sidebar

Related Questions

A class I am taking currently requires us to do all of our coding
I'm very new to Unix, and currently taking a class learning the basics of
I have the following tricky problem: I have implemented a (rather complicated) class which
I'm taking a class on JSP and I have an assignment... we have to
With reference to this programming game I am currently building. I have a Class
I'm currently optimizing the performance on my company's site; when it was taking 6-10
It is currently said that MD5 is partially unsafe. Taking this into consideration, I'd
Currently, I don't really have a good method of debugging JavaScript in Internet Explorer and
Currently we have a hybrid ASP/PHP setup connecting to a SQL Server 2005 database.
Currently we have a project with a standard subversion repository layout of: ./trunk ./branches

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.