|
|
|
|
|
by bsder
2381 days ago
|
|
Asymptotically, that's true. In reality, O(n) and O(2n) can be quite different for small n. As can O(n)+k0 and O(2n)+k1. Or worse, O(n^2)+k2 where sufficiently large k0 and k1 make the quadratic system better because it's k2 constant is so much smaller. Setup time matters. Nowadays, you rarely have enough elements that the asymptotic behavior is the defining performance characteristic. |
|