Using Graph-Grammar Parsing for Automatic Graph Drawing

Size: px
Start display at page:

Download "Using Graph-Grammar Parsing for Automatic Graph Drawing"

Transcription

1 Using Grph-Grmmr Prsing for Automti Grph Drwing C.L. MCrery C.L. Coms D.H. Gill Dept. of Computer Siene n Engineering Equifx Inorporte The MITRE Corportion Auurn University Atlnt, Georgi MLen, Virgini.0 Introution Direte grphs, or igrphs, re n exellent mens of onveying the struture n opertion of mny types of systems. They re ple of representing not only the overll struture of suh system, ut lso the smllest etils in simple n effetive wy. However, rwing igrphs y hn n e teious n time onsuming, espeilly if the numer of verties n rs is lrge. In ition, muh time n e spent just trying to pln how the grph shoul e orgnie on the pge. These fts revel the nee for n utomte system ple of onverting textul esription of igrph into well orgnie n rele rwing of the igrph. Mny reserhers hve stuie this prolem n mny grph rwing systems hve een evelope [see 3 for omplete list]. The estheti riteri of the systems vry. The ojetives my inlue requirements of uniform ege length, minimum numer of ege rossings, stright eges, gri rwings (eges re either horiontl or vertil), miniml ens in the eges, minimum re overe, n isply of symmetries. Some limit the input grphs to prtiulr lss suh s plnr grphs, trees, grphs with mximum egree of four, or some pplition-speifi grphs suh s petri nets, network representtion, igitl system shemti igrms, PERT igrms, flowhrts, et. CG (Cln-se Grph Drwing Tool) is tool we use for our work with progrm epeneny grphs. Like ot [0] n its preeessor DAG [9], CG tkes textul esription of n ritrry irete grph n proues visul representtion of it. CG uses unique grph prsing metho to etermine intrinsi sustrutures in the grph n to proue prse tree. The

2 tree is given ttriutes tht speify the noe lyout. One exmple ttriute set is presente in this pper, ut the lyout n e tilore to suit ifferent estheti riteri. CG then uses tree properties n pts the work of Suigym [2], Wrfiel[ 3], Eens [7] n Frin [8] in routing the eges. The ojetives of the system re to provie n esthetilly plesing visul lyout for ritrry irete grphs. CG inorportes tehniques to reue ege rossings, gurntee few ens in long rs, n to shorten long rs whenever possile. CG is the first grph rwing tool to use grph grmmr s the funmentl struture tht esries the noe lyout. Brnenurg [] efines lyout grph grmmr s grph grmmr together with lyout speifition. The lyout speifition ssoites finite set of lyout onstrints with eh proution. Our pproh is to lssify the proutions of the grph prse n ssoite lyout ttriutes with eh proution type in the prse tree of the grph. 2.0 Noe Lyout The noe lyout is etermine y the omintion of () prsing of the grph into logilly ohesive sugrphs n (2) efining lyout ttriutes to pply to the resulting prse tree. The prse is se on simple grph grmmr, n the ttriutes tht re now progrmme into CG proue lyout whose noes re lne oth vertilly n horiontlly. 2. Grph Deomposition Cln-se grph eomposition (CGD) is prse of irete yli grph (DAG) into hierrhy of sugrphs. The sugrphs efine y our grph grmmr n prse re lle lns. Let G e DAG. A suset X G is ln iff for ll x, y " X n ll " G - X, () is n nestor of x iff is n nestor of y, n () is esennt of x iff is esennt of y. An lternte esription of ln epits it s suset of verties where every element not in the suset is relte in the sme wy (i.e. nestor, esennt or neither) to eh memer in the suset. Trivil lns inlue singleton sets n the entire grph. In Figure, sets {2,3}, {2,3,4,5,6},

3 {,2,3,4,5,6}, n {2,3,4,5,6,7} re the nontrivil lns. C={2,3} is ln sine vertex is n nestor of eh element of C n 5 n 7 re esennts of eh element of C. The set {2,3,4} is not ln sine 6 is esennt of only vertex Figure. Clns A simple ln C, with more thn three verties, is lssifie s one of three types. It is (i) primitive if the only lns in C re the trivil lns; (ii) inepenent if every sugrph of C is ln; or (iii) liner if for every pir of verties x n y in C, x is n nestor or esennt of y. Inepenent lns re sets of isolte verties. Liner lns re sequenes of one or more verties v i,v i+,...,v j-,v j where for i < k, v i is n nestor of v k. Any grph n e onstrute from these simple lns. Grph-grmmrs String grmmrs re speil se of grph-grmmrs. A string is isomorphi to liner grph, n in proution of the string grmmr, the replement string is onnete to the host string in nturl wy. In sequentil grph rewriting system or grph-grmmr, grphs re generte from some initil grph y proutions where the mother grph, sugrph of the host grph, is reple y nother grph, the ughter grph. The min prolem of grph-grmmrs is speifying the eges tht onnet the ughter grph to the host grph. The speifition of the eges onneting the

4 ughter grph to the host grph is lle the emeing rule. More formlly, grph-grmmr is system GG = (N, T,, P, H) where N n T re the nonterminl n terminl vertex lels, resp., is vertex lle the xiom or strt grph, P is set of proutions n H is n emeing rule. The prtiulr grph-grmmr of the work in this pper is lle the ln genertion system, CGS. All host n ughter grphs in CGS re Hsse grphs, i.e. irete grphs with no trnsitive eges. The xiom is single vertex. P is set of pirs (v,d) where v is ny grph vertex n D is primitive, inepenent or liner ln. For CGS, the reonnetion rule or emeing rule is hereity. All host n ughter grphs in CGS re Hsse grphs, i.e. irete grphs with no trnsitive eges. An emeing is lle hereitry when in-eges to the mother grph, single vertex, re reple with in-eges to the soures of the ughter grph n out-eges from the mother noe re reple with out-eges from the sinks of the ughter grph. More formlly, let the mother grph e vertex u. For eh vertex v in the set of soure verties in the ughter grph, (w,v) is n ege in the resultnt grph whenever (w,u) is n ege in the host grph. For sink verties, t, of the ughter grph,(t,w) is n ege in the resultnt grph whenever (u,w) is n ege in the host grph G m = 3 D () G G m = 3 D G () Figure 2. Proution exmples

5 Let us ll proution of this system CGS-proution. In pplitions of CGS-proutions, the ughter grph eomes ln in the resultnt grph. Figure 2 shows exmple proutions with the mother vertex ientifie s vertex 3. Quotient grph The onept of quotient grph is importnt euse it permits the lssifition of omplex lns into the tegories of liner, primitive or inepenent. Let C e ln n with {C,,...C k } prtition of C where eh C i is mximl proper suln of C. The quotient grph of C enote C/C...C k, is the grph with verties C,...,C k. Pir(C i,c j ) is n ege of C/C..C k iff x " C i, y " C j, n (x,y) is n ege of C. In Figure, the lns tht prtition the entire grph re: C = {}, C 2 = {2,3,4,5,6}, C 3 = {7}, n the quotient grph is liner. The lns tht prtition C 2 re {2,3}, {4}, {5}, n {6} n the quotient grph is primitive. Every ln n e ientifie s liner, primitive or inepenent oring to the lssifition of its quotient grph. Figure 3() shows the prse tree of the grph of Figure. Theorem : When the originl grph is Hsse grph, the grph generte y CGS is lso Hsse grph []. Theorem 2: Any Hsse grph n e generte y unique nonil sequene of proutions from CGS [6]. Theorem 3: For every Hsse grph there is unique eomposition into quotient grphs tht re ientifie s liner, primitive or inepenent [5,6]. Theorem 3 gurntees the existene of unique prse tree from the lns of grph. In the grph lyout lgorithm, the prse tree is use to speify the grph noe lotions. A ouning ox ttriute for eh tree vertex, x, speifies the length n with of retngle ontining the grph noes in x s sutree. The length n with re ompute for eh liner n eh inepenent ln from the ttriutes of the ln s hilren. The hilren of liner ln re isplye vertilly n the hilren of horiontl ln re isplye horiontlly in our exmple lyout.

