Suppose i have a bunch of 10 data points and i have to conclude whether the increase is $n^2,n^3,\cdots,2^n,3^n, e^n,\cdots$.
For example i have the image:-
Now the increase is either polynomial or exponential. First question is how to decide that?
Case 1: increasing polynomially, i.e., $n^c$
Then how to find constant $c$?
Case 2: increasing exponentially, i.e., $c^n$
Then how to find constant $c$?
Is there a comprehensive pseudocode that solves this?