Hi I've been studying time complexity recently and I'm really confused about something I've come across.
The problem
Suppose we can solve a size n problem instance in 1 hour. If we double the machine speed, how big a problem instance can we now solve?
The Answer
Complexity: $log_2(n)$
Improvement: $n \rightarrow n^2$
Complexity: $n$
Improvement: $n \rightarrow 2n$
Complexity: $n^2$
Improvement: $n \rightarrow \sqrt{2}n$
Complexity: $2^n$
Improvement: $n \rightarrow n+1$
The Question
I understand the improvement for complexity $n$. Doubling the machine speed gives you $2n$, but what I fail to see is why for the other complexities we get that particular improvement! e.g. Why does doubling the machine speed for complexity $n^2$ give us an improvement of $\sqrt{2}n$.
Could someone please explain what I'm missing. Thank you.