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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:49:17+00:00 2026-06-17T04:49:17+00:00

Some standard books on Algorithms produce this: 0 ≤ f( n ) ≤ c⋅g(

  • 0

Some standard books on Algorithms produce this:

0 ≤ f(n) ≤ c⋅g(n) for all n > n0

While defining big-O, can anyone explain to me what this means, using a strong example which can help me to visualize and understand big-O more precisely?

  • 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-17T04:49:18+00:00Added an answer on June 17, 2026 at 4:49 am

    Assume you have a function f(n) and you are trying to classify it – is it a big O of some other function g(n).

    The definition basically says that f(n) is in O(g(n)) if there exists two constants C,N such that

    f(n) <= c * g(n) for each n > N
    

    Now, let’s understand what it means.

    Start with the n>N part – it means, we do not “care” for low values of n, we only care for high values, and if some (final number of) low values do not follow the criteria – we can silently ignore them by choosing N bigger then them.

    Have a look on the following example:

    enter image description here

    Though we can see that for low values of n: n^2 < 10nlog(n), the second quickly catches up and after N=10 we get that for all n>10 the claim 10nlog(n) < n^2 is correct, and thus 10nlog(n) is in O(n^2).
    The constant c means we can also tolerate some multiple by constant factor, and we can still accept it as desired behavior (useful for example to show that 5*n is O(n), because without it we could never find N such that for each n > N: 5n < n, but with the constant c, we can use c=6 and show 5n < 6n and get that 5n is in O(n).

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

Sidebar

Related Questions

this is just some pretty standard code I have tried. What I am trying
I can't seem to find the relevant parts in the C standard fully defining
I'm reading some books about coding standard in Java. I always loved beautiful and
I was trying to sharpening on some standard image from Gonzalez books. Below are
is there some standard about how to graphically represent database schemas? Is UML a
the database we work on has some standard permissions for new users, but from
I'm using WWW::Mechanize to do some standard website traversal, but at one point I
The Android SDK offers the standard menu icons via android.R.drawable.X . However, some standard
In my code I'm adopting a design strategy which is similar to some standard
I.e., my app sets some standard default values at the beginning. Then those values

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.