can anyone explain to me big O notation and give an example
I am not sure what you are talking about
where did you see it?
lol i have a discrete math class which is a pain @zzr0ck3r
@zzr0ck3r Big- O Notation - determine whether f is O ( g ) and, if so, find witnesses
so you need to know if there is a positive real number \(\epsilon\) and a \(x_0\in \mathbb{R}\) such that \(f(x) \le \epsilon g(x)\) for all \(x>x_0\). This is about convergence time?
\(|f(x)| \le \epsilon |g(x)| \)
to be honest with you i have no idea if you could just further more expand on that it would be more understandable for me if you dont mind
ok so let \(f(x) = 3x\) and let \(g(x)=3x+2\) then \(f\) is \(O(g(x))\) because for all \(x>1\) we have \(f(x) \le 1* g(x)\)
this is a very basic example.
my choice of \(x>1\) was random...we could have choose any number as long as the number we multiplied \(g(x)\) by was greater than \(1\)/
so g(x) has to be greater than f(x) for it to be considered as a big o notation? @zzr0ck3r
no there is some point that for all other points afterwards, f(x) is less than (or equal) to g(x) times some positive number
so if f(x) <= 0.00005*g(x) for all x> 2^256 then f is Og
ok got it
so at some point f is bounded by g times some positive number
we don't care when, as long as its for all x after that spot and we don't care about the number g is multiplied by as long as its positive
you have no idea why you are using it?
Are you doing something with algorithms?
yes
on computers?
yup
but its basic we're not going through computer codes yet
so you are talking about the time it takes the algorithm to do its thing.
discrete is hard but can be fun.
no not really were just going over some stuff in class i have a test later on today i just want to have a more of an idea about the big o notation
trust me im basically surviving
maybe look up Lipchitz continuity. It is very similar (I think)
can you help me with these ● a | b ● the Division algorithm ● mod ● congruence class modulo n
a | b the Division algorithm mod congruence class modulo n
mod is something i already know
Join our real-time social learning platform and learn together with your friends!