Good Evening,
I know this is a basic question, but I haven't been able to find a clear explanation for how to simplify the follow equation: $$n\log_2n=10^6$$ Solving this equation is part of the solution for Problem 1-1 from the Intro. to Algorithms book by CLRS: http://atekihcan.github.io/CLRS/P01-01/
The author there simplifies the above to: $$n=62746$$ But I can't see how to do this. Thank you.
You are doing one dimensional root finding on the function $f(n)=10^6-n \log n$. This is a large subject, a chapter in every numerical analysis book. The simplest algorithm to describe is bisection. We note that $f(1) \gt 0, f(10^6) \lt 0$ and check the midpoint. We replace the endpoint of the same sign with the midpoint, which cuts the interval in half. We do this as many times as needed to get the interval short enough that the error is acceptable. There are many fancier algorithms that may converge more rapidly.