6 Deomposing Primitives Primitive lns represent speil hllenge. They o not fll into the ler-ut tegories of verties tht shoul e li out horiontlly or li out vertilly. In ition, primitive lns n e ritrrily lrge, n there n e inefinitely mny of them. While this poses no speil hllenge to prsing, n every irete grph n e prse into lns from the three ln types, ritrry grph genertion is prolem sine list of ll primitive grphs must e inlue in the proution possiilities to rete ny speifi grph. Our pproh is to eliminte primitive lns y eomposing them further into hierrhy of pseuo-inepenent n liner lns. By ing eges from ll the soure noes of primitive to the union of the hilren of the soures, liner ln L is forme. L is ompose of ln of the soure noes (whih is ientifie s pseuo-inepenent) n the reminer of the primitive ln. The proeure then reursively prses the reminer of the primitive. This metho extrts series-prllel onstruts from primitive lns n represents the seril n prllel strutures in the prse tree. The pseuo-inepenent lns re trete s inepenent lns for lyout purposes sine their noes re not onnete. The prse tree of ny ompletely eompose grph is iprtite tree where the internl verties re lssifie s either liner or (pseuo-) inepenent. For onnete grph, the root vertex is lwys liner. In Figure, the primitive {2,3,4,5,6} eomposes into liner onnetion etween the inepenent lns {2,3,4} n {5,6}. The fully eompose prse tree is shown in Figure 3(). The iprtite prse tree n e eorte with lyout ttriutes tht n e synthesie to proue n esthetilly plesing rwing. 2.2 Extension to Cyli Grphs A simple trnsformtion is require to pply the grph eomposition metho to yli grphs. Cyles n e foun in epth-first grph trversl. To rek yle, the r tht ientifies the yle is given the reverse orienttion. When the lyout is rey, its orienttion will e orrete.

7 L = liner ln (L) P 7 L = primitive ln (P) = inepenent (I) or pseuo-inepenent (i) I i i () prse tree () prse tree with primitive remove Figure 3. Prse trees 2.3 Sptil Anlysis The prse tree of the grph n e given vriety of geometri interprettions. For exmple, retngle or ouning ox with known with n length n e ssoite with eh ln. Syntheti ttriutes n e ssoite with the prse tree hierrhy to show the emeing of the ouning oxes. For illustrtive purposes we hoose ttriutes we ll nturl tht give lne lyout, oth vertilly n horiontlly Bouning Boxes A simple two-imensionl lger efines the syntheti ttriutes tht speify the ouning oxes. The intrinsi ttriutes of singleton DAG noes (or equivlently prse tree leves) esrie unit squre ouning oxes. Liner lns require n re whose length is the sum of the lengths of the omponent lns n whose with is the mximum with of the omponent lns. Inepenent lns require n re whose with is the sum of the withs of the omponent lns n whose length is the mximum of the lengths of the omponent lns.

8 Definition: Denote the ouning ox ttriute of noe N in prse tree T y (L.N,W.N). We efine the nturl vlues of the ttriute to e: () (L.N, W.N) = (,), if N hs no hilren; (2) (L.N, W.N) <-- (L.C +...+L.C k, Mx(W.C,...,W.C k )), if N is liner noe with hilren C...C k; (3) (L.N, W.N) <--- ( Mx(L.C +...+L.C k,w.c,...,w.c k )), if N is n inepenent noe with hilren C...Ck. As n exmple onsier the prse tree in Figure 4. The ouning ox imensions re inite y the (i,j) pirs. 0 (5,2) Fig- v0 = liner ln = inepenent ln = vertex (,) (3,2) (,) v0 v6 (3,) (2,) 2 3 (,) (,) (,) (,) (,) v v3 v5 v2 v4 ure 4. Prse tree with lele ouning ox lels Noe Plement To hieve n esthetilly plesing lyout, the noes re entere within the ouning oxes. For hil C of liner noe N, the tul retngle in whih the noe is to e entere hs length L.C n with W.N. For hil D of inepenent noe I, the retngle in whih D is to e entere hs length L.I n with W.D. In Figure 4, for exmple, ln 3 is entere in (3,) ouning ox n vertex v0 is entere in (,2) ouning ox. Figure 5 shows the noe lyout for the prse tree of Figure 4.

9 v0 v v2 v3 v4 v5 v6 Figure 5. Bouning oxes Cln Expnsion n Contrtion Sine lns re efine s groups of noes with ientil onnetions to the rest of the grph, lns n esily e ontrte to single noe. Any noe not in the ln tht ws onnete to ln soure or sink will e onnete to the ontrte noe. By llowing segments of the grph to e ontte, the user n simplify grphs for viewing y ontrting those prts whih re not relevnt to the investigtion. Contrte noes n e expne to show the originl ln onfigurtion. Similrly, it is possile to isply only the ln, ignoring the rest of the grph. One of the mjor ifferenes etween the grphs rwn y the nturlly ttriute CG n hierrhil systems [2][2] is tht the noes in CG's grphs re spe in lne wy oth vertilly n horiontlly. Hierrhil rwings prtition noes into levels, n ll noes of the sme level re ple on the sme horiontl xis. Noes ten to unh towr the top of the grph is these systems. By using our grph eomposition tehnique, CG is le to etermine lne vertil sping s well s lne horiontl sping. 3.0 Drwing Ars An importnt onsiertion tht went into the formultion of the r rwing lgorithm ws the question of whih pirs of verties n hve rs etween them. The nswer lies in the efinition of liner n inepenent lns. The verties of liner ln n hve rs etween

10 them even if the verties re not onseutive in the lns. Within inepenent lns no two verties my e onnete y n r. For these resons, the lgorithm nee only onsier routing rs etween verties within ommon liner ln. There re two mjor prolems to e solve in routing rs: reuing ege rossings n long r prolems. Prouing optiml ege rossings is NP-hr, even for noes in only two levels [4]. CG moifies the Bryentri orering tehnique of Wrfiel [3] to e pplie to lns, s well s iniviul noes. The long r prolems inlue reuing r lengths whenever possile n the proper routing of rs tht onnet noes not ple on jent levels. To voi visul onflits, long rs my hve to e route roun noes from intermeite levels. Bens in the rs re often neessry for this routing, ut my use visul onfusion. Bens shoul e minimie. 3. Routing Long Ars Before noes ssume their finl position in the lyout, their lotion is etermine y onsiering plement tht will shorten long rs when possile or strighten rs for those tht nnot e shortene. To esrie the metho, severl efinitions re require. The level of noe x, l(x), in DAG G is the length of the longest pth from soure to x. The height of noe x, h(x), is the length of the longest pth from sink of the grph to x. The height of DAG G, H(G), is the mximum of the noe heights or, equivlently, the mximum of the noe levels. The length of r (x,y), L(x,y) = l(y) - l(x). An r, (x,y),is lle long if L(x,y) >. Otherwise, it is lle short. Theorem 4: In DAG G, if l(x) + h(x) = H(G), then there exist pth from soure to sink k,,...x= i,... k, suh tht L( j, j+ )= for # j < k. We sy noe x is speifie if l(x) + h(x) = H(G). The vertil positioning of speifie noe is etermine sine it is ontine in pth whose rs re ll of length. Short eges re

11 route iretly to verties while long rs re route through flse verties emee in lns etween the two verties. Sine ens re hr to follow n istrting to the eye, our strtegy gurntees tht trnsitive rs will hve t most two ens. Furthermore, no eges will ross long rs exept possily t either en of the r. 3.. Reogniing Long Ars A long r is inient to noe x iff there exists noe y suh tht (x,y) "E or (y,x) "E n $l(y)-l(x)$>. If the the long r, (x,y), is trnsitive r, it is reple y ummy noe n rs (x,) n (,y). When the ugmente grph is prse, is omponent in n inepenent suln of the ln ontining x n y. The exmple grph in Figure 6 illustrtes this sitution. The only trnsitive r is (,). Here, noe n rs (,) n (,) re e, n r (,) is elete. The ugmente prse inlues new inepenent ln, {,, } with omponents {,} n {}. The ugmente prse tree is shown in figure 6. Sine the only role of is tht of ple holer for the ummy noe, resonle moifition of the ttriute grmmr woul e to give the ummy noe smller with. The lyout in 6(e) illustrtes the se where the ouning ox of is ssigne the imensions (, 0.5). () originl grph () prse tree () grph with ugmenting noe x () new prse tree (e) lyout Figure 6. Routing trnsitive r

