As Matt Timmermans correctly points out, the statement does not follow from the main theorem, but it follows from the extended version.
It is quite simple to solve this problem directly using the tree method .
Starting from T (n) = 2T (n / 2) + n / log n:
Level 0 has 1 node with a value of n / log (n).
Level 1 has 2 nodes, each with a value of (n / 2) / log (n / 2).
...
Level I has 2 nodes i each with a value of (n / 2 i ) / log (n / 2 i )
Simplification, level i introduces n / (log (n) - i).
Note that there are ~ log (n) - 1 levels to achieve the constant.
Therefore, the sum of all levels is & sum; i = 0 ~ log (n) - 1 [n / (log (n) - i)] ~ n & sum; i = 0 k [1 / k],
for k = log (n).
Note that the sigma is the kth harmonic row, which is & Theta; (log (k)) . The value k = log (n) gives generally n & Theta; (log (log (n))) = & Theta; (n log (log (n))).
Ami tavory
source share