Question: You have found empirically that the implemented sorting methods $A$ of complexity $\Theta(n^3)$ and $B$ of complexity $\Theta(n^2 \log n)$ spent $2$ and $10$ time units, respectively, to sort an array of $100$ objects. Find out how many time units will each algorithm spend for sorting an array of $1\,000\,000$ objects?
For this question can I say that the time spent by these implementations can be written as $T_A(n) = c_A n^3$ and $T_B(n) = c_B n^2 \log n$, therefore continue to solve $c$ using given numbers?
If you are just finding an approximate time, then
$\cfrac{t1}{t2} = \cfrac{(n_1)^3}{(n_2)^3}$
$\cfrac{t1}{t2} = \cfrac{(n_1)^2 \log n_1}{(n_2)^2 \log n_2}$
Why approximate?
Because this theta notation just gives assymptotic behaviour.
In above calculation i have assumed that $k*n^3$ is the number of operations in first case, which is not exactly true. It can have lower degree terms also.