12 3..2 Positioning Noes Inient with Long Ars For non-trnsitive long rs inient t x, if l(x) + h(x) < H(G), then some flexiility exists for justing the vertil positioning of x. The vertil positioning will e moifie in one of three wys: (i) x will e entere etween preeessor n suessor, (ii) x will e ple one level elow its preeessor, or (iii) x will e ple one level ove its suessor. If there is suessor of x n preeessor of x tht re oth speifie, then x will e ple miwy etween, seprting two long rs. If only suessor or preeessor, y, is speifie, x will e move s lose s possile to y. These moifitions re me y inserting ummy noes into the prse tree, ompleting the norml lyout, routing the eges through the ummy noes n then removing the unneessry noes. The ummy noes re inlue with x in liner ln. The ition of the liner lns insures the noes with e ple in vertilly jent positions. Speifilly, the prse tree trnsformtions will e: (i) if ll preeessors, w, n ll suessors,, of x re stisfie, let = min %[l() - l(w) - 2] / 2&, where the minimum is tken over ll w, jent to x. Noe x is reple in the prse tree y liner with l() - l(w) - noes: ummy noes re ple to the left of x n l() - l(w) ummy noes re ple to the right of x. Figure 7 illustrtes the proess. In the figure, r (,) is trnsitive r. The grph is ugmente with noe x to remove the trnsitive ege. Now rs (x,) n (e,) re long. Furthermore ll preeessors n suessors of x n e re stisfie. Noe x in the prse tree is reple y liner ln with = (5-0-2)/2 = ummy noe to the left of x n l() - l() = 2 ummy noes to the right of x. Similrly, e is reple y liner ln with 2 noes. (ii) if there exists y suh tht y is speifie, (x,y) "E, n l(y) - l(x) >, let = min[l(y)-l(x)-], where the min is tken over ll y jent to x. Reple noe x in the prse tree y liner noe with + hilren: ummy noes to the left of x. Figure 8 illustrtes this

13 solution. Here (,) is long r tht is not trnsitive. = 3, n prse tree noe is reple y liner ln with 3 ummy noes followe y x. (See Figure 8()). Note tht neither the ummy noes nor the potentil eges etween them re require for the lyout. (5,3) = (length, with) % = level = height 2 %0 5 %0 5 e # x f g $ 3 e f g () prse tree # # 4 4 & e () originl grph (6,3) & ' 2 f g () ugmente prse tree (4,3) (4,2) (4,) " (,2) (2,) (2,2) (2,) " x " " " e f " " g " e f g " () ugmente prse tree with ummy liner Figure 7. Lyout for long trnsitive ege (e) lyout (iii) if there exists noe y suh tht y is speifie, (y,x) "E, n l(x) - l(y) >, let = min[(l(y)- l(x)-2]. Reple noe x in the prse tree y liner noe with + hilren: noe x is the left-most hil n ummy noes re to its right. Though the prse tree hnges n lrger ouning oxes re ssigne to these liner noes, it is importnt to leve the ouning oxes of the nestors unhnge. No itionl spe is require for the ummy noes. They re ple in the grph only for the purpose of routing eges. One ll noes n ummy noes re ple, ll rs re short n their plement follows.

14 (0,) (0,4) (5,4) e (,3) (,3) f (,2) (4,4) (,0) (,0) g (2,2) (2,2) h %0 # # %0 (4,2) () originl grph i (3,) () Prse Tree (,2) (,2) (,) (,) & ' i 0 (4,0) # # 3 e 3 f g h # $ 2 2 (5,4) (,2) (4,4) ( ( ( 2 (4,) " " " (4,2) i ( ( ( ( e f g h i () trnsforme prse tree e f g h () lyout Figure 8. Lyout to shorten long ege 3.2 The Bryentri Metho n its Apttion to Clns The Bryentri metho is heuristi for reuing the numer of ege rossings in two onseutive levels of grph. Two vlues lle the row ryenter n the olumn ryenter quntify the horiontl istne etween jent verties. Reuing these istnes proues fewer ege rossings. The metho trverses the levels of the grph n reursively omputes the ryenter for jent levels strting with level ero. With eh omputtion, the noes on one level re permute to reue the row ryenter vlue. The proess is repete etween top n ottom lyers until no reorering ours or limit on the numer of omputtions hs een rehe.

15 Apting ryenters to lns involves repling the jent levels of hierrhy y jent inepenent ln omponents of liner lns. The proess first inspets the smllest liner lns in the prse tree (those losest to the leves). The ryenter metho is use on non-trivil jent inepenent sulns of these liner lns. One the proper orering hs een estlishe for the noes within tht liner ln, tht orering remins fixe. The proess ontinues with the quotient grph where the liner noe hs een ontrte. Ientifying n using only the liner lns results in signifint reution in the mount of omputtion require to perform the ryentri metho. In the originl ryenter metho, the ryenters re ompute on mtries of sie r i *r i+ where r i is the numer of verties in level i n the omputtion requires r i *r i+ multiplitions n (r i -)*r i+ itions t eh level for eh itertion etween the top n ottom levels. With the pplition to the prse tree, fter the proper plement of the inepenent lns within liner, there is only one noe tht represents the entire struture of the liner ln. 3.3 Smoothing Ars. The CG system elimintes shrp orners y using B-splines. When n r onnets n tul vertex with ummy vertex, the spline tehnique esrie y Enns [7] n Frin [8] is use. See Figures 9, 0 n The Implementtion The CG system hs een implemente on Sun Mirosystems SPARCsttion running the SunOS 4..2 operting system. It ws written in C++ n uses the InterViews toolkit evelope t Stnfor University. This toolkit provies n ojet-oriente interfe to the X Winow System. Using this interfe, the system genertes rwing of irete grph from textul esription. The winows in Figures 9, 0, n ontin the igrph isplys generte y the

16 CG system. The verties of the igrph re represente y irles, eh of whih ontins the numer of the vertex. Verties n e selete y liking on them with the left mouse utton. This tion highlights the vertex y reversing its foregroun n kgroun olors. When ll the omponents of ln hve een selete, the user my then ontrt the ln. Figure 9 shows lyout n the results of ontrting lns {, 2} ' {3, 4, 5}, n {6, 7, 8, 9, 0}. The ontrte lns n e selete extly like the verties. The expn utton n then e use to expn selete lns to revel their ontents. This expnsion n ontrtion of lns llows the user to onentrte on speifi sugrphs while rowsing the igrph. Figure 9. Grph with 5 noes n ontrtions

17 Figure 0. Rnom DAG with 33 Noes

18 Figure. Rnom DAG with 3 noes.

19 Referenes. F. J. Brnenurg, "Lyout Grph Grmmrs: the Plement Approh", Leture Notes in Computer Siene, 532, Grph Grmmrs n Their Applition to Computer Siene, Springer-Verlg, Berlin, M. J. Crpno, "Automti Disply of Hierrhie Grphs for omputer Aie Deision Anlysis", IEEE Trns. on Systems N n Cyernetis, vol. SMC-0, no., pp G. Di Bttist, P. Ees, R. Tmssi, I. Tollis, Algorithms for Drwing Grphs: n Annotte Biliogrphy, ville vi ftp from wilm.s.rown ( ) in file /pu/gilio.tex.z. 4. P. Ees n N. Worml, Ege Crossings in Drwings of Biprtite Grphs, to pper in Algorithmi. 5. A. Ehrenfeuht n G. Roenerg, Theory of 2-Strutures, Prt I: Clns, Bsi Sulsses, n Morphisms, Theoretil Computer Siene, vol. 70, pp , A. Ehrenfeuht n G. Roenerg, Theory of 2-Strutures, Prt II: Representtion Through Lele Tree Fmilies, Theoretil Computer Siene, vol. 70, pp , S. Enns, Free-Form Curves on Your Miro, BYTE, vol., no. 3, pp , De G. Frin, Curves n Surfes for Computer Aie Geometri Design. Boston: Aemi Press, E. R. Gnsner, S. C. North, n K. P. Vo, DAG - A Progrm tht Drws Direte Grphs, Softwre - Prtie n Experiene, vol 8, no., pp , Nov E. Koutsofios n S. North, "Drwing Grphs with ot", Dot User s Mnul, AT&T Bell Ls, Murry Hill, N. J.. C. L. MCrery, "An lgorithm for Prsing Grph-Grmmr, " Ph.D. isserttion, University of Coloro, Bouler, K. Sugiym, S. Tgw, n M. To, Methos for Visul Unerstning of Hierrhil System Strutures, IEEE Trns. on Syst., Mn, n Cyernetis, vol., no. 2, pp , Fe J. N. Wrfiel, Crossing Theory n Hierrhy Mpping, IEEE Trns. on Syst., Mn, n Cyernetis, vol. 7, no. 7, pp , Jul. 977.

