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

Dashrath Nandan DAA (Unit3) Notes

Uploaded by

Arpit Anand
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)
110 views

Dashrath Nandan DAA (Unit3) Notes

Uploaded by

Arpit Anand
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/ 14
Unt: b ashyath vndan a (Gorapha A gyaph is . non-linear data Stuucture rl anol edges (verkices and byes). te Tie) ne Bie “sNetex5 ; Ede ; Adjaceney (gue Connect _b each oth 1x thro Poth? th Yepresunt a Sea: © | | /—_+———. WAncidonce, Marine * In this » 0 oe = sees dudung a matin of 4H xe ; 14 nee usnich is net lonnected + ceauell b Hepnnt ar hi eae al ordering 4 the Untins tn Auch a ¢ is Ai Lge in He DAG -geityp piers vedere ‘u'to verter ‘V' ; Hen. 'U' mes befene'v' Un ordering « 4) Graph Sheuld be Riveckad Aeyclic Crraph. (DAG): %e ~ Every DAG till hae Atleast ene topological Orderumng « Am! by polpgical ~ Sant @) (As caul wDES Gx) to Compute. dinishiup Lt V4 BS fo €ath verter Fe LE 0s bach ntinn ts pintshads crash it onto EX : _>|_the_ front of atinksol fide __ a |B Peed the Linked) List of Verliod +: sata 3 sl Reowakiin ¢ oe Savy atte 0) < AO To dip. dlay+ CV) ¢ LO aE Taal ae dv) = du) + Cle Mua se a eT “Te= OlElvi-1) ie ee aaa ete m ites Prat 9 | mere) Diese Mei hs PLAC x NP Hawk: Ar A problems at least as hording tre hasdeat prbblem. 7 and Lt a clans.og problems Auth that cuuy breblim <» NP Hedutes to NpP-haxd. x NP-Gmplote : A pibblom ds Np tomplete ee béth NP and aH ‘dy ae He hard_frh» in np B26 Hamiltonian Gyles »— Vexkex Quer: t Buseg Bt Ne-havid_ 2 Ae Complete t 214 (amguage 6th NP. Complete Yt dabispces He, 1s he, fute Cord 2 Bfs in NP. oe “Bray Abo NP pilyromiad Lirasstiedlidible fp Pd ee gi a INP —p- Lutlilean Ladhilean got Alter fo ACD * an We haus to (fend GP (Grnecdast coromnte itive) 6 1 nen ee ged (21 b)- J Le ae ie penta Baud On the fost Wat= cal Ll 4 Bre ao i Dhis enable ousiciing back batting of th ing The Kop matches + bith Shing'S', paliomn'y! amd pain. famed Al Fa jou 'imputs., f’rol the oceunnence 6f.' Phun s'.aand Hetwon ol the number 6 Ahiftie ef.'b' o4un which eccormumces one fsunde this g45 6 EB 9 to. 1 tee IBN ee String: Ob abl AbC.A. ba bro by ve “ Repent steps iLL the 14} ¥ fyputab< / Qs) The Boyer- Moore Algosittim.* I - 4h (Fhe B-M_ atoawithen takes a! backward approach + the \ pattoun. shia (P) iu“ allied e he start Of the teace | Shing(T), ahd them. Co-rmpane the chanocteas tf, SAB i age ge The tue dtr xe aillod heuristics Of BM a x ane ty Seduce the Sranth- f ai ) Bad chavacky Hewistics i a — | “= __ b100d Suphic Hewustia = [ T= AINALSESTIZAINA a | P=. AE NAINEN | rs ace eaaeee T= AINATS t TIZALNALNER TN AINEWN Ly Compare the surtimast Uemont of P to that of T- 4 they ae mismatched thin aap Hhe_potten + Du yalue of Ship 4. 3 Oe, ding to mismatched taste anol Character in fom: mamatth, , vabat.=3 I T=AITNG TS ES. pe ee Pose Be value lop et. > aerial SO, Shift wes! Value 5 Fyiie 9+ | me AIL NAL SES TIZAZTNAITNEN p= ee [Conde Hie slneg. Taouci®s Aboritien or_obrapping We delet from tht Lyptmest point (OM ren “a Kee) ae | Do Ti, IN Ye. neat patnt 2, such that the tit (84) fale reg ay neat Pin he \ a LO oe | nent (P] = 2 hat! Pz Pas? fev cent lie a | Conue Hulk Usina “Haham Stan Ab wu thn ene es aa of Fant ole ol) ‘| Using Greaham's Scan jihm , xe Cam find Loniten. Hull dm O( nlc ) Home: — Als ae — 4+ Find the bottom mast Pu pacing — SS 4 SAD Wy Dat pac paint by lomp yis'tame ja thom Compare X + Panyisa tury “i lai ' ee Tas |Onatein: Ho semaiiog =n pooh fg Sort thi by polar any in. Gute EW : sti < Ohdex Crbewrad pacretstey» ee 3s Aptos sorting » if Miib points hawe S : m ST orm aninactincets a.,| ana Ss' [Hate pont faxtuast from PO.[gf on : . c ae ee thasg crise aa ian aaah wl ec td mca srehont 1st A.) Be lene A Omphy Stack's' and Push Plat, #0, Paks -| Nox tirhainine V3 poinds one'by One. [se L_ ; ee accept, Bhat

You might also like