0 ratings0% found this document useful (0 votes) 39 views12 pagesOR-II Algorithms
Operational research , BCA sem 4 Practical algorithm from RTMNU
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
oRr-e Agarithra
ul Ruaxtearn |
Steps + 4
+ Fox
Fox
8. Ena
Te Ent
8. Rex
(Se get
tle. fFo% y=! te ¢
We ss + aliIEj]
(2. End Ror
(3. sumclil= $
14, Emo Rok,
15. mun = fob Cid
16. Fox we! fa
11. TEC pain >= tot lil) tw
min = tot Cr]
1g. Gnd
19. End Fare
20. Set man = tot ci
Ye Fae wth tose :
92. iF Conan 42> tat CLL) ten
Suk mane = tet cil
2d. Bred iF
24. Bnd Fue
ine
find tf
. md Fue
» Paw we | OS
yee mancZ = tek C1)
punk £
Fro 'F
End Roe
akeap
®
e
2e @¢ @Reemgrorn 2
e
Ie Stork
Qe declare aTtLlol SiC, MA Cio, martnn , Pwr
* Ate DL Se, B20
Row Pe 1 be Je
Rar ge1 Hee
aseept acide}
End Pate.
° Bind Fare
@ 8: Fam C=] ta
10. Sb myo cid= atic
@ Mle Fue g= 1 two
@ (2: IF Cmintil >= ality) ) Hen
Be See min FO = Act]
w® We Brot if
1S. pene min cid
® 38. Brot Far
we Ne Stk pee =!
* Bo Fae war to te
® (%° manimin = minci
20. iP Crnaminn 4 muncid ) then
® 2b. sek manimin = muncil
22+ pab= st
23. Erd iP
@ 24+ End for
25+ pune monimin
Poe ceo ew ©
.
26 punt pub
@ 27° Stap.
~
w.
*
ee ® ® ® @ 8 @
e
a
@Poeagtcoren ©
* Steps 3
|. Shoot
2+ clear ag CoO] Joyo, MARIO], mind , pas
OLED Jee 6
Be
Rove G=1 tw Jo
PHS: Rwe Get tec
G.
Te
$oeo8e8
8. md Ror
@ 9: Re £1 too
'o Sk man cid = q Lit)
Pile Roe gree
m > LPC mont 4 a FAL) Hun
B. BU mane cil= a CAG.
m Ie Bd iP
7 13. rd Rue
Lb. punt maroc]
» Le Bd Rote
. 18. set peb=!
9 19. Fak Wel ta Je
20, SU min! = monti
Ae IFC man 12 rrarc Lid) ten
» 290 Sek UNI = mone tid
2d» poe pub=t
2a. End IF
26. End Par
P26, punt min
y 27. punk pab
2B Step.2. Raeagroren 4
o “Kpe:
@ le Sheek
2» onte, obyeth 2 martiman.
©); calling tink bk oY wel tate
at Gling fon cion col C? .. Re ao z= mane Hun
wis. Slap? Forchirn ousplay ©? I or ena = 401
: 150 End me
» / 16. End
A Fornchion qezctate.C> n. dubwun
le + Se. ;
By Be cuteptc Ronchiorn display ©
my Re LET te Je :
As Fae et tod, = Pea iheeeen
> paeona 2 Pegs es
2 16. Bad Pk eee
a Se velo 8 :
a Ge punt qb
oO 7. nal Fe
a funekon Cab g. plant mane
7, Rate fet tee Je 9. bnd Fee
te sates [oo Jalen
a oe y= ee
+o Sop Matiaty] 2 = mare) Ham
5. SE MonG= ali]
% Gg. Grd iP
aq. brd Rot
Beg Fil = More
74 gro. RorA
|
oy
Lass 7
my OB
a be Stk
2. ease, Pot pr of nunimam
> 2% call ronthion oe,
ts Cou Ronchi “cat C2
"5° cau Forchtom display C)
~ Ge Steop
e
&
é
©
” Roe fat tac
gee min = alaLy]
pra iP
Emat Fev
Suk pli = min
Bra. Fa
get enin = (00
Far uel te Je
Bentagyryurs
TS
iPC Gris Fe min? Hen
eagpearm 5
12. iP CpLiye min fm
1p. Be pin= pol
Me Bot iF
Bnd Foe .
16. call funcen dieplay CD
17. Jule
Ronckam daplay (9
ie Roe yal te ©
po. Far vel ta so
Be Rue yal te C
Ae peurk aciirjl
5. Emad Rue
> punk poi
e End Row
2 Bnd Ro
2 OH _4 Gygen
, le start
Qo vreate abject h a type hweuiert
getslatele>
8 Gul fonditon
4A cat Fon chim call CO the Br Pave
63+ alt Fondkion alnploy (2 Me ee mmanecil = erantl
* Shap. 13. sek mnin Lid = ron |
: 4» ALI = alpha® max Lil +
Fondhiom getotate (> G1 = obphay® min i
15. Bod Poe
'. aatept se. 1g. Rekwen
2s aceept C
2+ aeeph afpha Runehionn ddplouy ¢>
da Ride Peo Je neta display
Se Roe for tac 1. Rue fel tac
GC. accept mat Li kj 2. Rae el to Je
Te Bnd Roe Be Rue fos toc
8+ Emd fio 4. punk mot cGy
$+ Jekvun. Se punk rancid & mvinc'
G6» IP ChoAA m2) Hum
funchan call) J. seb mie ho
. ge TP ChcaZm2) then
je Pubs Le | te Je ge ma= Lid
de Set Morel = 100 io « Rol Fe.
De set minl= loo We pate ml
4, ml = ~loo 13 pont mo
5. m2 = 160 be
6. Fur fr} toe
qo it Crt Cig > mane) hen
g. sek roel = mat Dag
q. iF Cmat ALi 4 mun 1 Hun
Oe eek mint = maf If]*, Pecapramn 7
.
Steps ¢
.
le Shad
= 2 creole eet ak of Saw.
we 2 Cale Poni i e
“4s cau fonehian cal () 10. max Lj1 = ml
= 55 cal funchon prwltt C) I, prev cin Ff. 12.
6. cou Fonction ax C> 2+ Emo Fae
7 Stop. >. Juluuun
2
Portion 0 ( f
: gafolata Purdie psabit C9
4 ts AaLept Jc 1. Fox Sol fo Je
2. auweptc 2. Fae g=I te C
» 3. attept fae t=) jo J 8. AYALA = ron Cid - aGILiT
4. Poe fet foc 4. End ve
> 5. auept a Lilt {I 5. brid Rive
,, 6 BATE acing 6. Galt Punch chiplay 2 C2
Mo, Poe 7, delwun
Bo er Roe
3. Jalen Fondiam Juss ¢9
Purdon cal L) by Poe fe] fo Je
a. Fae f=! fe O
slp Five ge] to 6 2. aagled © agjaei2- min oi,
2p. mt = loo Ye Ema Rove
2 m2= -06 5. bd Fete
» Pe Url to bw
ZI Lage mi) Hun
Ge brjacia
ip t ‘pa qeiaes m2) Hun
m2 * ee
Te
Be
g. end Fax
6. co Furchion ob play 2.1)
1 Sakon.Funelram cbisplay | 62 Eno Fae
20+
Is Rae et te Se Aus pieoh core
+ Pore get toe 22+
+ punt aciicj]
Emd Row
+ End Rose
+ Foe 4-1 ta Je
. ine rranch
. Peet tee Jo
> prank minad
+ End Poe
Emd Pe
12. Seohuun .
© Punelion olBploy 20)
e
@ @ @ FS oP ow
= searauron
ee
1. Pow Yo 1 to Ye
@ 2. Maw! = -loo
S- Rue fe | foe
@. A. IRC Az] 7 marl) Hwn
manl= Avirjy
5.
8G. Ema Ear.
® 2. seb yg C= mond
g. ead Foe
g. min | = loo
io. Fue dal te Ke
Ue IP Cgcit 4= min 1D Frum
® 2. minim gat
9 13. bre re qe
ee PO =
eo 16 ieee Te
. Ree y=) toe
+ : punk Aci3Cj)
1g. fend. Fae
Zs .a ee eee
Steck
Yuale abject R of Bact
* COU Heel gettallt> .
* GU Punckion caltd
* Cou Funchivn display C
Stop.
“@. Fo f=! tee
4, iF CODGIL= men) yom
5. mune acy]
Rocaaapeormn . 3
w. iF C be] >= marr) tn
1B. maw > beqaerd '
14. Bind Poe
16+ gGj1~ mane
16. Era Poe
17. mone | = - 100
8. munl = too
1g. Pee Jet Fea ve
90. iC pei>= mare \) Hun
Ue moet = peri
22. Erol. Pek
28 fe y=! te 6
24. IF CGLjI-2= mini) pron
2%. minl= qc
26. Rend Poe
27. sehwen
Funchionm dusplay CD
ls Fre gat bed
: te JeM, eee 1 tun ;
> Punk mon ow
4, ae & seaddle punt clare
1¢, Enot if
16. supdesen
PRocapteanrn lo
Skeps &
eae vatuables @09, co, ch, d
Le
tg, Oweept co
4. auwept ch
5. oes coed) / ch)
6. eoge
Te plunk 0g,
g. Stop.Recamsearrn UW
"Sheps +
bs Shaved
2. wale abject eg af type £0
& ca funchion 2
A+ cal fondion Ctaladale 0?
5. cat Punchiam dbvaplay C2
6. Sap.
Foroltion gelolalla C)
l= aecepk Je
“2. accept C3
> 3. aceept cl
e
a
=
a
6
>
>
>
Fondion caluutate C)
. 9 COr¥ C3¥ K) / 6!)
| ; oa dee be + Sqrt C2¥ 203 * CI J)
3g. to = Cgfse DK 12
A.
ponetion display C)~~
e
., Recargtearm 12
@ Steps e
eu.
e ae abe @ af type ernuc
3. cate Pundliwn calomnve C2
4° step
®
Fonrchion calernuc 02
>
, ts deckaxe variables ale Lied, plloycrod, wy fs Ine
2- auept Je & C
y Bs Pe gel te 26 punk stid
Fedo gol to 6 2.6. ena Foe
, awept a cilcj) 21- Emo Pe
Eno Five og, Helutn
ite priacd=acigs
be ‘1 t2G
1d. beaga= carat pcoid
te
\Se art Ee
16. Powe wel ta Je
1. Rue gel te
ig. prank beng
196 emot Peer
ao pnd Fox
Pu Zs | tee
an gcid>o
ore rz | G
Da ea 4 5c iq ne b Diag
gue
Pola) 5 cr