CS 491G Combinatorial Optimization Lecture Notes

CS 491G Combinatorial Optimization Lecture Notes CS 491G Comintoril Optimiztion Leture Notes Dvi Owen July 30, August 1 1 Mthings Figure 1: two possile mthings in simple grph. Definition 1 Given grph G = V, E, mthing is olletion of eges M suh tht e i,

More information

Counting Paths Between Vertices. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs

Counting Paths Between Vertices. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs Isomorphism of Grphs Definition The simple grphs G 1 = (V 1, E 1 ) n G = (V, E ) re isomorphi if there is ijetion (n oneto-one n onto funtion) f from V 1 to V with the property tht n re jent in G 1 if

More information

CIT 596 Theory of Computation 1. Graphs and Digraphs

CIT 596 Theory of Computation 1. Graphs and Digraphs CIT 596 Theory of Computtion 1 A grph G = (V (G), E(G)) onsists of two finite sets: V (G), the vertex set of the grph, often enote y just V, whih is nonempty set of elements lle verties, n E(G), the ege

More information

Solutions for HW9. Bipartite: put the red vertices in V 1 and the black in V 2. Not bipartite!

Solutions for HW9. Bipartite: put the red vertices in V 1 and the black in V 2. Not bipartite! Solutions for HW9 Exerise 28. () Drw C 6, W 6 K 6, n K 5,3. C 6 : W 6 : K 6 : K 5,3 : () Whih of the following re iprtite? Justify your nswer. Biprtite: put the re verties in V 1 n the lk in V 2. Biprtite:

More information

On a Class of Planar Graphs with Straight-Line Grid Drawings on Linear Area

On a Class of Planar Graphs with Straight-Line Grid Drawings on Linear Area Journl of Grph Algorithms n Applitions http://jg.info/ vol. 13, no. 2, pp. 153 177 (2009) On Clss of Plnr Grphs with Stright-Line Gri Drwings on Liner Are M. Rezul Krim 1,2 M. Siur Rhmn 1 1 Deprtment of

More information

Graph Theory. Simple Graph G = (V, E). V={a,b,c,d,e,f,g,h,k} E={(a,b),(a,g),( a,h),(a,k),(b,c),(b,k),...,(h,k)}

Graph Theory. Simple Graph G = (V, E). V={a,b,c,d,e,f,g,h,k} E={(a,b),(a,g),( a,h),(a,k),(b,c),(b,k),...,(h,k)} Grph Theory Simple Grph G = (V, E). V ={verties}, E={eges}. h k g f e V={,,,,e,f,g,h,k} E={(,),(,g),(,h),(,k),(,),(,k),...,(h,k)} E =16. 1 Grph or Multi-Grph We llow loops n multiple eges. G = (V, E.ψ)

More information

Lecture 2: Cayley Graphs

