Unit 1 Part3

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

Tgbes of fonctong-

Pln)=2 OU)
OU)-wnstont P)-s
olog)- Legpathmie FC)Soo0
Pln)mt+3 -0)
OLn)=Linear Pv)50o0+T6o
on)-Quecbatic
PO-oD0 So0d

o(n3)-Cukic
Ol") - eskoneHnta

ol3)-
o()

n lotn <n <32


. . .

L L3.. <n
byn&n <n <

ln

4
6 16
3 64 356
8 S12

n3

T
smbtotic Notatioms
O-big-oh upper betmd
- big Omepe Lotoer boumd
theta Aveepe bumd.
-

6i

Big-oh Notattom
The Ptnetton Pn)=O CS PP
A tre comstomt C amol ho

Such that P C*9n) n n o

For)-2n+3
9n+3 lon

eg
n+37n
temy
ell
Mke
2.nt 3 an3n n7
mulhbe oP
P)-0n)
Aleags Ve t e
*n3< an+3
PC)Olr)
tughteet Bolmo
m+35

2 Orega Notatton
PP 4we astonntr
The Pmetm Pn- Jlgl)
C amd Mo Such thost

fCn)=nt3
3+3 7t*n mzl
P )
Theta btahon 13
The Ptmc ton fln)=0() PË 3 tNe Cotomr

Comd Mo Such that


Cg(n)S Ptn) e2*8,n)

PL)-n+3
henn+3 < Sxn
.Po)--C)
Pln)
ho7
n+lo)
) ms c,
C
Caombleg
PCn) 3 +3n +4
2742n+4 <23
2un
+3n-H4< 2+3d+ ur

C 3
t3ntu 7, l2
243nt4 1 Po)-&Cn)

r ) m legm-+n
l6nlogn
I l e n S n2 log n tn

O(n leg )
JL (nt leg
(n leg
e Pln) nl, = n n-i*h-2 X. --x3 x /

Xn n m Xn x.-h
Ix2 3

JU) Lewer bouno


OLn") pper bowol

Lse Con Cet Panol e fo- th

B 3 Pln log nl.

log(ixI)<log (I¥2x3. 4) les (nxn ---)


m

o l , < lag
n log n.

SL On legm)
Beberttes of Acymptetc Notaton
Ghexosl oety
9 P Pn) Is o (3b then ax P(n) Is O (3n)
eP(-a4S Is O ) 'a is gome
7 fn)= (4 n+3s 1s oy)

9P Pn) Is (ir) then ay Pa) s eIn)


fn) I s N I ) hen a*PCn) s S(gn)

RcPlexye Bepetes
P ) &3wen ten fo 0 CFo))
.e Pnctionm is wbpeo bend of ttselP

Por)-GrG))
Tsongtve Boberty Othn))
floy s 0 (3() and 8 u

then f) O hc))

nIs ) and n is O(n3)


hen nts 0(

Thii tr c f al 3 Notaton
for Thee fetatO%)
Tue ny
Symmetoic Bepert
F)
P O)-
fhen r0
)#9 O(P)

Pos)2G)
n O

n=o(n)x
( n
Plr)=? $o=n then 8n)4H
Pr)-O#)
&sr)0*)

Tonsbore SmmetncC
Fen-O(t5) then 9G) 1s SLFO)
PLn)=n n)=
then n is O ) md

nIs)
Nete

omd Pa)= A i )

Pen Lsn))

anmol dr)-Ole) et Pb)=n = On)


then P t da)=
dln) = O(l)
Fr+l)= n+ O(n)
Olpee(sto),el)))
Pl (8()
Gm dn) O(etr))
then Pl)x d(n)-O(3t)x elr))

Combosln of Two ftwnctim

nn3 Ablh log on bsh stele


n
3 3 -7 log n3
lo
4 416 z6 logn 3 logh

loga.h log a+ky b

lop ab= b loga


a

a=n then b-log

Plr-m log n - n (leg n)

lo(n(legn)")

lo n+(ey (losy
leg nt log tog
le n tlog legn lognt lo log n
7
legn.
Pon) -3

3
es

3 (
3

You might also like