How can I find the n,that satisfies this condition?

  • Context: MHB 
  • Thread starter Thread starter evinda
  • Start date Start date
  • Tags Tags
    Condition
Click For Summary

Discussion Overview

The discussion revolves around finding the value of \( n \) that satisfies the equation \( n \log{n} = 10^6 \) in the context of algorithmic cost analysis. Participants explore methods for approximating solutions to this equation and discuss related problems involving factorial growth.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Technical explanation

Main Points Raised

  • One participant presents the equation \( n \log{n} = 10^6 \) and seeks to find \( n \) that satisfies this condition.
  • Another participant suggests that the equation \( x \ln x = 10^{6} \) has a solution approximately equal to \( x \sim 87847.5 \).
  • There is a suggestion to find an approximation using methods such as binary search, as the equation does not have a solution in elementary functions when \( a \ne 0 \).
  • Participants discuss the implications of algorithm complexity and note that for \( n = 10^4 \), \( n \log n < 10^6 \), while for \( n = 10^5 \), \( n \log n > 10^6 \).

Areas of Agreement / Disagreement

Participants generally agree on the need for approximation methods to solve the equation, but there is no consensus on a definitive solution or method to find \( n \) exactly.

Contextual Notes

The discussion highlights the limitations of finding exact solutions for equations involving logarithmic terms and factorial growth, emphasizing the reliance on numerical methods for approximation.

evinda
Gold Member
MHB
Messages
3,741
Reaction score
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)
 
Last edited:
Technology news on Phys.org
evinda said:
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)

The equation $\displaystyle x\ \ln x = 10^{6}$ has solution $x \sim 87847.5$...

Kind regards

$\chi$ $\sigma$
 
chisigma said:
The equation $\displaystyle x\ \ln x = 10^{6}$ has solution $x \sim 87847.5$...

Kind regards

$\chi$ $\sigma$

So,can we just find an approximation? (Thinking)
 
According to WolframAlpha, the equation $x\log(x)=a$ does not have a solution in elementary functions when $a\ne0$. So yes, you should find an approximation, for example, using binary search (establishing an interval that contains a solution and dividing it in half repeatedly). It seems that this problem comes from computer science, where complexity of algorithms is measured not even up to the order of magnitude, but up to a multiplicative constant (big-O notation). So it may be sufficient to say that if the logarithm is to the base 2, then $n\log n<10^6$ for $n=10^4$, but $n\log n>10^6$ for $n=10^5$.
 
Evgeny.Makarov said:
According to WolframAlpha, the equation $x\log(x)=a$ does not have a solution in elementary functions when $a\ne0$. So yes, you should find an approximation, for example, using binary search (establishing an interval that contains a solution and dividing it in half repeatedly). It seems that this problem comes from computer science, where complexity of algorithms is measured not even up to the order of magnitude, but up to a multiplicative constant (big-O notation). So it may be sufficient to say that if the logarithm is to the base 2, then $n\log n<10^6$ for $n=10^4$, but $n\log n>10^6$ for $n=10^5$.

Nice,I understand..thank you very much! (Smile)
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 17 ·
Replies
17
Views
2K
Replies
9
Views
3K
  • · Replies 24 ·
Replies
24
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 19 ·
Replies
19
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 36 ·
2
Replies
36
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K