Lecture 2: Cayley Graphs Mth 137B Professor: Pri Brtlett Leture 2: Cyley Grphs Week 3 UCSB 2014 (Relevnt soure mteril: Setion VIII.1 of Bollos s Moern Grph Theory; 3.7 of Gosil n Royle s Algeri Grph Theory; vrious ppers I ve re

More information

2.4 Theoretical Foundations

2.4 Theoretical Foundations 2 Progrmming Lnguge Syntx 2.4 Theoretil Fountions As note in the min text, snners n prsers re se on the finite utomt n pushown utomt tht form the ottom two levels of the Chomsky lnguge hierrhy. At eh level

More information

Lecture 6: Coding theory

Lecture 6: Coding theory Leture 6: Coing theory Biology 429 Crl Bergstrom Ferury 4, 2008 Soures: This leture loosely follows Cover n Thoms Chpter 5 n Yeung Chpter 3. As usul, some of the text n equtions re tken iretly from those

More information

I 3 2 = I I 4 = 2A

I 3 2 = I I 4 = 2A ECE 210 Eletril Ciruit Anlysis University of llinois t Chigo 2.13 We re ske to use KCL to fin urrents 1 4. The key point in pplying KCL in this prolem is to strt with noe where only one of the urrents

More information

CS 2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014

CS 2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014 S 224 DIGITAL LOGI & STATE MAHINE DESIGN SPRING 214 DUE : Mrh 27, 214 HOMEWORK III READ : Relte portions of hpters VII n VIII ASSIGNMENT : There re three questions. Solve ll homework n exm prolems s shown

More information

Mid-Term Examination - Spring 2014 Mathematical Programming with Applications to Economics Total Score: 45; Time: 3 hours

Mid-Term Examination - Spring 2014 Mathematical Programming with Applications to Economics Total Score: 45; Time: 3 hours Mi-Term Exmintion - Spring 0 Mthemtil Progrmming with Applitions to Eonomis Totl Sore: 5; Time: hours. Let G = (N, E) e irete grph. Define the inegree of vertex i N s the numer of eges tht re oming into

More information

1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides.

1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides. 1 PYTHAGORAS THEOREM 1 1 Pythgors Theorem In this setion we will present geometri proof of the fmous theorem of Pythgors. Given right ngled tringle, the squre of the hypotenuse is equl to the sum of the

More information

22: Union Find. CS 473u - Algorithms - Spring April 14, We want to maintain a collection of sets, under the operations of:

22: Union Find. CS 473u - Algorithms - Spring April 14, We want to maintain a collection of sets, under the operations of: 22: Union Fin CS 473u - Algorithms - Spring 2005 April 14, 2005 1 Union-Fin We wnt to mintin olletion of sets, uner the opertions of: 1. MkeSet(x) - rete set tht ontins the single element x. 2. Fin(x)

More information

CSE 332. Sorting. Data Abstractions. CSE 332: Data Abstractions. QuickSort Cutoff 1. Where We Are 2. Bounding The MAXIMUM Problem 4

CSE 332. Sorting. Data Abstractions. CSE 332: Data Abstractions. QuickSort Cutoff 1. Where We Are 2. Bounding The MAXIMUM Problem 4 Am Blnk Leture 13 Winter 2016 CSE 332 CSE 332: Dt Astrtions Sorting Dt Astrtions QuikSort Cutoff 1 Where We Are 2 For smll n, the reursion is wste. The onstnts on quik/merge sort re higher thn the ones

More information

Lecture 11 Binary Decision Diagrams (BDDs)

Lecture 11 Binary Decision Diagrams (BDDs) C 474A/57A Computer-Aie Logi Design Leture Binry Deision Digrms (BDDs) C 474/575 Susn Lyseky o 3 Boolen Logi untions Representtions untion n e represente in ierent wys ruth tle, eqution, K-mp, iruit, et

More information

Section 1.3 Triangles

Section 1.3 Triangles Se 1.3 Tringles 21 Setion 1.3 Tringles LELING TRINGLE The line segments tht form tringle re lled the sides of the tringle. Eh pir of sides forms n ngle, lled n interior ngle, nd eh tringle hs three interior

More information

The DOACROSS statement

The DOACROSS statement The DOACROSS sttement Is prllel loop similr to DOALL, ut it llows prouer-onsumer type of synhroniztion. Synhroniztion is llowe from lower to higher itertions sine it is ssume tht lower itertions re selete

More information

Logic, Set Theory and Computability [M. Coppenbarger]

Logic, Set Theory and Computability [M. Coppenbarger] 14 Orer (Hnout) Definition 7-11: A reltion is qusi-orering (or preorer) if it is reflexive n trnsitive. A quisi-orering tht is symmetri is n equivlene reltion. A qusi-orering tht is nti-symmetri is n orer

More information

Eigenvectors and Eigenvalues

Eigenvectors and Eigenvalues MTB 050 1 ORIGIN 1 Eigenvets n Eigenvlues This wksheet esries the lger use to lulte "prinipl" "hrteristi" iretions lle Eigenvets n the "prinipl" "hrteristi" vlues lle Eigenvlues ssoite with these iretions.

More information

Project 6: Minigoals Towards Simplifying and Rewriting Expressions

Project 6: Minigoals Towards Simplifying and Rewriting Expressions MAT 51 Wldis Projet 6: Minigols Towrds Simplifying nd Rewriting Expressions The distriutive property nd like terms You hve proly lerned in previous lsses out dding like terms ut one prolem with the wy

More information

CS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6

CS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6 CS311 Computtionl Strutures Regulr Lnguges nd Regulr Grmmrs Leture 6 1 Wht we know so fr: RLs re losed under produt, union nd * Every RL n e written s RE, nd every RE represents RL Every RL n e reognized

More information

Graph Algorithms. Vertex set = { a,b,c,d } Edge set = { {a,c}, {b,c}, {c,d}, {b,d}} Figure 1: An example for a simple graph

Graph Algorithms. Vertex set = { a,b,c,d } Edge set = { {a,c}, {b,c}, {c,d}, {b,d}} Figure 1: An example for a simple graph Inin Institute of Informtion Tehnology Design n Mnufturing, Knheepurm, Chenni 00, Ini An Autonomous Institute uner MHRD, Govt of Ini http://www.iiitm..in COM 0T Design n Anlysis of Algorithms -Leture Notes

More information

for all x in [a,b], then the area of the region bounded by the graphs of f and g and the vertical lines x = a and x = b is b [ ( ) ( )] A= f x g x dx

for all x in [a,b], then the area of the region bounded by the graphs of f and g and the vertical lines x = a and x = b is b [ ( ) ( )] A= f x g x dx Applitions of Integrtion Are of Region Between Two Curves Ojetive: Fin the re of region etween two urves using integrtion. Fin the re of region etween interseting urves using integrtion. Desrie integrtion

More information

Lecture 4: Graph Theory and the Four-Color Theorem

Lecture 4: Graph Theory and the Four-Color Theorem CCS Disrete II Professor: Pri Brtlett Leture 4: Grph Theory n the Four-Color Theorem Week 4 UCSB 2015 Through the rest of this lss, we re going to refer frequently to things lle grphs! If you hen t seen

More information

CS 360 Exam 2 Fall 2014 Name

CS 360 Exam 2 Fall 2014 Name CS 360 Exm 2 Fll 2014 Nme 1. The lsses shown elow efine singly-linke list n stk. Write three ifferent O(n)-time versions of the reverse_print metho s speifie elow. Eh version of the metho shoul output

More information

Factorising FACTORISING.

Factorising FACTORISING. Ftorising FACTORISING www.mthletis.om.u Ftorising FACTORISING Ftorising is the opposite of expning. It is the proess of putting expressions into rkets rther thn expning them out. In this setion you will

More information

On the Spectra of Bipartite Directed Subgraphs of K 4

On the Spectra of Bipartite Directed Subgraphs of K 4 On the Spetr of Biprtite Direte Sugrphs of K 4 R. C. Bunge, 1 S. I. El-Znti, 1, H. J. Fry, 1 K. S. Kruss, 2 D. P. Roerts, 3 C. A. Sullivn, 4 A. A. Unsiker, 5 N. E. Witt 6 1 Illinois Stte University, Norml,

More information

Lecture 8: Abstract Algebra

Lecture 8: Abstract Algebra Mth 94 Professor: Pri Brtlett Leture 8: Astrt Alger Week 8 UCSB 2015 This is the eighth week of the Mthemtis Sujet Test GRE prep ourse; here, we run very rough-n-tumle review of strt lger! As lwys, this

More information

arxiv: v1 [cs.cg] 28 Apr 2009

arxiv: v1 [cs.cg] 28 Apr 2009 Orienttion-Constrine Retngulr Lyouts Dvi Eppstein 1 n Elen Mumfor 2 1 Deprtment of Computer Siene, University of Cliforni, Irvine, USA 2 Deprtment of Mthemtis n Computer Siene, TU Einhoven, The Netherlns

More information

CARLETON UNIVERSITY. 1.0 Problems and Most Solutions, Sect B, 2005

CARLETON UNIVERSITY. 1.0 Problems and Most Solutions, Sect B, 2005 RLETON UNIVERSIT eprtment of Eletronis ELE 2607 Swithing iruits erury 28, 05; 0 pm.0 Prolems n Most Solutions, Set, 2005 Jn. 2, #8 n #0; Simplify, Prove Prolem. #8 Simplify + + + Reue to four letters (literls).

More information

Necessary and sucient conditions for some two. Abstract. Further we show that the necessary conditions for the existence of an OD(44 s 1 s 2 )

Necessary and sucient conditions for some two. Abstract. Further we show that the necessary conditions for the existence of an OD(44 s 1 s 2 ) Neessry n suient onitions for some two vrile orthogonl esigns in orer 44 C. Koukouvinos, M. Mitrouli y, n Jennifer Seerry z Deite to Professor Anne Penfol Street Astrt We give new lgorithm whih llows us

More information

COMPUTING THE QUARTET DISTANCE BETWEEN EVOLUTIONARY TREES OF BOUNDED DEGREE

COMPUTING THE QUARTET DISTANCE BETWEEN EVOLUTIONARY TREES OF BOUNDED DEGREE COMPUTING THE QUARTET DISTANCE BETWEEN EVOLUTIONARY TREES OF BOUNDED DEGREE M. STISSING, C. N. S. PEDERSEN, T. MAILUND AND G. S. BRODAL Bioinformtis Reserh Center, n Dept. of Computer Siene, University

More information

Surds and Indices. Surds and Indices. Curriculum Ready ACMNA: 233,

Surds and Indices. Surds and Indices. Curriculum Ready ACMNA: 233, Surs n Inies Surs n Inies Curriulum Rey ACMNA:, 6 www.mthletis.om Surs SURDS & & Inies INDICES Inies n surs re very losely relte. A numer uner (squre root sign) is lle sur if the squre root n t e simplifie.

More information

Welcome. Balanced search trees. Balanced Search Trees. Inge Li Gørtz

Welcome. Balanced search trees. Balanced Search Trees. Inge Li Gørtz Welome nge Li Gørt. everse tehing n isussion of exerises: 02110 nge Li Gørt 3 tehing ssistnts 8.00-9.15 Group work 9.15-9.45 isussions of your solutions in lss 10.00-11.15 Leture 11.15-11.45 Work on exerises

More information

Now we must transform the original model so we can use the new parameters. = S max. Recruits

Now we must transform the original model so we can use the new parameters. = S max. Recruits MODEL FOR VARIABLE RECRUITMENT (ontinue) Alterntive Prmeteriztions of the pwner-reruit Moels We n write ny moel in numerous ifferent ut equivlent forms. Uner ertin irumstnes it is onvenient to work with

More information

Section 2.1 Special Right Triangles

Section 2.1 Special Right Triangles Se..1 Speil Rigt Tringles 49 Te --90 Tringle Setion.1 Speil Rigt Tringles Te --90 tringle (or just 0-60-90) is so nme euse of its ngle mesures. Te lengts of te sies, toug, ve very speifi pttern to tem

More information

April 8, 2017 Math 9. Geometry. Solving vector problems. Problem. Prove that if vectors and satisfy, then.

April 8, 2017 Math 9. Geometry. Solving vector problems. Problem. Prove that if vectors and satisfy, then. pril 8, 2017 Mth 9 Geometry Solving vetor prolems Prolem Prove tht if vetors nd stisfy, then Solution 1 onsider the vetor ddition prllelogrm shown in the Figure Sine its digonls hve equl length,, the prllelogrm

More information

COMPUTING THE QUARTET DISTANCE BETWEEN EVOLUTIONARY TREES OF BOUNDED DEGREE

COMPUTING THE QUARTET DISTANCE BETWEEN EVOLUTIONARY TREES OF BOUNDED DEGREE COMPUTING THE QUARTET DISTANCE BETWEEN EVOLUTIONARY TREES OF BOUNDED DEGREE M. STISSING, C. N. S. PEDERSEN, T. MAILUND AND G. S. BRODAL Bioinformtis Reserh Center, n Dept. of Computer Siene, University

More information

Computing the Quartet Distance between Evolutionary Trees in Time O(n log n)

Computing the Quartet Distance between Evolutionary Trees in Time O(n log n) Computing the Qurtet Distne etween Evolutionry Trees in Time O(n log n) Gerth Stølting Brol, Rolf Fgererg Christin N. S. Peersen Mrh 3, 2003 Astrt Evolutionry trees esriing the reltionship for set of speies

More information

CSC2542 State-Space Planning

CSC2542 State-Space Planning CSC2542 Stte-Spe Plnning Sheil MIlrith Deprtment of Computer Siene University of Toronto Fll 2010 1 Aknowlegements Some the slies use in this ourse re moifitions of Dn Nu s leture slies for the textook

More information

Data Structures LECTURE 10. Huffman coding. Example. Coding: problem definition

Data Structures LECTURE 10. Huffman coding. Example. Coding: problem definition Dt Strutures, Spring 24 L. Joskowiz Dt Strutures LEURE Humn oing Motivtion Uniquel eipherle oes Prei oes Humn oe onstrution Etensions n pplitions hpter 6.3 pp 385 392 in tetook Motivtion Suppose we wnt

More information

arxiv: v2 [math.co] 31 Oct 2016

arxiv: v2 [math.co] 31 Oct 2016 On exlue minors of onnetivity 2 for the lss of frme mtrois rxiv:1502.06896v2 [mth.co] 31 Ot 2016 Mtt DeVos Dryl Funk Irene Pivotto Astrt We investigte the set of exlue minors of onnetivity 2 for the lss

More information

Nondeterministic Finite Automata

Nondeterministic Finite Automata Nondeterministi Finite utomt The Power of Guessing Tuesdy, Otoer 4, 2 Reding: Sipser.2 (first prt); Stoughton 3.3 3.5 S235 Lnguges nd utomt eprtment of omputer Siene Wellesley ollege Finite utomton (F)

More information

Monochromatic Plane Matchings in Bicolored Point Set

Monochromatic Plane Matchings in Bicolored Point Set CCCG 2017, Ottw, Ontrio, July 26 28, 2017 Monohromti Plne Mthings in Biolore Point Set A. Krim Au-Affsh Sujoy Bhore Pz Crmi Astrt Motivte y networks interply, we stuy the prolem of omputing monohromti

More information

18.06 Problem Set 4 Due Wednesday, Oct. 11, 2006 at 4:00 p.m. in 2-106

18.06 Problem Set 4 Due Wednesday, Oct. 11, 2006 at 4:00 p.m. in 2-106 8. Problem Set Due Wenesy, Ot., t : p.m. in - Problem Mony / Consier the eight vetors 5, 5, 5,..., () List ll of the one-element, linerly epenent sets forme from these. (b) Wht re the two-element, linerly

More information

CS261: A Second Course in Algorithms Lecture #5: Minimum-Cost Bipartite Matching

CS261: A Second Course in Algorithms Lecture #5: Minimum-Cost Bipartite Matching CS261: A Seon Course in Algorithms Leture #5: Minimum-Cost Biprtite Mthing Tim Roughgren Jnury 19, 2016 1 Preliminries Figure 1: Exmple of iprtite grph. The eges {, } n {, } onstitute mthing. Lst leture

More information

Common intervals of genomes. Mathieu Raffinot CNRS LIAFA

Common intervals of genomes. Mathieu Raffinot CNRS LIAFA Common intervls of genomes Mthieu Rffinot CNRS LIF Context: omprtive genomis. set of genomes prtilly/totlly nnotte Informtive group of genes or omins? Ex: COG tse Mny iffiulties! iology Wht re two similr

More information

NON-DETERMINISTIC FSA

NON-DETERMINISTIC FSA Tw o types of non-determinism: NON-DETERMINISTIC FS () Multiple strt-sttes; strt-sttes S Q. The lnguge L(M) ={x:x tkes M from some strt-stte to some finl-stte nd ll of x is proessed}. The string x = is

More information

Total score: /100 points

Total score: /100 points Points misse: Stuent's Nme: Totl sore: /100 points Est Tennessee Stte University Deprtment of Computer n Informtion Sienes CSCI 2710 (Trnoff) Disrete Strutures TEST 2 for Fll Semester, 2004 Re this efore

More information

Technische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution

Technische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution Tehnishe Universität Münhen Winter term 29/ I7 Prof. J. Esprz / J. Křetínský / M. Luttenerger. Ferur 2 Solution Automt nd Forml Lnguges Homework 2 Due 5..29. Exerise 2. Let A e the following finite utomton:

More information

Minimal DFA. minimal DFA for L starting from any other

Minimal DFA. minimal DFA for L starting from any other Miniml DFA Among the mny DFAs ccepting the sme regulr lnguge L, there is exctly one (up to renming of sttes) which hs the smllest possile numer of sttes. Moreover, it is possile to otin tht miniml DFA

More information

Algebra 2 Semester 1 Practice Final

Algebra 2 Semester 1 Practice Final Alger 2 Semester Prtie Finl Multiple Choie Ientify the hoie tht est ompletes the sttement or nswers the question. To whih set of numers oes the numer elong?. 2 5 integers rtionl numers irrtionl numers

More information

Connectivity in Graphs. CS311H: Discrete Mathematics. Graph Theory II. Example. Paths. Connectedness. Example

Connectivity in Graphs. CS311H: Discrete Mathematics. Graph Theory II. Example. Paths. Connectedness. Example Connetiit in Grphs CSH: Disrete Mthemtis Grph Theor II Instrtor: Işıl Dillig Tpil qestion: Is it possile to get from some noe to nother noe? Emple: Trin netork if there is pth from to, possile to tke trin

More information

Algorithms & Data Structures Homework 8 HS 18 Exercise Class (Room & TA): Submitted by: Peer Feedback by: Points:

Algorithms & Data Structures Homework 8 HS 18 Exercise Class (Room & TA): Submitted by: Peer Feedback by: Points: Eidgenössishe Tehnishe Hohshule Zürih Eole polytehnique fédérle de Zurih Politenio federle di Zurigo Federl Institute of Tehnology t Zurih Deprtement of Computer Siene. Novemer 0 Mrkus Püshel, Dvid Steurer

More information

Particle Physics. Michaelmas Term 2011 Prof Mark Thomson. Handout 3 : Interaction by Particle Exchange and QED. Recap

Particle Physics. Michaelmas Term 2011 Prof Mark Thomson. Handout 3 : Interaction by Particle Exchange and QED. Recap Prtile Physis Mihelms Term 2011 Prof Mrk Thomson g X g X g g Hnout 3 : Intertion y Prtile Exhnge n QED Prof. M.A. Thomson Mihelms 2011 101 Rep Working towrs proper lultion of ey n sttering proesses lnitilly

More information

F / x everywhere in some domain containing R. Then, + ). (10.4.1)

