I've been trying to find tight bounds for the equation:
$$ T(n) = 2T(n/2) + n/\lg{n} $$
The master method does not apply since $n/\lg{n}$ is not polynomially smaller than $n$. So far I've found that it is $\Omega(n)$ and $O(n\lg\lg{n})$. Both are easily verifiable with the substitution method. I've seen somewhere that it is $\Theta(n\lg\lg{n})$, but I cannot prove it. Can you help me?
Thanks!
Unrolling the recursion often helps see patterns.
$$\begin{align} T(n) &= 2 T\left(\frac{n}{2} \right) + \frac{n}{\lg n} = 4 T\left( \frac{n}{4} \right) + 2 \cdot \frac{n/2}{\lg(n/2)} + \frac{n}{\lg n} \\&= 4 T\left(\frac{n}{4} \right) + \frac{n}{(\lg n) - 1} + \frac{n}{\lg n} \end{align}$$
Suddenly, a pattern is evident! We can see how to unroll it an arbitrary number of steps. Going all the way, if $n = 2^m$:
$$ \begin{align}T(n) &= n T(1) + \sum_{i=0}^{m - 1} \frac{n}{(\lg n) - i} \\&= n T(1) + n \sum_{i=1}^{m} \frac{1}{m} \\&= \Theta(n \log m) = \Theta(n \lg \lg n) \end{align} $$
We could even do better:
$$ \begin{align} T(n) &= (1 + o(1)) n \log \lg n \\&= (1 + o(1)) n \log \log n \\&= \left(\log 2 + o(1) \right)) n \lg \lg n \end{align}$$
I'll leave it to you to deal with the details for when $n$ is not a power of $2$.