algorithm - What's the Big-O of T(n)=Constant? -
would o(constant)?
example:
t(n) = 10
correct big-o o(10)?
we write o(1) since constant factors aren't relevant.
of course 0 constant mathematically quite distinct. our practical purposes, nothing takes no time in cases, unless aren't doing it. , if aren't doing it, don't care.
Comments
Post a Comment