Introduction
Outline of Algorithmics
(ab)c=abc cloga(n)=nloga(c) Stirling's Approximation
Original:
2πn(en)ne12n+11<n!<2πn(en)ne12n1
log(n!)=nlog(n)−n+Θ(log(n))
Further simplification:
log(n!)=Θ(nlog(n))
A possible transformation:
n!=Θ(enlog(n))
Comparison Tree
Example: Merge x1<x2 and y1<y2<y3<y4.
The lower the smaller, circle(o) for x, cross(×) for y.