F / x everywhere in some domain containing R. Then, + ). (10.4.1) 0.4 Green's theorem in the plne Double integrls over plne region my be trnsforme into line integrls over the bounry of the region n onversely. This is of prtil interest beuse it my simplify the evlution

More information

Activities. 4.1 Pythagoras' Theorem 4.2 Spirals 4.3 Clinometers 4.4 Radar 4.5 Posting Parcels 4.6 Interlocking Pipes 4.7 Sine Rule Notes and Solutions

Activities. 4.1 Pythagoras' Theorem 4.2 Spirals 4.3 Clinometers 4.4 Radar 4.5 Posting Parcels 4.6 Interlocking Pipes 4.7 Sine Rule Notes and Solutions MEP: Demonstrtion Projet UNIT 4: Trigonometry UNIT 4 Trigonometry tivities tivities 4. Pythgors' Theorem 4.2 Spirls 4.3 linometers 4.4 Rdr 4.5 Posting Prels 4.6 Interloking Pipes 4.7 Sine Rule Notes nd

More information

CS 573 Automata Theory and Formal Languages

CS 573 Automata Theory and Formal Languages Non-determinism Automt Theory nd Forml Lnguges Professor Leslie Lnder Leture # 3 Septemer 6, 2 To hieve our gol, we need the onept of Non-deterministi Finite Automton with -moves (NFA) An NFA is tuple

