A community for students.
Here's the question you clicked on:
 0 viewing
Miyuki
 2 years ago
BigO notation, how to find constants a and b? Any guide or video online?
I am not sure if I should post this in math or computer science. I am having trouble with bigo, omega, theta etc. But I want to work on them 1 by 1. I am having trouble finding guides or videos on how to find constants a and b. I kind of have an idea with a, but have a huge trouble for b :(
A lot of videos I have watched focused on the concept, but none that I saw explained how to find a and b. By finding I mean I need to know the number for a and b. It is for calculating algorithm running time.
Does anyone have a good guide on how to learn bigo?
Thanks!
Example problem:
Using the bigo definition (must specify two positive constants), prove that 4n^2  2n + 5 = O(n^2)
The a I found is 7. Which came from:
4n^2  2n + 5 <= 4n^2 2n^2 + 5n^2 = 7n^2
But I don't know how to find constant b.
Miyuki
 2 years ago
BigO notation, how to find constants a and b? Any guide or video online? I am not sure if I should post this in math or computer science. I am having trouble with bigo, omega, theta etc. But I want to work on them 1 by 1. I am having trouble finding guides or videos on how to find constants a and b. I kind of have an idea with a, but have a huge trouble for b :( A lot of videos I have watched focused on the concept, but none that I saw explained how to find a and b. By finding I mean I need to know the number for a and b. It is for calculating algorithm running time. Does anyone have a good guide on how to learn bigo? Thanks! Example problem: Using the bigo definition (must specify two positive constants), prove that 4n^2  2n + 5 = O(n^2) The a I found is 7. Which came from: 4n^2  2n + 5 <= 4n^2 2n^2 + 5n^2 = 7n^2 But I don't know how to find constant b.

This Question is Closed

satellite73
 2 years ago
Best ResponseYou've already chosen the best response.1\(g=O(f)\) means \[\lim_{x\to \infty}\frac{f}{g}=c\] where \(c\neq 0\) if \(c=1\) you say \[g=o(f)\]

satellite73
 2 years ago
Best ResponseYou've already chosen the best response.1"finding the constants \(a\) and \(b\)" must be part of a specific problem

Miyuki
 2 years ago
Best ResponseYou've already chosen the best response.0@satellite73, thanks for your quick response. I will find an example shortly and post it.

satellite73
 2 years ago
Best ResponseYou've already chosen the best response.1i still don't know what \(a\) and \(b\) mean in your definition, but there is a good example here http://en.wikipedia.org/wiki/Big_O_notation

satellite73
 2 years ago
Best ResponseYou've already chosen the best response.1maybe your \(a\) corresponds to the \(x_0\) and this example and your \(b\) is their 13
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.