- #1
evinda
Gold Member
MHB
- 3,836
- 0
Hello! (Wave)
I am looking at the following exercise:
Suppose that we have an algorithm,which cost is $f(n) \ \mu sec (10^{-6} sec)$.
If $f(n)=n \log{n}$,to what should $n$ be equal,so that the cost is $10^6 \ \mu sec$?
So,it must be:
$$n \log{n}=10^6 \Rightarrow n^n=10^{10^6}$$
But how can I find the $n$,that satisfies this condition? (Thinking)
Also,how can I find the $n$,such that $f(n)=n!=10^6 \mu sec$? (Thinking)
I am looking at the following exercise:
Suppose that we have an algorithm,which cost is $f(n) \ \mu sec (10^{-6} sec)$.
If $f(n)=n \log{n}$,to what should $n$ be equal,so that the cost is $10^6 \ \mu sec$?
So,it must be:
$$n \log{n}=10^6 \Rightarrow n^n=10^{10^6}$$
But how can I find the $n$,that satisfies this condition? (Thinking)
Also,how can I find the $n$,such that $f(n)=n!=10^6 \mu sec$? (Thinking)
Last edited: