Single-Player and Two-Player Buttons & Scissors Games (Extended Abstract)

Size: px
Start display at page:

Download "Single-Player and Two-Player Buttons & Scissors Games (Extended Abstract)"

Transcription

1 Single-Plyer nd Two-Plyer Buttons & Sissors Gmes (Extended Astrt) Kyle Burke 1, Erik D. Demine 2, Hrrison Gregg 3, Roert A. Hern 4, Adm Hestererg 2, Mihel Hoffmnn 5, Hiro Ito 6, Irin Kostitsyn 7, Jody Leonrd 3, Mrten Löffler 8, Aron Sntigo 3, Christine Shmidt 9, Ryuhei Uehr 10, Yushi Uno 11, nd Aron Willims 3 Astrt. We study the omputtionl omplexity of the Buttons & Sissors gme nd otin shrp thresholds with respet to severl prmeters. Speifilly we show tht the gme is NP-omplete for C = 2 olors ut polytime solvle for C = 1. Similrly the gme is NP-omplete if every olor is used y t most F = 4 uttons ut polytime solvle for F 3. We lso onsider restritions on the ord size, ut diretions, nd ut sizes. Finlly, we introdue severl nturl two-plyer versions of the gme nd show tht they re PSPACE-omplete. 1 Introdution Buttons & Sissors is single-plyer puzzle y KyWorks. The gol of eh level is to remove every utton y sequene of horizontl, vertil, nd digonl uts, s illustrted y Fig. 1. It is NP-omplete to deide if given level is solvle [2]. We study severl restrited versions of the gme nd show tht some remin hrd, wheres others n e solved in polynomil time. We lso onsider nturl extensions to two plyer gmes whih turn out to e PSPACE-omplete. Setion 2 egins with preliminries, then we disuss one-plyer puzzles in Setion 3 nd two-plyer gmes in Setion 4. Open prolems pper in Setion 5. Due to spe restritions, some proofs re skethed or omitted. A full version of this rtile n e found on rxiv. 1 Plymouth Stte University, kgurke@plymouth.edu 2 Msshusetts Institute of Tehnology, {edemine,hester}@mit.edu 3 Brd College t Simon s Rok, {hgregg11,jleonrd11,sntigo11,willims}@simons-rok.edu 4 o@hern.to 5 ETH Zürih, hoffmnn@inf.ethz.h 6 The University of Eletro-Communitions, itohiro@ue..jp 7 Tehnishe Universiteit Eindhoven, i.kostitsyn@tue.nl. Supported in prt y NWO projet no Universiteit Utreht, m.loffler@uu.nl 9 Linköping University, hristine.shmidt@liu.se. Supported in prt y grnt from Sweden s innovtion geny VINNOVA. 10 Jpn Advned Institute of Siene nd Tehnology, uehr@jist..jp 11 Osk Prefeture University, uno@mi.s.oskfu-u..jp

2 () () () Fig. 1. () Level 7 in the Buttons & Sissors pp is n m n = 5 5 grid with C = 5 olors, eh used t most F = 7 times; () solution using nine uts with sizes in S = {2,3} nd diretions d = (no vertil ut is used); () gdget used in Theorem 5. 2 Preliminries A Buttons & Sissors ord B is n m n grid, where eh grid position is either empty or oupied y utton with one of C different olors. A ut is given y two distint uttons 1, 2 of the sme olor tht shre either the x-oordinte, the y-oordinte, or re loted on the sme digonl (45 nd 45 ). The size s of ut is the numer of uttons on the line segment 1 2 nd so s 2. A ut is fesile for B if 1 2 only ontins uttons of single olor. When fesile ut is pplied to ord B, the resulting ord B is otined y sustituting the uttons of olor on 1 2 with empty grid entries. A solution to ord B is sequene of ords nd fesile uts B 1,x 1,B 2,x 2,...,B t,x t,b t+1, where B t+1 is empty, nd eh ut x i is fesile for B i nd retes B i+1. Eh instne n e prmeterized s follows (see Fig. 1 for n exmple): 1. The ord size m n. 2. The numer of olors C. 3. The mximum frequeny F of n individul olor. 4. The ut diretions d n e limited to d {,,, }. 5. The ut size set S limits fesile uts to hving size s S. Eh d {,,, } is set of ut diretions (i.e. for horizontl nd vertil). We limit ourselves to these options euse n m n ord n e rotted 90 to n equivlent n m ord, or 45 to n equivlent k k ord for k = m+n 1 with lnk squres. Similrly, we n sher the grid y pdding row i with i 1 lnks on the left nd m i lnks on the right whih onverts d = to d =. We otin the fmily of gmes elow (B&S[n n,,,,{2,3}](b) is the originl): Deision Prolem: B&S[m n,c,f,d,s](b). Input: An m n ord B with uttons of C olors, eh used t most F times. Output: True B is solvle with uts of size s S nd diretions d. Now we provide three oservtions for lter use. First note tht single ut of size s n e omplished y uts of size s 1,s 2,...,s k so long s s = s 1 + s s k nd s i 2 for ll i. Seond note tht removing ll uttons of single olor from solvle instne nnot result in n unsolvle instne.

3 3 Remrk 1. A ord n e solved with ut sizes S = {2,3,...} if nd only if it n e solved with ut sizes S = {2,3}. Also, {3,4,...} nd {3,4,5} re equivlent. Remrk 2. If ord B is otined from ord B y removing every utton of single olor, then B&S[m n,c,f,d,s](b) = B&S[m n,c,f,d,s](b ). 3 Single-Plyer Puzzle 3.1 Bord Size We solve one row prolems elow, nd give onjeture for two rows in Setion 5. Theorem 1. B&S[1 n,,,,{2,3}](b) is polytime solvle. Proof. Consider the following ontext-free grmmr, S ε SS xsx xsxsx where is n empty squre nd x {1,2,...,C}. By Remrk 1, the solvle 1 n ords re in one-to-one orrespondene with the strings in this lnguge. 3.2 Numer of Colors Hrdness for 2 olors. We egin with strightforwrd redution from 3SAT. The result will e strengthened lter y Theorem 7 using more diffiult proof. Theorem 2. B&S[n n,2,,,{2,3}](b) is NP-omplete. Proof Sketh: A vrile gdget hs its own row with extly three uttons. The middle utton is lone in its olumn, nd must e mthed with t lest one of the other two in the vrile row. If the left utton is not used in this mth, we onsider the vrile set to true. If the right utton is not used, we onsider the vrile set to flse. A utton not used in vrile is n ville output, nd n then serve s n ville input to e used in other gdgets. Every luse gdget hs its own olumn, with extly four uttons. The topmost utton (luse utton) is lone in its row; the others re inputs. If t lest one of these is n ville input, then we n mth the luse utton with ll ville inputs. We onstrut one luse gdget per formul luse, onneting its inputs to the pproprite vrile outputs. Then, we n ler ll the luses just when we hve mde vrile seletions tht stisfy the formul. The vriles re onneted to the luses vi multi-purpose split gdget (Fig. 2()). Unlike the vrile nd the luse, this gdget uses uttons of two olors. The ottom utton is n input; the top two re outputs. If the input utton is ville, we n mth the middle row of the gdget s shown in Fig. 2(), leving the output uttons ville. But if the input is not ville, then the only wy the middle row n e lered is to first ler the red uttons in vertil pirs, s shown in Fig. 2(); then the output uttons re not ville. We provide further desription of the split gdget nd omplete the proof in the full version of this rtile.

4 4 () () () Fig. 2. Split gdget () nd the two possile wys to ler it () nd (). = e v w v w u 1 u 2 = u 3 u 4 u 5 u 6 e u 1 u 2 v w v w p 1 p 2 p 3 p 1 p 2 p 3 d = d d = d Fig. 3. Top-left: splitting 3-yles when there re no djent tringles to edge e; top-right: splitting 3-yles when e hs djent tringles (shded). Bottom-left: onstruting G from four uts loking eh other in yle; ottom-right: onstruting G from the sme uts fter ressigning the loking uttons Polynomil-Time Algorithm for 1-olor nd ny ut diretions. Given n instne B with C = 1 olor nd ut diretions d {,,, }, we onstrut hypergrph G tht hs one node per utton in B. A set of nodes is onneted with hyperedge if the orresponding uttons lie on the sme horizontl, vertil, or digonl line whose diretion is in d, i.e., they n potentilly e removed y the sme ut. By Remrk 1 it is suffiient to onsider hypergrph with only 2- nd 3-edges. A solution to B orresponds to perfet mthing in G. For lrity, we shll ll 3-edge in G tringle, nd 2-edge simply n edge. Cornuéjols et l. [1] showed how to ompute perfet K 2 nd K 3 mthing in grph in polynomil time. However, their result is not diretly pplile to our grph G yet, s we need to find mthing tht onsists only of edges nd proper tringles, nd voids K 3 s formed y yles of three edges. To pply [1] we onstrut grph G y dding verties to eliminte ll yles of three edges s follows (see top of Fig. 3). Strt with G = G. Consider n e = (v,w) G in 3-yle ( yle of three edges). There re two ses: e is not djent to ny tringle in G, or e is djent to some tringles in G. In the first se we dd verties u 1 nd u 2 tht split e into three edges (v,u 1 ), (u 1,u 2 ), nd (u 2,w). In the seond se, when e is djent to k tringles, we dd 2k verties u 1,u 2...,u 2k long e, nd reple every p i vw with p i vu 2i 1.

5 5 Lemm 1. There exists perfet edge- nd tringle-mthing in G iff there exists perfet edge- nd tringle-mthing in G. Proof. Given perfet mthing M in G, we onstrut perfet mthing M in G. Consider e = (v,w) in G. If e is not djent to ny tringles in G, then if e M then dd edges (v,u 1 ) nd (u 2,w) of G to M (oth v nd w re overed y e, nd ll v, w, u 1, nd u 2 re overed y M ); if e M then dd edge (u 1,u 2 ) of G to M (v nd w re not overed y e, nd u 1 nd u 2 re overed y M ). In oth ses ove the extr nodes in G re overed y edges in M, nd if v nd w in G re overed y e in M then v nd w re overed y (v,u 1 ) nd (u 2,w) in G. If e is djent to some tringles in G, if e M then in G dd edges (v,u 1 ), (u 2k,w), nd (u 2j,u 2j+1 ) to M, for 1 j < k; if p i vw M for some i then dd p i vu 2i 1, edges (u 2j 1,u 2j ) for 1 j < i, (u 2j,u 2j+1 ) for i j < k, nd (u 2k,w) of G to M ; if neither e nor ny tringle djent to e is in M then dd edges (u 2j 1,u 2j ) of G to M, for 1 j k. In ll the ove ses the extr nodes in G re overed y edges in M, nd if v nd w in G re overed y e or tringle in M then v nd w re lso overed y (v,u 1 ) nd (u 2,w) or y orresponding tringle in G. Refer to the full version of this rtile for the detils on how to rete perfet mthing in G from one in G. Thus, perfet edge- nd tringle-mthing in G tht does not use 3-yle (if it exists) n e found y first onverting G to G nd pplying the result in [1] to G. A solution of B onsisting of 2- nd 3-uts n e redued to perfet edge- nd tringle-mthing in G; however, the opposite is not trivil tsk. A perfet mthing in G n orrespond to set of uts C M in B tht re loking eh other (see ottom of Fig. 3). To extrt proper order of the uts we uild nother grph G tht hs node per ut in C M nd direted edge etween two nodes if the ut orresponding to the seond node is loking the ut orresponding to the first node. If G does not hve yles, then there is prtil order on the uts. The uts tht orrespond to the nodes with no outgoing edges n e pplied first, nd the orresponding nodes n e removed from G. However, if G ontins yles, there is no order in whih the uts n e pplied to ler up ord B. In this se we will need to modify some of the uts in order to remove yles from G. We provide the detils in the full version of this rtile. By Lemm 1 nd y the onstrution ove we otin the following theorem. Theorem 3. B&S[n n,1,,d,{2,3}](b) is polytime solvle for ll d {,,, }. 3.3 Frequeny of Colors Theorem 4. B&S[n n,,3,,{2,3}](b) is polytime solvle.

6 6 Proof. A single ut in ny solution removes olor. By Remrk 2, these uts do not mke solvle ord unsolvle. Thus, greedy lgorithm suffies. t u Hrdness ws estlished for mximum frequeny F = 7 in [2]. We strengthen this to F = 4 vi the modified luse gdget in Fig. 1 (). In this gdget the leftmost irulr utton n e removed if nd only if t lest one of the three non-irulr uttons is removed y vertil ut. Thus, it n reple the luse gdget in Setion 4.1 of [2]. Theorem 5 is proven in the full version of this rtile. Theorem 5. B&S[n n,, 4,, {2, 3}](B) is NP-omplete. 3.4 Cut Sizes Setion 3.2 provided polytime lgorithm for 1-olor. However, if we redue the ut size set from {2, 3, 4} to {3, 4} then it is NP-omplete. We lso strengthen Theorem 2 y showing tht 2-olor puzzles re hrd with ut size set {2}. Hrdness for Cut Sizes {3, 4} nd 1-Color Theorem 6. B&S[n n, 1,,, {3, 4}](B) is NP-omplete. Proof. We show B&S[n n,1,,,{3,4}](b) to e NP-hrd y redution from PLANAR 3-SAT, whih ws shown to e NP-omplete y Lihtenstein [3]. An instne F of the PLANAR 3-SAT prolem is Boolen formul in 3CNF onsisting of set C of m luses over n vriles V. The vrile-luse inidene grph G = (C V, E) is plnr, nd ll vriles re onneted in () () () Fig. 4. () The only two ut possiilities in the vrile gdget (shown in lk nd gry), orresponding to truth ssignments of true nd flse, respetively. () The end gdget for the 1-olor se. () The luse gdget for the 1-olor se.

7 7 yle. The PLANAR 3-SAT prolem is to deide whether there exists truth ssignment to the vriles suh tht t lest one literl per luse is true. We turn the plnr emedding of G into Buttons & Sissors ord, i.e., we present vriles, luses nd edges y single-olor uttons tht need to e ut. We provide detiled desriptions of eh gdget in the full version of this rtile. The vrile gdget, shown in Fig. 4(), enles us to ssoite horizontl nd digonl ut ptterns with true nd flse vlues, respetively. The end gdget, shown in Fig. 4(), enles us to end wire to mth the ends in G s emedding while enforing tht the sme vlues re propgted through the ent wire. () () Fig. 5. () The not gdget, negting the input truth ssignment, for the 1-olor se. () The split gdget for the 1-olor se. The split gdget, shown in Fig. 5(), enles us to inrese the numer of wires leving vrile nd propgting its truth ssignment. The not gdget, shown in Fig. 5(), enles us to reverse the truth ssignment in vrile wire. The luse gdget is shown in Fig. 4(). This gdget simultes onjuntion of literls. Thus, the resulting Buttons & Sissors ord hs solution if nd only if t lest one of the literls per luse is set to true, tht is, if nd only if the originl PLANAR 3-SAT formul F is stisfile. It is esy to see tht this redution is possile in polynomil time. In ddition, given Buttons & Sissors ord nd sequene of uts, it is esy to hek whether those onstitute solution, i.e., whether ll uts re fesile nd result in ord with only empty grid entries. Hene, B&S[n n, 1,,, {3, 4}](B) is in the lss NP. Consequently, B&S[n n, 1,,, {3, 4}](B) is NP-omplete. t u Hrdness for Cut Size {2} nd 2-Colors An intermedite prolem is elow. Deision Prolem: Grph Deyling on (G, S). Input: Direted grph G = (V,E) nd set of disjoint pirs of verties S V V. Output: True, if we n mke G yli y removing either s or s0 from G for every pir (s, s0 ) S. Otherwise, Flse.

8 8 w u t u v s t u v w t u v s v t x () () () (d) Fig. 6. Three types of nodes: () in-degree 1 (tu) nd out-degree 1 (uv); () in-degree 2 (su nd tu) nd out-degree 1 (uv); () in-degree 1 (tu) nd out-degree 2 (uv nd uw). In (d) the nodes u nd v re linked in S nd we n hoose to remove u or v. Lemm 2. Grph Deyling redues to Buttons & Sissors with 2 olors. Proof. Consider n instne (G, S) to grph deyling. First, we oserve tht we n ssume tht every vertex in G hs degree 2 or 3, nd more speifilly, in-degree 1 or 2, nd out-degree 1 or 2. Indeed, we n sfely remove ny verties with in- or out-degree 0 without hnging the outome of the prolem. Also, we n reple node with out-degree k y inry tree of nodes with out-degree 2. The sme pplies to nodes with in-degree k. Furthermore, we n ssume tht every vertex tht ppers in S hs degree 2. Indeed, we n reple ny degree 3 vertex y two verties of degree 2 nd 3, nd use the degree 2 vertex in S without hnging the outome. Similrly, we n ssume tht no two verties of degree 3 re djent. Finlly, we n ssume tht G is iprtite, nd furthermore, tht ll verties tht our in S re in the sme hlf of V, sine we n reple ny edge y pth of two edges. Now, we disuss how to model suh grph in Buttons & Sissors instne. Eh node will orrespond to pir of uttons, either red or green pir ording to iprtition of V. These pirs of uttons will e mpped to lotions in the plne on ommon (horizontl for red, vertil for green) line, nd suh tht ny two uttons of the sme olor tht re not pir re not on ommon (horizontl, vertil, or digonl) line (unless otherwise speified). If two nodes of opposite olors u nd v re onneted y n edge in G, we sy tht u loks v. In this se, one of the uttons of u will e on the sme line s the uttons of v, nd more speifilly, it will e etween the two uttons of v. Tht is, v n only e ut if u is ut first. Buttons of opposite olors tht re not onneted y n edge will not e on ny ommon lines either. As disussed ove, we n ssume we hve only three possile types of nodes. Fig. 6() illustrtes the simplest se, of node u with one inoming edge tu nd one outgoing edge uv. Clerly, t loks u nd u loks v. To model node with in-degree 2, we need to put two uttons of different sme-olored nodes on the sme line (see Fig. 6()). As long s the other endpoints of these two edges re not on ommon line this is no prolem: we never wnt to rete ut tht removes one utton of s nd one of t, sine tht would rete n unsolvle

9 9 instne. Finlly, to model node with out-degree 2, we simply ple vertil edge on oth ends of u (see Fig. 6()). Note tht is it importnt here tht we do not onnet two nodes with out-degree 2 to the sme two nodes with in-degree 2, sine then we would hve oth pirs of endpoints on ommon line; however, we ssumed tht nodes of degree 3 re never djent so this does not our. It remins to rete mehnism to remove verties from G s ditted y S. This is illustrted in Fig. 6(d) with detils in the full version of this rtile. A proof of Lemm 3 is in the full version of this rtile. Lemms 2 nd 3 give Theorem 7. Lemm 3. SAT redues to Grph Deyling. Theorem 7. B&S[n n, 2,,,{2}](B) is NP-omplete. 4 Two-Plyer Gmes We onsider three two-plyer Buttons & Sissors vrints. First we onsider olor restrited gmes where () eh plyer n only ut speifi olors, nd () plyers re not restrited to speifi olors. For () plyer lue my only ut Blue uttons, while the red plyer my only ut Red uttons. For () we distinguish y winning riterion: for (Imprtil) the lst plyer who mkes fesile ut wins; for (Soring) plyers keep trk of the totl numer of uttons they ve ut. When no uts n e mde, the plyer with the most uttons ut wins. In the following setions, we show tht ll vrints re PSPACE-omplete. 4.1 Cut-By-Color Gmes In this setion the first plyer n only ut lue uttons, the seond plyer n only ut red uttons, nd the lst plyer to mke ut wins. Theorem 8. The prtisn LAST two-plyer Buttons & Sissors gme, where one plyer uts lue uttons, the other red uttons, is PSPACE-omplete. Proof. The proof is y redution from G %free (CNF) [5]: given oolen formul Φ(x 1,...,x n ) in CNF nd prtition of the vriles into two disjoint susets of equl size V nd V r, two plyers tke turns in setting vlues of the vriles, the first (Blue) plyer sets the vlues of vriles in V, nd the seond (Red) plyer sets the vlues of vriles in V r. Blue wins if, fter ll vriles hve een ssigned some vlues, formul Φ is stisfied, nd loses otherwise. For given instne of formul Φ we onstrut Buttons & Sissors ord B, suh tht Blue n win the gme on B if nd only if he n stisfy formul Φ. We will prove this sttement in different formultion: Red wins the gme on B if nd only if formul Φ nnot e stisfied. For omplete exmple see the full version of this rtile. The red vrile gdget is shown in Fig. 7(). Red sets the vlue of the orresponding vrile y hoosing the first ut to e (flse) or (true), nd

10 10 () () () (d) (e) Fig. 7. () The red (dshed) vrile gdget, () the lue (solid) vrile gdget, () the split gdget, (d) the OR gdget, nd (e) the AND gdget. Lines (or rs used for lrity) indite whih uttons re ligned. thus unloking one of the two uts, or d, respetively, for Blue to follow up (nd to propgte the vlue of the vrile). The lue vrile gdget is shown in Fig. 7(). Blue sets the vlue of the orresponding vrile y hoosing the first ut to e (flse) or (true), nd thus unloking one of the two uts, d or e, respetively, for the red plyer to follow up. Blue hs one extr ut tht is used to pss the turn to Red. Alterntively, Blue n hoose to strt with the 3-utton ut nd disllow Red from mking ny uts in the gdget. In tht se the orresponding vrile nnot e used to stisfy Φ. Fig. 7(d) depits the OR gdget: if Blue uts or (or oth), Red n leve the gdget with ut h. Cuts nd unlok uts nd d, respetively, whih in turn unlok e nd f, respetively. Fig. 7(e) depits the AND gdget for two inputs. The proper wy of pssing the gdget: Blue mkes oth uts nd, nd Red mkes uts nd d when they get unloked, thus enling Blue to mke ut g nd exit the gdget. However, Red ould lso tke n illegl ut x, thus, unloking two extr uts, e nd f, for the lue plyer, nd, hene, putting Red t disdvntge. Thus, if t ny point in the gme Red hooses (or is fored to) mke ut x in ny of the AND gdgets, the gme result is predetermined, nd Red nnot win on B. Fig. 7() shows the split gdget; it enles us to inrese the numer of uts leving vrile nd propgting its truth ssignment. Blue s ut unloks Red s ut, whih unloks oth nd d. If Blue uts nd d this enles Red to ut e nd f, respetively. The gdget lso exists with Blue nd Red reversed. A vrint of the split gdget evlutes the formul Φ: uts e nd f re deleted. If the vrile vlues re propgted to this gdget nd Red is fored to mke the ut, Blue then gets extr uts whih Red will not e le to follow up. The gme progresses s follows: Blue selets n ssignment to lue vrile. This unloks pth of red-lue uts tht goes through some AND nd OR gdgets nd leds to the finl gdget. As the order of the uts in suh pth is

11 11 deterministi, nd does not ffet the hoie of vlues of other vriles, w.l.o.g., we ssume tht Red nd Blue mke ll the uts in this pth (until it gets stuk ) efore setting the next vrile. The pth gets stuk when it rehes some AND gdget for whih the other input hs not een lered. The lst ut in suh pth ws mde y Red, thus fterwrds it will e Blue s turn, nd he my hoose to mke the leftover ut from the vrile gdget to pss the turn to Red. If the finl gdget is not unloked yet, Red lwys hs ut to mke fter Blue mkes move, s there is the sme numer of lue nd red vriles. However, if Blue n fore Red to mke moves until the finl gdget is rehed, then Blue gets extr uts; thus, Red will run out of moves nd lose the gme. Otherwise, if Blue nnot fulfill some AND or OR gdgets, the Red plyer will mke the lst move nd win. Therefore, if Φ nnot e stisfied, Red wins. 4.2 Any Color Gmes Theorem 9. Imprtil two-plyer Buttons & Sissors is PSPACE-omplete. Theorem 10. Soring two-plyer Buttons & Sissors is PSPACE-omplete. We show tht Imprtil is PSPACE-omplete, then use one more gdget to show Soring is PSPACE-omplete. We redue from Geogrphy 1, (PSPACEomplete [4]). We use Lemm 4 to strt with low-degree Geogrphy instnes. Lemm 4. Geogrphy is PSPACE-omplete even when verties hve mx degree 3 nd the mx in-degree nd out-degree of eh vertex is 2. The full version of this rtile proves Lemm 4 nd Theorem 9 with these gdgets: In-degree 1, out-degree 1: The gdget for this is pir of uttons suh tht removing the first pir frees up the seond, s in Fig. 8(). In-degree 1, out-degree 2: See Fig. 8() nd the full version of this rtile. In-degree 2, out-degree 1: See Fig. 8() nd the full version of this rtile. In-degree 0: The gdgets for this look just like the gdgets for the nlgous in-degree 1 gdgets, ut without the utton pir for the inoming edge. Out-degree 0: Eh edge is utton pir tht won t free up other uttons. To show Soring is hrd, we rete redution where fter eh turn, tht plyer will hve ut the most uttons; the lst plyer to move wins. This lternting-dvntge sitution is used y n initil gdget. The optiml ply sequene egins y utting two uttons, then three, then three, then three finl time. After these four moves, the first plyer will hve five points nd the seond plyer six. Eh susequent ut removes two uttons so eh turn ends with the urrent plyer hed. Fig. 8(d) shows the strting gdget tht sets up this initil k-nd-forth. The olor-f uttons will e the lst two ut; the right-hnd f utton must e loking the next gdget. Lemm 5 postultes tht f will e lst. 1 Speifilly, Direted Vertex Geogrphy, usully lled Geogrphy.

12 12 z y x x z () y z () () y x x y x d e f Fig. 8. Redution gdgets for vertex with () one inoming r nd one outgoing r, () one inoming r nd two outgoing rs, nd () two inoming rs nd one outgoing rs. (d) The strting gdget for Soring. (d) Lemm 5. If plyer hs winning strtegy, then prt of tht winning strtegy inludes utting ll possile uttons of olors,,, d, nd e efore utting f. The full version of this rtile proves Lemm 5, nd lso shows how these lemms provide Theorem Open Prolems Interesting prolems for ords with onstnt numer of rows re still open. A onjeture for m = 2 rows ppers elow. Conjeture 1. There is polynomil time lgorithm tht removes ll ut s uttons from ny full 2 n ord with C = 2 olors for some onstnt s. Referenes 1. G. Cornuéjols, D. Hrtvigsen, nd W. Pulleylnk. Pking sugrphs in grph. Opertions Reserh Letters, 1(4): , H. Gregg, J. Leonrd, A. Sntigo, nd A. Willims. Buttons & Sissors is NPomplete. In Pro. 27th Cnd. Conf. Comput. Geom., D. Lihtenstein. Plnr formule nd their uses. SIAM J. Comput., 11(2): , D. Lihtenstein nd M. Sipser. Go is polynomil-spe hrd. J. ACM, 27(2): , T. J. Shefer. On the omplexity of some two-person perfet-informtion gmes. Journl of Computer nd System Sienes, 16(2): , 1978.

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

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

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

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

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

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

Discrete Structures Lecture 11

Discrete Structures Lecture 11 Introdution Good morning. In this setion we study funtions. A funtion is mpping from one set to nother set or, perhps, from one set to itself. We study the properties of funtions. A mpping my not e funtion.

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

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

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

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

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

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

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

Comparing the Pre-image and Image of a Dilation

Comparing the Pre-image and Image of a Dilation hpter Summry Key Terms Postultes nd Theorems similr tringles (.1) inluded ngle (.2) inluded side (.2) geometri men (.) indiret mesurement (.6) ngle-ngle Similrity Theorem (.2) Side-Side-Side Similrity

More information

Arrow s Impossibility Theorem

Arrow s Impossibility Theorem Rep Fun Gme Properties Arrow s Theorem Arrow s Impossiility Theorem Leture 12 Arrow s Impossiility Theorem Leture 12, Slide 1 Rep Fun Gme Properties Arrow s Theorem Leture Overview 1 Rep 2 Fun Gme 3 Properties

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

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

A Study on the Properties of Rational Triangles

A Study on the Properties of Rational Triangles Interntionl Journl of Mthemtis Reserh. ISSN 0976-5840 Volume 6, Numer (04), pp. 8-9 Interntionl Reserh Pulition House http://www.irphouse.om Study on the Properties of Rtionl Tringles M. Q. lm, M.R. Hssn

More information

Arrow s Impossibility Theorem

Arrow s Impossibility Theorem Rep Voting Prdoxes Properties Arrow s Theorem Arrow s Impossiility Theorem Leture 12 Arrow s Impossiility Theorem Leture 12, Slide 1 Rep Voting Prdoxes Properties Arrow s Theorem Leture Overview 1 Rep

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

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

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

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

Lecture Notes No. 10

Lecture Notes No. 10 2.6 System Identifition, Estimtion, nd Lerning Leture otes o. Mrh 3, 26 6 Model Struture of Liner ime Invrint Systems 6. Model Struture In representing dynmil system, the first step is to find n pproprite

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

where the box contains a finite number of gates from the given collection. Examples of gates that are commonly used are the following: a b

where the box contains a finite number of gates from the given collection. Examples of gates that are commonly used are the following: a b CS 294-2 9/11/04 Quntum Ciruit Model, Solovy-Kitev Theorem, BQP Fll 2004 Leture 4 1 Quntum Ciruit Model 1.1 Clssil Ciruits - Universl Gte Sets A lssil iruit implements multi-output oolen funtion f : {0,1}

More information

Probability. b a b. a b 32.

Probability. b a b. a b 32. Proility If n event n hppen in '' wys nd fil in '' wys, nd eh of these wys is eqully likely, then proility or the hne, or its hppening is, nd tht of its filing is eg, If in lottery there re prizes nd lnks,

More information

Tutorial Worksheet. 1. Find all solutions to the linear system by following the given steps. x + 2y + 3z = 2 2x + 3y + z = 4.

Tutorial Worksheet. 1. Find all solutions to the linear system by following the given steps. x + 2y + 3z = 2 2x + 3y + z = 4. Mth 5 Tutoril Week 1 - Jnury 1 1 Nme Setion Tutoril Worksheet 1. Find ll solutions to the liner system by following the given steps x + y + z = x + y + z = 4. y + z = Step 1. Write down the rgumented mtrix

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

Graph States EPIT Mehdi Mhalla (Calgary, Canada) Simon Perdrix (Grenoble, France)

Graph States EPIT Mehdi Mhalla (Calgary, Canada) Simon Perdrix (Grenoble, France) Grph Sttes EPIT 2005 Mehdi Mhll (Clgry, Cnd) Simon Perdrix (Grenole, Frne) simon.perdrix@img.fr Grph Stte: Introdution A grph-sed representtion of the entnglement of some (lrge) quntum stte. Verties: quits

More information

TOPIC: LINEAR ALGEBRA MATRICES

TOPIC: LINEAR ALGEBRA MATRICES Interntionl Blurete LECTUE NOTES for FUTHE MATHEMATICS Dr TOPIC: LINEA ALGEBA MATICES. DEFINITION OF A MATIX MATIX OPEATIONS.. THE DETEMINANT deta THE INVESE A -... SYSTEMS OF LINEA EQUATIONS. 8. THE AUGMENTED

More information

First Midterm Examination

First Midterm Examination Çnky University Deprtment of Computer Engineering 203-204 Fll Semester First Midterm Exmintion ) Design DFA for ll strings over the lphet Σ = {,, c} in which there is no, no nd no cc. 2) Wht lnguge does

More information

= state, a = reading and q j

= state, a = reading and q j 4 Finite Automt CHAPTER 2 Finite Automt (FA) (i) Derterministi Finite Automt (DFA) A DFA, M Q, q,, F, Where, Q = set of sttes (finite) q Q = the strt/initil stte = input lphet (finite) (use only those

More information

AP Calculus BC Chapter 8: Integration Techniques, L Hopital s Rule and Improper Integrals

AP Calculus BC Chapter 8: Integration Techniques, L Hopital s Rule and Improper Integrals AP Clulus BC Chpter 8: Integrtion Tehniques, L Hopitl s Rule nd Improper Integrls 8. Bsi Integrtion Rules In this setion we will review vrious integrtion strtegies. Strtegies: I. Seprte the integrnd into

More information

12.4 Similarity in Right Triangles

12.4 Similarity in Right Triangles Nme lss Dte 12.4 Similrit in Right Tringles Essentil Question: How does the ltitude to the hpotenuse of right tringle help ou use similr right tringles to solve prolems? Eplore Identifing Similrit in Right

More information

QUADRATIC EQUATION. Contents

QUADRATIC EQUATION. Contents QUADRATIC EQUATION Contents Topi Pge No. Theory 0-04 Exerise - 05-09 Exerise - 09-3 Exerise - 3 4-5 Exerise - 4 6 Answer Key 7-8 Syllus Qudrti equtions with rel oeffiients, reltions etween roots nd oeffiients,

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

Matrices SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics (c) 1. Definition of a Matrix

Matrices SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics (c) 1. Definition of a Matrix tries Definition of tri mtri is regulr rry of numers enlosed inside rkets SCHOOL OF ENGINEERING & UIL ENVIRONEN Emple he following re ll mtries: ), ) 9, themtis ), d) tries Definition of tri Size of tri

More information

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true.

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true. York University CSE 2 Unit 3. DFA Clsses Converting etween DFA, NFA, Regulr Expressions, nd Extended Regulr Expressions Instructor: Jeff Edmonds Don t chet y looking t these nswers premturely.. For ech

More information

(a) A partition P of [a, b] is a finite subset of [a, b] containing a and b. If Q is another partition and P Q, then Q is a refinement of P.

(a) A partition P of [a, b] is a finite subset of [a, b] containing a and b. If Q is another partition and P Q, then Q is a refinement of P. Chpter 7: The Riemnn Integrl When the derivtive is introdued, it is not hrd to see tht the it of the differene quotient should be equl to the slope of the tngent line, or when the horizontl xis is time

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

15-451/651: Design & Analysis of Algorithms December 3, 2013 Lecture #28 last changed: November 28, 2013

15-451/651: Design & Analysis of Algorithms December 3, 2013 Lecture #28 last changed: November 28, 2013 15-451/651: Design & nlysis of lgorithms Deemer 3, 2013 Leture #28 lst hnged: Novemer 28, 2013 Lst time we strted tlking out mehnism design: how to llote n item to the person who hs the mximum vlue for

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

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

Ellipses. The second type of conic is called an ellipse.

Ellipses. The second type of conic is called an ellipse. Ellipses The seond type of oni is lled n ellipse. Definition of Ellipse An ellipse is the set of ll points (, y) in plne, the sum of whose distnes from two distint fied points (foi) is onstnt. (, y) d

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

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design nd Anlysis LECTURE 5 Supplement Greedy Algorithms Cont d Minimizing lteness Ching (NOT overed in leture) Adm Smith 9/8/10 A. Smith; sed on slides y E. Demine, C. Leiserson, S. Rskhodnikov,

More information

Prefix-Free Regular-Expression Matching

Prefix-Free Regular-Expression Matching Prefix-Free Regulr-Expression Mthing Yo-Su Hn, Yjun Wng nd Derik Wood Deprtment of Computer Siene HKUST Prefix-Free Regulr-Expression Mthing p.1/15 Pttern Mthing Given pttern P nd text T, find ll sustrings

More information

Expand the Shares Together: Envy-free Mechanisms with a Small Number of Cuts

Expand the Shares Together: Envy-free Mechanisms with a Small Number of Cuts Nonme mnusript No. (will e inserted y the editor) Expnd the Shres Together: Envy-free Mehnisms with Smll Numer of uts Msoud Seddighin Mjid Frhdi Mohmmd Ghodsi Rez Alijni Ahmd S. Tjik Reeived: dte / Aepted:

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

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

1.3 SCALARS AND VECTORS

1.3 SCALARS AND VECTORS Bridge Course Phy I PUC 24 1.3 SCLRS ND VECTORS Introdution: Physis is the study of nturl phenomen. The study of ny nturl phenomenon involves mesurements. For exmple, the distne etween the plnet erth nd

More information

Bisimulation, Games & Hennessy Milner logic

Bisimulation, Games & Hennessy Milner logic Bisimultion, Gmes & Hennessy Milner logi Leture 1 of Modelli Mtemtii dei Proessi Conorrenti Pweł Soboiński Univeristy of Southmpton, UK Bisimultion, Gmes & Hennessy Milner logi p.1/32 Clssil lnguge theory

More information

Reflection Property of a Hyperbola

Reflection Property of a Hyperbola Refletion Propert of Hperol Prefe The purpose of this pper is to prove nltill nd to illustrte geometrill the propert of hperol wherein r whih emntes outside the onvit of the hperol, tht is, etween the

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

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

Part 4. Integration (with Proofs)

Part 4. Integration (with Proofs) Prt 4. Integrtion (with Proofs) 4.1 Definition Definition A prtition P of [, b] is finite set of points {x 0, x 1,..., x n } with = x 0 < x 1

More information

A CLASS OF GENERAL SUPERTREE METHODS FOR NESTED TAXA

A CLASS OF GENERAL SUPERTREE METHODS FOR NESTED TAXA A CLASS OF GENERAL SUPERTREE METHODS FOR NESTED TAXA PHILIP DANIEL AND CHARLES SEMPLE Astrt. Amlgmting smller evolutionry trees into single prent tree is n importnt tsk in evolutionry iology. Trditionlly,

More information

Plotting Ordered Pairs Using Integers

Plotting Ordered Pairs Using Integers SAMPLE Plotting Ordered Pirs Using Integers Ple two elsti nds on geoord to form oordinte xes shown on the right to help you solve these prolems.. Wht letter of the lphet does eh set of pirs nme?. (, )

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

THE PYTHAGOREAN THEOREM

THE PYTHAGOREAN THEOREM THE PYTHAGOREAN THEOREM The Pythgoren Theorem is one of the most well-known nd widely used theorems in mthemtis. We will first look t n informl investigtion of the Pythgoren Theorem, nd then pply this

More information

First Midterm Examination

First Midterm Examination 24-25 Fll Semester First Midterm Exmintion ) Give the stte digrm of DFA tht recognizes the lnguge A over lphet Σ = {, } where A = {w w contins or } 2) The following DFA recognizes the lnguge B over lphet

More information

Bases for Vector Spaces

Bases for Vector Spaces Bses for Vector Spces 2-26-25 A set is independent if, roughly speking, there is no redundncy in the set: You cn t uild ny vector in the set s liner comintion of the others A set spns if you cn uild everything

More information

Computing data with spreadsheets. Enter the following into the corresponding cells: A1: n B1: triangle C1: sqrt

Computing data with spreadsheets. Enter the following into the corresponding cells: A1: n B1: triangle C1: sqrt Computing dt with spredsheets Exmple: Computing tringulr numers nd their squre roots. Rell, we showed 1 ` 2 ` `n npn ` 1q{2. Enter the following into the orresponding ells: A1: n B1: tringle C1: sqrt A2:

More information

Convert the NFA into DFA

Convert the NFA into DFA Convert the NF into F For ech NF we cn find F ccepting the sme lnguge. The numer of sttes of the F could e exponentil in the numer of sttes of the NF, ut in prctice this worst cse occurs rrely. lgorithm:

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

Unit 4. Combinational Circuits

Unit 4. Combinational Circuits Unit 4. Comintionl Ciruits Digitl Eletroni Ciruits (Ciruitos Eletrónios Digitles) E.T.S.I. Informáti Universidd de Sevill 5/10/2012 Jorge Jun 2010, 2011, 2012 You re free to opy, distriute

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

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

Parse trees, ambiguity, and Chomsky normal form

Parse trees, ambiguity, and Chomsky normal form Prse trees, miguity, nd Chomsky norml form In this lecture we will discuss few importnt notions connected with contextfree grmmrs, including prse trees, miguity, nd specil form for context-free grmmrs

More information

Part I: Study the theorem statement.

Part I: Study the theorem statement. Nme 1 Nme 2 Nme 3 A STUDY OF PYTHAGORAS THEOREM Instrutions: Together in groups of 2 or 3, fill out the following worksheet. You my lift nswers from the reding, or nswer on your own. Turn in one pket for

More information

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4 Intermedite Mth Circles Wednesdy, Novemer 14, 2018 Finite Automt II Nickols Rollick nrollick@uwterloo.c Regulr Lnguges Lst time, we were introduced to the ide of DFA (deterministic finite utomton), one

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

THREE DIMENSIONAL GEOMETRY

THREE DIMENSIONAL GEOMETRY MD THREE DIMENSIONAL GEOMETRY CA CB C Coordintes of point in spe There re infinite numer of points in spe We wnt to identif eh nd ever point of spe with the help of three mutull perpendiulr oordintes es

More information

PYTHAGORAS THEOREM,TRIGONOMETRY,BEARINGS AND THREE DIMENSIONAL PROBLEMS

PYTHAGORAS THEOREM,TRIGONOMETRY,BEARINGS AND THREE DIMENSIONAL PROBLEMS PYTHGORS THEOREM,TRIGONOMETRY,ERINGS ND THREE DIMENSIONL PROLEMS 1.1 PYTHGORS THEOREM: 1. The Pythgors Theorem sttes tht the squre of the hypotenuse is equl to the sum of the squres of the other two sides

More information

8 THREE PHASE A.C. CIRCUITS

8 THREE PHASE A.C. CIRCUITS 8 THREE PHSE.. IRUITS The signls in hpter 7 were sinusoidl lternting voltges nd urrents of the so-lled single se type. n emf of suh type n e esily generted y rotting single loop of ondutor (or single winding),

More information

Revision Sheet. (a) Give a regular expression for each of the following languages:

Revision Sheet. (a) Give a regular expression for each of the following languages: Theoreticl Computer Science (Bridging Course) Dr. G. D. Tipldi F. Bonirdi Winter Semester 2014/2015 Revision Sheet University of Freiurg Deprtment of Computer Science Question 1 (Finite Automt, 8 + 6 points)

More information

p-adic Egyptian Fractions

p-adic Egyptian Fractions p-adic Egyptin Frctions Contents 1 Introduction 1 2 Trditionl Egyptin Frctions nd Greedy Algorithm 2 3 Set-up 3 4 p-greedy Algorithm 5 5 p-egyptin Trditionl 10 6 Conclusion 1 Introduction An Egyptin frction

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design nd Anlysis LECTURE 8 Mx. lteness ont d Optiml Ching Adm Smith 9/12/2008 A. Smith; sed on slides y E. Demine, C. Leiserson, S. Rskhodnikov, K. Wyne Sheduling to Minimizing Lteness Minimizing

More information

Linear Algebra Introduction

Linear Algebra Introduction Introdution Wht is Liner Alger out? Liner Alger is rnh of mthemtis whih emerged yers k nd ws one of the pioneer rnhes of mthemtis Though, initilly it strted with solving of the simple liner eqution x +

More information

HS Pre-Algebra Notes Unit 9: Roots, Real Numbers and The Pythagorean Theorem

HS Pre-Algebra Notes Unit 9: Roots, Real Numbers and The Pythagorean Theorem HS Pre-Alger Notes Unit 9: Roots, Rel Numers nd The Pythgoren Theorem Roots nd Cue Roots Syllus Ojetive 5.4: The student will find or pproximte squre roots of numers to 4. CCSS 8.EE.-: Evlute squre roots

More information

Regular expressions, Finite Automata, transition graphs are all the same!!

Regular expressions, Finite Automata, transition graphs are all the same!! CSI 3104 /Winter 2011: Introduction to Forml Lnguges Chpter 7: Kleene s Theorem Chpter 7: Kleene s Theorem Regulr expressions, Finite Automt, trnsition grphs re ll the sme!! Dr. Neji Zgui CSI3104-W11 1

More information

Transition systems (motivation)

Transition systems (motivation) Trnsition systems (motivtion) Course Modelling of Conurrent Systems ( Modellierung neenläufiger Systeme ) Winter Semester 2009/0 University of Duisurg-Essen Brr König Tehing ssistnt: Christoph Blume In

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

CS 330 Formal Methods and Models Dana Richards, George Mason University, Spring 2016 Quiz Solutions

CS 330 Formal Methods and Models Dana Richards, George Mason University, Spring 2016 Quiz Solutions CS 330 Forml Methods nd Models Dn Richrds, George Mson University, Spring 2016 Quiz Solutions Quiz 1, Propositionl Logic Dte: Ferury 9 1. (4pts) ((p q) (q r)) (p r), prove tutology using truth tles. p

More information

Hybrid Systems Modeling, Analysis and Control

Hybrid Systems Modeling, Analysis and Control Hyrid Systems Modeling, Anlysis nd Control Rdu Grosu Vienn University of Tehnology Leture 5 Finite Automt s Liner Systems Oservility, Rehility nd More Miniml DFA re Not Miniml NFA (Arnold, Diky nd Nivt

More information

Efficient Parameterized Algorithms for Data Packing

Efficient Parameterized Algorithms for Data Packing Effiient Prmeterized Algorithms for Dt Pking Krishnendu Chtterjee, Amir Kfshdr Gohrshdy, Nstrn Okti, Andres Pvloginnis To ite this version: Krishnendu Chtterjee, Amir Kfshdr Gohrshdy, Nstrn Okti, Andres

More information

PYTHAGORAS THEOREM WHAT S IN CHAPTER 1? IN THIS CHAPTER YOU WILL:

PYTHAGORAS THEOREM WHAT S IN CHAPTER 1? IN THIS CHAPTER YOU WILL: PYTHAGORAS THEOREM 1 WHAT S IN CHAPTER 1? 1 01 Squres, squre roots nd surds 1 02 Pythgors theorem 1 03 Finding the hypotenuse 1 04 Finding shorter side 1 05 Mixed prolems 1 06 Testing for right-ngled tringles

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

Things to Memorize: A Partial List. January 27, 2017

Things to Memorize: A Partial List. January 27, 2017 Things to Memorize: A Prtil List Jnury 27, 2017 Chpter 2 Vectors - Bsic Fcts A vector hs mgnitude (lso clled size/length/norm) nd direction. It does not hve fixed position, so the sme vector cn e moved

More information

Separable discrete functions: recognition and sufficient conditions

Separable discrete functions: recognition and sufficient conditions Seprle isrete funtions: reognition n suffiient onitions Enre Boros Onřej Čepek Vlimir Gurvih Novemer 21, 217 rxiv:1711.6772v1 [mth.co] 17 Nov 217 Astrt A isrete funtion of n vriles is mpping g : X 1...

More information

System Validation (IN4387) November 2, 2012, 14:00-17:00

System Validation (IN4387) November 2, 2012, 14:00-17:00 System Vlidtion (IN4387) Novemer 2, 2012, 14:00-17:00 Importnt Notes. The exmintion omprises 5 question in 4 pges. Give omplete explntion nd do not onfine yourself to giving the finl nswer. Good luk! Exerise

More information

Figure 1. The left-handed and right-handed trefoils

Figure 1. The left-handed and right-handed trefoils The Knot Group A knot is n emedding of the irle into R 3 (or S 3 ), k : S 1 R 3. We shll ssume our knots re tme, mening the emedding n e extended to solid torus, K : S 1 D 2 R 3. The imge is lled tuulr

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

Coalgebra, Lecture 15: Equations for Deterministic Automata

Coalgebra, Lecture 15: Equations for Deterministic Automata Colger, Lecture 15: Equtions for Deterministic Automt Julin Slmnc (nd Jurrin Rot) Decemer 19, 2016 In this lecture, we will study the concept of equtions for deterministic utomt. The notes re self contined

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

MAT 403 NOTES 4. f + f =

MAT 403 NOTES 4. f + f = MAT 403 NOTES 4 1. Fundmentl Theorem o Clulus We will proo more generl version o the FTC thn the textook. But just like the textook, we strt with the ollowing proposition. Let R[, ] e the set o Riemnn

More information

#A42 INTEGERS 11 (2011) ON THE CONDITIONED BINOMIAL COEFFICIENTS

#A42 INTEGERS 11 (2011) ON THE CONDITIONED BINOMIAL COEFFICIENTS #A42 INTEGERS 11 (2011 ON THE CONDITIONED BINOMIAL COEFFICIENTS Liqun To Shool of Mthemtil Sienes, Luoyng Norml University, Luoyng, Chin lqto@lynuedun Reeived: 12/24/10, Revised: 5/11/11, Aepted: 5/16/11,

More information