Download Algoritmos e Lógica de Programação...
Ajgfrhtlfs bJþghnamb Prfgralaçîf
Ajgfrhtlfsbjþghnas mbprfgralaçîf
LarnhfAparbnhmfArtbrf TaobssaNamao^nebddbr
©3015pfrBmhtfrabMhstrhcuhmfraBmunanhfoaj^.A. ]fmfsfsmhrbhtfsrbsbrvamfs.Oboeulapartbmbstapucjhnaçîfpfmbrásbrrbprfmuzhmafutraoslhthmambquajqubr lfmffupfrquajqubrfutrflbhf,bjbtrýohnffulbnãohnf,honjuhomfdftfnþpha,gravaçîffuquajqubrfutrfthpf mbshstblambarlazboalbotfbtraoslhssîfmbhodfrlaçîf,sblprèvhaautfrhzaçîf,pfrbsnrhtf,maBmhtfrab MhstrhcuhmfraBmunanhfoaj^.A.
Prbshmbotb
SfmrhgfGajhomf Thnb-PrbshmbotbAnamélhnfmbGramuaçîfbmbBmunaçîfCáshna
LárhfGehfIùohfr NfosbjefAnamélhnf
AoaJunhaIaokfvhnCarmuneh NalhjaNarmfsfSftbjja MaohbjjyOuobsAomrambOfè GrashbjbAparbnhmaJfurboçf HsacbjNrhsthoaNeagasCarcho JhmhaobNrhsthoaThvajmhohFjf ]eathaobNrhsthoa ]eathaobNrhsthoamfs^aotfs mfs^aotfsmbNarvajefS mbNarvajefShcbhrf hcbhrf Sbvhsîf]ènohna
SuyDjávhfmbFjhvbhra Bmhtfrhaj
NalhjaNarmfsfSftbjja(Mhrbtfra) JhmhaobNrhsthoaThvajmhohFjf(Gbrbotb) BjlhrNarvajefma^hjva(Nffrmboamfr) JbtìnhaCbotfPhbrfoh(Nffrmboamfra) SboataIèsshnaGajmhof(Nffrmboamfra)
MamfsHotbroanhfoahsmbNatajfgaçîfoaPucjhn MamfsHotbroanhfoahsmbNatajfgaç îfoaPucjhnaçîf(NHP) açîf(NHP)
Artbrf,Larnhf Artbrf, LarnhfAparbnhmf Larnhf Aparbnhmf A754a Ajgfrhtlfsb Ajgfrhtlfs b bjþghnas jþghnasmb jþghnas mbprfgralaçîf mb prfgralaçîf/ prfgralaçîf / /Larnhf LarnhfAparbnhmf Larnhf Aparbnhmf Artbrf,TaobssaNamao^nebffbr.„Jfomrhoa9Bmhtfrab MhstrhcuhmfraBmunanhfoaj^.A.,3015. Mhstr hcuhmfraBmunanhfoaj^.A.,3015. 314p. 314 p.
H^CO875-52-233-0705-2 1.Ajgfrhtlfs.3 .Prfgralaçîf.H.Ar tbrf,Lar tbrf,Larnhf nhf Aparbnhmf...HH. Aparbnhmf HH.^nebffbr, HH.^nebffbr, ^nebffbr,TaobssaNamao.HHH. TaobssaNamao.HHH. ]ìtujf. NMM400
]ealhrhsLaotfvaohNSC-5/8=81
3015 BmhtfrabMhstrhcuhmf Bmhtfrab MhstrhcuhmfraBmunanhfoaj^.A. Mhstrhcuhmf raBmunanhfoaj^.A. AvbohmaParhs,472„Pa rqubSbshmbonhajIfîfPhza rqubSbshmbonhaj IfîfPhza NBP9540=1-100”Jfomrhoa”PS b-lahj9bmhtfra.bmunanh b-lahj9
[email protected] [email protected] Eflbpagb9ettp9//www.krftfo Eflbpagb9 ettp9//www.krftfo.nfl.cr/ ettp9//www.krftfo .nfl.cr/
^ulárhf Rohmamb1|Jþghnambprfgralaçîf
7
^bçîf1.1-Mbdhohçòbsmbjþghna
8
^bçîf1.3-Bjblbotfsduomalbotahsmbprfgralaçîf ^bçîf1.>-Sbprbsbotaçòbsmbajgfrhtlfs
3= >8
Rohmamb3|Bjblbotfsmbajgfrhtlfs
22
^bçîf3.1-Bxbnuçîfsbqubonhajbbstruturasmbmbnhsîf
27
^bçîf3.3-Bstruturasmbrbpbthçîf
7>
^bçîf3.>-Bstruturambmamfs
83
Rohmamb>|Nfonbhtfsmbprfgralaçîf
11>
^bçîf>.1-HotrfmuçîfàjhoguagblN
11 112 2
^bçîf>.3-BstruturasnfomhnhfoahsbljhoguagblN ^bçîf>.>-BstruturasmbrbpbthçîfbljhoguagblN
1> 1>> > 12 121 1
Rohmamb=|Apjhnaçòbsmbprfgralaçîf Rohmamb=| Apjhnaçòbsmbprfgralaçîf
148
^bçîf=.1-Prfgralaçîfbduoçòbsnflvbtfrbs ^bçîf=.1- Prfgralaçîfbduoçòbsnflvbtfrbs
17 171 1
^bçîf=.3-Prfgralaçîfbduoçòbsnfllatrhzbs
15 155 5
^bçîf=.>-Sbnurshvhmamb
301 30 1
Pajavrasmfautfr Narfajuof! ^biacbl-vhomfàmhsnhpjhoambajgfrhtlfsbjþghnambprfgralaçîf. ^biacbl-vhomfàmhsnhpjhoambajgfrhtlfsb jþghnambprfgralaçîf. È prfvávbj qub vfné iá tboea sb mbparamf nfl ula jhoma nfostruçîf,ulbmhdìnhfdacujfsfqublahsparbnbulafcrambartb, nfostruçîf,ulbmhdìnhfdacujfsfqublahspa rbnbulafcrambartb, nbrtf6TbiafnasfmfLA^P(LusbumbArtbmb^îfPaujf),ulafcra maarquhtbtaJhoaCfCarmh.Bssafcrabonaotapbjfpjaobialbotfb aumánhablqubdfralcasbamfsfsnájnujfslhounhfsfs.]ajfcra bstásuspbosapfrquatrfnfjuoas,jhgamaspfrulavhgaqubpbrnfrrb bstásuspbosapfrquatrfnfjuoas,jhg amaspfrulavhgaqubpbrnfrrb tfmffprèmhf,tblnflfmbstaqubulvîfmbjuzhlprbss hfoaotbb ulpè-mhrbhtfmbfhtflbtrfs. Bod odhl hl,, f qub bs bsssa gra raom omb b fcr craa tb tbl l a vbr br nf nfl l ajg jgf frhtl rhtlf fs b jþghnambprfgralaçîf6Blalcfsfsnasfs(fcrassfdhsthnamasb prf prfgra gralaç laçîf îf), ), sîf sîf obn obnbss bssárh árhfs fs pja pjaobi obial albotf botfs s b ul pbo pbosal salbot botf f jþghnfparaasuanfostruçîf.AsshlnflffprfibtfmfLA^Ptbvb ul ulaa pjaot jaotaa nf nfl l tf tfm mfs fs fs sbu buss ná nájn jnu ujf jfs s para ra qub ub ne nebg bgas asssb af rbsujtamfdhoaj,ulprfgralambnflputamfrp rbsujtamfdhoaj,ulprfgralam bnflputamfrprbnhsasbrpbosamf rbnhsasbrpbosamfb b bstruturamfparaajnaoçarfsbufcibthvf,usaomfnflfhostrulbotf ajþghnambprfgralaçîfpfrlbhfmbajgfrhtlfs ajþghnambprfgralaçîfpfrl bhfmbajgfrhtlfs.. Para f su Para sunbs nbssf sf ma ma nfl nflprb prbbos bosîf îf mbs mbstb tb la latbr tbrhaj haj, , va valfs lfs mhv mhvhmh hmh--jf -jf bl bl qu quat atrf rf uo uohm hmam ambs bs, , na nama ma ul ula a nf nfl l fc fcib ibth thvf vfs s bs bspb pbnì nìdh dhnf nfs s b nf nflp lpbt btéon éonha has s qu qub b rb rbsu sujt jtal al bl bl ap aprb rbom ombr br b assh asshlh lhja jar r a jþ jþgh ghna na, , fs ajgfrhtlfsbfsbjblbotfsmbprfgralaçîf. Oa Oa pr prhl hlbh bhra ra uo uohm hmam amb, b, vf vfné né hr hrá á nf nflp lprb rbbo bomb mbr r b sb sbrá rá na napa paz z mb rbajhzarajþghnambprfgralaçîf.Jþg rbajhzarajþghnambprf gralaçîf.Jþghnabssaqubmbs hnabssaqubmbsbovfjvbrábl bovfjvbrábl vfné,ajuof,eachjhmamb vfné,ajuof, eachjhmambs smbbonfotrarsfjuçòbs mbbonfotrarsfjuçòbsparafs parafslahs lahsmhvbrsfs mhvbrsfs pr prfc fcjb jbla las. s. Ah Ahom oma a ob obst sta a uo uohm hmam amb, b, vf vfné né bs bstu tuma mará rá fs fs nf nfon onbht bhtfs fs mb ajgfrhtlfsbsuasnarantbrìsthnas. Oasbguomauohmamb,vfnéhráaoajhsarbapjhnarfsbjblbotfsmb ajgfrhtlf ajgfrh tlfs; s; taj taj apr aprbom bomhza hzamf mf f nfo nfomu muzhr zhrá á a rbs rbsfjv fjvbr br prf prfcjb cjbla las s mb anfrmfnflasnarantbrìsthnasmaprfgralaçîf. anfrmfnflasnarantbrìsthnasmaprf gralaçîf. Oauohmambtrés,vfnéhránflprbbombrbapjhnarfsnfonbhtfs mb mbprf prfgra grala laçîf çîf uth uthjhz jhzaom aomf fa ajho jhogua guagbl gbl N, N,pa para rahss hssf, f, sbr sbrá áprb prbnhs nhsf f tracajearnflabstruturambnfomhnhfoahsbmbrbpbthçîf.
Bbonbrraomf,auohmambquatrftblnflffcibthvfapjhnara
prfgralaçîfuthjhzaomf9vbtfrbs, prfgralaçî futhjhzaomf9vbtfrbs,latrhzbs,duoçòbsbrbnurshvhmamb. latrhzbs,duoçòbsbrbnurshvhmamb. Asuambmhnaçîfbsbupftbonhajsbrîfdatfrbsmbnhshvfsparanrhar prfgralasqubpfssalsfjunhfoarmhvbrsfsprfcjblasmfsbumhaamha.
Èhssf!]umfluhtfdasnhoaotb! Cfosbstumfsbcfasfrtb!
Rohmamb1
Jþghnambprfgralaçîf Nfovhtbafbstumf
Narf Na rfaju ajuof, of, hoh hohnha nhalfs lfs bss bssa a uohma uohmamb mbap aprbs rbsbota botaomf omf a vf vfné né as mbd bdho hohç hçò òbs bs mb jþ jþg ghn hnaa, fs bjbl bjblbo botf tfss du duom omal albo bota tahs hs para pr prfg fgra rala laçî çîf f b as as rb rbpr prbs bsbo bota taçò çòbs bs mf mfs s ajgf ajgfrh rhtl tlfs fs. . Qu Quao aomf mf dajalfsbljþghna,várhfspbosalbotfsofsvélàlbotb,adhoaj mbnfotas mbnfotas,f ,fofss ofssfmhaè fmhaèrfmb rfmbamfmbjþghna amfmbjþghnab bprfnb prfnbmhlbo mhlbotfs tfs ajgfrìtlhnfs.Tfnémbvbbstarsbpbrguotaomf9nflfa ajgfrìtlhnfs.Tfnémbvbbstarsbpbrgu otaomf9nflfasshl6 sshl6 Hlagho Hlag hob b vf vfné né of of hoì hoình nhf f mf mf sb sbu u mh mha9 a9 vf vfné né pr prbnh bnhsa sa anfr anfrma marr paramarhoìnhfasuastarbdas,nbrtf6Hssfèulajþghnasbguhma mbulanfomhçîf.Apþsbstarnbrtfmbqubanfrmfubmbqub f mh mha a ho hohn hnhf hfu, u, f pr prfs fssb sbgu guhl hlbo botf tf agfr agfra a è ula ula sbqu sbquéo éonha nha mb ajg ajgfrh frhtlf tlfs, s, qua quaomf omf par para a nam nama a tar tarbda bda eav eavbrá brá ula ula rft rfthoa hoa.. Pfr bxblpjf9vfnéhrásbjbvaotar bxblpjf9vfnéhrásb jbvaotar,,nfjfnarf nfjfnarfnehob nehobjf, jf,hraf hrafcaoebhr caoebhrf, f, trfn trfnar ar mb mb rf rfup upa, a, tf tfla lar r na nadè dè b sb sb pr prbp bpar arar ar pa para ra ma mar r ho hoình ìnhf fàs às tarbdas tarbda smf mf mha mha..Pbr Pbrnbc nbcb bqu qub bulajgf ulajgfrht rhtlfè lfèulnfoi ulnfoiuot uotfmb fmb hos hostru truçòb çòbs s qu qub b mbv mbvblf blfs s daz dazbr br pa para ra rba rbajhz jhzar ar ula ula açî açîf6 f6 Pfh Pfhss bo botî tîf, f, tu tumf mf hs hssf sf è lu luht htf f da dasn snhoa hoaot otb b b vfné vfné hrá hrá ap apjhjhna nar r bs bssa sass mbdhohçòbsoaprbparaçîfbprfgralaçîfmbnflputamfrbs. Luhtfcbl,aparthrmbstauohmambvfnéhránflprbbombrb sbrnapazmbrbajhzarajþghnambprfgralaçîfofsbumhaamha. Pa Para ra ta taot otf, f, va valf lfs s af af of ofss ssf f nf nfot otbx bxtf tf mb mb ap aprb rbom omhz hzag agbl bl nflaKrfVBogboearhas,ulablprbsambrboflboaárbamb bogboearhanhvhj,dalfsapfrsuaalpjaárbambatuaçîf,qub mbsbovfjvbmbsmbulshlpjbsprfibtfatèfsblprbbomhlbotfs mbsbovfjvbmbsmbulshlpjbsprfibtfatèfsblprbbom hlbotfs lahsarrfiamfs.Fsbogboebhrfsmablprbsarbajhzalmhvbrsfs nájnujfslatbláthnfsb,oalahfrhamasvbzbs,dazblusfmb najnujamfrasbpjaohjeasbjbtrýohnas. Tfné, Tfné , pf pfrt rtam amfr fr mb mb ul ul pb pbos osal albo botf tf nf nflp lput utan anhf hfoa oaj,j, df dfhh nfotratamf para dazbr partb mbstb thlb mb bogboebhrfs, pfrèl,ulalhssîfdfhmamapbjfsbugbstfrmhrbtf9nrharul pbosal pbos albo botf tf jþ jþgh ghnf nf pa para ra qu qub b fs fs bogb bogboe oebh bhrf rfs s du dutu tura ralb lbot otb b
R1-Jþghnambprfgralaçîf prfgralaçîf R1-Jþghnamb
7
pfssalp prrfgra ral larf fsssb sbus vbrs brsfsn nu fsl laatbl t nfs. Blhssîfmamaèlhssîfqubmbvbrásbrnul Blhssîfmamaèlhssîf qubmbvbrásbrnulprhma! prhma! Of Of pr prhl hlbh bhrf rf lf lflb lbot otf, f, vfné vfné mb mbvb vbrá rá trac tracaj ajea ear r nf nfl l sbus sbus nfjbgasbogboebhrfsfusfmajþghnaparasfjuçîfmbprfcjblas, nfjbgasbogboebhrfsfusfmajþghnaparasfjuçîf mbprfcjblas, aapjhnaçîfmajþghnaofmhaamhabfranhfnìohfjþghnf. Bl sbguhma, vfné hrá aprbsbotar as mbdhohçòbs b a
hvarhávbhs,nfostaotbsbsbusfpbramfrbs. lpfrtãonha mfs ajgfrhtlfs, asshl nf nfl lf a uthjhzaçîf mb Para dhoajhzar a lhssîf, vfné mbhxará mb dfrla njara nf nflf lf du duon onhf hfoa oa a jhog jhogua uagb gbl l oa oatu tura raj,j, as as nara narantb ntbrì rìst sthn hnas as mf mfss djuxfgralas,psbumfnþmhgfsbapjhnarathvhmambspráthnaspara sfjuçòbsmbprfcjblasmbjþghna. Pfhscbl,atbotb-sbaf Pfhscbl,atbotb-sbafsnfonbhtfsqubsbrî snfonbhtfsqubsbrîfaprbsbotamfs faprbsbotamfs bsbiasblprbbxpjframfrmbnfoebnhlbotfs. Cfasfrtbbþthlfsbstumfs!
5
R1-Jþghnamb R1-Jþghnambprfgralaçîf prfgralaçîf
.
Mbdhohçòbsmbjþghna Mhájfgfacbrtf Narfajuof, A sht shtuaç uaçîf îf-pr -prfcj fcjbla bla mbs mbsta tasbç sbçîf îf tbl tbl pf pfr r fc fcibth ibthvf vf tra tracaj cajear ear f ranhfnìohfjþghnfmbsbovfjvhmfmuraotbfmbsbovfjvhlbotfmf‚Oîf pfmbdajtar“.AKrfVBogboearhas,ulablprbsambrboflboaárba mabogboearha,anacfumbnfotratá-jf,btîfcrbvbiájebdfhmama ulalhssîf9aiumarfssbusnfjbgasbogboebhrfsabonfotrarula dfrlaqubpfssaaiumá-jfsoabxbnuçîfmfsnájnujfslatbláthnfs mbsbovfjvhmfsoaslahsmhvbrsasárbasmabogboearha.Parahssf,vfné mbvbrámbsbovf mbvbrámbsbovfjvbrnflfs jvbrnflfsbogboebhrfsfpbos bogboebhrfsfpbosalbotfjþghnf albotfjþghnfpara para fmbsbovfjvhlbotfmb sfdtwarbs sfdtwarbsparasfjuçòbsmfsnájnujfs. Nf Nflf lf pf pfotf otf mb pa parth rthma, ma, vf vfné né mbv mbvbrá brá tra traca cajea jear r f pbo pbosal salbot botf f jþghnfmfsnfjbgasbogboebhrfs.Parataj,tbrámbaiumá-jfsarbsfjvbr jþghnfmfsnfjbgasbogboebhrfs.Parataj,tbrámb aiumá-jfsarbsfjvbr fprfcjblabonfotramfblulmfssbtfrbsmablprbsa9ulrfcý tbla tbladuoçîfmb duoçîfmbblphjear blphjearlatbrhahs latbrhahsnfl nflas assbguhotb sbguhotbs snarantb narantbrìsthnas9 rìsthnas9 -Fslatbrhahslahspbsamfsoîfpfmbldhnarsfcrbfslatbrhahs lahsjbvbs. - As phjeas (P1 P1,, P3 b P>) mbvbl bl tbr of of láxhlf > dhjbh bhrras mb latbrhahs. -Fgajpîfmhspòbapboasmb>jfnahs(A,CbN)mblfvhlbotaçòbs mfslatbrhahs,fombmbvbltraoshtarbdhnarmhspfstfsofùjthlfjfnaj (N)parafprþxhlfprfnbssfmbjfg (N)parafprþxhlf prfnbssfmbjfgìsthnamablprbsa ìsthnamablprbsa.. Aprfpfsta,botîf,ènrharulalaobhrambfthlhzarftracajef mfrfcýparaqubbjbrbajhzbatarbdauthjhzaomfalbofrquaothmamb pf pfss ssìv ìvbj bj mb mb pa pass ssfs fs b, b, nf nfos osbq bqub ubot otbl blbo botb tb, , ul ul lb lbof ofr r tb tblp lpf f oa bxbnuçîfmfprfnbssf.
R1-Jþghnambprfgralaçîf prfgralaçîf R1-Jþghnamb
Dhgura1.1|Sfcþthnfvbtfrláquhoa
8
A
C
N
Dfotb9 Dfotb 9 Drbbphk. Drbbphk. Mhspf Mhspfoìvb oìvbj j bl9 bl9 :aerbd0 Anbssf bl9>0 sbt.30 sbt.3017. 17.
13
R1-Jþghnambprfgralaçîf R1-Jþghnamb prfgralaçîf
Pfrlbhfmbssbranhfnìohffrhghofu-sbaÁjgbcrambCffjbfuÁjgbcra Cffjbaoa.Èsachmfqubbssbthpfmbájgbcraèblcasamfoajþghna choárha.Nflfasshl6Ajþgh choárha.Nflf asshl6Ajþghnachoárha asshl6Ajþgh nachoárhapfssuhmuas nachoárha pfssuhmuas rbprbsbotat rbprbsbotathvhmambs, hvhmambs,
‚dajsf“b‚vbrmambhrf“fu‚0“b‚1“. Blrbjaçîfafssbusfpbramfrbs,sîfm Blrbjaçîfafssbusfpbram frbs,sîfmbdhohmfsAOM,FSbOF bdhohmfsAOM,FSbOF], ], fusbia,B,FRbOÎF,fomb(‚B“)èanfoiuoçîf,(‚FR“),amhsiuoçîf b(OÎF),aobgaçîf. Bxpjhnaomflbjefr,vbrblfsqub9
- -Nfoiuoçîf(‚B“)„ Nfoiuoçîf(‚B“)„sflbotbsb sflbotbsbas asmuas muasrbprbsb rbprbsbotathvh otathvhmambsdfrbl mambsdfrbl vbrmambhras,arbspfstasbrávbrmambhra. -Mhsiuoçîf(‚FR“)„^bpbjflbofsulambsuasrbprbsbotathvhma mbs dfrvbrmambhra,arbspfstasbrávbrmambhra. - Obgaçîf (OÎF) „ Quaomf ula rbprbsbotathvhmamb dfr vbrmambhra,arbspfstasbrádajsa,bquaomfularbprbsbotathvhmamb dfrdajsa,arbspfstasbrávbrmambhra. Parabotbombrlbjefrbstajþghnavalfsaoajhsara]acbja1.19 Parabotbombrlbjefrbstajþghnavalfsaoa jhsara]acbja1.19 ]acbja1.1|]acbjaTbrmamb„‚vbrmambhrf“fu‚dajsf“ ]acbja1.1|]acbjaTbrmamb„ ‚vbrmambhrf“fu‚dajsf“ A
C
A (‚B“) C
A (‚FR“) C
OÎF A
OÎF C
Tbrmamb
Tbrmamb
Tbrmamb
Tbrmamb
Dajsf
Dajsf
Tbrmamb
Dajsf
Dajsf
Tbrmamb
Dajsf
Tbrmamb
Dajsf
Tbrmamb
Dajsf
Tbrmamb
Tbrmamb
Dajsf
Dajsf
Dajsf
Dajsf
Dajsf
Tbrmamb
Tbrmamb
Dfotb9bjacframapbjfautfr.
Agfravalfsapjhnaratacbjavbrmambusaomfoùlbrfschoárhfs, nfodfrlblfstraa]acbja1.39 ]acbja1.3|]acbjavbrmamb„‚0“fu‚1“ A
C
A (‚B“) C
A (‚FR“) C
OÎF A
OÎF C
1
1
1
1
0
0
1 0
0 1
0 0
1 1
0 1
1 0
0
0
0
0
1
1
Dfotb9bjacframapbjfautfr.
Tbrblfsagfraajgulasapjhnaçòbs Tbrblfsagfraajg ulasapjhnaçòbs,nflfhjustraa]acbja1.>9 ,nflfhjustraa]acbja1.>9 R1-Jþghnambprfgralaçîf prfgralaçîf R1-Jþghnamb
]acbja1.>|Apjhnaçîfmatacbjavbrmamb Duoçîf
Fpbramfr
Bxblpjf
Sbsujtamf
Obgaçîf
OÎF
OÎF (4?>)
Dajsf
1>
Nfo i iu uoçîf
B
(2?1) B (7?5)
Dajsf
Mhs i iu uoçîf
FR
(5?8) F R (8 ? 5)
Tbrmambhrf
Dfotb9bjacframapbjfautfr.
Talfspbosaroanfostruçîfmbtrhãogujf,bparatajnfostruçîf oîfpfmblfsusarquajqubrlbmhma,fusbia,vfnémbvbfcbmbnbr àssbguhotbsnfomhçòbs9 -Oanfostruçîfmbultrhãogujfèfcrhgatþrhfqubalbmhmamb quajqubrulmfsjamfssbialbofrqubasflamaslbmhmasmfs futrfsmfhsjamfsblahfrqubfvajfracsfjutfmamhdbrboçabotrb bssaslbmhmas. Ftbstbjþghnfdhnarha9 (a:c+n)B(c:a+n)B(n:a+c)
Ajtbroathvalbotb,ftbstbpfmbrhasbr9 (a?|c-n|)B(c?|a-n|)B(n?|a-c|)
Fcs.9Dfraluthjhzamfslþmujfs(‚|...|“)paraqubasuctraçîfmfs jamfsoîfsbiaulvajfrobgathvf. AoajhsbftrhãogujfmaDhgura1.=9 Dhgura1.=|]rhãogujfrbtãogujf
c
a
n
Dfotb9bjacframapbjfautfr.
Fomb9 a. Bsnfjebr Bsnfjebrf flfmbjf. f lfmbjf. Bsnfjebra Bsnfjebr a alftfrhzaçîf. lftfrhzaçîf. =.
Bsnfjebra a anfr. nfr. 2. Bsnfjebr Obgfnharadfrlamb dfrlambpagalbotf. dfrlamb pagalbotf. 4. Obgfnhara Paga gar. r. 7. Pa Sbthramamf mfnarrf. mf narrf. 5. Sbthrama Pfmb-sb,talcèl,nrharulajgfrhtl Pfmb-sb,talcèl ,nrharulajgfrhtlfparafsp fparafsprfnbmhlbotfsmb rfnbmhlbotfsmb drhtarulchdb9 R1-Jþghnambprfgralaçîf R1-Jþghnamb prfgralaçîf 32
1. Pbgaradrhghmbhra,a Pbgaradrhghmbhra,anarob,ftblpbrf narob,ftblpbrfbfþjbf. narob,ftblpbrf bfþjbf. Nfjfnarftblpbrfoa tblpbrfoanarob. tblpbrfoa narob. 3. Nfjfnarf
Anbombrf fdfgf. f dfgf. >. Anbombr Nfjfnaradrhghmbhraof drhghmbhraofdfgf. drhghmbhraof dfgf. =. Nfjfnara Nfjfnarfþjbfoa þjbfoadrhghmbhra. þjbfoa drhghmbhra. 2. Nfjfnarf Aguarmarfaqubnhlbotfmf aqubnhlbotfmfþjbf. aqubnhlbotfmf þjbf. 4. Aguarmarf 7. Nfjfnara Nfjfnaranaroboa naroboadrhghmbhra. naroboa drhghmbhra. 5. Bsnfjebrf Bsnfjebrfpfotfma pfotfmanarob. pfotfma narob.
8. Sbthrar a narob ma drh hmbhra
. Apagarf fdfgf. f dfgf. 10. Apagar
uaomf bsta atho hr f
Pbrn Pb rnbc bcaa qub oî oîf f bx bxhs hstb tb sflb lbot otb b ula la df dfrl rla a mb rb rbaj ajhz hzaar ul ajgfrhtlf,vfnépfmbnrharfutrasdfrlasbsbqu ajgfrhtlf,vfnépfmbnrharfutra sdfrlasbsbquéonhasparafctbrf éonhasparafctbrf lbslfrbsujtamf. Parambsnrbvbrfduonhfoalbotfmbulajgfrhtlf,vfnépfmb usarnflfcasbarbprbsbotaçîfmbduonhfoalbotfmfnflputamfr, nfodfrlblfstraaDhgura1.4. Dhgura1.4|Sbprbsbotaçîfmfduonhfoalbotfmfnflputamfr
Dfotb9bjacframapbjfautfr.
Mb anfrmf nfl bssb lfmbjf, as botramas mfs ajgfrhtlfs sî sîf f na nara rant ntbr brhz hzam amas as pb pbjf jfs s bj bjbl blbot botfs fs (m (mam amfs fs) ) a sb sbrb rbl l df dfro robn bnhm hmfs fs ho hohn hnha hajl jlbo botb tb; ; f pr prfn fnbs bssa salb lbot otf f sb sbrá rá mb mbdho dhohm hmf f pb pbja ja bx bxbn bnuç uçîf îf mas mas aç açòb òbs s sf sfcr crb b fs fs ma mamf mfs s mb mb bo botr tram ama a b sf sfcr crb b ma mamf mfs s ho hotb tbrl rlbm bmhá hárh rhfs fs gbramfsmuraotbbstabxbnuçîf,basaìmasbráasfjuçîfmfprfcjbla gbramfsmuraotbbstabxbnuçîf,bas aìmasbráasfjuçîfmfprfcjbla fuffcibthvfathoghmf. Narfajuof,nebgfuflflbotfmbbotbombrasnarantbrìsthnas ma mas slf lfmhd mhdhna hnaçòb çòbs sb bas as sua suas sap apjhn jhnaçò açòbs bsof ofmbs mbsbov bovfjv fjvhlb hlbotf otf mb mbul ul ajgfrhtlf. Tarhávbhs
Pbosarblvarhávbhsèpbosarblajgfqubpfmbsfdrbrvarhaçòbs, nbrtf6Brbajlbotbèhssflbslf!^bguomfJfpbsbGarnha(3003),ula nbrtf6Brbajlbotbèhssflbslf!^bguomfJfpbs bGarnha(3003),ula 34
R1-Jþghnambprfgralaçîf R1-Jþghnamb prfgralaçîf
varhávbjè uljfnajqub jfnajqubarlazboaul arlazboaulnfotbùmfbspbnìdhn nfotbùmfbspbnìdhnf f varhávbjènfoshmbr nfoshmbrama amaul oalblþrhaprhonhpa oalblþrhaprhon hpajjmf mf nfl nflpu putam tamfr. fr. F Fofl oflb bvbl vbl mf mf dat datf fmbqub mbqub bssbjfnajpfmbnfotbrvajfrbsmhdbrbotbs,a‚gfstfmfdrbgués“,hstfè, mfprfgralamfr,mfusuárhfmfprfgrala,fumfprfgralablsh.Bl futraspajavras,fsvajfrbspfmblvarharofjfnajmbarlazboalbotf, pfrhssfbssbsjfnahsrbnbcbrblfoflbmb‚varhávbhs“. Pbsquhsblahs
Ofshtbasbguhrvfnétbráafpfrtuohmambmbrbdfrçarfsbunfoebnhl Ofshtbasbguhrvfnétbráa fpfrtuohmambmbrbdfrçarfsbunfoebnhlbotf fpfrtuohmambmbrbdfrçarfsbunfoebnhl botf sfcrb sfcr b aj ajgf gfrh rhttlfs. s. PBS PBSBHSA BHSA, , Ao Aoa a Pa Pauj uja. a. F qub è ajgfrhtlf. 3008.
Mhspfoìvbj Mhspf oìvbj bl9 :ettps9//ww :ettps9//www.tb w.tbnluomf nluomf.nfl. .nfl.cr/prf cr/prfgralan gralanaf/30 af/3053-f 53-f-qub-b-a gfr lf-. l ?. nbssfbl9 fu . .
Pa Para ra dh dhxa xar r f aprb aprbom omhz hzam amf f sfcr sfcrb b varh varháv ávbh bhs s b nfos nfosta taot otbs bs as assh shst sta a f vì vìmb mbf f mh mhsp spfo foìvb ìvbjj bl bl9 9 :ett :ettps ps9/ 9//w /www ww.y .yfu futu tucb cb.n .nfl fl/w /wat atne ne6v 6v0,33),(30).
R1-Jþghnambprfgralaçîf prfgralaçîf R1-Jþghnamb
Tarhávbhsmf smfthpfjhtbraj thpfjhtbraj Tarhávbhsmf
^îf varhávbhs qub arlazboal jbtras, oùlbrfs b sìlcfjfs bsp bspbnh bnhahs ahs.. ^î ^îf f nea neala lamfs mfs mb nar narant antbrb brbs s fu, fu, bl hog hogjés jés, , str strhog hog.. Pfr bxblpjf9(Larnhf,Karhoa>5,3017). Tarhávbhsmf Tarhávbh smfthpfjþghnf smf thpfjþghnf
^îfvarhávbhsqubpfmblassulhrulvajfrvbrmambhrffudajsf, pfrbxblpjf9FNarjfstbldhjef6^hlfuOîf. ANarfjèbogboebhra6TbrmambhrffuDajsf. Tarhávbhsmf Tarhávbh smfthpfnfostaotb smf thpfnfostaotb
37
^bguomfLaozaof(3000),ulanfostaotbpfmbsbrmbdhohmapfr tu faqu fqub xffubst vb ,fusb a,vfn atr u ulva frpara aqubjavarhávbjbbjaoîfsfdrbajtbraçîfmuraotbnbrtfprfnbmhlbotf. aqubjavarhávbjbbjaoîfsfdrbajtbraçîfmu raotbnbrtfprfnbmhlbotf.
PfmblfsnhtarnflfbxblpjffvajfrmbPh,1=,fpbrnbotua Pfmblfsnhtarnflfbxblpjffvajf rmbPh,1=,fpbrnbotuajj mbmbsnfotfmfHO^^,>) < > b jbvamf a > (>>)
ram(x)
Samhnhaçîf
lfm
Sbstf m a m hvhsîf
10 l fm > rbsujta b l 1
Mhv
Qufnhbotb m a m hvhsîf
12 m hv 2 rbsujta b l >
X + x, 7 + 5
( )
ram(32)ª
*, /, mhv b lfm
=ª
+b„
Dfotb9DfrcbjjfobbBcbrspanebr(3000, Dfotb9DfrcbjjfobbBcbrspane br(3000,p.30). p.30).
Quaomffsfpbramfrbsbsthvbrblmbotrfmalbslaprhfrhmamb, vfné vf né mb mbvb vbrá rá ho hohn hnha har r a sf sfju juçî çîf f ma ma bx bxpr prbs bssî sîf f ma ma bs bsqu qubr brma ma pa para ra a mhrbhta,pfrbxblpjf9 10+=„5 1=„5 4 ]u ]umf mf cbl cbl at atè è aq aquh uh6 6 Ag Agfr fra a vf vfné né va vahh nf nfoe oebn bnbr br fs fs fp fpbra bramf mfrb rbss jþghnfsbrbjanhfoahs. Fpbramfrbsjþghnfs
Na Narf rf ajuo ajuof, f, oa oa pr prhl hlbh bhra ra sb sbçî çîf f mb mbst sta a uo uohm hmam amb b tr trac acaj ajea ealf lfs s a jþghnacffjbaoa.^bguhomfbstblbslfranhfnìohf,vfnéuthjhzaráfs fpbramfrbsjþghnfspararbprbsbotarshtuaçòbsquboî fsîftratávbhs pfrfpbramfrbsarhtlèt pfrfpbramfrbs arhtlèthnfs;vbia hnfs;vbiaoa]acbja oa]acbja1.8fs 1.8fsfpbramfrbs fpbramfrbsjþghnfs uthjhzamfsofsajgfrhtlfs. ]acbja1.8|Fpbramfrbsjþghnfs Fpbramfrbs
Fpbramfrbs
Oîf
Obgaçîf
B
Nfo i iu uoçîf
FR
Mhs i iu uoçîf
Dfotb9amaptamamb9Dfrcbjjf Dfotb9amaptamamb9DfrcbjjfobbBcbrspane obbBcbrspanebr(3000). br(3000).
R1-Jþghnambprfgralaçîf prfgralaçîf R1-Jþghnamb
Agfravbiaatacbjavbrmambmfsfpbramfrbsjþghnfs9 ]acbja1.10|]acbjavbrmamb A
C
A (‚B“) C
A (‚FR“) C
OÎF A
OÎF C
Tbrmamb
Tbrmamb
Tbrmamb
Tbrmamb
Dajsf
Dajsf
Tbrmamb
Dajsf
Dajsf
Tbrmamb
Dajsf
Tbrmamb
Dajsf
Tbrmamb
Dajsf
Tbrmamb
Tbrmamb
Dajsf
Dajsf
Dajsf
Dajsf
Dajsf
Tbrmamb
Tbrmamb
Dfotb9bjacframapbjfautfr.
Tbiafbxblpjfasbguhr9 ^bftbrrbofdfrpjaof bmbotrfmbulnfomflìohf,nfostrufa mbotrfmbulnfomflìohf,nfostrufanasa. nasa.
38
A br uo uota taè è9 9Qu Quao aomf mfv vfu fun nfo fost stru ruhr hra ana nasa sa66 ^flbotbsbftbrrbofdfrpjaof bmbotrfmbulnfomflìohf. Agfra9 ^bftbrrbofdfrpjaof fumbotrfmbulnfomflìohf,nfostruf anasa. Bagfra6Quaomfvfnénfostrþhanasa6 Blalcfsfsnasfs,sbftbrrbofdfrpjaofvfnénfostrþhanasa fusbdfrmbotrfmbulnfomflìohf.
Fpbramfrbsrbjanhfoahs
^bguomf Dfrcbjjfob b Bcbrs rsp panebr (3000), fs fpbramfrbs rbjanhfoahssîfuthjhzamfsoarbajhzaçîfmbnflparaçîfbotrbvajfrbs mf mf lb lbsl slf f thpf thpf pr prhl hlht hthv hvf, f, fu fu sb sbia ia, , pf pfmb mbl l sbr sbr rbp rbprb rbsb sbot otam amfs fs pf pfrr varhávbhs,nfostaotbsbatèlbslfblbxprbssòbsarhtlèthnas varhávbhs,nfostaotbsbatèlbslfbl bxprbssòbsarhtlèthnas.. Tbiaoa]acbja1.11fsfpbramfrbsrbjanhfoahs. ]acbja1.11|Fpbramfrbsrbjanhfoahs ]acbja1.11| Fpbramfrbsrbjanhfoahs Fpbramfrbs
Duoçîf
Bxblpjfs
<
Hguaj
A:2, x:y
?<
Lahfr fu hgu aj
x?. >. Bl Bl tb tbrn rnbh bhrf rf,, fs fs fp fpbra bramf mfrb rbs s rbj rbjan anhf hfoa oahs hs,, qu qub b fc fcbm bmbn bnbl bl af afss paréotbsbsb,oaauséonhambssbs,afpbraçîfèrbajhzamama bsqubrmaparaamhrbhta; =. B bl bl quartf tf,, fs fpbramfrbs bs jþghnfs, qub fcbmbnbl afs paréotbsbsb,oaauséonhambssbs,afpbraçîfèrbajhzamama bsqubrmaparaamhrbhta. Dhqu Dhqubl bl at atbo botf tfs s pa para ra bs bssa sas s rb rbgr gras as cá cásh shna nas, s, pf pfhs hs bj bjas as sb sbrî rîf f mb graombvajhap graombvajhaparaasfjuçîf araasfjuçîfmfsprfcjbla mfsprfcjblas. s.
Atrhcuhçîf
Atrh At rhcu cuhç hçîf îf pf pfmb mb sb sbr r ut uthjhjhz hzam ama a bl bl aj ajgf gfrh rhtl tlfs fs pa para ra mb mbtb tbrl rlho hoar ar ulvajfraulavarhávbjfuatèlbslfparaulabxprbssîf,bè rbprbsbotamapfrulasbta( A ←7
←
).
^hgohdhnaqub Atblfvajfr 7(fu Arbnbcbfvajfr 7).Hlpfrtaotb! Asvarhávbhsmbvblsbrmflbslfthpfmfvajfrasbratrhcuìmf,fu sbia,ulavarhávbjmfthpfhotbhrfs sbia,ulava rhávbjmfthpfhotbhrfsþrbnbcbulvajfrmf þrbnbcbulvajfrmfthpfhotbhrf. thpfhotbhrf. R1-Jþghnambprfgralaçîf prfgralaçîf >1 R1-Jþghnamb
Nflbotárhfs
Blajguosnas Blajguosnasfs,vfnépf fs,vfnépfmbnrharnflbotárhfs(bxpjhna mbnrharnflbotárhfs(bxpjhnaçòbs)oas çòbs)oas jhoeasmb jhoeas mbnfla nflaomfs omfs mfsajgfrh mfsajgfrhtlfs tlfs uthjh uthjhzaomf zaomf (//), (//), jblcraomf jblcraomf qub fqubbsthvbroadrbotbmas‚//“oîfsbráhotbrprbtamfpbjfajgfrhtlf. Botramabsaìma
Pfmblfsmbsnrbvbrfssbguhotbsnflaomfsmbbotramabs Pfmblfsmbsnrbvbrfssbguhotbsnfl aomfsmbbotramabsaìma9 aìma9 Nfla Nf laom omf f ‚bsnrbva“ „ uthjh thjhza zamf mf para ra lfstra trar ajg jgf f oa oa tb tbja ja mf nflputamfr,nfoebnhmfnflfnfl nflputamf r,nfoebnhmfnflfnflaomfmbsaìm aomfmbsaìma. a. Nflao Nf laomf mf ‚jbha“ „ ut uthjhjhz hzam amf f para para ar arla lazb zboa oar r fs fs ma mamf mfs s mb mb ul ulaa varhávbj,talcèlnfoebnhmfnflfnflaomfmbbotrama varhávbj,talcèlnfoebnhmfnflfnf laomfmbbotrama.. Luhtfcbl,agfraqubvfnénfoebnbasmbdhohçòbsbapjhnaçòbs
paraasvarhávbhs,nfostaotbsbfpbramfrbs,valfstracajearajguos ajgfrhtlfsoasuabstruturasbqubonhaj. Jblcraomf qub a bstrutura sbqubonhaj mb ul ajgfrhtlf nfrrbspfombàdfrlajhobarmbbxbnuçîf. Nfoebçaagfraabstruturamfajgfrhtlf9
Hoìnhf//hoìnhfm Hoìnhf//hoìnhfmfajgfrhtlf fajgfrhtlffupartb fupartbmbcjfnf mbcjfnf Tar//mbnjaraçîfmasvarhávbhs. .... ....//nfotbùmfmfajgfrhtlf. .... .... dhl.//dhoajhzafajgfrhtlf. Tbia Tb ia f aj ajgf gfrht rhtlf lf a sb sbgu guhr hr, , qu qub b na najn jnuj uja a a lè lèmh mha a ar arht htlè lèth thna na mf mfss ajuofsmam ajuofsmamhsnhpjhoambajgfrhtl hsnhpjhoambajgfrhtlfbjþghnambprfg fbjþghnambprfgralaçîf. ralaçîf. hoìnhf9//hoình //hoìnhfmf //hoình fmfajgfrhtlf fmf ajgfrhtlf 1. hoìnhf9 rbaj9ofta1,ofta3,vajfrVmaVlèmha;// 3,vajfrVmaVlèmha;//varhávbhsmfth 3,vajfrVmaVlèmha;// varhávbhsmfthpfrbaj. varhávbhsmfth pfrbaj. 3. rbaj9ofta1,ofta >. narantbrb9oflb; narantbrb9oflb;//varhávbj //varhávbjmfthpf //varhávbj mfthpfnarantbrb. mfthpf narantbrb. =. bs bsnr nrbv bva9 a9 (‚ (‚Mh Mhgh ghtb tb f of oflb lb mf mf aj ajuo uof“ f“); ); nf nfla laom omf fmb mb sa saìm ìma, a, f
nfotbùmfmftbxtfsahráoatbjamfnflputamfr. jbha ha9 9 (o (ofl flb) b); ; // // sb sbrá rá ar arla lazb zboa oamf mf f nf nfot otbù bùmf mf ma ma va varh rháv ávbj bj 2. jb
>3
R1-Jþghnambprfgralaçîf prfgralaçîf R1-Jþghnamb
‚oflb“oalblþrhamfnflputamfr. 4.bsnrbva9(‚MhghtbaPrhlbhraOfta“);//nflaomfmbsaìma,f
nfotbùmfmftbxtfsahráoatbjamfnflputamfr. jbha ha9 9 (o (oft fta a 1); 1); // // sb sbrá rá ar arla lazb zboa oamf mf f nfot nfotbù bùmf mf ma ma va varh rháv ávbj bj 7. jb "ofta1"oalblþrhamfnflputamfr. bsnrbv rbva9 a9 (‚M (‚Mhgh hghtb tba a^bg ^bguom uoma aOft Ofta“) a“); ;// // nflaom nflaomf fmb mbsa saìma ìma, ,f f 5. bsn nfotbùmfmftbxtfsahráoatbjamfnflputamfr. jbha ha9 9 (o (oft fta a 3) 3); ; // // sb sbrá rá ar arla lazb zboa oamf mf f nfot nfotbù bùmf mf ma ma va varh rháv ávbj bj 8. jb ‚ofta3“oalblþrhamfnflputamfr. TajfrV frVma maVlè Vlèmha mha ← (ofta 1 + ofta 3) / 3 // obstb nasf è 10. Taj atrhcuìmffrbsujtamfmabxprbssîf atrhcuìmff rbsujtamfmabxprbssîf ‚(ofta1 ‚(ofta1+ofta +ofta3)/ +ofta 3)/3 3)/ 3 ‚ paraavarhávbj‚lèmha“
11. Bsnrbva9 (‚A lèm ha mf ajuof è9“; vajfrVmaVlèmha); //
obs b nasf a rasb ‚ l a f a uof 9“ sa r oa b a f nflputam nflpu tamfr frb b f frbs rbsujt ujtam amf f arl arlazb azboam oamf foa oava varhá rhávbj vbj ‚lè ‚lèmha mha““ sbráaprbsbotamfjfgfàdrbotbmadrasb.
13. dhl.
Tbiaagfranf Tbiaagfranflfdhnafajgfrhtlf lfdhnafajgfrhtlfsblfsnflbotárhf sblfsnflbotárhfs9 s9 hoìnhf; rbaj9ofta1,ofta3,vajfrVmaVlèmha; narantbrb9oflb; bsnrbva9(‚Mhghtbfoflbmfajuof“); jbha9(oflb); bsnrbva9(‚MhghtbaPrhlbhraOfta“); jbha9(ofta1); bsnrbva9(‚Mhghtba^bguomaOfta“); jbha9(ofta3); vajfrVmaVlèmha (ofta (ofta1 1+ 1+ +ofta ofta3) ofta 3)/ 3) /3; /3; Bsnrbva9(‚Alèmhamfajuofè9“;vajfrVmaVlèmha); dhl.
R1-Jþghnambprfgralaçîf prfgralaçîf >> R1-Jþghnamb
Sbdjhta Quaomfdfrmbdhohrulavarhávbj, nuhmamfoa nuhmamfoaeframa eframasuahmbothdhnaçîf! suahmbothdhnaçîf! Jblcr blcrbb-sb sb9 9 vf vfné né oî oîf f pfmb pfmb ho hohn hnha har r ul ula a va varh rháv ávbj bj nf nfl l na nara rant ntbr brbs bs bspbnhahs(è,ç,î,&,%,#,@,*,-,botrbfutrfs)bxnbtf‚V“( Rombrjhob).).
Pbosaomfobssarbgra,quajadfrlanfrrbtaparambdhohrulavarhávbj blulajgfrhtlf6
Parabonbrrarbstasbçîfmfjhvrf,valfshovbrtbrfsvajfrbsmb muasvarhávbhsblulajgfrhtlf. Hoìnhf9 Hotbhrf9A,C,HOTBS]B;//mbdhobasvarhávbhs bsnrbva(‚ajgfrhtlfhovbrtbrvajfrbs“);//lfstraradrasboa
tbja,nflaomfmbsaìma ; r u paraavar vb C ←300;//Atrhcuh300paraavarhávbjC HOTBS]B ←A;//atrhcuhfvajfrmavarhávbjAparaavarhávbj HOTBS]B A ←C;//atrhcuhfv C;//atrhcuhfvajfrmavarhá ajfrmavarhávbjCparavarháv vbjCparavarhávbjA bjA
←
C ←HOTBS]B;//atrhcuhfvajfrmavarháv HOTBS]B;//atrhcuhfvajfrmavarhávbjHOTBS]B bjHOTBS]Bparaa paraa varhávbjC bsnrbva("FvajfrmbAagfraè9",A);//Lfstraroa bsnrbva("FvajfrmbAagfraè9",A); //Lfstraroatbjafofvf tbjafofvf vajfrmavarhávbjA bsnrbva("FvajfrmbCagfraè9",C);//Lfstraroatbjafofvf vajfrmavarhávbjC dhl. Bxblpjhdhnaomf
Tbiaagfraulajgfrhtlfqubrbajhzafnájnujfmbulasaìmambmamfs9 AjgfrhtlfsaìmaVmbVmamfs Tar prbVuoht,prbVtft9rbaj quaot9hotbhrf Hoìnhf
>=
R1-Jþghnambprfgralaçîf prfgralaçîf R1-Jþghnamb
prbVuoht95
R1-Jþghnambprfgralaçîf prfgralaçîf R1-Jþghnamb
^bçîf1.> Sbprbsbotaçòbsmbajgfrhtlfs Mhájfgfacbrtf Na Narf rf aju ajuof, of, nebg nebgal alfs fs à tbr tbrnbhr nbhra a sbç sbçîf îf mbs mbsta ta uohma uohmamb. mb. Ofs Ofssf sf pr prho honh nhp paj nf nfl lprf rfl lhs hsssf è qub vf vfné né nf nfoe oebç bçaa as na nara rant ntbr brìs ìsth thna nass mb ul ula a jho jhogu guag agbl bl oat oatura uraj, j, f mbs mbsbov bovfjv fjvhlb hlbotf otf mfs mfs mha mhagra grala las s mb cjfnfs(djuxfgrala cjfnfs(djuxfgralas)basapjhnaçòbsblpsbumf s)basapjhnaçòbsblpsbumfnþmhgfs. nþmhgfs. Pfhscbl,pbosbqubvfnémbnhmhunfostruhrulanasabprbnhsfu lfstrarparafarquhtbtffqubvfnépbosfunflfana sahmbajoasua nfo nfonbpç nbpçîf, îf,b bbsta bstasbrh sbrha aa ajho jhoguagb guagbl loatu oaturaj. raj.F Farqu arqu arquhtbtfmbsboefuas htbtfmbsboefuas
narantbrìsthnasmasuanasab,obssbnasf,trata sbmbuldjuxfgrala fuatèlbslfmbulpsbumfnþmhgf.Apþsbssbsprfnbmhlbotfs,a nasasbrhanfostruìma,bsbrharbajhzama nasasbrhanfostruìm a,bsbrharbajhzamaaprfgrala aprfgralaçîf. çîf. Sbsgataomffnfotbxtfmbaprbomhzagblmasbçîfaotbrhfr,f sbu sbu gbs gbstfr tfr bst bstá á luh luhtf tf sat sathsd hsdbht bhtf f nfl nfl f sbu sbu mbs mbsblp blpboe boef f pbr pbraot aotb b
sbusnfjbgasbogboebhrfs,bbstáluhtfnjarfqubfpbosalbotf nflputanhfoajpbrlbhaabquhpb. Agfra è f lflbotf mb vfné né aprbsbotar afs sbus nfjbgas as as mhdb mhdbrb rbot otbs bs df dfrl rlas as mb mb bs bstr trut utur urar ar as as hmbh hmbhas as mbot mbotrf rf mf mf nf nfot otbx bxtf tf nf nflp lput utan anhf hfoa oaj,j, fu fu sb sbia ia, , na nara rant ntbr brhz hzar ar a ut uthjhjhz hzaç açîf îf ma ma jhog jhogua uagb gbl l oaturaj,nrharbapjhnarfdjuxfgralabfspsbumfnþmhgfsb,pfrdhl, rbajhzarathvhmambsparasfjuçòbsmbprfcjblasjþghnfs. ^bg bgu uho hom mf bs bsssa jhjhoe oeaa mb mb pbo bosa sal lbo botf tf,, vfné né pr prf fpýs afs fs sbu buss nfjb nf jbg gas bo bog gbo boeb ebhr hrf fs qub ub bs bsnr nrbv bvbs bsssbl bl,, bl bl jhjhog ogu uagbl bl oa oatu tura raj,j, djuxfgralasbpsbumfnþmhgfs,fnájnujfmadþrlujaqubnfovbrtba tblpbraturabl tblpbraturablgrausnbotìgram grausnbotìgramfspara fsparagrausDaerboebht.A grausDaerboebht.Adþrluja dþrluja 8 ⋂n + 140 D < ,fomb‚D“èatblpbraturabl parabssanfovbrsîfè9
2
Daerboebhtb‚n“èatblpbraturablnbotìgramfs. ^bia nr ^bia nrha hath thvf vf b tb tbot otb b mb mbsb sbov ovfj fjvb vbr r bs bssa sa at athv hvhm hmam amb b nf nfl l a la lahf hfrr njarbzapfssìvbj. Cfasfrtbbcfosbstumfs! R1-Jþghnambprfgralaçîf prfgralaçîf >8 R1-Jþghnamb
Oîfpfmbdajtar Narf juof of,, ne lfss à ùjthl jthlaa sbç îf mbs ta uoh mamb mb. . Atè rf aju nebg bgaalf bçîf bsta ohm tè f prbsbotblflbotf,vfnébstumfuajþghnambprfgralaçîfbfs duomalbot fsmb duomalbotfs mbajgfrhtlfs,agfra ajgfrhtlfs,agfrahrblfsbstumar hrblfsbstumaras asrbprbsb rbprbsbotaçòbs otaçòbs masjhoguagbosqubsbrvhrîfmbcasbparadutura masjhoguagbos qubsbrvhrîfmbcasbparaduturasprfgralaçòbs sprfgralaçòbs.. Oasbguomasbçîfmbstauohmambmbboshof,vfnémbsbovfjvbu eachjhmambsparaanrhaçîfmbajgfrhtlfs,botbombuasap jhnaçòbsmb varhávbhs,atrhcuhçòbsbfpbramfrbs,bnflbçfuatbrulpbosalbotf bstruturamfparaassfjuçòbsmbprfcjblas bstruturamfparaassfju çòbsmbprfcjblas.Pfhscbl,ag .Pfhscbl,agfravalfs fravalfs nfoebnbrasrbprbsbotaçòbsqubbovfjvblasjhoguagbos. Jhoguagbloaturaj
^bguomf^aotfs(3001),ajhoguagbloaturaj,oambdhohçîfgbraj, èuladfrlambnfluohnaçîfbotrbaspbssfasmbmhvbrsasjìoguas, pf pfmb mbom omf f sb sbr r da daja jama ma, , bs bsnrh nrhta ta, , gb gbst sthn hnuj ujam ama, a, bo botr trb b fu futr tras as df dfrl rlas as mb
nfluohnaçîf.Ajhoguagbloaturajtblulagraombnfotrhcuhçîf , pf pfmb mb mh mhrb rbnh nhfo foar ar mb mb df dfrl rla a shlp shlpjb jbs s b bd bdhn hnhb hbot otb b as as mb mbsn snrh rhçò çòbs bs mf mfss prfcjblasbsuassfjuçòbs.
Pararbdfrçarfsnfonbhtfsmbjhoguagbloaturaj,valfstflar nfl nflf f bxbl bxblpjf pjf a fp fpbra braçîf çîf mb mfh mfhs s va vajfr jfrbs bs uth uthjhza jhzaomf omf fs qu quatr atrfs fs fpbramfrbscáshnfsmalatbláthna. F pr prfc fcjb jbla la è f sb sbgu guho hotb tb9 9 f us usuá uárh rhf f mbvb mbvbrá rá bo botr trar ar nf nfl l mfhs mfhs vajfrbs,bfnflputamfrrbtfroaráfrbsujtamfnflnamaulamas fpbraçòbsarhtlèthnas(sfla,suctraçî fpbraçòbsarhtlèthnas (sfla,suctraçîf,lujthpjhnaçîfbmhvhsî f,lujthpjhnaçîfbmhvhsîf). f). Ta Talf lfs s já! já! Bx Bxhs hstb tbl l vá várh rhas as df dfrl rlas as mb mb bs bstr trut utur urar ar bs bssb sb pr prfc fcjb jbla la.. Tbiaasbguhrulamaslaobhra Tbiaasbguhru lamaslaobhrasparaqubbjbpf sparaqubbjbpfssasbrrbajhzamf ssasbrrbajhzamf99 1. Hoìnhf. 3. Botrarnflfprhlbhrfvajfr. >. Botrarnflfsbguomfvajfr. =. Sbajhzarasflauthjhzaomffprhlbhrfvajfrlahsfsbguomf. 2. Sbajhzarasuctraçîfuthjhzaomffprhlbhrfvajfrlbofsfsbguomf. 4. Sbaj Sbajhzar hzara alujt lujthpjh hpjhnaç naçîf îfuthj uthjhzao hzaomf mff fprhl prhlbhr bhrf fvajf vajfr rvbzb vbzbs sf f fsbguomf. sbguomf. =0
R1-Jþghnambprfgralaçîf prfgralaçîf R1-Jþghnamb
Sbajhz jhzar ara a mhv mhvhsî hsîf f uth uthjhz jhzaom aomf f f prh prhlbh lbhrf rfva vajfr jfr mhv mhvhmh hmhmf mfpbj pbjf f 7. Sba sbguomf. Lfstraroatbjaf tbjafrbsujtamfma tbjaf rbsujtamfmasfla. rbsujtamfma sfla. 5. Lfstraroa 8. Lfstraroatbjafrbsujtamfmasuctraçîf. 10.. Lfstraroatbjafrbsujtamfmalujthpjhnaçîf. 10 11.. Lfstraroatbjafrbsujtamfmamhvhsîf. 11 13.. Dhl. 13
]raosnrbvbrajhoguagbloaturajbljhoguagblnflputanhfoaj obnbsshtambulprèvhfbotbomhlbotf,qubpfstbrhfrlbotbpfmbrá sfdrbrtraosdfrlaçòbsbldfrlambajgfrhtlfs,mhagralambcjfnfs bpsbumfnþmhgfs. Luhtfcbl,agfravalfsbstumarfduonhfoalbotfmfsmhagralas Luhtfcbl,agfravalfsbstumarfduonhfoalbotfmfsmhag ralas mbcjfnfs. Mhagralambcjfnfs(Djuxfgrala)
^bguom omf f Laoz ozaaof (3 (30 012), pfmblfs narantbr brhhzar mhag hagrala
mb cjfnfs nflf ul nfoiuotf mb sìlcfjfs grádhnfs bl qub nama ul mbssbs sìlcfjfs rb rbsbota a òbs bs bnìdhnas a sbrbl bx bxbn bnut utam amas as pb pbjf jf nf nflp lput utam amfr fr. . Ta Tajb jb jblc jblcra rar r qu qub b f mh mhag agra rala la mb cjfnfsfudjuxfgralambtbrlhoaajhoeambranhfnìohfuthjhzamapbjf
prfgralamfrpararbsfjvbrprfcjblas.Afbsnrbvbruldjuxfgrala, f pr prfg fgra rala lamf mfr r mb mbvb vb bs bsta tar r nh nhbo botb tb mb mb qu qub b fs fs sìlc sìlcfj fjfs fs ut uthjhjhz hzam amfs fs mbvbl mbvb l bs bsta tar r bl bl ea earl rlfo foha ha b sb sbr r mb mb dá dánh nhjj bo botb tbom omhl hlbo botf tf. . Pa Para ra qu qub b fsmhagr fsmhagralas alasmb mbcjfn cjfnfstboeal fstboealnbrtanfbréonha, nbrtanfbréonha,fs fssbus sbussìlcfjf sìlcfjfss dfral pamrfohzamfs pbjf dfr jf AO^H (Hosthtutf tf Ofrtbb-A Albrhnaof mb Pamrfohzaçîf). Tbiaagfraambdhohçîfmfsprhonhpahssìlcfjfsuthjhzamfsblul mhagralambcjfnfsfudjuxfgrala9 Quamrf1.1| Quamrf1.1|Mbsnrhçîfbshgohdhnamfsmb Mbsnrhçîfbshgohdhnamfsmbsìlcfjfsof sìlcfjfsof sìlcfjfsofmhagralambcjfnfs mhagralambcjfnfs ^ìlcfjf
^hgohdhnamf
Mbsnrhçîf
]brlhoaj
Sbprbsbotafhoìnhffufdhl mbuldjuxfjþghnf.Blajguos nasfsmbdhoblassuc-rfthoas.
Botramalaouaj
Mbtbrlhoaabotramalaouaj mfsmamfs,gbrajlbotbatravès mbultbnjamf.
R1-Jþghnambprfgralaçîf prfgralaçîf =1 R1-Jþghnamb
^ìlcfjf
^hgohdhnamf
Mbsnrhçîf
Prfnbssalbotf
Sbprbsbotaabxbnuçîfmb açòbsmbprfnbssalbotf.
Bxhchçîf
Lfstrafrbsujtamfmbula açîf,gbrajlbotbatravèsma tbjambulnflputamfr.
Mbnhsîf
Sbprbsbotafsmbsvhfs nfomhnhfoahsoasfpbraçòbs mbtflamambmbnhsîfbjaçfs nfomhnhfoahspararbpbthçîf mbajguostrbnefsmf prfgrala.
Prbparaçîf
Prfnbssfprbmbdhohmf
Sbprbsbotaabxbnuçîfmb uljaçfhonfomhnhfoajqub pbrlhtbalfmhdhnaçîfmb hostruçòbsmfjaçf. Mbdhobulgrupfmb fpbraçòbsrbjanhfoamas aulasuc-rfthoa. Sbprbsbotapfotfsmb nfobxòbsbotrbtrbnefsmb
Nfobntfr
Jhoea
prfgralas,qubpfmblsbr apfotamfsparafutraspartbs mfmhagralambcjfnf. Sbprbsbotafsvìonujfs bxhstbotbsbotrbfssìlcfjfs mbulmhagralambcjfnfs.
Dfotb9Amaptamfmb9Laozaof(3012).
A part parthr hr mf mf lf lflb lbot otf f qu qub b df dfr r ut uthjhjhz hzao aomf mf fs fs sì sìlc lcfj fjfs fs nf nfl l as hostruçòb hostru çòbs smbj mbjbs, bs, vf vfné névah vah ap aprbo rbombo mbomf mf b mbs mbsbov bovfjv fjvbom bomf fnam nama avbz vbz lahsajþghnambjbsblrbjaçîfafs lahsajþghna mbjbsblrbjaçîfafsprfcjblas. prfcjblas. Sbdjhta ^bguomf^fuza(3011),fsprfdhsshfoahsmaárbambBxatasdazblusfmb ^bguomf^fuza(3011),fsprfdhss hfoahsmaárbambBxatasdazblusfmb djuxfgralasmbvhmf djuxfgralasmbvhmfàsuadalhj àsuadalhjharhmambnflmhagralas harhmambnflmhagralasbsqubláthnfs, bsqubláthnfs, nfljhoguagbllatbláthna,cblnflfnflasbxprbssòbsgrádhnas. Hs Hssf sf fn fnfr frrb rb pfr pfr na naus usa a mf mf ap apbj bjf f vh vhsu suaj aj qub qub fs fs djux djuxfg fgra rala las s té tél l oa dfrlaçîfmbssbsprfdhsshfoahs.
Bvfné,nflfvébssarbjaçîfmfsdjuxfgralasnflasuaárbambatuaçîf6 djuxfgralasnflasuaárbambatuaçîf6
=3
R1-Jþghnamb R1-Jþghnambprfgralaçîf prfgralaçîf
Talfs djuxfg la qu mb mf Talf s rb rbaj ajhz hzar ar ul ul djux fgra rala qub b rbs rbsfj fjva va f ná nájn jnuj ujf f mb mfhs hs vajfrbsbxhchomfsuasf vajfrbsbxhchomfsuasfla,suctraçîf la,suctraçîf,lujthpjhnaçîfbmhvhsîf ,lujthpjhnaçîfbmhvhsîf.. Paraullbjefrbotbomhlbotfmfdjuxfgrala,anflpaoebfs nflbotárhfsmbbxbnuçîfparanamasìlcfjf. Mhagrala1.1|Nájnujfmbmfhsvajfrbs Fsìlcfjftbrlhoajmbuhoìnhfaf mhagralambcjfnfs.
Hoìnhf
Fsìlcfjfmbprfnbssalbotfmbdhohuas varhávbhsqubsbrîfuthjhzamasofmhagralambcjfnfs9vajfr1,vajfr3,sfla,suct, lujthbmhvh.
vajfr1,vajfr3, sfla,suct, lujth,mhvh
Fsìlcfjfbxhchçîf Fsìlcfjfbxhchçîflfstraoa lfstraoatbjafqub tbjafqub fusuárhfmbvbdazbr.
Mhghtarf vajfr1
Fsìlcfjfmbbotramalaouajjhcbrapara fusuárhfbotrarnflfprhlbhrfvajfr.
Jbrfvajfr1
Fsìlcfjfbxhchçîflfstraoatbjaf
Mhghtarf
qubfusuárhfmbvbdazbr. qubfusuárhfmbvb dazbr.
vajfr3
Fsìlcfjfmbbotramalaouajjhcbrapara fusuárhfbotrarnflfsbguomfvajfr. fusuárhfbotrarnflfsbg uomfvajfr.
Jbrfvajfr3
Fsìlcfjfmbprfnbssalbotfèrbajhzamf nflasatrhcuhçòbsfsvajfrbsnajnujamfs parasuasrbspbnthvasvarhávbhs.
sfla vajfr1 vajfr1+ +vajfr3 +vajfr3 suct vajfr1 vajfr1- - -vajfr3 vajfr3 lujth vajfr1 vajfr1* * *vajfr3 vajfr3 mhvh vajfr1 vajfr1/ /vajfr3 /vajfr3
Fsìlcfjfmbbxhchçîflfstraoatbjaf rbsujtamfmbnamavajfrnajnujamf.
Asflaè9sfla Asuctraçîfè9suct Alujthpjhnaçîfè9lujth Amhvhsîfè9mhvh
Dhoajhzafprfgrala.
Dhl
Dfotb9Bjacframfpbjfautfr.
R1-Jþghnamb R1-Jþghnambprfgralaçîf prfgralaçîf =>
Asshlhjb
Ta Tajb jb fcsb fcsbrv rvar ar aj ajgu guos os pf pfot otfs fs mb mb at atbo boçî çîf f para para a nf nfos ostr truç uçîf îf mb mb ul djuxfgrala9 1. Bstaratbotfafsoìvbhs. 3. Fdjuxfgralambvb Fdjuxfgralambvbnflbçarmbnhl nflbçarmbnhlaparacahxf nflbçarmbnhl aparacahxfbmabsqubrma aparacahxf bmabsqubrmapara bmabsqubrma para
amhrbhta.
>. Nu Nuhm hmam amf f pa para ra oîf oîf nr nruz uzar ar as as jhjhoe oeas as, , pr prho honh nhpa pajl jlbo botb tb as as jhjhoe oeas as mb
djuxfsmbmamfs.
Paradhoajhzarfsmhagralasmbcjfnfs(djuxfgrala),valfsnrhar ulashtuaçîfuthjhzaomfulafpbraçîfjþghnablqubadhoajhmambè botrarnflulasboeaofshstbla. Mhagrala1.3|Mhagralambcjfnfsnflusfmbmbnhsîf Hoìnhf
Mhghtarasboea
^boea
D
^boeafut.3017. Futrfsfdtwarbluhtfuthjhzamfèf‚Mha“.Tfnépfmb Futrfsfdtwarbluhtfuthj hzamfèf‚Mha“.Tfnépfmbdazbrfmfwojfampbjf hzamfèf‚Mha“.Tfnépfmb dazbrfmfwojfampbjf jhok9mhspfoìvbjbl9:ettp9//mha-hostajjbr.mb/?.Anbssfbl93> jhok9mhspfoìvbjbl9:ettp9//mha-hos tajjbr.mb/?.Anbssfbl93>fut.3017. tajjbr.mb/?.Anbssfbl93> fut.3017. Psbumfnþmhgf
^b ^bgu guom omf f Ag Aguh uhja jar r (3 (301 011), 1), f ps psbu bumf mfnþ nþmh mhgf gf è nf nfos oshm hmbr bram amf f ul ulaa dbrraalbo dbrr bota ta qub pfmb aux uxhjhjha har r a prf rfg gra rala laçî çîf f. Pf Pfm mb sbr br bs bsnr nrht htf f bl pa bl paja javr vras as sh shlh lhja jarb rbs s af af ho hogj gjés és fu fu af af pf pfrt rtug ugué ués s pa para ra da danh nhjhjhta tar r a hotbrprbtaçîfbfmbsbovfjvhlbotfmbulprfgrala. Pfm Pfmblf blfs s nar narant antbrh brhzar zar fs fs ajg ajgfrh frhtlf tlfs s nfl nflf f ul ps psbum bumfnþ fnþmhg mhgf. f. Bxhstblvárhasdfrlasmbrbprbsbotarul Bxhstblvárhasdfrlas mbrbprbsbotarulpsbumfnþmhgf,las mbrbprbsbotarul psbumfnþmhgf,las flahs hlpfrtaotbèqubbjbaprbsbotbasfjuçîfmfp hlpfrtaotbèqubbjbaprbsbotba sfjuçîfmfprfcjblaprfpf rfcjblaprfpfstf. stf. Tbiaagfrafpsbumfnþmhgf(pfrtugfj)pararbsfjvbrfprfcjbla masfpbraçòbsarhtlèthnasnhtamasaotbrhfrlbotb9
1. 3.
najnujfVfpbramfrbs; var;
>. =. 2. 4. 7. 5. 8. 10. 11. 13.
vajfr1,vajfr3, vajfr3,sfla, sfla,suct, sfla, suct,lujth, suct, lujth,mhvh9 lujth, mhvh9rbaj; mhvh9 rbaj; Hvajfr1, oìnhf; vajfr3, bsnrbva(‚Mhghtb bsnrbva (‚Mhghtbf (‚Mhghtb fvajfr f vajfr1“); vajfr 1“); jbhavajfr1; jbha vajfr1; bsnrbva(‚Mhghtb bsnrbva (‚Mhghtbvajfr (‚Mhghtb vajfr3“); vajfr 3“); jbhavajfr3; jbha vajfr3; sfla ←vajfr1+vajfr3; suct ←vajfr1-vajfr3; lujth ←vajfr1*vajfr3; mhvh ←vajfr1/vajfr3;
1>. 1=. 12. 14. 17.
bsnrbva(‚a bsnrbva (‚asfla (‚a sflaè9“, sfla è9“,sfla); è9“, sfla); bsnrbva(‚a bsnrbva (‚asuctraçîf (‚a suctraçîfè9“, suctraçîf è9“,suct); è9“, suct); bsnrbva(‚a bsnrbva (‚alujthpjhnaçîf (‚a lujthpjhnaçîfè9“, lujthpjhnaçîf è9“,lujth); è9“, lujth); bsnrbva(‚a bsnrbva (‚amhvhsîf (‚a mhvhsîfè9“, mhvhsîf è9“,mhvh); è9“, mhvh); Dhl.
R1-Jþghnamb R1-Jþghnambprfgralaçîf prfgralaçîf =2
Tbiafsnflbotárhfsmbssbajgfrhtlf9 Jh Jhoe oea a 19 19 ‚n ‚náj ájnu nujf jfVf Vfpb pbra ramf mfrb rbs“ s“ bs bssb sb è f of oflb lb rb rbsb sbrv rvam amf f pa para ra hmbothdhnarfajgfrhtlf. Jhoea39‚Tar“shoajhzafhoìnhfmasvarhávbhs. Jhoea Jhoe a >9 >9 ^î ^îf f fs fs of oflb lbs s ma mamf mfs s pa para ra as as va varh rháv ávbhs bhs (v (vaj ajfr fr1, 1, va vajf jfr3 r3,, sfla,suct,lujth,mhvh);obstajhoeatalcèlsîfmbdhohmfsfsthpfs mbvarhávbhs(rbaj). Jhoea=9hohnhafsprfnbmhlbotfsmfsajg Jhoea=9hohnhafsprf nbmhlbotfsmfsajgfrhtlfs(hoìnhf). frhtlfs(hoìnhf). Jhoea29‚bsnrbva“èulnflaomfmbsaìmabhomhnafqubvahsbr lfstramf lfstramfoatbjamf oatbjamfnflputamf nflputamfr.Gbrajlbotbfnfotbù r.Gbrajlbotbfnfotbùmfmftbxtf mfmftbxtf dhnabotrbaspas(‚Mhghtbvajfr1“). Jhoe Jhoea a 49 49 ‚j ‚jbh bha“ a“ è ul ul nf nfla laom omf f mb mb bo botr tram ama, a, f va vajf jfr r mh mhgh ghta tamf mf è arlazboamfoavarhávbj(vajfr1). Jhoea79‚bsnrbva“èulnflaomfmbsaìmabhomhnafqubvahsbr lfstramf lfstramfoatbjamf oatbjamfnflputamf nflputamfr.Gbrajlbotbfnfotbù r.Gbrajlbotbfnfotbùmfmftbxtf mfmftbxtf dhnabotrbaspas(‚Mhghtbvajfr3“). Jhoe Jhoea a 59 59 ‚j ‚jbh bha“ a“ è ul ul nf nfla laom omf f mb mb bo botr tram ama, a, f va vajf jfr r mh mhgh ghta tamf mf è arlazboamfoavarhávbj(vajfr3). Jhoea89Aamhçîfmasvarhávbhsvajfr1bvajfr3èatrhcuìmapara
varhávbjsfla(sfla ←vajfr1+vajfr3).
Jhoea109Asuctraçîfmasvarhávbhsvajfr1bvajfr3èatrhcuìmapara Jhoea109Asuctraçîfmasvarhávbhsvaj fr1bvajfr3èatrhcuìmapara varhávbjsuct(suct ←vajfr1„vajfr3). Jhoea119Alujthpjhnaçîfmasvarhávbhsvajfr1bvajfr3èatrhcuìma paravarhávbjlujth(lujth ←vajfr1*vajfr3). Jho Jhoea139 ea139A Amhv mhvhsî hsîf fmas mas va varhá rhávbh vbhs sva vajfr jfr1 1b bva vajfr jfr3 3è èatr atrhcu hcuìma ìma pa para ra varhávbjmhvh(mhvh ←vajfr1/vajfr3). Jhoe Jh oea a 1> 1>9 9 Bs Bsnrb nrbva va oa oa tb tbja ja f qu qub b bs bstá tá bo botr trb b as aspa pas s (‚ (‚a a sf sfla la è9 è9“, “, sfla)bfvajfrqubbstáarlazboamfoavarhávbjsfla.Pbrnbcaqub avarhávbjènfjfnamadframasaspas,paraqubbjasbiarbprbsbotama pbjfsbuvajfrnfrrbspfombotb. Jhoea1=9Bsnrbvaoatbjafqubbstábotrbas pas(‚asuctraçîfè9“, suct)bfvajfrqubbstáarlazboamfoavarhávbjsuct.Pbrnbcaqub avarhávbjènfjfnamadframasaspas,paraqubbjasbiarbprbsbotama pbjfsbuvajfrnfrrbspfombotb. Jhoea129Bsnrbvaoatbjafqubbstá Jhoea129Bsnrbvaoatbjaf qubbstábotrbaspas(‚a botrbaspas(‚alujthpjhnaçîf lujthpjhnaçîf è9“, lujth) b f vajfr qub bstá arlazboamf oa varhávbj lujth. =4
R1-Jþghnamb R1-Jþghnambprfgralaçîf prfgralaçîf
Pbrnbcaqubavarhávbjènfjfnamadframasaspas,paraqubbjasbia rbprbsbotamapbjfsbuvajfrnfrrbspfombotb. Jhoea149Bsnrbvaoatbjafqubbstábotrbaspas(‚amhvhsîfè9“, mhvh)bfvajfrqubbstáarlazboamfoavarhávbjmhvh.Pbrnbcaquba varhávbjènfjfnamadframasaspas,paraqubbjasbiarbprbsbotama pbjfsbuvajfrnfrrbspfombotb. Jhoea179Bonbrrbfajgfrhtlfnflapajavra‚dhl“bfpfotfdhoaj. Quaomfofsrbdbrhlfsafusfmbpsbumfnþmhg Quaomfofsrbdbrhlfsafusfmbp sbumfnþmhgfsblajgfrhtlf fsblajgfrhtlfss mfthpfpfrtugfj,shgohdhnaqubbssbmbvbsbrbsnrhtfmbdfrlaqub futraspbssfaspfssalbotbombrmblaobhralahsdfrlaj,fusbia, fsnfonbhtfsmbvbldhnarnjarfsbblulajhoguagblanbssìvbjpara fsnfonbhtfsmbvbldhnarnjarfsbblulajhoguag blanbssìvbjpara qublhráhotbrprbtarfajgfrhtlf. È hlpfrt Èhlp frtaot aotb b bst bstar aratb atbotf otf pa para raajg ajgul ulas asrbg rbgras ras cá cáshn shnas as qu quaom aomf f uthjhzarpsbumfnþmhgfs9 •Bsnfjebruloflb. • •Av Avaj Av ajha har r as as va varh rháv ávbh bhs, s, m ar ar at atboç boçîf îf afs sbu s thp thpfs b às suas narantbrìsthnas. • •Mbs Mbsnrbv Mbs nrbvbr br mb dfr dfrla la nja njara ra f qub sb rá arl arlazb azboam oamf f b sb a s varhávbhsmbsthoamasabssahodfrlaçîfbstîfnfrrbtas.
• •Tbrhdhnarsbashostruçòbsdazblsbothmfbsbtélulasbquéonha Tbrhdhnarsbashostruçòbsdazblsbothmfbsbtélulasbquéonha jþghna.
•Avajharfrbsujtamfb,quaomfpbrthobotb,lfstraroatbja. •Avajharfrbsujtamfb,quaom fpbrthobotb,lfstraroatbja. •Dhoajhzarfajgfrhtlf. Bxblpjhdhnaomf
Tbia ul ajgfrhtlf qub najnuja a árba mf nìrnujf usaomf ul psbumf psbu mfnþ nþmh mhgf gf bspbn bspbnìd ìdhn hnf f para para sbr sbr bxbn bxbnut utamf amf of of sfdt sfdtwa warb rb Ths Thsua uajg jg (sfdtwarbqubbxbnutafsnflaomfsmfs ajgfrhtlfs). ajgfrhtlf"árbamfnìrnujf" var árba,p1,rahf9rbaj hoìnhf //^bçîfmbNflaomfs Bsnrbva("mhghtbfrahfmfnìrnujf")
R1-Jþghnamb R1-Jþghnambprfgralaçîf prfgralaçîf =7
Jbha(rahf) p1:->.1= árba:-(p1*(rahf_3)) bsnrbva("Aárbamfnìrnujfè9",árba) dhlajgfrhtlf Pbrnbcaqubfs Pbrnbca qubfsparãl parãlbtrfs btrfsuthjhzam uthjhzamfstalcèl fstalcèlsîfnfoshmbramf sîfnfoshmbramfsul sul ajgfrhtlfmfthpfpfrtuguésbstruturamf,fusbia,mbdánhjbotbomhlbotf bhotbrprbtaçîf. ^f ^fdt dtwa warb rb mh mhsp spfo foìv ìvbj bj bl bl9 9 :e :ett ttp9/ p9//v /vhs hsua uajg jg>. >.nf nfl. l.cr cr/?. /?. Anbs Anbssf sf bl9 bl9 3>fut.3017.
Paracèos! uohmambmbstbjhvrf,nfothoub jhvrf,nfothoub Paracèos! Tfnétbrlhofua Tfnétbrlhofuaprhlbhr prhlbhra auohmambmbstb bstumaomfbprathnaomf.Cfasfrtbbatèaprþxhlauohma bstumaomfbprathnaomf.Cfasf rtbbatèaprþxhlauohmamb! mb!
^bllbmfmbbrrar Ne b g f u f l f l b o t f m b p r a t h n a r f n f o t b ù m f b s t u m a m f . Jblcrb-sb9 vfnédfhbjfgham Jblcrb-sb9 vfnédfhbjfghamfpbjfsbu fpbjfsbumbsbl mbsblpboef pboef bsbu bsbugbst gbstfr fr bspbraqubvfnénfjfqubmbdfrlanfovhonbotbasapjhnaçòbsma
jhogu jho guag agbl bl oat oatura uraj, j, mf mfs s mha mhagra gralas las mb cjf cjfnfs nfs (dj (djuxf uxfgra gralas las) ) b mf us f b p s b u f n gf s . A sua ua lhs hsssîf è mbl blf fos ostr traar afs sbu buss nf nfjb jbg gas as bo bog gbo boeb ebhr hrf fs a ap apjhjhna naçî çîf f bl bl jho jhogu guag agbl bl oa oatu tura raj,j, djux djuxfg fgra rala las s b ps psbu bumf mfnþ nþmh mhgf gfs, s, f ná nájn jnuj ujf f ma ma dþ dþrl rluj uja a qu qub b nf nfov ovbr brtb tb ul ula a tb tblp lpbr brat atur ura a bl bl gr grau auss nbotìgramfsparagrausDaerboebht.Adþrlujaparabssanfovbrsîfè9
8 ⋂ n + 140 D < 2
,blqub‚D“èatblpbraturablDaerboebhtb‚n“èa
tblpbraturablnbotìgramfs. Prhlbhrf, vfné mbvb bsnrbvbr bl jhoguagbl oaturaj f duonhfoalbotfmadþrlujaqubnfovbrtbgrausnbotìgramfsparagraus Daerboebht.Parahssf,frgaohzbfsbupbosalbotfmbdfrlabstruturaj bdfrlaj,lasjblcrb-sb,obltfmfsfsbogboebhrfstbrîfflbslf pbosalbotf, pbosalbotf,fhlpfrtaotbè fhlpfrtaotbènebgaràsf nebgaràsfjuçîfmf juçîfmfprfcjbla. prfcjbla. Oanfostruçîfmfdjuxfgralavajbrbsgatarasmhnasnhtamasof ‚Oîfpfmbdajtar“9
=5
R1-Jþghnamb R1-Jþghnambprfgralaçîf prfgralaçîf
Bstaratbotf atbotfafs atbotf afsoìvbhs afs oìvbhsof oìvbhs ofdjuxfgrala. of djuxfgrala. 1. Bstar Fdjuxfgralambvbnflbçar mbvbnflbçarmbnhla mbvbnflbçar mbnhlaparacahxf mbnhla paracahxfbma paracahxf bmabsqubrma bma bsqubrma 3. Fdjuxfgrala paramhrbhta. Nuhmamfparaoîfnruzar oîfnruzarasjhoeas, oîfnruzar asjhoeas,prhonhpajlbotbas asjhoeas, prhonhpajlbotbasjhoeasmb prhonhpajlbotbas jhoeasmb >. Nuhmamfpara djuxfsmbmamfs. Dhoajhzb bssa athvhmamb bsnrbvbomf a nfovbrsîf mb graus nbotìg nbotìgramf ramfspara sparagrau grausDaerboebhtbl sDaerboebhtblpsbu psbumfnþ mfnþmhgf mhgf..Ass Asshlnflf hlnflf ofdjuxfgrala,asdfrlasmbpbosalbotfpfmblsfdrbrajtbraçòbs, lasfhlpfrtaotbèfrbsujtamfbajþghnaparasua lasfhlpfrtaotbèfrbsujtamfbajþg hnaparasuasfjuçîf. sfjuçîf. Nacblasmhnas9 • Bsnfjebr Bsnfjebrul uloflb ul oflbpara oflb paraf para fajgfrhtlf. f ajgfrhtlf. • Avaj ajha har r as va varh rháávbh bhss, mar atb tboç oçîîf afs fs sbu buss thpfs b às suas narantbrìsthnas. • Mb Mbsn snrb rbvb vbr r mb mb df dfrl rla a njar njara a f qub qub sb sbrá rá ar arla lazb zboa oamf mf b sb as varhávbhsmbsthoamasabssahodfrlaçîfbstîfnfrrbtas. • Tbrhdhnar sb as hostruçòbs dazbl sbothmf b sb tél ula sbquéonhajþghna. • Avajharf Avajharfrbsujtamfb, rbsujtamfb,quaomfpbrthobotb, rbsujtamfb, quaomfpbrthobotb,lfstrar quaomfpbrthobotb, lfstraroa lfstrar oatbja. oa tbja. • Dhoajhzar f ajgfrhtlf.
Dhoajhzar Dhoajhzarf fajgfrhtlf. f ajgfrhtlf. Cfasfrtbbcfosbstumfs!
Avaoçaomfoapráthna ]hpfsmbtrhãogujfs„nfoshmbraomfsbus ãogujfshotbrofs Mbsnrhçîfmashtuaçîf-prfcjbla
Tfnédfhmbshgoamfparaaiumarulmbpartalbotfmablprbsa Uhs&Yh a bonfotrar fs ãogujfs hotbrofs mfs trhãogujfs qub nfrrbs nfrr bsp pfom fombl bl a ajg jgu uos os thp thpfs mb pbç bçaas. Pf Pfr r lbhf bhf mas lb lbm mhm hmaas bonf bonfotr otrama amas, s, vf vfné némbv mbvbrá brá ap apfot fotar arf fthp thpf fmf mf trh trhãog ãogujf ujf..A Ablp blprbs rbsaa prbnhsa qub vfné né passb bl dfrl rlaa mb jhoguagbl bl oatura rajj bssb prfnbmhlb prfnbm hlbotf otf..Tbi Tbia aoaDhgur oaDhgura a1.1 1.12 2fs fs thp thpfsmb fsmbtrh trhãog ãogujf ujfs sb bas as su suas as rbprbsbotaçòbsblrbjaçîfafsãogujfs.
R1-Jþghnamb R1-Jþghnambprfgralaçîf prfgralaçîf =8
Dhgura1.12|]hpfsmbtrhãogujfsnjasshdhnamfspfrãogujfshotbrofs Dhgura1.12|]hpfsmb trhãogujfsnjasshdhnamfspfrãogujfshotbrofs
Dfotb9bjacframfpbjfautfr.
Sbsfjuçîfmashtuaçîf-prf Sbsfjuçîfmashtuaçîf-prf shtuaçîf-prfcjbla cjbla
Bljhoguagbloa Bljhoguagbloaturaj,pfmbrhas turaj,pfmbrhasbrbsnrhtamasbguhotbdfrl brbsnrhtamasbguhotbdfrla9 a9 Hoình nhf. f. 1. Hoì 3. ^fjhnhtarabotramamf ^fjhnhtarabotramamfprhlbhrfãogujf(TarhávbjaogA). prhlbhrfãogujf(TarhávbjaogA). ^fjhnhtarabotramamfsbguomfãogujf(TarhávbjaogC). sbguomfãogujf(TarhávbjaogC). >. ^fjhnhtarabotramamf =. ^fjhnhtarabotramamftbrnbhrfãogujf(TarhávbjaogN).
Tbrhdhnarsbassflasmfsãogujfshotbrofssflal150graus mfsãogujfshotbrofssflal150graus 2. Tbrhdhnarsbassflas (aogA+aogC+aogN.^bguomfAguhjar(3011),fpsbumfnþmhgfènfoshmbramfuladbrralbota
qubpfmbauxhjharaprfgralaçîf.Pfmbsbrbsnrhtfblpajavrasshlhjarbsaf hogjésfuafpfrtugués,paradanhjhtarahotbrprbtaçîfmbajgfrhtlfsbasshl nrharpfsshchjhmambsparanfostruçîfmbprfgralas nflputanhfoahs.
23
R1-Jþghnamb R1-Jþghnambprfgralaçîf prfgralaçîf
Aoajhsbadajeaoftrbnefmfpsbumfnþmhgfasbguhrbasshoajbaajtbroathva qubnfrrbspfombàdfrlanfrrbtaoabxbnuçîf9 ajgfrhtlf"NajnujarfHLN"; var; oflb9narantbrb; pbsf,hln,ajtura9rbaj; Hoìnhf bsnrbva("Bsnrbvafoflb"); jbha(oflb); bsnrbva(Bsnrbvafpbsf"); jbha(pbsf); bsnrbva("Bsnrbvaaajtura"); jbha(ajtura); hln-Nfonbhtfsmbprfgralaçîf mbprfgralaçîf R>-Nfonbhtfs
]botbfutraslaobhrasmbnrharfprfgrala,daçatbstbsbprathqub fláxhlfpfssìvbj.
Avaoçaomfoapráthna Adfrça Mbsnrhçîfmashtuaçîf-prfcjbla
Blulmbcatbnflsbusalhgfsbogboebhrfs,vfnédfhmbsa dhamf a rb rbssfjv jvbr br atr traavès ès mf ná nájn jnu ujf jf ma df dfrç rçaa b mbpfhs hs prf rfg gra rala lar r bl JhoguagblNasbguhotbshtuaçîf9 Hl Hlag agho hob b ul ula a pj pjan ana a mb mb nhlb nhlbot otf f sf sfcr crb b ul ula a pjat pjatad adfr frla la pj pjao aoaa fombsbráobnbssárhfnajnujaradfrçaofrlajulaoafutra.Ahmbha mfnájnujfèoîfmbhxarqubffcibtfsþjhmfsbiaatravbssamfpfr futrfs.Tbiaqubadfrçamagravhmambblpurraapjanaparacahxf,af lbslftblpfblqubadfrçaofrlajv lbslftblpfblquba dfrçaofrlajvahnfotrabja. ahnfotrabja. P Pararbajhzarbssbsnájnujfs,vfnépfmbrá Pararbajhzarbssbs ararbajhzarbssbsnájnujfs,vfnépfmbráusara usarasbguhotbdþrluja9 sbguhotbdþrluja9 O-Nfonbhtfsmbprfgralaçîf R>-Nfonbhtfsmbprfgralaçîf 138
snaod("%d", &l); prhotd("Mhghtbagravhmamb9Zo"); &
snaod("%d", g); o0
R>-Nfonbhtfsmbprfgralaçîf mbprfgralaçîf R>-Nfonbhtfs
Aoajhsbfprfgralaacahxfbrbspfomaaajtbroathvaqubnfrrbspfombaf vajfrparapbq. hotlaho() { hotp,q; p-Nfonbhtfsmbprfgralaçîf mbprfgralaçîf R>-Nfonbhtfs
Agfra,vbiaashotaxbpararbaj hzaçîfmarbpbthçîfnfltbstbofdhoaj9 Agfra,vbiaashotaxbpararbajhzaçîfmarbpbthçîfnfltbstbofdhoaj9 mf { nflaomfs; } wehjb(nfomhçîf); Bxblpjf19Prfgralaqubnajnujaalbtragblquamramambul tbrrbofusaomfftbstbofdhoajparanrharafpçîf tbrrbofusao mfftbstbofdhoajparanrharafpçîf mbmhght mbmhghtarofvfs arofvfs vajfrbssblsahrmfprfgrala. #honjumb:stmhf.e? laho(){ djfatlbtragbl1,lbtragbl3,rbsujtamf; hotrbsp; lbtragbl1).^uauthjhzaçîf èvastambvhmfàdanhjhmambbljbrbbsnrbvbrmamfsbàvbjfnhmambnflqub asfpbraçòbssîfrbajhzamas. 185
R=-Apjhnaçòbsmbprfgralaçîf
Aoajhsbasassbrçòbsasbguhrbarbjaçîfprf Aoajhsbasassbrçòbsasbguhrba rbjaçîfprfpfstabotrbbjas. pfstabotrbbjas. H„Latrh H „Latrhz zè èul ulabstrut abstrutura ura mbmamfs mbmamfs uth uthjhz jhzama ama par paraarlaz aarlazboa boar rmam mamfsbl fsbl dfrl df rla a mb ta tacb cbja ja, , fu fu sbia sbia, , mhstr mhstrhc hcuì uìmf mfs s bl bl jh jhoe oeas as b nf nfju juoa oas, s, b ul ula a ma mass narantbrìsthnasmbssabstruturambmamfsè narantbrìsthnasmbssabstrutura mbmamfsèsbrmhoãlhna sbrmhoãlhna.. PFSQRB HH HH „ A napanhmamb ma latrh trhz prbnhsa sa sbr hodf dfrrlama of lflbotf ma mbnjaraçîfmavarhávbj,sbomfobnbssárhfhodfrlarmfhsvajfrbs,ulpara rbprbsbotarfìomhnbmajhoeabfutrfpara rbprbsbotarfìomhnbmanfjuoa. a)AsassbrçòbsHbHHsîfprfpfshçòbsvbrmambhras,baHHèulaiusthdhnathva nfrrbtamaH.
c)AsassbrçòbsHbHHsîfprfpfshçòbsvbrmambhras,lasaHHoîfèula iusthdhnathvanfrrbtamaH. n)AassbrçîfHèulaprfpfshçîfvbrmambhra,baHHèulaprfpfshçîfdajsa. m)AassbrçîfHèulaprfpfshçîfdajsa,baHHèula m)AassbrçîfHèula prfpfshçîfdajsa,baHHèulaprfpfshçîfvbrmambhra. prfpfshçîfdajsa,baHHèula prfpfshçîfvbrmambhra. b)AsassbrçòbsHbHHsîfprfpfshçòbsdajsas. 3. Quaomfuthjhza-sbulasfjuçîfnfllatrhzbsèprbnhsftbrnjarbza
. nfjuoahohnhal-sbblzbrf,pfrtaotfaprhlbhrapfshçîfasbrfnupama èjhoea0„nfjuoa0.
Nfos Nfoshmbrbfprfgral hmbrbfprfgralaacahxf aacahxfb bbsnfj bsnfjeaafpçîf eaafpçîfqubnfotèlfqubsbrá qubnfotèlfqubsbrá hlprbssfoajhoea11. 1.
#honjumb:stmhf.e?
3.
vfhm vfh ml laho aho(){ aho(){
>.
djfatt l djfa latrhz atrhz[3\[ atrhz[3\[3\; 3\;
=. 2.
hott h, ho h,i, i,rb rbsu sujt jtam amf f