More information

Chapter 3. Vector Spaces. 3.1 Images and Image Arithmetic

Chapter 3. Vector Spaces. 3.1 Images and Image Arithmetic Chpter 3 Vetor Spes In Chpter 2, we sw tht the set of imges possessed numer of onvenient properties. It turns out tht ny set tht possesses similr onvenient properties n e nlyzed in similr wy. In liner

More information

6. Suppose lim = constant> 0. Which of the following does not hold?

6. Suppose lim = constant> 0. Which of the following does not hold? CSE 0-00 Nme Test 00 points UTA Stuent ID # Multiple Choie Write your nswer to the LEFT of eh prolem 5 points eh The k lrgest numers in file of n numers n e foun using Θ(k) memory in Θ(n lg k) time using

More information

XML and Databases. Exam Preperation Discuss Answers to last year s exam. Sebastian Maneth NICTA and UNSW

XML and Databases. Exam Preperation Discuss Answers to last year s exam. Sebastian Maneth NICTA and UNSW XML n Dtses Exm Prepertion Disuss Answers to lst yer s exm Sestin Mneth NICTA n UNSW CSE@UNSW -- Semester 1, 2008 (1) For eh of the following, explin why it is not well-forme XML (is WFC or the XML grmmr

More information

The Word Problem in Quandles

The Word Problem in Quandles The Word Prolem in Qundles Benjmin Fish Advisor: Ren Levitt April 5, 2013 1 1 Introdution A word over n lger A is finite sequene of elements of A, prentheses, nd opertions of A defined reursively: Given

More information

Laboratory for Foundations of Computer Science. An Unfolding Approach. University of Edinburgh. Model Checking. Javier Esparza

Laboratory for Foundations of Computer Science. An Unfolding Approach. University of Edinburgh. Model Checking. Javier Esparza An Unfoling Approh to Moel Cheking Jvier Esprz Lbortory for Fountions of Computer Siene University of Einburgh Conurrent progrms Progrm: tuple P T 1 T n of finite lbelle trnsition systems T i A i S i i

More information

Subsequence Automata with Default Transitions

Subsequence Automata with Default Transitions Susequene Automt with Defult Trnsitions Philip Bille, Inge Li Gørtz, n Freerik Rye Skjoljensen Tehnil University of Denmrk {phi,inge,fskj}@tu.k Astrt. Let S e string of length n with hrters from n lphet

More information

Section 2.3. Matrix Inverses

Section 2.3. Matrix Inverses Mtri lger Mtri nverses Setion.. Mtri nverses hree si opertions on mtries, ition, multiplition, n sutrtion, re nlogues for mtries of the sme opertions for numers. n this setion we introue the mtri nlogue

More information

Exercise sheet 6: Solutions

Exercise sheet 6: Solutions Eerise sheet 6: Solutions Cvet emptor: These re merel etended hints, rther thn omplete solutions. 1. If grph G hs hromti numer k > 1, prove tht its verte set n e prtitioned into two nonempt sets V 1 nd

More information

Discrete Structures, Test 2 Monday, March 28, 2016 SOLUTIONS, VERSION α

Discrete Structures, Test 2 Monday, March 28, 2016 SOLUTIONS, VERSION α Disrete Strutures, Test 2 Mondy, Mrh 28, 2016 SOLUTIONS, VERSION α α 1. (18 pts) Short nswer. Put your nswer in the ox. No prtil redit. () Consider the reltion R on {,,, d with mtrix digrph of R.. Drw

More information

A Lower Bound for the Length of a Partial Transversal in a Latin Square, Revised Version

A Lower Bound for the Length of a Partial Transversal in a Latin Square, Revised Version A Lower Bound for the Length of Prtil Trnsversl in Ltin Squre, Revised Version Pooy Htmi nd Peter W. Shor Deprtment of Mthemtil Sienes, Shrif University of Tehnology, P.O.Bo 11365-9415, Tehrn, Irn Deprtment

More information

A Short Introduction to Self-similar Groups

A Short Introduction to Self-similar Groups A Short Introution to Self-similr Groups Murry Eler* Asi Pifi Mthemtis Newsletter Astrt. Self-similr groups re fsinting re of urrent reserh. Here we give short, n hopefully essile, introution to them.

More information

Metaheuristics for the Asymmetric Hamiltonian Path Problem

Metaheuristics for the Asymmetric Hamiltonian Path Problem Metheuristis for the Asymmetri Hmiltonin Pth Prolem João Pero PEDROSO INESC - Porto n DCC - Fule e Ciênis, Universie o Porto, Portugl jpp@f.up.pt Astrt. One of the most importnt pplitions of the Asymmetri

More information

Finite State Automata and Determinisation

Finite State Automata and Determinisation Finite Stte Automt nd Deterministion Tim Dworn Jnury, 2016 Lnguges fs nf re df Deterministion 2 Outline 1 Lnguges 2 Finite Stte Automt (fs) 3 Non-deterministi Finite Stte Automt (nf) 4 Regulr Expressions

More information

WORKSHOP 7 PARASOLID SOLID EXAMPLE

WORKSHOP 7 PARASOLID SOLID EXAMPLE WORKSHOP 7 PARASOLID SOLID EXAMPLE WS7-1 WS7-2 Workshop Ojetives Lern some of the steps tht n e use to rete B-rep soli, i.e. extrue surfe, shell, n ege len. Then, rete the finite element moel. Anlyze the

More information

Global alignment. Genome Rearrangements Finding preserved genes. Lecture 18

Global alignment. Genome Rearrangements Finding preserved genes. Lecture 18 Computt onl Biology Leture 18 Genome Rerrngements Finding preserved genes We hve seen before how to rerrnge genome to obtin nother one bsed on: Reversls Knowledge of preserved bloks (or genes) Now we re

More information

Instructions. An 8.5 x 11 Cheat Sheet may also be used as an aid for this test. MUST be original handwriting.

Instructions. An 8.5 x 11 Cheat Sheet may also be used as an aid for this test. MUST be original handwriting. ID: B CSE 2021 Computer Orgniztion Midterm Test (Fll 2009) Instrutions This is losed ook, 80 minutes exm. The MIPS referene sheet my e used s n id for this test. An 8.5 x 11 Chet Sheet my lso e used s

More information

Chapter 4 State-Space Planning

Chapter 4 State-Space Planning Leture slides for Automted Plnning: Theory nd Prtie Chpter 4 Stte-Spe Plnning Dn S. Nu CMSC 722, AI Plnning University of Mrylnd, Spring 2008 1 Motivtion Nerly ll plnning proedures re serh proedures Different

More information

Exam 1 Study Guide. Differentiation and Anti-differentiation Rules from Calculus I

Exam 1 Study Guide. Differentiation and Anti-differentiation Rules from Calculus I Exm Stuy Guie Mth 26 - Clulus II, Fll 205 The following is list of importnt onepts from eh setion tht will be teste on exm. This is not omplete list of the mteril tht you shoul know for the ourse, but

More information

Section 4.4. Green s Theorem

Section 4.4. Green s Theorem The Clulus of Funtions of Severl Vriles Setion 4.4 Green s Theorem Green s theorem is n exmple from fmily of theorems whih onnet line integrls (nd their higher-dimensionl nlogues) with the definite integrls

More information

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER MACHINES AND THEIR LANGUAGES ANSWERS

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER MACHINES AND THEIR LANGUAGES ANSWERS The University of ottinghm SCHOOL OF COMPUTR SCIC A LVL 2 MODUL, SPRIG SMSTR 2015 2016 MACHIS AD THIR LAGUAGS ASWRS Time llowed TWO hours Cndidtes my omplete the front over of their nswer ook nd sign their

More information

Nondeterministic Automata vs Deterministic Automata

Nondeterministic Automata vs Deterministic Automata Nondeterministi Automt vs Deterministi Automt We lerned tht NFA is onvenient model for showing the reltionships mong regulr grmmrs, FA, nd regulr expressions, nd designing them. However, we know tht n

More information

Implication Graphs and Logic Testing

Implication Graphs and Logic Testing Implition Grphs n Logi Testing Vishwni D. Agrwl Jmes J. Dnher Professor Dept. of ECE, Auurn University Auurn, AL 36849 vgrwl@eng.uurn.eu www.eng.uurn.eu/~vgrwl Joint reserh with: K. K. Dve, ATI Reserh,

More information

CS 275 Automata and Formal Language Theory

CS 275 Automata and Formal Language Theory CS 275 utomt nd Forml Lnguge Theory Course Notes Prt II: The Recognition Prolem (II) Chpter II.5.: Properties of Context Free Grmmrs (14) nton Setzer (Bsed on ook drft y J. V. Tucker nd K. Stephenson)

More information

Trigonometry Revision Sheet Q5 of Paper 2

Trigonometry Revision Sheet Q5 of Paper 2 Trigonometry Revision Sheet Q of Pper The Bsis - The Trigonometry setion is ll out tringles. We will normlly e given some of the sides or ngles of tringle nd we use formule nd rules to find the others.

More information

Identifying and Classifying 2-D Shapes

Identifying and Classifying 2-D Shapes Ientifying n Clssifying -D Shpes Wht is your sign? The shpe n olour of trffi signs let motorists know importnt informtion suh s: when to stop onstrution res. Some si shpes use in trffi signs re illustrte

More information

GM1 Consolidation Worksheet

GM1 Consolidation Worksheet Cmridge Essentils Mthemtis Core 8 GM1 Consolidtion Worksheet GM1 Consolidtion Worksheet 1 Clulte the size of eh ngle mrked y letter. Give resons for your nswers. or exmple, ngles on stright line dd up

More information

A Primer on Continuous-time Economic Dynamics

A Primer on Continuous-time Economic Dynamics Eonomis 205A Fll 2008 K Kletzer A Primer on Continuous-time Eonomi Dnmis A Liner Differentil Eqution Sstems (i) Simplest se We egin with the simple liner first-orer ifferentil eqution The generl solution

More information

Compression of Palindromes and Regularity.

Compression of Palindromes and Regularity. Compression of Plinromes n Regulrity. Kyoko Shikishim-Tsuji Center for Lierl Arts Eution n Reserh Tenri University 1 Introution In [1], property of likstrem t t view of tse is isusse n it is shown tht

More information

Introduction to Olympiad Inequalities

Introduction to Olympiad Inequalities Introdution to Olympid Inequlities Edutionl Studies Progrm HSSP Msshusetts Institute of Tehnology Snj Simonovikj Spring 207 Contents Wrm up nd Am-Gm inequlity 2. Elementry inequlities......................

More information

Obstructions to chordal circular-arc graphs of small independence number

Obstructions to chordal circular-arc graphs of small independence number Ostrutions to horl irulr-r grphs of smll inepenene numer Mthew Frnis,1 Pvol Hell,2 Jurj Stho,3 Institute of Mth. Sienes, IV Cross Ro, Trmni, Chenni 600 113, Ini Shool of Comp. Siene, Simon Frser University,

More information

ILLUSTRATING THE EXTENSION OF A SPECIAL PROPERTY OF CUBIC POLYNOMIALS TO NTH DEGREE POLYNOMIALS

ILLUSTRATING THE EXTENSION OF A SPECIAL PROPERTY OF CUBIC POLYNOMIALS TO NTH DEGREE POLYNOMIALS ILLUSTRATING THE EXTENSION OF A SPECIAL PROPERTY OF CUBIC POLYNOMIALS TO NTH DEGREE POLYNOMIALS Dvid Miller West Virgini University P.O. BOX 6310 30 Armstrong Hll Morgntown, WV 6506 millerd@mth.wvu.edu

More information

Lesson 2: The Pythagorean Theorem and Similar Triangles. A Brief Review of the Pythagorean Theorem.

Lesson 2: The Pythagorean Theorem and Similar Triangles. A Brief Review of the Pythagorean Theorem. 27 Lesson 2: The Pythgoren Theorem nd Similr Tringles A Brief Review of the Pythgoren Theorem. Rell tht n ngle whih mesures 90º is lled right ngle. If one of the ngles of tringle is right ngle, then we

More information

Computational Biology Lecture 18: Genome rearrangements, finding maximal matches Saad Mneimneh

Computational Biology Lecture 18: Genome rearrangements, finding maximal matches Saad Mneimneh Computtionl Biology Leture 8: Genome rerrngements, finding miml mthes Sd Mneimneh We hve seen how to rerrnge genome to otin nother one sed on reversls nd the knowledge of the preserved loks or genes. Now

More information

Linear choosability of graphs

Linear choosability of graphs Liner hoosility of grphs Louis Esperet, Mikel Montssier, André Rspud To ite this version: Louis Esperet, Mikel Montssier, André Rspud. Liner hoosility of grphs. Stefn Felsner. 2005 Europen Conferene on

More information

Technology Mapping Method for Low Power Consumption and High Performance in General-Synchronous Framework

Technology Mapping Method for Low Power Consumption and High Performance in General-Synchronous Framework R-17 SASIMI 015 Proeeings Tehnology Mpping Metho for Low Power Consumption n High Performne in Generl-Synhronous Frmework Junki Kwguhi Yukihie Kohir Shool of Computer Siene, the University of Aizu Aizu-Wkmtsu

More information

Intermediate Math Circles Wednesday 17 October 2012 Geometry II: Side Lengths

Intermediate Math Circles Wednesday 17 October 2012 Geometry II: Side Lengths Intermedite Mth Cirles Wednesdy 17 Otoer 01 Geometry II: Side Lengths Lst week we disussed vrious ngle properties. As we progressed through the evening, we proved mny results. This week, we will look t

More information

Solving the Class Diagram Restructuring Transformation Case with FunnyQT

Solving the Class Diagram Restructuring Transformation Case with FunnyQT olving the lss Digrm Restruturing Trnsformtion se with FunnyQT Tssilo Horn horn@uni-kolenz.e Institute for oftwre Tehnology, University Kolenz-Lnu, Germny FunnyQT is moel querying n moel trnsformtion lirry

More information

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3 2 The Prllel Circuit Electric Circuits: Figure 2- elow show ttery nd multiple resistors rrnged in prllel. Ech resistor receives portion of the current from the ttery sed on its resistnce. The split is

More information

6.5 Improper integrals

6.5 Improper integrals Eerpt from "Clulus" 3 AoPS In. www.rtofprolemsolving.om 6.5. IMPROPER INTEGRALS 6.5 Improper integrls As we ve seen, we use the definite integrl R f to ompute the re of the region under the grph of y =

More information

arxiv: v1 [cs.dm] 24 Jul 2017

arxiv: v1 [cs.dm] 24 Jul 2017 Some lsses of grphs tht re not PCGs 1 rxiv:1707.07436v1 [s.dm] 24 Jul 2017 Pierluigi Biohi Angelo Monti Tizin Clmoneri Rossell Petreshi Computer Siene Deprtment, Spienz University of Rome, Itly pierluigi.iohi@gmil.om,

More information

GNFA GNFA GNFA GNFA GNFA

GNFA GNFA GNFA GNFA GNFA DFA RE NFA DFA -NFA REX GNFA Definition GNFA A generlize noneterministic finite utomton (GNFA) is grph whose eges re lele y regulr expressions, with unique strt stte with in-egree, n unique finl stte with

More information