Re:Snowpack 2.0
by tomc1985 on Wednesday May 27, 2020 @07:46PM
(#23331629)
Huh? n-squared is an exponent
[ Parent
| on HN ]
Re:Snowpack 2.0
by whycombagator on Wednesday May 27, 2020 @08:03PM
(#23331758)
Sure, but for something to be considered exponential running time it must be <some-constant>^n.
So 2^n would be exponential. However, n^2 is instead quadratic.
Quadratic time complexity is better than exponential.
Here is a useful comparison of the rate of growth for various time complexities[0]
Quadratic in this specific case, or more generally: polynomial.
Re:Snowpack 2.0
by connor4312 on Wednesday May 27, 2020 @07:50PM
(#23331658)
Exponential refers to c^N. N^c is quadratic. Small visualization: https://www.onlinemathlearning.com/image-files/exponential-q...
We call that polynomial, not quadratic.
Both is right, quadratic being subset of polynomial.
It doesn't help that most people in journalism use the phrase exponential growth to describe quadratic growth.
Re:Snowpack 2.0
by brokensegue on Wednesday May 27, 2020 @07:50PM
(#23331661)
we call that "quadratic". exponential is when the exponent is variable. (unless I'm being whooshed)
No, 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?
Indeed. 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
Most folks are using the word wrong then.
“Superlinear” is the word you’re looking for.
Superlinear can mean O(n log n) or anything like that, which is smaller than O(n^2).
n^0 is also an exponent. Do you consider constant time to be exponential growth?
When family talks to me about covid spreading exponentially I am pretty sure they mean n times n, or n^2
Yes we all know the technical definitions with respect to software and algorithmic complexity. But the lack of sympathy/empathy on display with how a common definition of a word can be misconstrued by someone without an academic background in tech is kind of surprising (ok well maybe not so surprising but c'mon folks, we are all human)
Re:Snowpack 2.0
by brokensegue on Thursday May 28, 2020 @06:58PM
(#23344028)
disease spread when modeled is actually exponential.
https://en.wikipedia.org/wiki/Basic_reproduction_number#Esti...