How to decide on expressing time complexity of algorithm ?
Should we choose to express time complexity in terms of O(n)
or theta(n)
? Because a function f(n)
can be expressed as either Big-Oh(g(n))
or theta (g(n))
.
When do we choose big-oh over theta ?