You are on page 1of 9

Llhat

algo«?lhm, Explain tethe nofon d on dlgoethn


an

ch algrhn
o
Chyuence
ling pagion. Uhontsquos
Megulue yor any
Gmount any
Nolforn Arne.
an

Algohm Can
poyormCsenfalasks guakly &
oceioatily. making
hat
hem
lot
an

Caleulatfons u dafa
fool

Algoilhm ae
puocaai
Mepealable & puoduce Cons?shot
euxy fone h axe exeeatl. hss s impoont
Alhen doling larqe amount data ou omplex
Puocese&
bcalabil?k - Ngothn Con be Scoled op to hondle
clatase ts or omplex puoblems , whch makes
longe
them pplPcoforns hat
Volctmcs daka.
puoccsing Algo? hm (an automat epefue tasks,
Alomaon aksveofon
the ned human
fone othu tasks.
op landamdred &
Slandac?alfon Alqo«hm Can be
ams ! bugonisolon, makrg
Shased Gmong dlont
people to o laborol &shase kroaledye
easfu o

GCD an eormple.
mehod
Euehel's algohm 5 nombers. The
huo that
GICD rumber
he
ftnteqos
rdeng Y
the
Photh"
Aemahde.

drdes both X ond


and
nombos
sle
ma
lnde daign
s
te
Meploce
the explan
the get b
huoughdo /8b=
eksn chat
be
& a=
48
/2 .b-
6
Lhele
bo
b =
yous
puocers.
algouhm
%18
48 18/.12
Cand
by 2 Set Set
5.Reprot
Skp 12 aSet
fo.
b
a=
6
reat
b=
b+o
2:DJRle Repl
ace Example
1.
det -
3. 4.
3
has
:? Aoble
analsfs
exoct
meonsSalgn
mpalatioal
the
Undoslond
the
qpuoblem dpthm algorhrn
anduoblem,
clgoithrn Aoohm
tCode
he
dasfgn
be
orotectne&8
oltog the he Con
Aalhalye thmuoostond
VS
achnigucs
appuoxmate dlgoi
on
Decide
on DesignPeove sat
ho
g
puoces
te
ond dlgothm
Geatel
F-Rslly
The
Combinaloal
ospucbhng
pucblkms
pucblemn8. ont Valuels)
gvern
a algou
hon
Qk
laiaiog
Geomehtcxlumolc kms dout,
aendihg
dhanch kxt
hes ADT
Sequence
ieseelmalh a
dlatathe
yps
publem
npoant Bhany given
the Bubble
yo by Alhatthe
06.
ot. tle. IRoeast
Cve
Connectel
- ahools
chaxachvs
mspobl
dhlng Exomplehchoizucs Ph uom UleRse
elments ach bouncdaes
ele. aranch wHd A
elermen
ts
Dumbors,
Deals
Skucots
quaphYoefPecs
puoblem evolve Can
Fo aSort -
Ganchiog
makhfig an hepah
4.Dscs
02. 03. 04.
merqe
hse Jom goph
02. 03 daBe
qeometu?c Con
Hovus othat
Gný yroly deguen aheuckene
fel cata
puah
&
pop
ueguie he Shacheee.
omat puoguom
Rlenty daka
chaackrists
the claka
&
e
Heguis om (Heax)
the Ggon?rcd (tTFo)
hat
pucblems
to
pera
ledl (Lrro)
-out
focst
dlata the
follocos
amangel Aemovec encl
pucblems emafal
pulnples dala.wok out
deal poccssdescalbes
dala
one
elements.
Bsdirkedl st-
hat Sortin
be (yfont)
end
other
noumally ond
equafons hendomenlal and
fooeted
Thusethat mahemaRal an and
ae puoblm& ond
and aCce&S
Shutekore Pems top sMemovfog
pfimizafons
1Ron8,
poumutoValue algothm data -Po
Theac
puoblms
oongingto Shuackete
6tuchoHe.
dala the
the
dota
Oppropuiate
memoy
hRal
mahema
ye
the
Soch -These clada elemenfs
Some
end,
Called & a
elemen
ts yom
loa mathemafcs Summanizeon the Slacks-
s
tComplex Gronehlo
maximizîog
lkrompu
date
IPke
ding
Combioa xlumuc
clala
whethoe Hernouccl
nakye Queue
gin dala om Ahure Alhe
05 01
02
03
Degofve leylemu (obi)¡oh
A to) J
hee

all
arme bonded unclon
ga exst
lolion
above dnste
Gome
Soch n)
n)
S
n 6 b b
that
posve dad
Some 6gln).tn) e
o
Conalant be
non bkDt
Omeqa nolalon
t ln)
to be big
gn) cleotel
by
tn) bounded belouo by Some
postlfve ConsBont all taqe n
that heue exist Some postlve
ConsBot Gnd Some
Such
non
negolfve Pnteguts
that tin) Cgn) all nno

EL - n>n?
Bic
(o) Jhela noBalion
tin) be o

elgin) bnoted by
t(n) boundec obove 8 belouw 6ome
Conslont mulfples n) o oll
le ht Some tye

Conslont Some
Do Such hot

a gln) s t(a) s

Ggn)

heta oolofon

Ex
.

Mataeatical duayia Noa- Recunsive Alaovi h


Guwa plau kor analying

hel laath
alo diend
wors
addilional
hest case

SuM
ta_ring
baxie oratioa

Count

ALGOR ITHM. MAXELEMENTS/Alo-. -n-)


loutfuti ttu vali
man valL4 ACOJ
tor it-1 lo n do
fine
Goua plan tor Amalyst mg
Deidi onn a panamet iniating an inbut siy

au inpt. i alo detds m some add'ona

neeshasy bet cat efiency boye to be

nilal Comdion for a no.


opmatien eaeutted
Solve

ALGORITHM fa)

Anon ngali ntigu n.


J

fea) =f(n-)n
Ma)- MCa-i)+

M(o) =0

13

Mn)= M(n)+1
Mtoyt
M(n)-[M4+1 _= Mn-)+2
M(n-1) [M(n-3)+J+2 = M(h-3)+ 3
M^) Min)|

20+n

You might also like