Introduction
Outline of Algorithmics
Exponent rule
(ab)c=abcā Log rule
clogaā(n)=nlogaā(c)ā Asymptotics
Name
Notation
Rough Meaning
Definition
In-fix Notation
(āC>0)[Cfā„gā„0(e.v.)]
g=Ī©(f)
(āC>0)[Cgā„fā„0(e.v.)]
g=Ī(f)
(āC>1)[C2fā„Cgā„0(e.v.)]
(āC>0)[Cfā„gā„0(e.v.)]
g=Ļ(f)
(āC>0)[Cgā„fā„0(e.v.)]
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ā.
Hasse Diagram
The lower the smaller, circle(o) for x, cross(Ć) for y.