Re:O(n^2), again, now in Windows Management Instrumentation
by a1369209993 on Tuesday December 10, 2019 @06:20PM
(#21757916)
> that is not exponential, that is actually factorial, which is superexponential
Fair point; I should have given:
whoops(n):
if(!n) return
for i in 2: whoops(n-1)
I think it's clear that it is "trivial to go exponential", though. And for that matter, also trivial to go superexponential apparently.
that is not exponential, that is actually factorial, which is superexponential. Uh, or close to factorial, I'm not sure exactly. Testing it in python right now, incrementing a counter each time whoops is called, I'm seeing a relationship that looks like whoops(n) == n * whoops(n-1) + 1 That is interesting.