We were introduced to the Big O, and I had trouble being introduced to the symbolic O(n) and Omega(n).
To sum up what it means:
Big O: f is in O(g) = /exists c in R+, /exists B in N, /forall n in N, n >= B implies f(n) < c g(n)
- You have two functins on a graph.
- If you were to look at it from a large enough number n, then you could notice the relationship between the two functions.
- So define n to be greater than some number B so n would be a large enough number.
- Now if you can find a scalar number for this relationship, that will be 'c'.
- If you cannot, where f(n) is larger than g(n) and keeps growing larger, then f is not in O(g).
Also, I found this blog: www.reddit.com/r/journeythrough165/ which was a pretty cool format!
No comments:
Post a Comment