A 43k Kernel for Planar Dominating Set using Computer-Aided Reduction Rule Discovery
|
|
- Gavin Fowler
- 5 years ago
- Views:
Transcription
1 A 43k Krnl for Plnr Dominting St using Computr-Ai Rution Rul Disovry John Torås Hlsth Dprtmnt of Informtis Univrsity of Brgn A thsis sumitt for th gr of Mstr of Sin Suprvisor: Dnil Lokshtnov Frury 2016
2 2
3 I think vryon shoul lrn how to progrm omputr us it ths you how to think - Stv Jos
4
5 Aknowlgmnts First n formost I must thnk my suprvisor, Dnil. Your knowlg n guin hs n invlul uring th work with this thsis. You hv lwys n vill for qustions; wkns, timzons n ontinnts hv nvr hinr m from rhing out. You r grt thr, n hv th ility to s simpl n lgnt solutions whr I s prolms; tht is somthing I rlly mir. I must lso thnk th stunts n fulty t th Dprtmnt of Informtis, Univrsity of Brgn. You hv rt n nvironmnt of xitmnt n uriosity out th worl of Computr Sin, whih hs l m to lov ing prt of th fil. A spil thnks to th Algorithms group, whos fr pizz got m intrst in omptitiv progrmming n lgorithms in th first pl. Thnks to Simn, Mgnr n Erik; you hv n grt tm mts n mntors uring progrmming omptitions. It hs n fun n xtrmly vlul xprins. Of ours my fmily must mntion. My got m intrst in omputrs in th first pl, y ringing omputr mgzins n ol omputrs to tmpr n ply with, hom from work. My prnts hv lwys lt m o wht I lov, ut rmin m to gt som slp whn tht is u. An Christin, my girlfrin, thnk you for kping up with m in th lst wk for th lin. Now I m finlly oming hom.
6
7 Contnts I Introution n prliminris 1 1 Introution Bkgroun n Thsis Ovrviw Trminology n Prliminris Mthmtil Nottion Points in th Pln Grphs Pln Grphs Dision Prolms Algorithms n Runtim Dominting St Effiint Algorithms n NP-hrnss Coping with NP-hrnss Fix Prmtr Trtility n Krnliztion Fix Prmtr Trtl Algorithm for Vrtx Covr Krnls Rution Ruls II A Linr Krnl for Plnr Dominting St 19 3 Plnr Dominting St Nighorhoo of Vrtx Rution Ruls Rgions n Rgion Domposition s Trt y Alr t l Domposing th Grph Egs in Pln Emings Wlks in Pln Emings Rgions Grph Enrihmnt Rgion Domposition Mximl Rgion Domposition A Linr Krnl Th Krnl of Alr t l A Smllr Krnl 43 i
8 6.1 Vrtx Flipping Uppr Boun Outsi Rgions Bouning Rgion Siz An Improv Krnl Uppr Boun III Computr-Ai Rution of Rgions 49 7 A 43k krnl for Plnr Dominting St Dfinitions A 43k Krnl Computr-Ai Rution of Dth Rgions Mor Dfinitions Rution Ruls Insi Rgion Boun Insi Innr n Singl Rgions Innr rgions Bouning th Siz of n Innr Qusi-Rgion Singl Qusi-Rgions Outr Rgions Without Possil Domintors Bounry Sizs n Vrtis Splitting Rgions Into Smllr Prts Fully Enumrt Rprsnttiv Sts Orr of Enumrtion Enumrtion of Fully Enumrt Rprsnttiv Sts Innr rgions Enumrting Singl Rgions (2, 1) s -rgions (2, 2) s -rgions (2, 2) s (1, )(,2)-rgions (3, 2) s -rgions (3, 2) s (1,2,3)(1, )-rgions (3, 3) s (1,2,3)(1,2,3)-rgions (2, 1) n -rgions (2, 2) s,n -rgions (2, 1)-rgions (2, 2)-rgions (3, 1)-rgions (3, 2)-rgions (3, 3)-rgions Implmnttion n Rsults Conlusions Opn Prolms Biliogrphy 92 ii
9 Prt I Introution n prliminris 1
10
11 Chptr 1 Introution Imgin this snrio: You r th monrh in ountry with svrl smll towns sttr throughout th lns. Th nighoring towns r onnt y ros, whih n us to riv ffiintly twn thm. Your popl think you r n outstning monrh, n you wnt to kp it tht wy, us it just fls so goo ing worshipp, s shown in Figur 1.1. Evrything sms to going smoothly, ut sunly th towns strt hving prolms with osionl firs, n for som rson th houss urn to th groun quit fst. You i to pl fir sttions in som of th towns, suh tht vry town ithr hs its own fir sttion, or nighoring town with on. In tht wy Figur 1.1: Fls so goo to king. you mk sur tht in s of fir, thr s fir truk ry in th town, or svior n om from n jnt town. Howvr, uiling fir sttions is xpnsiv, n you n to sv goo hunk of your txpyrs mony so you n uil nw stl, in s you shoul n on. Wht is th minimum numr of fir sttions you n uil to gt ri of your prolm? An xmpl of n instn of this prolm is shown on th lft in Figur 1.2. How hr n this? You quikly rliz tht thr r no ovious positions to pl your fir sttions, so you sort of n to try iffrnt plmnts, n onvin yourslf tht your plmnt is optiml. On th right solution is shown, proving tht you n solv th prolm using only 3 fir sttions. In this prtiulr s you n prov with rltiv s tht no smllr solution is possil, ut this is not lwys tht sy. 3
12 Figur 1.2: A grph n its miniml Dominting St olor in grn. A ulltproof wy to fin th optiml solution is to try ll possil plmnts of fir sttions, n pik th smllst solution foun. Th prolm with this pproh is tht th numr of possil plmnts w hv to try oms stronomilly ig if th numr of towns is lrg. This is wht is known s rut-for pproh, n it is gnrlly onsir vry for ll othr thn smll prolm instns. This prtiulr prolm is known s th Dominting St prolm, n hs n hvily stui, oth for its mny prtil pplitions n its thortil spts. Th Dominting St prolm is importnt in mny inustris; tlphon oprtor pling rio towrs t rnom hoping to hiv goo ovrg woul quikly run out of mony; in soil ntwork thory solving th prolm n l to insight in popls influn on h othr[26]; n mny prolms in logistis, istriution n trnsporttion n mol in this wy. Dspit th grt fforts of mny popl sin th Dominting St prolm ws first formliz in th 1950 s[15] no ffiint lgorithm for solving it hs n foun. Th rson for this ws foun in th 70 s, whn svrl rsrhrs pulish pprs on th thory on NP-ompltnss[7, 20, 18]. It turns out tht Dominting St is mong ths NP-omplt prolms, n it is liv tht no ffiint lgorithms xist to solv thm. Evn though w liv tht it is not possil to solv th prolm ffiintly in th gnrl s, mny rl-lif instns of th prolms hv strutur tht n mk th prolm mor trtl. Looking k t th fir sttion xmpl, w n osrv tht th instn in this s is mp showing th towns rwn in th pln, with no ros rossing h othr. This informtion n us to improv on our lgorithms whn trying to fin solution. As w shll s, th plnr vrsion of th prolm, Plnr Dominting St, is onsir sir thn th gnrl prolm. In som ss w n isovr prts of th input instn tht r sir to solv thn th rst, n w n rmov ths prts ffiintly from th instn. W will show tht for lrg instn to th Plnr Dominting St prolm w n lwys ru th instn to siz just pning on th siz of th optiml Dominting St. This rmining prt w r lft with is ll th krnl of th instn. 1.1 Bkgroun n Thsis Ovrviw In this stion, w will provi rif ovrviw of th thsis, inluing som kgroun n rsults. This ovrviw mks us of fw si onpts from Prmtriz Complxity. Ths onpts r xplin in th prliminris prt. 4
13 In 2004, Alr, Fllows, n Nirmir[2] prsnt krnliztion lgorithm for Plnr Dominting St, n m up with th onpt of Rgion Domposition for plnr grphs. This is wy of iviing plnr grphs into rgions, n svrl pprs following thirs hv m us of this prtiulr thniqu for showing krnls for prolms on plnr grphs [1, 6, 11, 12, 13, 21, 23]. Unfortuntly thr r som miguitis in th finitions of th or onpts of th Rgion Domposition of Alr t l., n w o not s wy to rsolv ths miguitis suh tht th proof of th lmm s pulish in [2, Lmm 6] is orrt. For this rson, thr hs n som unrtinty [17] s to whthr th sttmnts m using Rgion Domposition n its thorms r tru, or whthr thy, n th rsults uiling on thm, shoul ronsir. Th first min ontriution of this thsis is to show tht minor moifitions to th finitions, thorm sttmnts n proofs of Alr t l. is nough to mk thir thorms n rsults go through. Our moifitions r onsistnt with th us of th Rgion Domposition thniqu in othr work w r wr of, giving ths rsults soli fountion. Our moifi finition of Rgion Domposition togthr with th proofs of Alr t l. show tht if plnr grph hs ominting st of siz k, thn thr xists Rgion Domposition of th grph hving t most 3k rgions. Togthr with th ouns of t most 55 vrtis insi h rgion n 170k vrtis in totl outsi rgions from Alr t l., this rsults in krnl on 335k vrtis. On of th pprs tht s thir proofs on th Rgion Domposition thniqu of Alr t l., ws th 2007 ppr y Chn, Frnu, Knj, n Xi[6]. Thy introu som itionl rution ruls n y n improv nlysis uppr oun th numr of vrtis in vry rgion y 16 n th vrtis outsi rgions to 19k. This yils 67k krnl for Plnr Dominting St. Our son min ontriution is to improv this rsult y introuing on xtr rution rul n y moifying th ming of th grph. Doing this w r l to oun th numr vrtis outsi rgions to 7k in totl, rsulting in 55k krnl. Chn t l. wr l to oun th siz of th rgions to 16 y using svrl rution ruls n n xtnsiv s nlysis. W utomt this s nlysis pross y th us of omputr progrm tht signs rution ruls y xhustivly srhing for ru rgions, n provs th orrtnss of th gnrt rution ruls s it runs. In th pross it kps trk of th iggst non-ruil rgions foun, rriving t th rsult tht ny rgion n ru to n quivlnt rgion of siz 12 or lss. This givs ris to 43k krnl. B sur to r th Wors of Wrning t th strt of Prt III, s w finish th oing of th omputr progrm it too los to th sumission t. Not tht th srh for ru rgions oul hv n on y nïvly numrting ll rgions up to th siz of 16, n kping th ru ons. But sin this will tk yrs, if not s, vn on supr-omputr, w o n xtnsiv nlysis to sp up th pross, mking it possil to rriv t th rsult in fw ys on smi-powrful prlll omputr. Chptrs 1-2 introu th Dominting St prolm n nssry nottion. In Chptrs 3-5 w prov our Rgion Domposition thorms n rriv t th 335k krnl. In Chptr 6 w improv this to 55k. Finlly, in Chptr 7 n out w sri our pross for oing omputr-i rution of rgions, furthr improving th krnl to 43k. 1.2 Trminology n Prliminris In this stion w will introu th rr to most of th or onpts w r touhing on throughout th thsis. Mny of th onpts n foun sri in ny goo introutory ooks to Disrt Mthmtis n Algorithms [25, 9] so w will only rifly xplin th most si ons, n spn most of our tim sriing thos mor prtiulrly rlvnt for our isussion of th Plnr Dominting St prolm. 5
14 1.2.1 Mthmtil Nottion W will frly mk us of stnr st nottion, s foun in Rosn[25]. For th sk of onvnin w will rstt th most ommon ons hr, fin tilor to our us. Dfinition 1.1 (Multist). A multist is n unorr olltion of lmnts. Dfinition 1.2 (St). A st is multist whr h lmnt pprs only on. Dfinition 1.3 (Univrs). A univrs is th st tht ontins ll th lmnts unr onsirtion in givn sitution. As n xmpl, if w r looking t oprtions on sts of positiv intgrs, th univrs in this sitution will prisly th st of ll positiv intgrs. Lt A, B two sts from som univrs. W hv th following finitions Mmr of st If th lmnt x is in th st A, w sy tht x is mmr of A, n not this y x A. A non-mmr y is not y A. Crinlity Th numr of mmrs of A is ll th rinlity of A, not A. Empty st A = if A = 0. Sust A B, if for vry x A, w hv x B. Equlity A = B, if A B n B A. Propr sust A B if A B n A B. Union A B = {x x A x B} Intrstion A B = {x x A x B} W will n th finitions for infimum n suprmum on th st of rl numrs: Dfinition 1.4 (Infimum). Lt S R. Th infimum of S, not inf(s), is grtst lmnt in R tht is not grtr thn ny lmnt in S, if suh n lmnt xists. For instn, lt S = (0, 10]. Thn inf(s) = 0. Th finition of suprmum is similr, ut this on w will only n for th nturl numrs: Dfinition 1.5 (Suprmum). Lt S N. Th suprmum of S, not sup(s), is smllst lmnt in N tht is not smllr thn ny lmnt in S, if suh n lmnt xists Points in th Pln To l to tlk out plnrity of grphs ltr, w will n nottion rgring points in th pln. Dfinition 1.6 (Crtsin oorint systm R 2 ). W sy tht R 2 is th st of ll pirs (x, y) whr x, y R. R 2 is ommonly rfrr to s th pln. Th mmrs of R 2 r ll points. Not tht w oftn will not st of points simply s point st. Dfinition 1.7 (Point-to-point istn). Lt p 1 = (x 1, y 1 ) n p 2 = (x 2, y 2 ) two points from R 2. Th Eulin istn, or simply istn, twn th two points is ist(p 1, p 2 ) = (x1 x 2 ) 2 + (y 1 y 2 ) 2. Dfinition 1.8 (Point st-to-point st istn). Lt A, B R 2 two point sts. Th istn twn th sts is ist(a, B) = inf{ist(, ) A, B}. W sy tht A n B r sprt y th istn ist(a, B). 6
15 Th rson w r using infimum for this finition is so w n sy tht two point sts tht r infinitly los in R 2, ut not intrsting, r sprt y istn of 0. Figur 1.3: Th istn twn two point sts is th smllst istn twn ny two points, on from h st. Whn oing ition n slr multiplition on points, w trt thm s rgulr vtors, n prform th oprtions s fin in Ly[19]. Dfinition 1.9 (Lin sgmnt). Lt p 1, p 2 two points in R 2. Th linsgmnt twn p 1 n p 2 is th st of points L(p 1, p 2 ) = {λp 1 + (1 λ)p 2 0 λ 1}. p 1 n p 2 r ll th npoints of th linsgmnt. p 2 p 1 Figur 1.4: A linsgmnt is th st of ll points on th lin twn th two npoints p 1 n p 2. Dfinition 1.10 (Simpl polygon lin). A simpl polygon lin P is point st P = L(p 1, p 2 ) L(p 2, p 3 ),..., L(p t 1, p t ) suh tht th following proprtis r stisfi: p 1, p 2,..., p t is finit squn of points whr p i p j for ll i j for 1 < i < j < t w hv L(p i 1, p i ) L(p j, p j+1 ) = for 1 < i < t w hv L(p i 1, p i ) L(p i, p i+1 ) = {p i } p 1 n p t r ll th npoints of P, n w writ P = P (p 1, p t ). f Figur 1.5: Th simpl polygon lin is m up of lin sgmnts twn th points through f. n f r th npoints of th simpl polygon lin. 7
16 Dfinition 1.11 (Connt points). W sy tht pir of points p 1, p 2 is onnt in point st S if thr xists simpl polygon lin P S suh tht p 1, p 2 P. Dfinition 1.12 (Connt pointst). A point st S is onnt if vry pir p 1, p 2 S is onnt in S. Dfinition 1.13 (Simpl polygon). A simpl polygon P is st of points s.t. thr xists simpl polygon lin P with npoints p 1, p t, n linsgmnt L(p 1, p t ) s.t. L(p 1, p t ) P = {p 1, p t }, n w hv P = P L(p 1, p t ) p 2 p 3 p 5 p 1 p 6 p 4 Figur 1.6: A simpl polygon. For onvnin, whn w sy just polygon lin or polygon, w will rfr to th finitions ov, mning simpl polygon lin n simpl polygon. Dfinition 1.14 (F). Lt P simpl polygon. Th inlusion-wis mximl onnt point sts of R 2 \ P r ll fs. Th infinit on is ll th xtrior f of P, whil th finit on is ll th intrior f of th polygon. Dfinition 1.15 (Unit siz isk). A unit siz isk with ntr p R 2 is th st of points Grphs {p R 2 ist(p, p ) 1} Dfinition 1.16 (Vrtx). A vrtx v is singl lmnt from som univrs of lmnts U. Dfinition 1.17 (Eg). An g is n unorr pir of two vrtis u, v, writtn = (u, v). W sy tht is inint to u n v, lso tht gos twn u n v. u n v r th npoints of. Dfinition 1.18 (Simpl grph). A simpl grph G is pir V, E, oftn writtn G = (V, E). V is st of vrtis, n is ll th vrtis of G. E is st of gs twn vrtis in V, n is ll th gs of G. Mor spifilly, E {(u, v) u, v V, u v}. V n E r oftn writtn V (G) n E(G) rsptivly, whn it is miguous whih grph thy long to. Dfinition 1.19 (Multigrph). W sy grph G = (V, E) is multigrph if w llow E to multist. As w will mostly work with multigrphs from this point forwrs, w might somtims just writ grph, mning multigrph. Not tht our finition of multigrph os not llow slf-loops (i.. n g (u, v) s.t. u = v). Dfinition 1.20 (Ajnt vrtis). Lt G = (V, E) grph, n lt u, v V two vrtis in G. W sy tht u n v r jnt if thr is n g in G inint to thm oth. Tht is, if (u, v) E. 8
17 Dfinition 1.21 (Nighorhoo of vrtx). Lt G = (V, E) grph, n lt v V vrtx in G. W not th nighorhoo of v s N(v), n it onsists of ll th vrtis jnt to v in G. Th los nighorhoo of v is not y N[v] = {v} N(v). Dfinition 1.22 (Nighorhoo of st of vrtis). Lt G = (V, E) grph, n lt S V st of vrtis in G. As for singl vrtx, w not th los nighorhoo of S s N[S] = N[s] n th nighorhoo of S s N(S) = N[S] \ S. s S Dfinition 1.23 (Dgr of vrtx). Lt G = (V, E) grph, n lt v V vrtx in this grph. Th gr of v is th numr of gs from E inint to v, n w not it y g(v). Not tht sin w in som ss will llow multipl gs, th gr of vrtx is not lwys th sm s th numr of nighors it hs, s is th s for simpl grphs. Dfinition 1.24 (Inu sugrph). Lt G = (V, E) grph, n lt S V st of vrtis in G. Th sugrph inu y S is th grph hving vrtis V = S n gs E = {(u, v) E u, v S}, n is not G[S] = (V, E ). Dfinition 1.25 (Dlting vrtis of grph). Lt G = (V, E) grph, n lt S V. Th grph G S is th grph G = (V, E ), whr V = V \ S n E = {(v 1, v 2 ) E v 1 S v 2 S}. Dfinition 1.26 (Disjoint union of grphs). Lt G 1 = (V 1, E 2 ), G 2 = (V 2, E 2 ) two grphs suh tht V 1 V 2 =. Th isjoint union of G 1 n G 2, not G 1 + G 2, is th grph G = (V 1 V 2, E 1 E 2 ). Dfinition 1.27 (Aing gs to grph). Lt G = (V, E) grph n lt E 1 {(u, v) u, v V, u v} st of gs. Th grph G otin y ing th gs E 1 to G is th grph G = G + E 1 = (V, E E 1 ). Dfinition 1.28 (Suprgrph). Lt G = (V, E) grph. A grph G = (V, E ) is suprgrph of G if V = V n E E. Dfinition 1.29 (Wlk). Lt G = (V, E) grph. A wlk W of lngth k in G is squn (v 1, 1, v 2, 2,..., v k, k, v k+1 ) whr v i V, j E, suh tht j {1,..., k}, j = (v j, v j+1 ). Dfinition 1.30 (Simpl wlk). A simpl wlk is wlk whr ll th vrtis in th squn r istint. This is ommonly know s pth. Dfinition 1.31 (Cyli wlk). A yli wlk C is wlk W = (v 1, 1,..., v k, k, v k+1 ) suh tht v 1 = v k+1. Dfinition 1.32 (Cliqu). Lt G = (V, E) grph, n lt C V st of vrtis in G. W sy tht C is liqu if ll vrtis in C r jnt, tht is u C, v C, (u, v) E. A liqu on n vrtis is not K n. Dfinition 1.33 (Inpnnt st). Lt G = (V, E) grph, n lt I V st of vrtis in G. W sy tht I is n inpnnt st if no vrtx in I is jnt to ny othr vrtx in I, i.. u I, v I, (u, v) E. Dfinition 1.34 (Prtition of grph). Lt G = (V, E) grph, n lt A V n B = V \ A two isjoint susts of th vrtis of G. W sy tht (A, B) is prtition of th grph. Dfinition 1.35 (Biprtit grph). Lt G = (V, E) grph. W sy tht G is iprtit if thr xists prtition (A, B) of V (G) suh tht A is n inpnnt st, n B is n inpnnt st in G. (A, B) is ll iprtit prtition of G. Dfinition 1.36 (Complt iprtit grph). Lt G = (V, E) iprtit grph with iprtit prtition (A, B). W sy tht G is omplt iprtit grph if vry vrtx in A is jnt to vry vrtx in B, i.. A, B, (, ) E. A omplt iprtit grph hving prtition (A, B) whr A = n n B = m is not K n,m. 9
18 ɛ Figur 1.7: A plnr grph n lwys rwn with gs sprt y istn ϵ > Pln Grphs Th st of plnr grphs is th typ of grphs w ll turn most of our fous to in this thsis. W will now stt som finitions rgring plnr grphs tht will usful for th rst of th isussion. Dfinition 1.37 (Pln ming). A pln ming of grph G = (V, E) is four-tupl E = (U E, P E, f E, g E ), whr U E is st of unit siz isks, P E is st of polygon lins, f E : V U E is mp tht mps ny vrtx of V to unit siz isk in th pln, n g E : E P E is mp tht mps ny g in E to polygon lin in th pln, suh tht thr xists n ϵ > 0 n th following onitions r stisfi: 1. For vry pir of istint vrtis v 1, v 2 V thir unit isks r sprt y ϵ, i.. ist(f E (v 1 ), f E (v 2 )) ϵ 2. For vry pir of istint gs 1, 2 E, thir polygon lins r sprt y ϵ, i.. ist(g E ( 1 ), g E ( 2 )) ϵ 3. For vry g E n for vry vrtx v V not inint to, th unit isk of v n th polygon lin of is sprt y ϵ, i.. ist(f E (v), g E ()) ϵ 4. For vry g E n for vry vrtx v V inint to, th unit isk of v n th th polygon lin of will touh xtly in th point p, whr p is on of th npoints of th polygon lin of, i.. f E (v) g E () = {p} In simpl trms th first onition sys tht no two vrtis shoul rwn intrsting in th pln, th son tht no gs shoul ross in th rwing, n th lst two tht n g shoul touh only th unit isks of its npoints in th rwing. Not tht th finition of pln ming is tilor to our us ltr in th thsis, n might look it iffrnt from th stnr wy of fining it. Vry oftn in th litrtur, vrtis mps to points in th pln, n gs to stright lins or urvs. It is howvr possil to show tht ths finitions r quivlnt, ut w ll omit th proofs, n rfr to Mohr n Thomssn[22] for th stnr wy of fining grphs on surfs. Dfinition 1.38 (Plnr grph). A grph is plnr if it hs pln ming. Dfinition 1.39 (Pln grph). A pln grph G is grph G togthr with pln ming E of G: G = (G, E). 10
19 Dfinition 1.40 (Drwing of pln grph). Lt G = (V, E) plnr grph, n E = (U E, P E, f E, g E ) n ming of G. Th st of points E(G) = ( f E (v)) ( g E ()) is ll th rwing of G. v V Dfinition 1.41 (Pln suprgrph). Lt G = (G, E) pln grph. A pln suprgrph of G is suprgrph G of G n n ming E of G suh tht for ll u V (G), f E (u) = f E (u) n for ll E(G), g E () = g E (). Dfinition 1.42 (F in pln grph). Th fs of pln grph (G, E) r th mximl onnt sts of points of R 2 \ E(G). Th infinit f of pln grph is ll th xtrnl f or outr f. Dfinition 1.43 (Vrtx inint to f). Lt G grph with pln ming E = (U E, P E, f E, g E ), n lt f f in this grph. A vrtx v E is inint to th f f if ist(f, f E (v)) = 0. Dfinition 1.44 (Eg inint to f). Lt G grph with pln ming E = (U E, P E, f E, g E ), n lt f f in this grph. An g E is inint to th f f if ist(f, g E ()) = 0. Osrv tht n g n inint to t most two fs. Dfinition 1.45 (Siz of f). Th siz of f f in pln grph is f = w f (), whr E 0, if not inint to f w f () = 1, if is inint to f n som f othr thn f 2, othrwis Osrv tht h g in th grph will ontriut 2 to th sum of th siz of ll fs in th grph, n w hv tht f = 2 E f F whr F is th st of fs in th ming. A wll-known thorm tht will usful is th following. Thorm 1.46 (Eulr s formul [3, Thm 3.7]). Lt (G = (V, E), E) onnt pln grph, n lt F th st of fs in th ming. W hv tht V + F E = 2 E Using th ov thorm w n riv nothr usful on: Thorm 1.47 (Biprtit Plnr Grph Lmm). Lt G simpl plnr grph with iprtition (A, B) whr B, g() 3. Thn B 2 A. Proof. Lt n = V (G) = A + B th numr of vrtis, lt m = E 3 B th numr of gs, n lt f = F th numr of fs in G. Sin th grph is simpl n iprtit, f in th grph must hv siz of t lst 4, mning 4 f 2m or f m 2. Using this togthr with Eulr s formul yils: m = n + f 2 n + m 2 2 or m 2n. From for w hv 3 B m 2n = 2 A + 2 B = B 2 A. Th fmous thorm of Kurtowski sys tht grph is plnr if n only if it osn t ontin suivision of th liqu on 5 vrtis, K 5, or th omplt iprtit grph K 3,3 s sugrph. W won t fin suivisions hr, n rfr to Anrson[3] for this. Th importnt ft is tht this mks plnrity hking rltivly sy, n numr of ffiint lgorithms for hking plnrity 11
20 xist[16, 5]. This will usful for us whn w ltr wnt to gnrt mny plnr grphs on omputr, s w ffiintly n hk whthr th gnrt grphs r plnr. A thorm w will us ltr is on vry similr to Kurtowski s, rgring outrplnrity: Dfinition 1.48 (Outrplnr grph). A grph is outrplnr if it is hs pln ming whr vry vrtx is inint to th xtrnl f. Thorm A grph G is outrplnr if n only if it hs no suivision of K 4 or K 2,3 s sugrph. W rfr to Distl[10] for th proof Dision Prolms Dfinition 1.50 (Dision Prolm). A ision prolm L is sust L Σ, whr Σ is fix siz lpht, n Σ nots th th st of ll finit strings ovr Σ. A ision prolm is lso ll lngug. Givn n instn I Σ, wht w wnt n lgorithm to o is to i whthr I L or I L. Dfinition 1.51 (Ys/no instns). Lt L Σ lngug. An instn I 1 Σ suh tht I 1 L is ll ys instn of L. An instn I 2 Σ suh tht I 2 L is ll no instn of L. In othr wors, n lgorithm tht solvs ision prolm P will for givn instn I output ys if I P n no othrwis. Dfinition 1.52 (Instn siz). Th siz of n instn I Σ is I log Σ, i.. th numr of its n to no I. Whn ling with prolms on grphs it is mor onvnint to not th siz of n instn grph G = (V, E) s V + E. For gnrl grphs this will quivlnt to Dfinition 1.52 up to smll polynomil ftor n for plnr grphs up to onstnt ftor[28]. Vry oftn w will only onsir th numr of vrtis whn tlking out th siz of grph, n for plnr grphs this will gin quivlnt up to onstnt ftor. Dision prolms r oftn rlt to wht w ll optimiztion prolms, ut s w on t n tht finition for our isussion hr, w rfr to Sipsr[27, p. 393] for mor info on this Algorithms n Runtim Dfinition 1.53 (Big-O nottion). Lt f : N N n g : N N omputl funtions. W sy tht f is O(g) if f(n) g(n), for som onstnt. This is lik sying tht f will nvr gt muh iggr thn g, n is usful for sriing runtims of lgorithms. Dfinition 1.54 (Runtim). Lt A n lgorithm tht trmins whthr givn instn I is ys or no instn to prolm P. Lt I = n, n lt th numr of stps A uss to trmin if I P oun y funtion f(n). W thn sy tht th runtim of A is O(f(n)). Algorithms hving runtim O(n ), whr is onstnt, w sy r polynomil tim lgorithms. Whn w writ poly(n) or n O(1) it is quivlnt to O(n ). Algorithms hving runtim O( n ) w ll xponntil tim lgorithms. Whn w tlk out ffiint lgorithms, w r tlking out polynomil tim lgorithms. Somtims w ll writ polynomil lgorithms n xponntil lgorithms, mning polynomil tim n xponntil tim lgorithms. 12
21 1.2.7 Dominting St Now lt s turn k to th Dominting St prolm w introu rlir. W strt out y fining it formlly: Dfinition 1.55 (Dominting St). A Dominting St D of grph G = (V, E) is sust of vrtis D V suh tht N[D] = V. In othr wors, vry vrtx in G must ithr in D or hv nighor in D for D to Dominting St of th grph. Th ision prolm now oms Dominting St (DS) Input: Grph G, n intgr k. Qustion: Is thr Dominting St D of G of siz t most k? In trms of th finition of ision prolms (Dfinition 1.50), this mns w hv lngug Dominting St whr vry ys instn is of th form (G, k), whr G is grph hving Dominting St of siz t most k. W will oftn ll th vrtis in givn ominting st of G for omintors. Th prolm sttmnt is prtty strightforwr, ut to fin th solution in th gnrl s is known to hr. Dominting St is on of th funmntl NP-omplt prolms. W ll hv look t wht tht mns in th nxt stion Effiint Algorithms n NP-hrnss Whn w sign n lgorithm w woul nturlly lik it to s fst, or ffiint, s possil. W on t wnt to wit forvr for th lgorithm to output n nswr to our qustion. In omplxity thory, lgorithms with polynomil runtim is usully onsir ffiint. Algorithms with n xponntil runtim r lss sirl. Th running tim of ths xponntil lgorithms inrss vry fst whn th input siz is inrs. Dision prolms for whih thr xist polynomil tim lgorithms w sy r in th omplxity lss P. All ision prolms for whih w n in polynomil tim hk if givn solution to th prolm is vli or not, w sy r in th lss NP. Not tht ll prolms in P r lso in NP, ut not nssrily th othr wy roun. An som prolms n shown to NP-hr, mning tht ll prolms in NP n ru to thm [27, p. 304]. Tht is, if you n fin n ffiint lgorithm for ths prolms, thn ll prolms in NP n solv ffiintly. If suh n NP-hr prolm itslf is in NP, it is ll NP-omplt n is onsir mong th hrst prolms in NP. It is liv, ut not provn, tht P NP, n thrfor tht ths NP-omplt prolms only hv xponntil tim lgorithms. For mor on this, s Sipsr[27] Coping with NP-hrnss Evn though w might hv givn up on fining polynomil tim lgorithms for NP-hr prolms, w still wnt to solv thm s fst s possil. Mny of th NP-hr prolms hv lot of prtil pplitions (s th fir sttions xmpl for th Dominting St prolm), n w woul lik to l to hnl instns with spil proprtis, or whn th solution siz in qustion (th prmtr k) is smll. Approximtion lgorithms tht run in polynomil tim is ommon wy of fining n nswr tht might goo nough in mny prtil ss. Nxt, w will look t on lss of prolms tht n solv quit ffiintly whn th prmtr to th prolm is smll. 13
22 Th prmtr is rlvnt sonry msurmnt k to th instn siz, n for ths prolms w n fin lgorithms whr th xponntil ftor no longr pns on n, ut rthr on k. 14
23 Chptr 2 Fix Prmtr Trtility n Krnliztion In th fil of Prmtriz Complxity w sri th running tim of n lgorithm in trms of prmtr to th prolm, in ition to th siz of prolm instn. W gt th following finitions from Cygn, Fomin, Kowlik, Lokshtnov, Mrx, Pilipzuk, Pilipzuk n Surh [8]: Dfinition 2.1 (Prmtriz prolm). [8, Df 1.1] A prmtriz prolm is lngug L Σ N, whr Σ is fix siz lpht. Givn n instn (x, k) Σ N, k is ll th prmtr of th instn. Dfinition 2.2 (Instn siz). Th siz of n instn (x, k) of prmtriz prolm is (x, k) = x + k. Dfinition 2.3 (Fix Prmtr Trtl prolm). [8, Df 1.2] Lt L prmtriz prolm, n (x, k) Σ N. L is ll Fix Prmtr Trtl (FPT) if thr xists omputl funtion f : N N, onstnt, n n lgorithm tht n trmin if (x, k) L in tim oun y f(k) (x, k). Osrv tht w giv no oun on how fst th funtion f(k) n grow, n it will in most ss n xponntil funtion. Th upsi is tht th funtion is xponntil in th prmtr k, whih vry oftn n smll, whil th totl runtim is polynomil in n. Anlogous to th lsss P n NP, th lss of prolms tht r Fix Prmtr Trtl is ll FPT. In th nxt stion w will prsnt simpl lgorithm for th prolm Vrtx Covr tht runs in FPT tim. 2.1 Fix Prmtr Trtl Algorithm for Vrtx Covr Vrtx Covr is n xmpl of prolm tht is known to FPT, n tully n solv quit ffiintly if th prmtr is smll. Dfinition 2.4 (Vrtx Covr). A Vrtx Covr S of grph G = (V, E) is sust of vrtis S V s.t. G S hs no gs. 15
24 Vrtx Covr (VC) Input: Grph G, n intgr k. Qustion: Is thr Vrtx Covr S of G of siz t most k? Th Vrtx Covr prolm is known to NP-hr [18], ut lukily it is lso known to Fix Prmtr Trtl. W ll now show simpl FPT lgorithm for trmining th nswr to th VC ision prolm. Th on ky osrvtion w n for th lgorithm is this: Osrvtion 2.5. For ny vrtx ovr of grph G, n for vry g of G, t lst on of its npoints must in th vrtx ovr. Figur 2.1: At lst on of th r g s npoints must in th vrtx ovr, so w try oth hois. This is th si i hin Algorithm 2.1. Algorithm 2.1 Fix Prmtr Trtl lgorithm forvrtx Covr Input: Grph G n intgr k N. Output: ys if G hs vrtx ovr of siz k, no othrwis. 1: prour solv V C (G, k) 2: if E(G) = thn 3: rturn ys 4: ls if k = 0 thn 5: rturn no 6: ls 7: Pik ny (u, v) E(G) 8: rturn solv V C (G u, k 1) solv V C (G v, k 1) 9: n if 10: n prour As w n s, th lgorithm piks ny rmining g in grph G of instn (G, k), n tris to rmov on of it s npoints, otining th grph G. Th rsulting instn (G, k 1) is smllr, so it rursivly invoks itslf on this instn. If this ll fins solution to (G, k 1), w know thr s lso solution to (G, k). If it is not, th lgorithm tris rmoving th othr npoint inst, n if it gin fils to fin solution, it n onlu thr s no solution to (G, k). W n fin th runtim of th lgorithm y osrving tht in th worst s vry invotion will rnh into two nw invotions. Sin w for vry invotion rs th prmtr y 1, th rursion tr n om t most k lvls p. Th rst of th work is ll polynomil, n th rsulting runtim is 2 k n O(1), whih is on th form f(k) poly(n) n hn is FPT. 16
25 2.2 Krnls Krnliztion is thniqu tht ls to FPT running tims for prmtriz prolms. Hr givn input instn is ru to n quivlnt instn hving siz oun y th givn prmtr. Th following finitions r pt from Cygn t l[8, 2.1]. Dfinition 2.6 (Equivlnt instns). Lt L prmtriz prolm. Two instns (x, k), (x, k ) Σ N r ll quivlnt if (x, k) L (x, k ) L. A prprossing lgorithm is n lgorithm tht givn n instn (I, k) to prolm moifis this instn n output n quivlnt instn (I, k ). Dfinition 2.7 (Output siz of prprossing lgorithm). Th siz of th output from prprossing lgorithm A is funtion siz A : N N : siz A (k) = sup{ I + k : (I, k ) = A(I, k), I Σ } In othr wors w look t ll possil instns with fix prmtr k to th lgorithm, n msur th output siz s th siz of th lrgst output. Th siz is onsir infinit if th siz nnot oun y funtion of k. Dfinition 2.8 (Krnliztion lgorithm, krnl). Lt L prmtriz prolm. A krnliztion lgorithm, or simply krnl, is n lgorithm A tht tks s input prolm instn (I, k) of L, n in polynomil tim rts nw quivlnt instn (I, k ) suh tht (I, k ) f(k), whr f : N N is omputl funtion not pnnt on I. siz A (k) is ll th siz of th krnl. Suh krnliztion lgorithms vry oftn pro y pplying rution ruls to th input instn. An xmpl in our fir sttion s oul town with no ros to nighoring towns. Of ours w woul hv to put fir sttion in this town, so w oul ignor tht town n rs th numr of fir sttions to put y 1, rsulting in n quivlnt, smllr instn. Anothr simpl osrvtion is shown in Figur 2.2, whr town hving t lst on nighor of gr 1, lwys is goo hoi for omintor. Thrfor it is sf to rmov ll ut on of ths gr 1 towns from th instn. Figur 2.2: Th gr 1 vrtis fors th grn vrtx to in goo ominting st. This is rgrlss of how mny suh gr 1 vrtis thr r, n w n rmov ll ut on. A prolm hving krnliztion lgorithm is quivlnt to th prolm ing fix-prmtr trtl, s th nxt two lmms will show. 17
26 Lmm 2.9. If prmtriz prolm P is il n mits krnl, thn it n solv in FPT tim. Proof. Assum P is il in tim g(n) y using som lgorithm A, n lt (x, k) n instn of siz n to P. Apply th polynomil tim krnliztion lgorithm tht outputs n quivlnt instn (x, k ) hving siz oun y som f(k). W n now pply A, whih in tim O(g(f(k))) = O(f (k)) outputs n nswr to th quivlnt instn, n hn to th originl instn. Th totl runtim is O(f (k) + poly(n)), whih is FPT. Using this pproh w n fin FPT lgorithms for ll prolms tht hv krnliztion lgorithm. Surprisingly, th onvrs is lso tru: Lmm If prmtriz prolm P is solvl in FPT tim, thn it mits krnl. Th proof of Lmm 2.10 is out of sop n not nssry for this isussion, so w rfr to Cygn t l.[8]. Th two lmms togthr givs us th following usful thorm. Thorm A prolm P is FPT if n only if it mits krnl. Th siz of th krnl is importnt whn w wnt to hiv ffiint lgorithms for solving prolm. If w n oun th siz of th krnl to som linr funtion f(k) = O(k), w sy tht th prolm mits linr krnl. Similrly, if w n oun th siz to som polynomil funtion g(k) = O(k ) for som onstnt, w sy th prolm mits polynomil krnl. Som prolms r hrr to fin smll krnls for, n w might not l to fin ny krnls ttr tht xponntil ons, h(k) = 2 O(k), or vn n xponntil towr, i(k) = smll krnls s possil. O(k). Th gol for ny prolm is to fin s Rution Ruls A krnliztion vry oftn invok smll, polynomil tim suroutins ll rution ruls. W will us ths svrl tims throughout th thsis. Th following finitions r from Cygn t l.[8, p.18]. Dfinition 2.12 (Rution rul). A rution rul is funtion ϕ : Σ N Σ N tht mps n instn (x, k) to n quivlnt instn (x, k ) suh tht ϕ is omputl in tim polynomil in x n k. Dfinition 2.13 (Sounnss of rul). Th proprty of rution rul tht it trnslts n instn to n quivlnt on, is ll th sounnss of th rul. Whn w rt rution ruls, w will lso prov thir sounnss, tht is to show tht th ruls will prou quivlnt instns. 18
27 Prt II A Linr Krnl for Plnr Dominting St 19
28
29 Chptr 3 Plnr Dominting St W know Dominting St is n NP-omplt prolm, so th nxt nturl qustion to sk might if it is FPT. In th gnrl s it s unlikly to, s tht woul imply omplxity thorti rsult onsir lmost s unlikly s P = NP. W rfr to Cygn t l.[8, h.13] for mor on this. But on plnr grphs it is known to FPT. It vn mits linr krnl. In [2] Alr, Fllows & Nirmir introu th novl thniqu of Rgion Domposition for giving krnls for prolms on plnr grphs. Using st of rution ruls n this thniqu thy hiv krnl for Plnr Dominting St with 335k vrtis. Ltr Chn, Frnu, Knj, n Xi[6] improv on th rution ruls y Alr t l., n wr l to show krnl uppr oun y 67k, whih is th urrnt smllst krnl known for this prolm. In th following stion w giv finitions tht lssify th vrtis insi th nighorhoo of vrtx, s this is somthing w will mk us of frquntly. 3.1 Nighorhoo of Vrtx Th following finitions r opt from Alr t l.[2], n w will us thm throughout th ppr. Lt G = (V, E) grph. Dfinition 3.1 (Nighorhoo of vrtx). Lt v V. W ivi th nighorhoo of v into 3 isjoint sts: N 1 (v) = {u N(v) N(u) \ N[v] } N 2 (v) = {u N(v) \ N 1 (v) N(u) N 1 (v) } N 3 (v) = N(v) \ (N 1 (v) N 2 (v))) In othr wors, th vrtis N 1 (v) N(v) r thos vrtis hving t lst on nighor outsi th nighorhoo of v, N 2 (v) N(v) r thos hving t lst on nighor in N 1 (v), n N 3 (v) N(v) r th rst of v s nighors. 21
30 v Figur 3.1: Th nighorhoo of vrtx v. Vrtis from N 1 (v) r olor grn, N 2 (v) r olor r, n N 3 (v) r olor lu. 3.2 Rution Ruls Alr t l introu two rution ruls in thir ppr. W won t n thm in our isussion, so w rfr to thir ppr for sription n proof of sounnss [2, Rul 1, Rul 2]. Howvr, w prsnt two simpl rution ruls hr, inspir y thir first rul. Lt G = (V, E): Rution Rul 3.1. Lt x, y N 2 (v) N 3 (v) for som vrtx v V n (x, y) E, thn rmov th g (x, y). y y x x v v Figur 3.2: W n mk N 2 (v) N 3 (v) vrtis inpnnt. In this sitution v is oviously ttr hoi for ominting th vrtis in its nighorhoo thn x n y. This is why w n rmov th g twn x n y, sin non of thm will hosn s omintors. W now prov th sounnss of this rul. Lmm 3.2. Rution Rul 3.1 is soun. Proof. Lt D ominting st of siz k in G, n lt G th grph otin ftr prforming th rution rul. By th finition of N 2 (v) n N 3 (v), w know tht N[x] N[v] n N[y] N[v], n hn v woul lwys omintor t lst s goo s ithr of x, y. Thrfor w n sfly ssum tht nithr x nor y is in D. Now D is lso ominting st of siz k in G. For th othr irtion, lt D ominting st of siz k in G. D will lso ominting st of siz k in G, sin ing n g to th grph nnot mk D non-ominting. 22
31 Rution Rul 3.1 mks N 2 (v) N 3 (v) n inpnnt st, whih us usful for ltr nlysis. Also not tht th rul n rri out in polynomil tim. Rution Rul 3.2. Lt x, y N 2 (v) N 3 (v) for som vrtx v V n N(x) N(y), thn rmov y from th grph. y x x v v Figur 3.3: W n mk rmov vrtis from N 2 (v) N 3 (v) tht only srv th funtion of ing omint. Th intuition hin Rul 3.2 is tht non of x, y will usful s omintors, n thrfor tht th only wy thy fft th siz of th ominting st is tht thy n to omint. But sin y is omint th momnt x is, w n rmov y. Lmm 3.3. Rution Rul 3.2 is soun. Proof. Lt D ominting st of siz k in G, n lt G th grph otin ftr prforming th rution rul. W n ssum (s th proof of Lmm 3.3) tht nithr x nor y is in D. Now D is lso ominting st of siz k in G. For th othr irtion, lt D ominting st of siz k in G. D will omint x, n sin N[x] N[v], w n ssum x D (if it ws, putting v in inst woul t lst s goo). In G w know tht N(x) N(y), n D will lso ominting st of siz k in G. Th fft of th two rution ruls is tht N 2 (v) N 3 (v) will inpnnt, n tht no vrtx from this st will hv nighorhoo tht is suprst of nothr vrtx from th st. Not tht in th s w hv t lst on N 3 (v) vrtx, Rul 3.1 will ru this to gr 1 vrtx, n ny othr vrtx from th N 2 (v) N 3 (v) will rmov y Rul Rgions n Rgion Domposition s Trt y Alr t l. Aftr prforming th rution ruls on th input instn, w wnt to uppr oun th siz of th rsulting, quivlnt, instn. This is whr Rgion Domposition oms in, y iviing th grph into svrl rgions n thn uppr ouning th numr of vrtis outsi th rgions, uppr ouning th numr of suh rgions, n t lst uppr ouning th numr of vrtis insi suh rgion. In this stion w will sri rgions n rgion omposition s fin y Alr t l. [2], n point out th prolm with ths finitions. This shoul giv n insight into why w wnt to rfin ths onpts, n whih spil ss w must mk sur to hnl in our nw finitions. 23
32 Givn ru grph G, lt k = D th siz of Dominting St D in this grph. Alr t l. fin Rgions n Rgion Domposition s follows: Dfinition 3.4 ([2, Dfinition 2]). Lt G = (V, E) pln grph. A rgion R(v, w) twn two vrtis v, w is los sust of th pln with th following proprtis: 1. th ounry of R(v, w) is form y two simpl pths P 1 n P 2 in V whih onnt v n w, n th lngth of h pth is t most thr (gs), n 2. ll vrtis whih r stritly insi (i.. lying in th rgion, ut not sitting on th ounry) th rgion R(v, w) r from N(v, w). For rgion R = R(v, w), lt V (R) not th vrtis longing to R, i.., V (R) := {u V u sits insi or on th ounry of R} Dfinition 3.5 ([2, Dfinition 3]). Lt G = (V, E) pln grph n D V. omposition of G is st R of rgions twn pirs of vrtis in D suh tht 1. for R(v, w) R no vrtx from D (xpt for v, w) lis in V (R(v, w)) n A D-rgion 2. no two rgions R 1, R 2 R o intrst (howvr, thy my touh h othr y hving ommon ounris). For D-rgion omposition R w fin V (R) := R R V (R). A D-rgion omposition is ll mximl if thr is no rgion R R suh tht R := R {R} is D-rgion omposition with V (R) V (R ). Dfinition 3.6 ([2, Dfinition 4]). Th inu grph G R = (V R, E R ) of D-rgion omposition R of G is th grph with possil multipl gs whih is fin y V R := D n E R := {{v, w} thr is rgion R(v, w) R twn v, w D}. Proposition 3.7 ([2, Proposition 1]). For ru pln grph G with ominting st D, thr xists mximl D-rgion omposition R suh tht G R is thin. W on t stt thir finition of thin hr, ut for grph to thin, it hs to plnr, mong othr things. Alr t l. lso show how to fin suh mximl D-rgion omposition of pln grph, n thy us this togthr with Dfinition 3.6 n Proposition 3.7 to prov tht suh omposition will hv t most 3k rgions. This rquir th omposition grph G R to plnr, if not Proposition 3.7 woul not hol. For G R to plnr, two rgions n not llow to ross in th rgion omposition, tht is thir rwing in th pln n t ross. This must lso hol vn whn oth r gnrt. Hr gnrt rgion R(v, w) mns rgion whr th pths P 1 n P 2 shr t lst on ommon vrtx in ition to v, w. Togthr with proofs ouning th numr of vrtis insi n outsi of rgions in mximl D-rgion omposition, this givs ris to krnl of linr siz. Howvr, thr is prolm with th proof ouning th numr of vrtis outsi rgions. In th proof of [2, Lmm 6], th uthors us tht thr r no rossing rgions in rgion omposition to prov tht ll vrtis from N 1 (v) r insi rgions. But to omplish this thy sy tht for th gnrt rgion R = {v, u, u, w} to ross in R without u lry ing in rgion, th g {u, w} must ross rgion R(x, y) R, whih implis tht w is on th ounry or insi th rossing rgion. But onsir th s whr R(x, y) is th gnrt rgion {x, u, y}, s shown in Figur 3.4. From Dfinition 3.5 it is hr to xtrt whthr two suh gnrt rgions r onsir rossing in this s. If w onsir thm rossing thn R(x, y) n ross R without w ing insi or on th ounry of R(x, y), mking th proof of [2, Lmm 6] invli. If th rgions r not onsir rossing thn th omposition grph from Dfinition 3.6 is no longr plnr, whih is ruil for Proposition
33 x w u y u v Figur 3.4: Th gnrt rgion R(x, y) n ross th gnrt rgion R(v, w) without w ing on th ounry of R(x, y). W will show tht thir omposition of th grph into rgions is orrt up to minor moifitions. Ths moifitions r inonsquntil for th us of th omposition for ltr proofs. This mns tht th krnl siz vntully otin y Alr t l. is orrt, whih w will onlu in th nxt hptrs. 25
34 26
35 Chptr 4 Domposing th Grph W will now mk nw finitions nssry for th isussion to follow. In Chptr 5 w will show tht minor moifitions to th thorms stt y Alr t l. r suffiint to rsolv th rrors in th proofs s isuss in Chptr 3. In Chptr 6 w will furthr lowr th krnl siz uppr oun of Chn t l.[6] y n improv nlysis. 4.1 Egs in Pln Emings Dfinition 4.1 (Eg istn). Lt (G, E) pln grph, lt v V (G), n 1, 2 E(G) two gs oth inint to v. Strting from th point whr th polygon lin of 1 intrsts th unit isk of v in th ming, mov lokwis long th isk. Lt k th numr of polygon lins nountr for nountring th polygon lin of 2. Do th sm, now strting from 2 inst, lt l th numr of polygon lins nountr for nountring 1. Th g istn with rspt to v of th two gs 1, 2, is not ist v ( 1, 2 ) = min(k, l). u Figur 4.1: Th g istn of gs n with rspt to u is 1. Dfinition 4.2 (Consutiv gs). Egs hving n g istn of 0 with rspt to v V, r si to onsutiv t v. u Figur 4.2: Consutiv pirs of gs t u r (, ), (, ), (, ), (, ) n (, ). 27
36 Dfinition 4.3 (Prlll gs). W sy tht two gs 1, n E twn vrtis v, w V (G) in multigrph G r prlll if thr xists squn of gs 1,..., n suh tht i n i+1 r onsutiv t oth u n v for ll i {1,..., n 1}. v 1 v 2 Figur 4.3: Th r gs r prlll gs. So r th lu gs. Osrv tht th grn g is not prlll to th r gs sin thy r not onsutiv t v Wlks in Pln Emings In th following finitions, lt (G = (V, E), E = (U, P, f, g)) pln grph. Dfinition 4.4 (Join of gs). Lt 1, 2 E two gs oth inint to th vrtx v V, n lt = f(v) g( 1 ), = f(v) g( 2 ) th two points whr th gs intrst with th vrtx in th ming. Th join of 1 n 2 t v, is th linsgmnt L(, ). W writ join( 1, v, 2 ) 1 v 2 Figur 4.4: Egs 1 n 2 r oth inint to som vrtx v, n intrst with th unit isk of v in points n, mrk with r on th lft figur. join( 1, v, 2 ) is th linsgmnt twn n, olor in r on th right figur. Dfinition 4.5 (Drwing of wlk). Lt W = (v 1, 1, v 2, 2,..., v k, k, v k+1 ) wlk in G. W otin th rwing of W, not rw(w ), y tking th union of th points in g() for vry { 1,..., k }, togthr with th join of vry i, i+1 t v i+1, i.. ( ) rw(w ) = g( 1 ) g( i ) join( i 1, v i, i ) i {2,...,k} 28
37 f g f g h h Figur 4.5: A grph (lft), n wlk in this grph shown in r (right). Dfinition 4.6 (Crossing wlks). W sy tht two wlks W 1, W 2 in G ross if rw(w 1 ) rw(w 2 ). Dfinition 4.7 (Simpl yli wlk). A simpl yli wlk C is yli wlk W = (v 1, 1,..., v k, k, v 1 ) in pln grph suh rw(c) = rw(w ) join( 1, v 1, k ) is simpl polygon. W rfr to rw(c) s th rwing of C. Sin w will only r out simpl yli wlks, w will oftn just rfr to thm s yli wlks. Dfinition 4.8 (Intrior of yli wlk). Lt C yli wlk in pln grph. Th intrior f of rw(c) is ll th intrior of th yli wlk, whil th xtrior f is ll th xtrior of th yli wlk. Dfinition 4.9 (Vrtis in yli wlk). Th vrtis rprsnt y unit isks ing stritly in th intrior of yli wlk, r ll intrnl vrtis of th wlk. Th vrtis rprsnt y unit isks ing stritly in th xtrior of yli wlk, r ll xtrnl vrtis. Th rst, hving thir unit isks intrst with th rwing of th wlk, r ll vrtis on th wlk. Osrv tht y Dfinition 4.9, th vrtis on th wlk C = (v 1, 1,..., v k, k, v 1 ) r xtly th vrtis {v 1,..., v k }. 29
38 f g h Figur 4.6: Th rwing of yli wlk shown in r. h is th only intrnl vrtx of th wlk, whil f is th only xtrnl vrtx.,,,,, g r vrtis on th wlk. Dfinition 4.10 (Ar of yli wlk). Th r of yli wlk C, not r(c) is th union of th points on th wlk n ll points in th intrior. Dfinition 4.11 (Crossing yli wlks). W sy tht two yli wlks C 1, C 2 ross if thir rs intrst, i.. r(c 1 ) r(c 2 ). f g h Figur 4.7: Th two yli wlks shown in r n yllow ross sin thir rs intrst. Dfinition 4.12 (Cross t vrtx). W sy tht two yli wlks C 1, C 2 ross t vrtx v if rw(c 1 ) rw(c 2 ) f(v). Dfinition 4.13 (Cross t g). W sy tht two yli wlks C 1, C 2 ross t n g if rw(c 1 ) rw(c 2 ) g(). W will us th nxt wll-known ft without proof: Ft Lt P 1 n P 2 two simpl polygons, n lt A 1 n A 2 thir intrior fs, rsptivly. If A 1 A 2, thn P 1 P 2. Lmm Lt C 1, C 2 two yli wlks tht ross. Thn, ithr 30
39 r(c 1 ) r(c 2 ) r(c 2 ) r(c 1 ) C 1 n C 2 ross t som vrtx v Proof. Sin C 1 n C 2 ross, thn y finition r(c 1 ) r(c 2 ). This n hppn if ithr yl s r is th sust of th othr, s in th first two ss. For th thir s, ssum tht nithr of th first two ss pply. In tht s w must hv rw(c 1 ) rw(c 2 ) y Ft 4.14, whih mns thy ithr ross t n g, or ross t som vrtx. Assum tht thy ross t n g = (v 1, v 2 ). Thn y finition of yli wlk, v 1 n v 2 will vrtis on oth wlks, n th two wlks will ross t point in oth of ths vrtis, nmly g() f(v 1 ) n g() f(v 2 ). Osrvtion If r(c 1 ) r(c 2 ) g(), whr C 1 n C 2 r yli wlks n = (v 1, v 2 ), thn r(c 1 ) r(c 2 ) f(v 1 ) n r(c 1 ) r(c 2 ) f(v 2 ) s wll. Lmm Lt C 1 = (v 1, 1,..., v i, i, v i+1, i+1, v i..., v k, k, v 1 ) n C 2 yli wlks suh tht i n i+1 r prlll gs going twn v i n v i+1, n C 1 n C 2 on t ross t v i. Thn C 1 n C 2 nnot ross t v i+1. Proof. Sin C 1 n C 2 on t ross t v i, r(c 1 ) r(c 2 ) g( i ) = n r(c 1 ) r(c 2 ) g( i+1 ) =. By Osrvtion 4.16 this mns tht for C 1 n C 2 to ross t v i+1, J = join( i, v i+1, i+1 ) woul n to ross C 2 t v i+1. For this to hppn thr woul n to xist join J = join( 1, v i+1, 2) s.t. J J, whr 1 i, 2 i, 1 i+1, 2 i+1. Lt th linsgmnts rprsnting th joins L(, ) = J n L(, ) = J. For J to intrst J, n woul n to sprt n on th orr of f(v i+1 ), whih ontrits tht i n i+1 r onsutiv, s Figur 4.8. i i+1 vi v i+1 Figur 4.8: Two joins rossing ontrits tht i n i+1 is onsutiv t v i+1. Dfinition 4.18 (Contntion of simpl wlks). Lt W 1 = (v1, 1 1 1,..., 1 k 1, v1 k ) n W 2 = (v1, 2 2 1,..., 2 l 1, v2 l ) two simpl wlks in G suh tht rw(w 1) rw(w 2 ) =, n v1 1 = v1 2 n vk 1 = v2 l. W sy th ontntion of W 1 n W 2 is th yli wlk hving th rwing rw(w 1 ) rw(w 2 ) join( 1 1, v1, 1 2 1) join( 1 k 1, v1 k, 2 l 1 ). 31
40 f g f g h h Figur 4.9: Contntion of two simpl wlks tht rsults in yli wlk. 4.3 Rgions Dfinition 4.19 (Rgion). Lt (G, E) pln grph, n lt v, w V (G) two vrtis in G. A rgion R = R(v, w) twn v n w is fin y two simpl, non-rossing wlks W 1, W 2 of lngth t most 3 twn v n w, n st V (R) V (G) suh tht Th ontntion C R of W 1 n W 2 is simpl yli wlk Th vrtis on C R r not δ(r) Th intrnl vrtis of C R r not I(R) V (R) = I(R) δ(r) \ {v, w} V (R) N(v, w) C R is ll th ounry of R. δ(r) r th ounry vrtis of R. I(R) r ll th intrnl vrtis of R. V (R) r ll th vrtis longing to R. v, w r ll th npoints of th rgion. Noti tht th two wlks W 1, W 2 uniquly fin whih vrtis r in δ(r) n I(R), n hn V (R). v w Figur 4.10: Th rgion R = R(v, w) hs th npoints v n w. Th vrtis δ(r) \ {v, w} r olor lu, n th intrnl vrtis I(R) yllow. Ths fiv vrtis fin th st V (R). Dfinition 4.20 (Ar of rgion). Th r of rgion R, r(r), is th r of its ounry, r(c R ). Dfinition 4.21 (Crossing rgions). W sy tht two rgions R 1, R 2 ross if thir rs intrst, tht is r(r 1 ) r(r 2 ). 32
41 Sin th r of rgion is fin y its yli wlk, w will us Dfinition 4.12, Dfinition 4.13, Lmm 4.15 n Lmm 4.17 on rgions ltr, rfrring to thir ounry. By finition, rgions s thos sn Figur 4.11 will onsir rossing. Tht is lso th s for Figur 4.11, s th two rgions shr n g. Howvr, in th lttr s w woul lik rgions to l to touh h othr in this wy without rossing, without llowing th rgions in ) to o tht. This is th motivtion for introuing grph nrihmnts, whih w will look t in th following stion. Figur 4.11: Crossing rgions ) n ). 4.4 Grph Enrihmnt Dfinition 4.22 (Copying n g). Hving pln multigrph G = (G = (V, E), E), w fin opying n g E s th oprtion of ing nw g to th grph, suh tht n r prlll. Whn opying th g E to, w st ϵ = ϵ/2, n G = (V, E { }) n hv th sm ming s G, only ing th polygon lin of in istn ϵ from th polygon lin of. Th rsult is nw pln grph G = (G, E ) ing struturlly qul to G, ut hving on xtr g. Dfinition 4.23 (Grph nrihmnt). Lt G pln grph. W ll th grph G n nrihmnt of G if it n otin from G only using th oprtion of opying gs. G G Figur 4.12: G is n nrihmnt of G. 4.5 Rgion Domposition With th onpt of grph nrihmnts in pl, w n fin rgion omposition of pln grph. 33
Paths. Connectivity. Euler and Hamilton Paths. Planar graphs.
Pths.. Eulr n Hmilton Pths.. Pth D. A pth rom s to t is squn o gs {x 0, x 1 }, {x 1, x 2 },... {x n 1, x n }, whr x 0 = s, n x n = t. D. Th lngth o pth is th numr o gs in it. {, } {, } {, } {, } {, } {,
More informationGraph Isomorphism. Graphs - II. Cayley s Formula. Planar Graphs. Outline. Is K 5 planar? The number of labeled trees on n nodes is n n-2
Grt Thortil Is In Computr Sin Vitor Amhik CS 15-251 Ltur 9 Grphs - II Crngi Mllon Univrsity Grph Isomorphism finition. Two simpl grphs G n H r isomorphi G H if thr is vrtx ijtion V H ->V G tht prsrvs jny
More informationModule graph.py. 1 Introduction. 2 Graph basics. 3 Module graph.py. 3.1 Objects. CS 231 Naomi Nishimura
Moul grph.py CS 231 Nomi Nishimur 1 Introution Just lik th Python list n th Python itionry provi wys of storing, ssing, n moifying t, grph n viw s wy of storing, ssing, n moifying t. Bus Python os not
More informationAlgorithmic and NP-Completeness Aspects of a Total Lict Domination Number of a Graph
Intrntionl J.Mth. Comin. Vol.1(2014), 80-86 Algorithmi n NP-Compltnss Aspts of Totl Lit Domintion Numr of Grph Girish.V.R. (PES Institut of Thnology(South Cmpus), Bnglor, Krntk Stt, Ini) P.Ush (Dprtmnt
More informationCSE 373: More on graphs; DFS and BFS. Michael Lee Wednesday, Feb 14, 2018
CSE 373: Mor on grphs; DFS n BFS Mihl L Wnsy, F 14, 2018 1 Wrmup Wrmup: Disuss with your nighor: Rmin your nighor: wht is simpl grph? Suppos w hv simpl, irt grph with x nos. Wht is th mximum numr of gs
More information0.1. Exercise 1: the distances between four points in a graph
Mth 707 Spring 2017 (Drij Grinrg): mitrm 3 pg 1 Mth 707 Spring 2017 (Drij Grinrg): mitrm 3 u: W, 3 My 2017, in lss or y mil (grinr@umn.u) or lss S th wsit or rlvnt mtril. Rsults provn in th nots, or in
More informationMath 61 : Discrete Structures Final Exam Instructor: Ciprian Manolescu. You have 180 minutes.
Nm: UCA ID Numr: Stion lttr: th 61 : Disrt Struturs Finl Exm Instrutor: Ciprin nolsu You hv 180 minuts. No ooks, nots or lultors r llow. Do not us your own srth ppr. 1. (2 points h) Tru/Fls: Cirl th right
More information12/3/12. Outline. Part 10. Graphs. Circuits. Euler paths/circuits. Euler s bridge problem (Bridges of Konigsberg Problem)
12/3/12 Outlin Prt 10. Grphs CS 200 Algorithms n Dt Struturs Introution Trminology Implmnting Grphs Grph Trvrsls Topologil Sorting Shortst Pths Spnning Trs Minimum Spnning Trs Ciruits 1 Ciruits Cyl 2 Eulr
More information5/9/13. Part 10. Graphs. Outline. Circuits. Introduction Terminology Implementing Graphs
Prt 10. Grphs CS 200 Algorithms n Dt Struturs 1 Introution Trminology Implmnting Grphs Outlin Grph Trvrsls Topologil Sorting Shortst Pths Spnning Trs Minimum Spnning Trs Ciruits 2 Ciruits Cyl A spil yl
More informationPlanar Upward Drawings
C.S. 252 Pro. Rorto Tmssi Computtionl Gomtry Sm. II, 1992 1993 Dt: My 3, 1993 Sri: Shmsi Moussvi Plnr Upwr Drwings 1 Thorm: G is yli i n only i it hs upwr rwing. Proo: 1. An upwr rwing is yli. Follow th
More informationGraphs. CSC 1300 Discrete Structures Villanova University. Villanova CSC Dr Papalaskari
Grphs CSC 1300 Disrt Struturs Villnov Univrsity Grphs Grphs r isrt struturs onsis?ng of vr?s n gs tht onnt ths vr?s. Grphs n us to mol: omputr systms/ntworks mthm?l rl?ons logi iruit lyout jos/prosss f
More informationb. How many ternary words of length 23 with eight 0 s, nine 1 s and six 2 s?
MATH 3012 Finl Exm, My 4, 2006, WTT Stunt Nm n ID Numr 1. All our prts o this prolm r onrn with trnry strings o lngth n, i.., wors o lngth n with lttrs rom th lpht {0, 1, 2}.. How mny trnry wors o lngth
More informationGarnir Polynomial and their Properties
Univrsity of Cliforni, Dvis Dprtmnt of Mthmtis Grnir Polynomil n thir Proprtis Author: Yu Wng Suprvisor: Prof. Gorsky Eugny My 8, 07 Grnir Polynomil n thir Proprtis Yu Wng mil: uywng@uvis.u. In this ppr,
More informationGraphs. Graphs. Graphs: Basic Terminology. Directed Graphs. Dr Papalaskari 1
CSC 00 Disrt Struturs : Introuon to Grph Thory Grphs Grphs CSC 00 Disrt Struturs Villnov Univrsity Grphs r isrt struturs onsisng o vrs n gs tht onnt ths vrs. Grphs n us to mol: omputr systms/ntworks mthml
More informationV={A,B,C,D,E} E={ (A,D),(A,E),(B,D), (B,E),(C,D),(C,E)}
Introution Computr Sin & Enginring 423/823 Dsign n Anlysis of Algorithms Ltur 03 Elmntry Grph Algorithms (Chptr 22) Stphn Sott (Apt from Vinohnrn N. Vriym) I Grphs r strt t typs tht r pplil to numrous
More informationCSC Design and Analysis of Algorithms. Example: Change-Making Problem
CSC 801- Dsign n Anlysis of Algorithms Ltur 11 Gry Thniqu Exmpl: Chng-Mking Prolm Givn unlimit mounts of oins of nomintions 1 > > m, giv hng for mount n with th lst numr of oins Exmpl: 1 = 25, 2 =10, =
More informationV={A,B,C,D,E} E={ (A,D),(A,E),(B,D), (B,E),(C,D),(C,E)}
s s of s Computr Sin & Enginring 423/823 Dsign n Anlysis of Ltur 03 (Chptr 22) Stphn Sott (Apt from Vinohnrn N. Vriym) s of s s r strt t typs tht r pplil to numrous prolms Cn ptur ntitis, rltionships twn
More informationCSE 373: AVL trees. Warmup: Warmup. Interlude: Exploring the balance invariant. AVL Trees: Invariants. AVL tree invariants review
rmup CSE 7: AVL trs rmup: ht is n invrint? Mihl L Friy, Jn 9, 0 ht r th AVL tr invrints, xtly? Disuss with your nighor. AVL Trs: Invrints Intrlu: Exploring th ln invrint Cor i: xtr invrint to BSTs tht
More information1 Introduction to Modulo 7 Arithmetic
1 Introution to Moulo 7 Arithmti Bor w try our hn t solvin som hr Moulr KnKns, lt s tk los look t on moulr rithmti, mo 7 rithmti. You ll s in this sminr tht rithmti moulo prim is quit irnt rom th ons w
More informationWhy the Junction Tree Algorithm? The Junction Tree Algorithm. Clique Potential Representation. Overview. Chris Williams 1.
Why th Juntion Tr lgorithm? Th Juntion Tr lgorithm hris Willims 1 Shool of Informtis, Univrsity of Einurgh Otor 2009 Th JT is gnrl-purpos lgorithm for omputing (onitionl) mrginls on grphs. It os this y
More informationOutline. Circuits. Euler paths/circuits 4/25/12. Part 10. Graphs. Euler s bridge problem (Bridges of Konigsberg Problem)
4/25/12 Outlin Prt 10. Grphs CS 200 Algorithms n Dt Struturs Introution Trminology Implmnting Grphs Grph Trvrsls Topologil Sorting Shortst Pths Spnning Trs Minimum Spnning Trs Ciruits 1 2 Eulr s rig prolm
More informationNumbering Boundary Nodes
Numring Bounry Nos Lh MBri Empori Stt Univrsity August 10, 2001 1 Introution Th purpos of this ppr is to xplor how numring ltril rsistor ntworks ffts thir rspons mtrix, Λ. Morovr, wht n lrn from Λ out
More informationCOMPLEXITY OF COUNTING PLANAR TILINGS BY TWO BARS
OMPLXITY O OUNTING PLNR TILINGS Y TWO RS KYL MYR strt. W show tht th prolm o trmining th numr o wys o tiling plnr igur with horizontl n vrtil r is #P-omplt. W uil o o th rsults o uquir, Nivt, Rmil, n Roson
More informationThe University of Sydney MATH2969/2069. Graph Theory Tutorial 5 (Week 12) Solutions 2008
Th Univrsity o Syny MATH2969/2069 Grph Thory Tutoril 5 (Wk 12) Solutions 2008 1. (i) Lt G th isonnt plnr grph shown. Drw its ul G, n th ul o th ul (G ). (ii) Show tht i G is isonnt plnr grph, thn G is
More informationCSE 373. Graphs 1: Concepts, Depth/Breadth-First Search reading: Weiss Ch. 9. slides created by Marty Stepp
CSE 373 Grphs 1: Conpts, Dpth/Brth-First Srh ring: Wiss Ch. 9 slis rt y Mrty Stpp http://www.s.wshington.u/373/ Univrsity o Wshington, ll rights rsrv. 1 Wht is grph? 56 Tokyo Sttl Soul 128 16 30 181 140
More informationCS200: Graphs. Graphs. Directed Graphs. Graphs/Networks Around Us. What can this represent? Sometimes we want to represent directionality:
CS2: Grphs Prihr Ch. 4 Rosn Ch. Grphs A olltion of nos n gs Wht n this rprsnt? n A omputr ntwork n Astrtion of mp n Soil ntwork CS2 - Hsh Tls 2 Dirt Grphs Grphs/Ntworks Aroun Us A olltion of nos n irt
More informationConstructive Geometric Constraint Solving
Construtiv Gomtri Constrint Solving Antoni Soto i Rir Dprtmnt Llngutgs i Sistms Inormàtis Univrsitt Politèni Ctluny Brlon, Sptmr 2002 CGCS p.1/37 Prliminris CGCS p.2/37 Gomtri onstrint prolm C 2 D L BC
More information, each of which is a tree, and whose roots r 1. , respectively, are children of r. Data Structures & File Management
nrl tr T is init st o on or mor nos suh tht thr is on sint no r, ll th root o T, n th rminin nos r prtition into n isjoint susts T, T,, T n, h o whih is tr, n whos roots r, r,, r n, rsptivly, r hilrn o
More informationCycles and Simple Cycles. Paths and Simple Paths. Trees. Problem: There is No Completely Standard Terminology!
Outlin Computr Sin 331, Spnnin, n Surphs Mik Joson Dprtmnt o Computr Sin Univrsity o Clry Ltur #30 1 Introution 2 3 Dinition 4 Spnnin 5 6 Mik Joson (Univrsity o Clry) Computr Sin 331 Ltur #30 1 / 20 Mik
More informationOutline. 1 Introduction. 2 Min-Cost Spanning Trees. 4 Example
Outlin Computr Sin 33 Computtion o Minimum-Cost Spnnin Trs Prim's Alorithm Introution Mik Joson Dprtmnt o Computr Sin Univrsity o Clry Ltur #33 3 Alorithm Gnrl Constrution Mik Joson (Univrsity o Clry)
More information# 1 ' 10 ' 100. Decimal point = 4 hundred. = 6 tens (or sixty) = 5 ones (or five) = 2 tenths. = 7 hundredths.
How os it work? Pl vlu o imls rprsnt prts o whol numr or ojt # 0 000 Tns o thousns # 000 # 00 Thousns Hunrs Tns Ons # 0 Diml point st iml pl: ' 0 # 0 on tnth n iml pl: ' 0 # 00 on hunrth r iml pl: ' 0
More informationCS 461, Lecture 17. Today s Outline. Example Run
Prim s Algorithm CS 461, Ltur 17 Jr Si Univrsity o Nw Mxio In Prim s lgorithm, th st A mintin y th lgorithm orms singl tr. Th tr strts rom n ritrry root vrtx n grows until it spns ll th vrtis in V At h
More informationCS61B Lecture #33. Administrivia: Autograder will run this evening. Today s Readings: Graph Structures: DSIJ, Chapter 12
Aministrivi: CS61B Ltur #33 Autogrr will run this vning. Toy s Rings: Grph Struturs: DSIJ, Chptr 12 Lst moifi: W Nov 8 00:39:28 2017 CS61B: Ltur #33 1 Why Grphs? For xprssing non-hirrhilly rlt itms Exmpls:
More informationPresent state Next state Q + M N
Qustion 1. An M-N lip-lop works s ollows: I MN=00, th nxt stt o th lip lop is 0. I MN=01, th nxt stt o th lip-lop is th sm s th prsnt stt I MN=10, th nxt stt o th lip-lop is th omplmnt o th prsnt stt I
More informationExam 1 Solution. CS 542 Advanced Data Structures and Algorithms 2/14/2013
CS Avn Dt Struturs n Algorithms Exm Solution Jon Turnr //. ( points) Suppos you r givn grph G=(V,E) with g wights w() n minimum spnning tr T o G. Now, suppos nw g {u,v} is to G. Dsri (in wors) mtho or
More information(2) If we multiplied a row of B by λ, then the value is also multiplied by λ(here lambda could be 0). namely
. DETERMINANT.. Dtrminnt. Introution:I you think row vtor o mtrix s oorint o vtors in sp, thn th gomtri mning o th rnk o th mtrix is th imnsion o th prlllppi spnn y thm. But w r not only r out th imnsion,
More informationCOMP108 Algorithmic Foundations
Grdy mthods Prudn Wong http://www.s.liv..uk/~pwong/thing/omp108/01617 Coin Chng Prolm Suppos w hv 3 typs of oins 10p 0p 50p Minimum numr of oins to mk 0.8, 1.0, 1.? Grdy mthod Lrning outoms Undrstnd wht
More informationSection 10.4 Connectivity (up to paths and isomorphism, not including)
Toy w will isuss two stions: Stion 10.3 Rprsnting Grphs n Grph Isomorphism Stion 10.4 Conntivity (up to pths n isomorphism, not inluing) 1 10.3 Rprsnting Grphs n Grph Isomorphism Whn w r working on n lgorithm
More informationWeighted graphs -- reminder. Data Structures LECTURE 15. Shortest paths algorithms. Example: weighted graph. Two basic properties of shortest paths
Dt Strutur LECTURE Shortt pth lgorithm Proprti of hortt pth Bllmn-For lgorithm Dijktr lgorithm Chptr in th txtook (pp ). Wight grph -- rminr A wight grph i grph in whih g hv wight (ot) w(v i, v j ) >.
More informationAn undirected graph G = (V, E) V a set of vertices E a set of unordered edges (v,w) where v, w in V
Unirt Grphs An unirt grph G = (V, E) V st o vrtis E st o unorr gs (v,w) whr v, w in V USE: to mol symmtri rltionships twn ntitis vrtis v n w r jnt i thr is n g (v,w) [or (w,v)] th g (v,w) is inint upon
More informationSolutions for HW11. Exercise 34. (a) Use the recurrence relation t(g) = t(g e) + t(g/e) to count the number of spanning trees of v 1
Solutions for HW Exris. () Us th rurrn rltion t(g) = t(g ) + t(g/) to ount th numr of spnning trs of v v v u u u Rmmr to kp multipl gs!! First rrw G so tht non of th gs ross: v u v Rursing on = (v, u ):
More informationAnnouncements. Not graphs. These are Graphs. Applications of Graphs. Graph Definitions. Graphs & Graph Algorithms. A6 released today: Risk
Grphs & Grph Algorithms Ltur CS Spring 6 Announmnts A6 rls toy: Risk Strt signing with your prtnr sp Prlim usy Not grphs hs r Grphs K 5 K, =...not th kin w mn, nywy Applitions o Grphs Communition ntworks
More informationDUET WITH DIAMONDS COLOR SHIFTING BRACELET By Leslie Rogalski
Dut with Dimons Brlt DUET WITH DIAMONDS COLOR SHIFTING BRACELET By Lsli Roglski Photo y Anrw Wirth Supruo DUETS TM from BSmith rt olor shifting fft tht mks your work tk on lif of its own s you mov! This
More information12. Traffic engineering
lt2.ppt S-38. Introution to Tltrffi Thory Spring 200 2 Topology Pths A tlommunition ntwork onsists of nos n links Lt N not th st of nos in with n Lt J not th st of nos in with j N = {,,,,} J = {,2,3,,2}
More informationTrees as operads. Lecture A formalism of trees
Ltur 2 rs s oprs In this ltur, w introu onvnint tgoris o trs tht will us or th inition o nroil sts. hs tgoris r gnrliztions o th simpliil tgory us to in simpliil sts. First w onsir th s o plnr trs n thn
More informationQUESTIONS BEGIN HERE!
Points miss: Stunt's Nm: Totl sor: /100 points Est Tnnss Stt Univrsity Dprtmnt of Computr n Informtion Sins CSCI 710 (Trnoff) Disrt Struturs TEST for Fll Smstr, 00 R this for strtin! This tst is los ook
More informationChapter 9. Graphs. 9.1 Graphs
Chptr 9 Grphs Grphs r vry gnrl lss of ojt, us to formliz wi vrity of prtil prolms in omputr sin. In this hptr, w ll s th sis of (finit) unirt grphs, inluing grph isomorphism, onntivity, n grph oloring.
More informationCS 241 Analysis of Algorithms
CS 241 Anlysis o Algorithms Prossor Eri Aron Ltur T Th 9:00m Ltur Mting Lotion: OLB 205 Businss HW6 u lry HW7 out tr Thnksgiving Ring: Ch. 22.1-22.3 1 Grphs (S S. B.4) Grphs ommonly rprsnt onntions mong
More informationOutline. Computer Science 331. Computation of Min-Cost Spanning Trees. Costs of Spanning Trees in Weighted Graphs
Outlin Computr Sin 33 Computtion o Minimum-Cost Spnnin Trs Prim s Mik Joson Dprtmnt o Computr Sin Univrsity o Clry Ltur #34 Introution Min-Cost Spnnin Trs 3 Gnrl Constrution 4 5 Trmintion n Eiiny 6 Aitionl
More informationMAT3707. Tutorial letter 201/1/2017 DISCRETE MATHEMATICS: COMBINATORICS. Semester 1. Department of Mathematical Sciences MAT3707/201/1/2017
MAT3707/201/1/2017 Tutoril lttr 201/1/2017 DISCRETE MATHEMATICS: COMBINATORICS MAT3707 Smstr 1 Dprtmnt o Mtmtil Sins SOLUTIONS TO ASSIGNMENT 01 BARCODE Din tomorrow. univrsity o sout ri SOLUTIONS TO ASSIGNMENT
More informationRegister Allocation. Register Allocation. Principle Phases. Principle Phases. Example: Build. Spills 11/14/2012
Rgistr Allotion W now r l to o rgistr llotion on our intrfrn grph. W wnt to l with two typs of onstrints: 1. Two vlus r liv t ovrlpping points (intrfrn grph) 2. A vlu must or must not in prtiulr rhitturl
More informationlearning objectives learn what graphs are in mathematical terms learn how to represent graphs in computers learn about typical graph algorithms
rp loritms lrnin ojtivs loritms your sotwr systm sotwr rwr lrn wt rps r in mtmtil trms lrn ow to rprsnt rps in omputrs lrn out typil rp loritms wy rps? intuitivly, rp is orm y vrtis n s twn vrtis rps r
More information1. Determine whether or not the following binary relations are equivalence relations. Be sure to justify your answers.
Mth 0 Exm - Prti Prolm Solutions. Dtrmin whthr or not th ollowing inry rltions r quivln rltions. B sur to justiy your nswrs. () {(0,0),(0,),(0,),(,),(,),(,),(,),(,0),(,),(,),(,0),(,),(.)} on th st A =
More informationThis chapter covers special properties of planar graphs.
Chptr 21 Plnr Grphs This hptr ovrs spil proprtis of plnr grphs. 21.1 Plnr grphs A plnr grph is grph whih n b rwn in th pln without ny gs rossing. Som piturs of plnr grph might hv rossing gs, but it s possibl
More informationMore Foundations. Undirected Graphs. Degree. A Theorem. Graphs, Products, & Relations
Mr Funtins Grphs, Pruts, & Rltins Unirt Grphs An unirt grph is pir f 1. A st f ns 2. A st f gs (whr n g is st f tw ns*) Friy, Sptmr 2, 2011 Ring: Sipsr 0.2 ginning f 0.4; Stughtn 1.1.5 ({,,,,}, {{,}, {,},
More informationSection 3: Antiderivatives of Formulas
Chptr Th Intgrl Appli Clculus 96 Sction : Antirivtivs of Formuls Now w cn put th is of rs n ntirivtivs togthr to gt wy of vluting finit intgrls tht is ct n oftn sy. To vlut finit intgrl f(t) t, w cn fin
More informationCS September 2018
Loil los Distriut Systms 06. Loil los Assin squn numrs to msss All ooprtin prosss n r on orr o vnts vs. physil los: rport tim o y Assum no ntrl tim sour Eh systm mintins its own lol lo No totl orrin o
More informationSimilarity Search. The Binary Branch Distance. Nikolaus Augsten.
Similrity Srh Th Binry Brnh Distn Nikolus Augstn nikolus.ugstn@sg..t Dpt. of Computr Sins Univrsity of Slzurg http://rsrh.uni-slzurg.t Vrsion Jnury 11, 2017 Wintrsmstr 2016/2017 Augstn (Univ. Slzurg) Similrity
More informationarxiv: v1 [cs.ds] 20 Feb 2008
Symposium on Thortil Aspts of Computr Sin 2008 (Borux), pp. 361-372 www.sts-onf.org rxiv:0802.2867v1 [s.ds] 20 F 2008 FIXED PARAMETER POLYNOMIAL TIME ALGORITHMS FOR MAXIMUM AGREEMENT AND COMPATIBLE SUPERTREES
More informationECE COMBINATIONAL BUILDING BLOCKS - INVEST 13 DECODERS AND ENCODERS
C 24 - COMBINATIONAL BUILDING BLOCKS - INVST 3 DCODS AND NCODS FALL 23 AP FLZ To o "wll" on this invstition you must not only t th riht nswrs ut must lso o nt, omplt n onis writups tht mk ovious wht h
More informationDesigning A Concrete Arch Bridge
This is th mous Shwnh ri in Switzrln, sin y Rort Millrt in 1933. It spns 37.4 mtrs (122 t) n ws sin usin th sm rphil mths tht will monstrt in this lsson. To pro with this lsson, lik on th Nxt utton hr
More informationCSE303 - Introduction to the Theory of Computing Sample Solutions for Exercises on Finite Automata
CSE303 - Introduction to th Thory of Computing Smpl Solutions for Exrciss on Finit Automt Exrcis 2.1.1 A dtrministic finit utomton M ccpts th mpty string (i.., L(M)) if nd only if its initil stt is finl
More informationComputational Biology, Phylogenetic Trees. Consensus methods
Computtionl Biology, Phylognti Trs Consnsus mthos Asgr Bruun & Bo Simonsn Th 16th of Jnury 2008 Dprtmnt of Computr Sin Th univrsity of Copnhgn 0 Motivtion Givn olltion of Trs Τ = { T 0,..., T n } W wnt
More informationa b c cat CAT A B C Aa Bb Cc cat cat Lesson 1 (Part 1) Verbal lesson: Capital Letters Make The Same Sound Lesson 1 (Part 1) continued...
Progrssiv Printing T.M. CPITLS g 4½+ Th sy, fun (n FR!) wy to tch cpitl lttrs. ook : C o - For Kinrgrtn or First Gr (not for pr-school). - Tchs tht cpitl lttrs mk th sm souns s th littl lttrs. - Tchs th
More informationQUESTIONS BEGIN HERE!
Points miss: Stunt's Nm: Totl sor: /100 points Est Tnnss Stt Univrsity Dprtmnt o Computr n Inormtion Sins CSCI 2710 (Trno) Disrt Struturs TEST or Sprin Smstr, 2005 R this or strtin! This tst is los ook
More informationPage 1. Question 19.1b Electric Charge II Question 19.2a Conductors I. ConcepTest Clicker Questions Chapter 19. Physics, 4 th Edition James S.
ConTst Clikr ustions Chtr 19 Physis, 4 th Eition Jms S. Wlkr ustion 19.1 Two hrg blls r rlling h othr s thy hng from th iling. Wht n you sy bout thir hrgs? Eltri Chrg I on is ositiv, th othr is ngtiv both
More informationS i m p l i f y i n g A l g e b r a SIMPLIFYING ALGEBRA.
S i m p l i y i n g A l g r SIMPLIFYING ALGEBRA www.mthltis.o.nz Simpliying SIMPLIFYING Algr ALGEBRA Algr is mthmtis with mor thn just numrs. Numrs hv ix vlu, ut lgr introus vrils whos vlus n hng. Ths
More informationAnnouncements. These are Graphs. This is not a Graph. Graph Definitions. Applications of Graphs. Graphs & Graph Algorithms
Grphs & Grph Algorithms Ltur CS Fll 5 Announmnts Upoming tlk h Mny Crrs o Computr Sintist Or how Computr Sin gr mpowrs you to o muh mor thn o Dn Huttnlohr, Prossor in th Dprtmnt o Computr Sin n Johnson
More informationNP-Completeness. CS3230 (Algorithm) Traveling Salesperson Problem. What s the Big Deal? Given a Problem. What s the Big Deal? What s the Big Deal?
NP-Compltnss 1. Polynomil tim lgorithm 2. Polynomil tim rution 3.P vs NP 4.NP-ompltnss (som slis y P.T. Um Univrsity o Txs t Dlls r us) Trvling Slsprson Prolm Fin minimum lngth tour tht visits h ity on
More informationUsing the Printable Sticker Function. Using the Edit Screen. Computer. Tablet. ScanNCutCanvas
SnNCutCnvs Using th Printl Stikr Funtion On-o--kin stikrs n sily rt y using your inkjt printr n th Dirt Cut untion o th SnNCut mhin. For inormtion on si oprtions o th SnNCutCnvs, rr to th Hlp. To viw th
More informationProblem solving by search
Prolm solving y srh Tomáš voo Dprtmnt o Cyrntis, Vision or Roots n Autonomous ystms Mrh 5, 208 / 3 Outlin rh prolm. tt sp grphs. rh trs. trtgis, whih tr rnhs to hoos? trtgy/algorithm proprtis? Progrmming
More informationA Simple Code Generator. Code generation Algorithm. Register and Address Descriptors. Example 3/31/2008. Code Generation
A Simpl Co Gnrtor Co Gnrtion Chptr 8 II Gnrt o for singl si lok How to us rgistrs? In most mhin rhitturs, som or ll of th oprnsmust in rgistrs Rgistrs mk goo tmporris Hol vlus tht r omput in on si lok
More informationFundamental Algorithms for System Modeling, Analysis, and Optimization
Fundmntl Algorithms for Sstm Modling, Anlsis, nd Optimiztion Edwrd A. L, Jijt Rohowdhur, Snjit A. Sshi UC Brkl EECS 144/244 Fll 2011 Copright 2010-11, E. A. L, J. Rohowdhur, S. A. Sshi, All rights rsrvd
More informationThe Plan. Honey, I Shrunk the Data. Why Compress. Data Compression Concepts. Braille Example. Braille. x y xˆ
h ln ony, hrunk th t ihr nr omputr in n nginring nivrsity of shington t omprssion onpts ossy t omprssion osslss t omprssion rfix os uffmn os th y 24 2 t omprssion onpts originl omprss o x y xˆ nor or omprss
More informationComplete Solutions for MATH 3012 Quiz 2, October 25, 2011, WTT
Complt Solutions or MATH 012 Quiz 2, Otor 25, 2011, WTT Not. T nswrs ivn r r mor omplt tn is xpt on n tul xm. It is intn tt t mor omprnsiv solutions prsnt r will vlul to stunts in stuyin or t inl xm. In
More informationOn Local Transformations in Plane Geometric Graphs Embedded on Small Grids
On Lol Trnsformtions in Pln Gomtri Grphs Em on Smll Gris Mnul Allns Prosnjit Bos Alfro Grí Frrn Hurto Pro Rmos Euro Rivr-Cmpo Jvir Tjl Astrt Givn two n-vrtx pln grphs G 1 = (V 1, E 1 ) n G 2 = (V 2, E
More informationSeven-Segment Display Driver
7-Smnt Disply Drivr, Ron s in 7-Smnt Disply Drivr, Ron s in Prolm 62. 00 0 0 00 0000 000 00 000 0 000 00 0 00 00 0 0 0 000 00 0 00 BCD Diits in inry Dsin Drivr Loi 4 inputs, 7 outputs 7 mps, h with 6 on
More informationFSA. CmSc 365 Theory of Computation. Finite State Automata and Regular Expressions (Chapter 2, Section 2.3) ALPHABET operations: U, concatenation, *
CmSc 365 Thory of Computtion Finit Stt Automt nd Rgulr Exprssions (Chptr 2, Sction 2.3) ALPHABET oprtions: U, conctntion, * otin otin Strings Form Rgulr xprssions dscri Closd undr U, conctntion nd * (if
More informationarxiv: v1 [math.co] 15 Dec 2015
On th Plnr Split Thiknss of Grphs Dvi Eppstin, Philipp Kinrmnn, Stphn Koourov, Giuspp Liott, Ann Luiw, Au Mignn, Djyoti Monl, Hmih Vosoughpour, Su Whitsis 8, n Stphn Wismth 9 rxiv:.89v [mth.co] D Univrsity
More informationUNCORRECTED SAMPLE PAGES 4-1. Naming fractions KEY IDEAS. 1 Each shape represents ONE whole. a i ii. b i ii
- Nming frtions Chptr Frtions Eh shp rprsnts ONE whol. i ii Wht frtion is shdd? Writ s frtion nd in words. Wht frtion is not shdd? Writ s frtion nd in words. i ii i ii Writ s mny diffrnt frtions s you
More informationAquauno Video 6 Plus Page 1
Connt th timr to th tp. Aquuno Vio 6 Plus Pg 1 Usr mnul 3 lik! For Aquuno Vio 6 (p/n): 8456 For Aquuno Vio 6 Plus (p/n): 8413 Opn th timr unit y prssing th two uttons on th sis, n fit 9V lklin ttry. Whn
More informationGrade 7/8 Math Circles March 4/5, Graph Theory I- Solutions
ulty o Mtmtis Wtrloo, Ontrio N ntr or ution in Mtmtis n omputin r / Mt irls Mr /, 0 rp Tory - Solutions * inits lln qustion. Tr t ollowin wlks on t rp low. or on, stt wtr it is pt? ow o you know? () n
More informationIEEE TRANSACTIONS ON COMPUTATIONAL BIOLOGY AND BIOINFORMATICS, VOL. TK, NO. TK, MONTHTK YEARTK 1. Hamiltonian Walks of Phylogenetic Treespaces
IEEE TRNSTIONS ON OMPUTTIONL IOLOGY ND IOINFORMTIS, VOL. TK, NO. TK, MONTHTK YERTK Hmiltonin Wlks of Phylognti Trsps Kvughn Goron, Eri For, n Kthrin St. John strt W nswr rynt s omintoril hllng on miniml
More informationGraph Contraction and Connectivity
Chptr 17 Grph Contrtion n Conntivity So r w hv mostly ovr thniqus or solving prolms on grphs tht wr vlop in th ontxt o squntil lgorithms. Som o thm r sy to prllliz whil othrs r not. For xmpl, w sw tht
More informationGraph Theory. Vertices. Vertices are also known as nodes, points and (in social networks) as actors, agents or players.
Stphn P. Borgtti Grph Thory A lthough grph thory is on o th youngr rnhs o mthmtis, it is unmntl to numr o ppli ils, inluing oprtions rsrh, omputr sin, n soil ntwork nlysis. In this hptr w isuss th si onpts
More informationSOLVED EXAMPLES. be the foci of an ellipse with eccentricity e. For any point P on the ellipse, prove that. tan
LOCUS 58 SOLVED EXAMPLES Empl Lt F n F th foci of n llips with ccntricit. For n point P on th llips, prov tht tn PF F tn PF F Assum th llips to, n lt P th point (, sin ). P(, sin ) F F F = (-, 0) F = (,
More informationEE1000 Project 4 Digital Volt Meter
Ovrviw EE1000 Projt 4 Diitl Volt Mtr In this projt, w mk vi tht n msur volts in th rn o 0 to 4 Volts with on iit o ury. Th input is n nlo volt n th output is sinl 7-smnt iit tht tlls us wht tht input s
More informationRegister Allocation. How to assign variables to finitely many registers? What to do when it can t be done? How to do so efficiently?
Rgistr Allotion Rgistr Allotion How to ssign vrils to initly mny rgistrs? Wht to o whn it n t on? How to o so iintly? Mony, Jun 3, 13 Mmory Wll Disprity twn CPU sp n mmory ss sp improvmnt Mony, Jun 3,
More information16.unified Introduction to Computers and Programming. SOLUTIONS to Examination 4/30/04 9:05am - 10:00am
16.unii Introution to Computrs n Prormmin SOLUTIONS to Exmintion /30/0 9:05m - 10:00m Pro. I. Kristin Lunqvist Sprin 00 Grin Stion: Qustion 1 (5) Qustion (15) Qustion 3 (10) Qustion (35) Qustion 5 (10)
More informationGreedy Algorithms, Activity Selection, Minimum Spanning Trees Scribes: Logan Short (2015), Virginia Date: May 18, 2016
Ltur 4 Gry Algorithms, Ativity Sltion, Minimum Spnning Trs Sris: Logn Short (5), Virgini Dt: My, Gry Algorithms Suppos w wnt to solv prolm, n w r l to om up with som rursiv ormultion o th prolm tht woul
More informationA 4-state solution to the Firing Squad Synchronization Problem based on hybrid rule 60 and 102 cellular automata
A 4-stt solution to th Firing Squ Synhroniztion Prolm s on hyri rul 60 n 102 llulr utomt LI Ning 1, LIANG Shi-li 1*, CUI Shung 1, XU Mi-ling 1, ZHANG Ling 2 (1. Dprtmnt o Physis, Northst Norml Univrsity,
More informationChapter 18. Minimum Spanning Trees Minimum Spanning Trees. a d. a d. a d. f c
Chptr 8 Minimum Spnning Trs In this hptr w ovr importnt grph prolm, Minimum Spnning Trs (MST). Th MST o n unirt, wight grph is tr tht spns th grph whil minimizing th totl wight o th gs in th tr. W irst
More informationTOPIC 5: INTEGRATION
TOPIC 5: INTEGRATION. Th indfinit intgrl In mny rspcts, th oprtion of intgrtion tht w r studying hr is th invrs oprtion of drivtion. Dfinition.. Th function F is n ntidrivtiv (or primitiv) of th function
More informationFormal Concept Analysis
Forml Conpt Anlysis Conpt intnts s losd sts Closur Systms nd Implitions 4 Closur Systms 0.06.005 Nxt-Closur ws dvlopd y B. Gntr (984). Lt M = {,..., n}. A M is ltilly smllr thn B M, if B A if th smllst
More information5/7/13. Part 10. Graphs. Theorem Theorem Graphs Describing Precedence. Outline. Theorem 10-1: The Handshaking Theorem
Thorm 10-1: Th Hnshkin Thorm Lt G=(V,E) n unirt rph. Thn Prt 10. Grphs CS 200 Alorithms n Dt Struturs v V (v) = 2 E How mny s r thr in rph with 10 vrtis h of r six? 10 * 6 /2= 30 1 Thorm 10-2 An unirt
More informationINTEGRALS. Chapter 7. d dx. 7.1 Overview Let d dx F (x) = f (x). Then, we write f ( x)
Chptr 7 INTEGRALS 7. Ovrviw 7.. Lt d d F () f (). Thn, w writ f ( ) d F () + C. Ths intgrls r clld indfinit intgrls or gnrl intgrls, C is clld constnt of intgrtion. All ths intgrls diffr y constnt. 7..
More informationAnalysis for Balloon Modeling Structure based on Graph Theory
Anlysis for lloon Moling Strutur bs on Grph Thory Abstrt Mshiro Ur* Msshi Ym** Mmoru no** Shiny Miyzki** Tkmi Ysu* *Grut Shool of Informtion Sin, Ngoy Univrsity **Shool of Informtion Sin n Thnology, hukyo
More informationImproving Union. Implementation. Union-by-size Code. Union-by-Size Find Analysis. Path Compression! Improving Find find(e)
POW CSE 36: Dt Struturs Top #10 T Dynm (Equvln) Duo: Unon-y-Sz & Pt Comprsson Wk!! Luk MDowll Summr Qurtr 003 M! ZING Wt s Goo Mz? Mz Construton lortm Gvn: ollton o rooms V Conntons twn t rooms (ntlly
More informationModule 2 Motion Instructions
Moul 2 Motion Instrutions CAUTION: Bor you strt this xprimnt, unrstn tht you r xpt to ollow irtions EXPLICITLY! Tk your tim n r th irtions or h stp n or h prt o th xprimnt. You will rquir to ntr t in prtiulr
More informationMA1506 Tutorial 2 Solutions. Question 1. (1a) 1 ) y x. e x. 1 exp (in general, Integrating factor is. ye dx. So ) (1b) e e. e c.
MA56 utorial Solutions Qustion a Intgrating fator is ln p p in gnral, multipl b p So b ln p p sin his kin is all a Brnoulli quation -- st Sin w fin Y, Y Y, Y Y p Qustion Dfin v / hn our quation is v μ
More information