[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

I need help with Big-O notation proofs. I understand that I

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 5
Thread images: 1

File: zc02g.jpg (8KB, 506x233px) Image search: [Google]
zc02g.jpg
8KB, 506x233px
I need help with Big-O notation proofs.

I understand that I need to find some constant C where f(n) < c x g(n) when n > k.

I wanted to find a sure way of finding this constant C when completing this proof so I know 100% that my proof is correct (I need this assurance to ease my anxiety post exam).

I am struggling to find anything on the internet. I read something about using L'Hospital's rule using limit of f(n)/g(n) as x -> infinity to find constant C that can be used in Big-O. Could someone please explain this to me and help me find a C everytime? (k is easy to find once I get how to find C)
>>
*L'Hopital's

Before anyone freaks out
>>
Thread theme:
https://www.youtube.com/watch?v=s7_Od9CmTu0
>>
>>366019
There are multiple C's that work. For instance, on 4x^3 + 3x^2, you could just take 4+3=7 and use it as C. k would be found via

7x^3 = 4x^3 + 3x^2
3x^3 = 3x^2
3x = 3
x = 1

Then say it's O(n^3) using C=7 and k=1, which is trivial to verify via inspection. But you can also look at the limit of

(4x^3 + 3x^2)
-------------------
........x^3

As x goes to infinity. First we cancel out the extra x^2, so it's just (4x + 3)/x. That 3 means nothing once x is huge, so it's really just 4x/x, which is 4 as x grows. What this means is that if I have a C of 4.00001, cubing that tiny little fractional bit at the end results in a greater value than the 3x^2 term once x is big enough. In our case, it'd be x=3/.00001 = 300000, which is huge but nothing compared to infinity. So in general, if a function's highest degree is N you can trivially say it's O(x^N).
>>
>>366036
Cheers anon. I understand now.
Thread posts: 5
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.