Finding the value of n in nlog(n)

  • Thread starter Thread starter -A-
  • Start date Start date
  • Tags Tags
    Value
Click For Summary
SUMMARY

The discussion focuses on solving the inequality c1*n^2 < c2*n*log(n) and the equation n*log(n) = k, where k is a constant. It is established that there is no straightforward analytic solution for these problems. Instead, participants suggest using graphical methods to approximate solutions or employing the Lambert W function for a more precise approach. MATLAB is also mentioned as a potential tool for numerical solutions.

PREREQUISITES
  • Understanding of logarithmic functions and their properties
  • Familiarity with inequalities and their manipulation
  • Basic knowledge of the Lambert W function
  • Proficiency in MATLAB for numerical analysis
NEXT STEPS
  • Research the properties and applications of the Lambert W function
  • Learn how to graph functions using MATLAB to visualize solutions
  • Explore numerical methods for solving equations and inequalities
  • Study the complexity of algorithms involving n*log(n)
USEFUL FOR

Students in computer science, mathematicians dealing with algorithm complexity, and anyone interested in numerical methods for solving equations.

-A-
Messages
5
Reaction score
0

Homework Statement



Pretty simply, if you have an inequality like c1*n^2<c2*n*log(n), how do you find the values of n for this without plugging in diifferent values and substituting? Or a question like nlog(n)=k where k is a constant.

Homework Equations


Umm...thats it.


The Attempt at a Solution


I just plugged in solutions or thought I'd use MATLAB or something. This isn't actually my homework, but it comes up a lot in complexity questions, and I need to know hot to solve it.
 
Physics news on Phys.org
There is no analytic way to solve the above question. But you could ballpark the answer by drawing graphs. nlog(n) = k => log(n) = 1/n. Draw both graphs and find out the answer.

Or you could solve this problem using the Lambert W function, which is about as close you can get to an analytic solution.

http://en.wikipedia.org/wiki/Lambert_W_function
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
3K
Replies
2
Views
6K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
39
Views
6K
  • · Replies 29 ·
Replies
29
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K