0% found this document useful (0 votes)
52 views

DAA Unit 5

daa unit 5 notes

Uploaded by

Satyarth Sharma
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
0% found this document useful (0 votes)
52 views

DAA Unit 5

daa unit 5 notes

Uploaded by

Satyarth Sharma
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
You are on page 1/ 29
lubes « ) \ “Tt UNITES _ — TAT! — _ J 0 x — f {evunantfon ) ____ : C tug (Change the _utfgfnol_naessoge) __ a Ll Strmametu (Both sender steceive havescume sey) __ Qu || AXymmeteiic (Roth have different _k (Public + Boivate key) also Known os pl ky enwuplion, [Out inar feneub T Cfphen P&P Plats messoge | Hew | eae [fon] text Eucltd _dlgsttn. TL fs used nding — Gacy (Gsreateak- Se het ot i qcd(a..b) usheue = L. if b=0 , then o. Stetustw Oo ' d(b, a mod _b) 47 Alte aa Ly Rendle ——— i Da ____-\\ ( ( (Jer U) f = get Lato) ge inet gd (3) = qed 3,4) — |_ord! (a, umd 3) =I! 1) = | od (1, 4) i = (1,3 mod +) £ = ad (1,0) £ Sola uo ptinie _n@, pond 4. Such that peg, Pind ok n= pxq find cut _swlative site O(n) = (br) ae(4-1) tna the RSA cuftte peu and q=24 Mosage 4 foci vodte Ket. ive =u) find ct __s$uline f i A=9 N= px4q N= 29 wm = 34 dln) = (uid * (99-1) “p(n = lo R28 din) = 220 dae ¢ mod “pin) =) d-* 2% wod 280 =! A t_. [d= 16+ | | Gs = | Za. SQ C= M mod wn Saree St 2 Coe oT = loo? mod 34 eT eae [ash | M= c4 wod » M= 954" ind 319 [M= 00 9 “N= o bede (tex $=O | 23 4 ¢ m= bcd (fattesur) N>mM Vee th quenter Qu. quae fo fitter ue nti fs Not ues thou ei xk Cl $= N—-m 1 gz 6-3 —— 3S = 3 Scum i rahe 212€ pain ht sig aa | Natve Algoosithne | Rabin Kap |_KMP : M tai dn Native f fi Natve atstng. (1,?) nel Gi) Me length (P) fou Ae oO 40 Nom kn bo ef if PCetm) = Elsa. gem) ~ setusn S. “it = Oc aa be Potton = aa b my | 6 4 HP SPB Why by 1 bo 3 | Oex I Qe <= ale Jato [ole] Bx not nastely ; p= fal alb Se} z=] le ala [hic] X_Not p= [ala]b] gg ag Cree a are Se—-Q = [alcfalafole] eet (i la| alb | $3 T= {aj¢e{q 1a c fh PX Not nertets eS Jal alb | hus, the pastes _imcleh fos: $= 2. find Wye oe mci uit. the hi Naive Gur’ je Lo © 00 1 OOO! ~ O00! N P= 00 0] _ ‘e AAAS =. Jololololt fololol Jol Tofofofry X No+ yucrttle 0- JololOll Sel 7- olololol Tololol oh tofolon] P= [OlOl0l | Sea == Jololo) of Jolololt fol fololo TJ t XK Not yuate P= Jololo i] S—3 = [ofololol To} ofo[ Tor! Topo Jor olor Mette. P= 0 Se~4 SS =OO0O0 01000 Blo! hs mae 1 Seas = lolo{ofofiJolofofi fofilofo ee O- OlOlo]] See T= Jolololeh Jololo] oli ofofo ] PT PXNet mace Hom P= ofolol) Se t= lololololt Tolofol fof fofofol - XNot Mette pe otoh] 0 Sep T= lofolajol Jofofol Toft Jololol PE KNot rich, p= ‘[elol oli ne g-4 ——_— ——— te oolol Tolololitobif ofolol ia — XNot mutch, : pe [olololi | - oelo = zJopolololtololol ite (fofojolt] p= olololi = Jopolofel Tolofot fol Tolo tou | | : Tololol! | sIhowedooe , dhe fpavtecaun youteh fa S=1, $25, — S=ir oO | mM “is Apert Used _feor number. LE Used to chetk dhe ej volenty + [eop numben (test Gnd —potertn) asi ab thisid — rumbeot Thee sie turn _“Hefper ot mach» — Shasdous — Motels er Morte | Rabin Kooip iS based on Hog asi? ° =i weeeeses S+M 12. Patiestn —occust cult Shift §6? a +i)h)+ Ti S+ +1) mod = xt A= derinor ON, AT i, L : a4 rere — ee eli oentoes oun ame —- 7 _ qe] ne 14 m=5 ae Take a petine number (10+) ) ra i fon = a | ( a] = Bus mod 13 Hooking f= 7 et od S= nee = {4= a= 14] 1 Tout ATO 23540 Mod 13 =B Not voted free. for dA 35902 mod 13 =@ 4 Not valid fe 3. || fou S— a 54023 mod 13 = 3 Not vated “hig WEN wl tu ges fio.2a aval B= 4 —— sl fa gecu 4 = c foe see J4 15) Med OS 4] Ru ses 31UIF Mod 13= + 7 Nid Hie ________"> Bl for pe 1U1¢2 Mod B=Q q. || or de—% uisage Mod 13-4 tol fae A—4 5261 mod 325 tl fou Ato 52643 mod 13 = 10 Weel <= 267134 mod 13 = 1} WB. A 12 G34 mod 13 = ee hw if the elements Wn he _battoom —_Qere Ian bee sthe__ element ; whesre tlamode! sake _plare = then” we _Atacee \ the mate iy foes —Atouatiog ! Audtie ts Anne _L-£., _nafamatchin. - 2. Y ie. 0, 3° Sie \ C avd* yb. vate cet. ab then “® wig Akip alae £ ptewut! Cae patted usin by aliting ~the foatgan by 2 Puesix unition tf — pate —IS_celtutudst “ol Ve wit 9 de hoe miele Lencples f paint u Aktpprd , ‘i Kio fun () L. | me le (P) aaa kK Q | fox qe 2 40 m while [k>0 and aan then _k¢~ lk) kek +} Tq) <—k 8 Y 5 g + ¢ Plc) = Plg B. 4 5 Hein 7 Pind a “fate Li Gems & Gb Ob Pps ToTotr Tape abcd abe y = a [bJc Jef fable ly = Tolofofo}T2isfol Ct obedabeabe L —j : + pss aes c | — | oo | 4 Law cde abFube . ae Yr2_au se rsa ' ‘ \ cdéeab Mi UT] = foleTsl root prob Tz] 7 . a . 7 \ a for_KUP_Alpaatthn ‘ | \ 4 usheste, : L= atleg (7) $= Plo) : | Combase Tt) wt, Ptr) (Ol Ty motel. fs found then nuoue both P andj (iid Se Move 4 4o__+the Locattor, Os esr _ terble _ fndex los iy j=o then move ito the ght Oe 1 :

feu5 923 Tu) = Pe) y VAM Ty) = PB) pe Mismatch | Mawt_g=2 Tt j=0 _mioue _| bo _euigid Nowe a 6 feo le) = PO) gz a Mate wove {47 to safer 4 es TiH= Pla) b=b Match wine 14 ¢ to tight. fa f=2 (8) YE Pla) Gie a ffsmatee Now, j= 4 P=B; va T(B) = Ply c#b Tq) = Pu) =a M Yuauo bf ta_sugie. 2 (=o 3 f= v “Tto) = P(2) Motel. Mowe tune _14f toa V “hk feig fe2 Thu) = Pea) ao Mate rune fhe tos. as [e) |t=3 Tr) = P(4) b=b Moe, wor 4 {to ye ale ler spon. C53 foe _—_— ~ TC) =P) Pp yy» i fe Cem ~ mink fit tout! TO] 3 || Fe—-m-| WW tntee Pe n=) | . So eee eee iste ie yal 0 CT Laue = —fndex =I : va , [as - R= 4 . aa —— | eos : | . @ = 6-2-1 ee srOns ol = ss | WEL o__RkGrTT COLLEGE RKG ; Pas-9 aI T ul Z KGL oon # eT a cL Sed psithleon thot tan pol Yyrcin tu tne reve dua 4 | wef Pi abe known as Pte /pTime. lee t- yo - Qz—0 P ewblem _oste_c._—_aek atten _founblens sud: = Colin he Doled menial “TMe wang “the __deteoinSnPia fe ; aa Sirnple +o Anive, am to ‘Banpe_y__?_penbln VAAN i‘ /yi LUB i fn Np 2 i on 0, fi to¥ 8. | 9 the _quoap piles echo Nef and" NP Hoek _avie noon, NP~ compere —_feicblems, fs = ( e hot att _NP=Howd__petoblenis ogy -bsivblems . NP comblete NP=Hosrd Pourblens Eu usin fo _NP- class com be stedieed ini ey A i me Shen ik is__Caffed Os __NP- Hos beoblon. Hpbsioxtmadtion Alcosttion \AA\A vee \ \ Dete Cc ye LY oe te Salta pn Ai reitix aon — s fon. | Maina co C# < p(n) Z : 4 29. 9. E | Miniinarzortfo \ ———— \ c_< pln) c* Sansa scant cat Vesttex Covet Rioblem te Lf) vestiex _coueet ‘ a % a Aubsee vestfcos “ __whfr (ovest cg te ex_fouer —__psroblen & the! mfaorum Qbize___Vesidex u AbpouosCovesr_sblens (6) il ceo 7. ee EC) 3. while 2’ eo Yy do__fot fy) Que croubflosy edge tm €’ 4 Cec uly) ee — VRS = a — Rene nC ever ces efthey "4 cu ve (f @ 6 ced Pe 2) (Crd), (0,4), (6 if ce bulb) CS bych Rermaue {uom e Buca} ergo —thufleuk fy WU gu fo © tae ce = th v ies) Oy === O--— GA CCH 7 thon vty “| (=== —j->-7-- _ TT b ae a yas . ae @--© : te tee jig $ | 4 (tec J Optimal Glutton = Toed§ C=3 mia™ _¢.< p(n) ' Cr ne \ gS pln) ‘ d : \ [2s Cn i : . A “op _dr alesis Hoke uses Random _‘Numbeoe ; to V olor tfe hat do__next , Aur rutherte Sn Fs Logie called Kernel onataed tpoetti. ; hi etthm Used _to__ste duce _apace and. inne Conaplextty ap —?. aoa 2. || Monte- Casulo Algasithn At dos Vegas gosta — Ourkput bs ALMA Cos Randonfaed Quek sou ___> Alain m Seasich Repeat (a) ff vl fur ( eso, Csn-13 fer fou (f= te 5 ADS fit) iH altl== all HeHusin “Teiue j ay $ Agoutttha LV -Seasuh Repeat (4) Z while (“Bue do = gondonet) mod p-+t = fandom() mod n+h 7 as Hetuun “Te1ue; 48s lo fal Fousiten anton f(t l_ dyeing —— gp Soda Med Yo | (foo, Pe nary fer) ' | ‘4 (au)==a) : a Heruoin “Teives : +t : Z| gos —Mc_Sonn Geauich, CA,a.n) — | fou (feo; ten y bre) 3 \ C= nandome, Mod n-+1 : 4 CAd)s=a) gretustn True 4 % .

You might also like