|
|
|
|
|
by daveFNbuck
1027 days ago
|
|
You can't have that because when N=K that's not a valid expression and when N>K you're putting a negative number in the big-O notation. You can't have negative runtime. All algorithms have a lower-bound on runtime of 1. If a sequence is decreasing and bounded below, it converges to a value [1]. If the sequence is discrete, that means it reaches exactly that limit and never deviates from it. [1] https://en.wikipedia.org/wiki/Monotone_convergence_theorem |
|