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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -