|
|
|
|
|
by ecstrema
723 days ago
|
|
Maybe someone could clarify something for me here: o(n) seems like a stronger statement to me than O(n), since all o(n) algorithms are O(n), but the reverse is not true. Also if o(n) applies to all n, however small, whereas O(n) applies only when n -> inf, (From the Wikipedia page example: 2n = O(n) but 2n != o(n)) Then doesn’t that means this algorithm should be applicable to even small n’s? Then it would be the opposite of a galactic algorithm, as someone above suggested, wouldn’t it? Or am I missing something? |
|
For instance, this function is o(n), because 1e1000/n goes to 0 as n grows.
(Pseudo-Python for a piecewise function that grows exponentially to 10**1000 at n = 1000 and then remains constant after that.)