3 ms·
we call that "quadratic". exponential is when the exponent is variable. (unless I'm being whooshed)
by brokensegue 6y ago
we call that "quadratic". exponential is when the exponent is variable. (unless I'm being whooshed)
- mabbo 6y agoNo, you're 100% correct. O(n^[number]) = polynomial, with O(n^2) being quadratic. O([a number]^n) = exponential. I guess the authors aren't big on CS fundamentals?
- tomc1985 6y agoIndeed. It's been a while since I've had to so much as think about big O notation and I forgot that quirk. To most folks "exponential" means n^2 or greater