The master ring problem

Size: px
Start display at page:

Download "The master ring problem"

Transcription

1 2005 Interntionl Conferene on Anlysis of Algorithms DMTCS pro. AD, 2005, The mster ring problem Hs Shhni 1 n Lis Zhng 2 1 Computer Siene Dept., Tehnion, Hif 32000, Isrel. 2 Bell Lbs, Luent Tehnologies, 600 Mountin Ave., Murry Hill, NJ We onsier the mster ring problem (MRP) whih often rises in optil network esign. Given network whih onsists of olletion of interonnete rings R 1,..., R K, with n 1,..., n K istint noes, respetively, we nee to fin n orering of the noes in the network tht respets the orering of every iniviul ring, if one exists. Our min result is n ext lgorithm for MRP whose running time pprohes Q QK k=1 (n k/ 2) for some polynomil Q, s the n k vlues beome lrge. For the ring lerne problem, speil se of prtil interest, our lgorithm hieves this running time for rings of ny size n k 2. This yiels the first nontrivil improvement, by ftor of (2 2) K (2.82) K, over the running time of the nive lgorithm, whih exhustively enumertes ll Q K k=1 (2n k) possible solutions. Keywors: Mster ring, shortest ommon supersequene, optil networks, ext lgorithms. 1 Introution 1.1 Problem Sttement n Motivtion The prevlene of SONET (Synhronous Optil NETwork) tehnology hs me the ring populr network topology [13]. To rry emn between two noes on SONET ring, trffi is route simultneously lokwise n ounter-lokwise, one s the primry pth n the other s the bkup pth. Often n optil network onsists of olletion of interonnete SONET rings. A mster ring ontins every noe in the network extly one n respets the noe orering of every iniviul SONET ring. The mster ring problem (MRP) is to fin suh ring, whenever it exists. Formlly, the mster ring problem is efine s follows. Suppose tht network onsists of K rings, R 1,..., R K, with n 1,..., n K istint noes, respetively. Eh ring hs two orienttions, lokwise n ounter-lokwise. We sy tht R is subring of M (or M is mster ring of R) if either the lokwise or the ounter-lokwise orienttion of R n be obtine from M by ersing zero or more noes from M. The gol is to fin mster ring whenever it exists. Consier n instne of MRP s shown in Figure 1. The network onsists of 3 rings. R 1 hs the noes bef, R 2 hs the noes hg, n R 3 hs the noes ghi. A possible mster ring is bghefi. g b h i f e Fig. 1: An instne of MRP. There re number of resons for fining mster rings. For exmple, s network evolves with growing trffi, it expns from n initilly smll number of SONET rings, to inlue lrge olletion of rings. Unfortuntely, suh expnsion is often rrie out in n -ho mnner, with iruits e n torn own over time. As result, the network my hve unneessrily omplex topology tht mkes network mngement nightmre. To reple spghetti-like network, one simple topology is mster ring. Sine Disrete Mthemtis n Theoretil Computer Siene (DMTCS), Nny, Frne

2 288 Hs Shhni n Lis Zhng mster ring respets the noe orering of every existing SONET ring, it hs the vntge of preserving the routing lbel of every emn intr to n existing SONET ring. Inee, emn my trverse more noes roun the mster ring thn roun its originl SONET ring; however, preserving the orer in whih the SONET noes re trverse llows to effiiently upte the routing tbles, rther thn reefine from srth the Lbel Swithe pths. (Suh pths re use, e.g., in MPLS [14].) Even if the network is not sought to be rebuilt, it still nees to hnle the routine owntime, for purposes suh s softwre upgre. A mster ring n then serve s simple bkup topology. Proviing mster ring (whenever possible) to network mngement system simplifies its opertion n is therefore vluble [12, 1, 2]. We emphsize tht the mster ring n be viewe s logi ring. Tht is, two neighboring noes in the ring o not nee to be physilly onnete by links lrey existing in the network. (Suh links n be e one the mster ring is set s new/bkup topology.) In ition, if two SONET rings R i n R j interset then they hve t lest two noes in ommon. This is beuse two ommon noes n tolerte one noe filure when supporting emn between noe in R i n noe in R j. One onvenient wy to represent the rings is to use sequenes. Eh orienttion of ring with n noes orrespons to n sequenes, epening on the noe with whih the sequene strts. Figure 2 shows the sequene representtion of the instne in Figure 1. For exmple, the ring R 1 in Figure 2 hs 6 lokwise sequenes: bef, bef, efb, efb, efb, fbe n 6 ounter-lokwise sequenes: feb, ebf, bfe, bfe, bfe, feb. We lso refer to eh sequene s n opening of ring. We sy tht S is subsequene of T (or T is supersequene of S) if S n be obtine from T by ersing zero or more symbols from T. Therefore, R is subring of M (or M is mster ring of R) if some sequene tht orrespons to R is subsequene of sequene tht orrespons to M (see Figure 2). f b g i i b e h g h f e h g R1 R2 R3 Mster ring Fig. 2: (Left) Three rings R 1, R 2 n R 3. (Right) A possible mster ring. For exmple, R 1 is subring sine its lokwise sequene bef is subsequene of the sequene bghefi orresponing to the mster ring; R 2 is subring sine its lokwise sequene gh is subsequene; R 3 s ounter-lokwise sequene ghi is subsequene. Given K sequenes, eh with ny symbol ppering t most one, we note tht it is esy to fin supersequene tht ontins eh symbol one, if one exists. We onstrut irete grph G = (V, E), whose vertex set onsists of the symbols in the K sequenes n whose ege set onsists of irete eges of the form (, b), where ppers immeitely before b in sequene. Rell tht topologil sort of igrph is ny liner orer on the verties respeting the grph s prtil orer. Hene, if G is yli then topologil sort of G is (minimum possible length) supersequene of ll K sequenes. Deiing whether igrph is yli n fining topologil sort re polynomilly solvble (see e.g. [4]). Thus, our min tsk is to etermine set of sequenes whih n be represente s n yli igrph (whenever suh set exists). This is the fous of the pper. 1.2 Min Result Our min result (in Setion 2) is n ext lgorithm for MRP, whose running time pprohes Q K k=1 (n k/ 2) for some Q tht is polynomil in the input size, s the n k vlues beome lrge. For the ring lerne problem, speil se of prtil interest, our lgorithm hieves this running time for rings of ny size n k 2 (see in Setion 3). This yiels the first non-trivil improvement, by ftor of (2 2) K 2.82 K, over the nive lgorithm whih exhustively enumertes ll K k=1 (2n k) possible solutions (see, e.g., in [2]). Our lgorithm pplies enumertion guie by n intersetion grph of the network, whih represents

3 The mster ring problem 289 the interonnetions mong the rings. The grph is use for ientifying subsets of rings whose openings leve only few onsistent openings for ll other rings, thereby eresing the remining number of enumertion steps. While enumertion lone is ineffiient, n using the intersetion grph lone my result in flse solution for our problem (see in Setion 2), we show tht ombining the two yiels signifint improvement in running time, n gurntees tht mster ring will be foun, if one exists. We believe tht similr tehniques n be use in solving extly other relte problems, suh s shortest ommon supersequene (SCS) n feebk r set (FAS) n their vrints. (See in Setion 4.) Ru b Rw u v w b Rv f f e e Fig. 3: (Left) An instne of MRP: R u onsists of noes b, R v onsists of ef n R w onsists of bef. (Mile) The intersetion grph H. (Right) R u, R v n R w inue lrge ring. 2 Algorithm A nive solution for MRP is to enumerte ll possible sequenes for eh ring n fin if there is topologil sort for eh resulting irete grph. Obviously, trying the totl of 1 k K (2n k) possibilities suffies to solve the problem; the running time is P 1 k K (2n k), where P is the polynomil time require for topologil sort. We esribe below n lgorithm whih vois enumerting some of these possibilities, by using the intersetion grph of the network. Before we pply our lgorithm, we first eliminte ll singleton noes from eh ring, i.e. those noes tht pper only in one ring. If noe is singleton, then n be ignore when onstruting the mster ring. Inee, if mster ring exists without, then my lwys be e to the mster ring. From now on we my ssume without of loss of generlity tht every noe ppers in t lest 2 rings. We onstrut n unirete intersetion grph H tht shows how the rings re interonnete. The grph H onsists of K verties, eh orresponing to one of the K rings. If two rings shre ommon noes, then there is n ege between their orresponing verties in H. For lrity, we use verties n eges when referring to the elements in the grph H n noes n links when referring to the elements of ring. We lso use letters ner the beginning of the lphbet (suh s, b, n ) when referring to noes in ring n letters ner the en of the lphbet (suh s u, v n w) when referring to verties in H. For vertex u in H, we use R u to represent the orresponing ring. (See Figure 3 for n exmple.) Our lgorithm is motivte by observtions tht we etil lter. Consier vertex u in H. If R v is lrey opene, n v is neighbor of u, then the number of onsistent openings of R u is limite. (We sy tht set of sequenes re onsistent if they hve supersequene.) For exmple, suppose tht R u n R v hve in ommon the noes n b, n R v orers before b; then, R u woul hve to s well. We note, however, tht even if ny two neighboring rings hve onsistent openings, it oes not neessrily imply onsistent openings for ll rings. Consier the instne of Figure 3. When R u is oriente lokwise, n R v, R w re oriente ounter-lokwise, they inue lrge ring bef. If R u orrespons to the sequene b, R v orrespons to ef, n R w orrespons to efb then no opening of this inue ring ontins the three sequenes s subsequenes. Therefore, these three openings nnot be onsistent with one nother. However, ny two of these openings re onsistent. (See Figure 3, Right). If, inste, R w hs the opening bef, then the three openings re onsistent n hve mster ring bef. The exmple in Figure 3 shows tht we nnot use the grph H lone for etermining goo openings for ll rings, sine this grph inites only the lol epenenies mong the rings. To gurntee tht no inue rings remin in the network fter we open R 1,..., R K, we use the properties of the grph H only s guine for the lgorithm.

4 290 Hs Shhni n Lis Zhng Algorithm A MR 0 Eliminte singleton noes from R 1,..., R K. Construt the grph H with vertex set V. Phse 1. Low-egree verties 1 N = L =. 2 While there is low-egree vertex v V L N vertex v to set L n its neighbors to set N. 3 For u N, try ll possible sequenes for R u. 4 For v L with x neighbors, try t most x possible sequenes for R v. (See Lemm 1.) Phse 2. Dominting set 5 Fin ominting vertex set D for the verties v H suh tht v V L N. 6 For u D, try ll possible sequenes for R u. Phse 3. Remining verties 7 Let C = V L N D. 8 For u C, try totl of y C ombintions of sequenes for R u, where y is given in Lemm 5. 9 For eh ombintion of sequenes for verties in N L D C, fin supersequene T using topologil sort. 10 If T exists, mster ring is foun. Algorithm termintes. 11 Output no mster ring exists. Fig. 4: The mster ring lgorithm A MR. In our lgorithm, A MR, we ientify low-egree vertex u in H n enumerte ll possible openings of u s neighbors. Sine u hs low egree, reltively few rings re opene, but this rmtilly limits the number of onsistent openings of R u. (See Lemm 1.) When H hs only high-egree verties, we fin ominting set, where ominting set onsists of verties tht re neighbors to every vertex not in the set. We n fin smll ominting set in grph with high egree verties. By enumerting ll possible openings for the (smll number of) verties in the ominting set, we n reue the number of onsistent openings for eh remining vertex by onstnt ftor. (See Lemm 5.) In our lgorithm we efine low n high egree verties through prmeter δ; we set δ = log n/, where 3 is some onstnt. If vertex u H hs egree lower thn δ then u is low-egree vertex. A pseuooe of lgorithm A MR is given in Figure 4. 3 Anlysis For simpliity of exposition, we ssume throughout the nlysis tht ll of the rings re of the sme size, n. Lter, we show how the nlysis extens to rings of rbitrry sizes. In the following we show the orretness of lgorithm A MR. Certinly, if the lgorithm fins sequene T tht is supersequene for some opening of every ring R k, where 1 k K, the mster ring n be efine by T. However, sine our lgorithm oes not exhustively enumerte ll of the 2n openings of eh ring, if it oes not fin supersequene we nee to verify tht we hve not misse ny opening tht oul hve le to supersequene. We strt by nlyzing the first phse. Lemm 1 If vertex v L hs x neighbors in H, n eh neighbor is opene (i.e. is given sequene), then t most x sequenes of v n be onsistent with the x neighboring sequenes. Proof: Let u be neighbor of v n S u be the sequene representing the opening of the ring R u. Consier the subsequene T u of S u tht onsists of the noes ommon to R u n R v. Let u be the first symbol in T u. Sine we hve no singleton noes, we know tht u T u ontins ll the noes in R v. Therefore, if S v begins with noe in T u for some neighbor u, then S v hs to begin with u ; otherwise, S v nnot be onsistent with S u. Furthermore, if S v strts with u it hs to follow the iretion itte by T u. If T u

5 The mster ring problem 291 onsists of 3 or more noes, then this iretion is unique. If T u onsists of 2 noes, then either lokwise or ounter-lokwise iretion oul be onsistent. We exmine the two neighboring noes b n of u on ring R u tht re not in T u. For S v to strt t u n ontinue with b, b hs to be the first noe in some other subsequene T u for some neighbor u, or S v nnot be onsistent with S u. In ition, if both b n re the first noes of some subsequenes, no mtter whih iretion S v tkes, S v nnot be onsistent with both. Therefore, S v n only strt with one of t most x noes n for eh strting noe there is only one possible iretion. From Lemm 1, in Line 4 of the lgorithm we try t most δ sequenes for ny ring R v, suh tht v is low-egree vertex in H. This llows us to boun the running time of Phse 1. Lemm 2 The running time of Phse 1 is t most (1 + o(1)) where ˆk = L + N is the totl 2ˆk( 2) number of verties elt with in this phse. Proof: It is esy to see tht the number of ombintions tht Phse 1 tries is boune by (2n) N x L, where x δ. However, to exeute Line 4 we nee to etermine the orienttion for eh of the x potentil openings of ring. This n be one in time O(αx L ) for some onstnt α using the proeure esribe in Lemm 1. Therefore, the outer loop in our lgorithm, Phse 1, tkes t most (2n) N (αx L + x L ), whih is (1 + o(1))(2n) N δ L. Note tht the o(1) term is funtion of the ring size n n, Let us look t the running time more losely. Let ˆk = L + N be the totl number of verties hnle in Phse 1. Sine L onsists of verties with egree lower thn δ, we hve L ˆk/δ n N ˆk(1 1/δ). Therefore, (2n) N δ L = n L + N ( δ n ) L 2 N nˆk nˆk ( )ˆk/δ δ 2ˆk(1 1 δ ) = nˆk2ˆk( logδ δ ) 2ˆk(1 1 δ ) nˆk n. 2ˆk( 2) Let us boun the size of the ominting set D in Phse 2. Lemm 3 D V L N 1+ln(1+δ) 1+δ. Proof: We first prove the next lim, whih generlizes result in [3]. Let G = (V, E) be grph, suh tht ll the verties in V V hve egree t lest s. Then there exists subset of verties V V of size t most V 1+ln(1+s) 1+s, suh tht U = (V \ V ) V is ominting set for G. Consier the following Greey lgorithm. (i) We strt by ing ll the verties in V \V to U. (ii) Let W be the set of verties in V tht re not in U n o not hve neighbor in U; While W > V /(s+1) o: Fin vertex v W suh tht v hs mximl number of neighbors in W ; v to U. (iii) A the verties in W to U. Clerly, U is ominting set for G. To boun the size of V, we first note tht, by n verging rgument, sine ll the verties in V \V re e to U, the number of itertions until W V /(s+1) is t most V ln(s+1)/(s+1). (A similr rgument is given in the nlysis of the eterministi lgorithm for the ominting set problem in [3]; we omit the etils.) Hene, we get tht V V ln(s + 1)/(s + 1) + V /(s + 1). If we set V = V N L n s = δ, our lemm follows iretly. The greey lgorithm in Lemm 3 tkes time t most qurti in K, the number of verties in H. Hene, Lemm 4 The running time of Phse 2 is poly(k) + (2n) D. We now isuss how to effiiently fin openings for the remining verties in C uring Phse 3. Lemm 5 The running time of Phse 3 is t most poly(k)y C, where y 2(3 + n/2). Hene, the running time of phse 3 is poly(k)(n/ 2) C. Proof: During Phse 3, every vertex u C hs some neighbor v in the ominting set D. By ssumption, R u n R v hve t lest 2 noes, sy n b, in ommon. Any sequene of R v efines n orering of n b, i.e. ppers before b or fter b. Among the 2n sequenes of R u, extly n respet this orering of n b. Any of the other n sequenes tht isrespet the orering nnot proue topologil sort n therefore nee not be onsiere. We get tht it suffies to enumerte t most n sequenes for the ring R u, for ny u C.

6 292 Hs Shhni n Lis Zhng We n further reue the number of enumertions using the piring lgorithm esribe below. Inste of iretly enumerting n possible sequenes for R u where u C, we pir up the sequenes so tht one sequene in pir begins with noe, sy, n the other sequene in the pir ens with the noe. We refer to s the pivot of the pir. (At most 3 out of the n sequenes nnot be pire up with nother sequene.) More onretely, let us onsier the following exmple. For u C, suppose the ring R u hs 6 noes bef lokwise. Suppose tht u s neighbor v D hs hosen sequene for R v in whih b preees e. Therefore, ny sequene for R u nees to hve b before e, else there is no topologil sort. Among the 12 possible sequenes for R u, the following 6 hve b before e. bef bef f be bf e bf e bf e We pir up the 1st n 2n sequenes, bef n bef, with pivot, n pir up the 4th n 5th sequenes, bfe n bfe with pivot. The 3r sequene, fbe, n the 6th sequene, bfe, remin singletons. We first enumerte the 3 + n/2 groups (t most n/2 pirs n t most 3 unpire singletons) for every u C. This gives totl of t most (3 + n/2) C possibilities. In the following we show tht to etermine the tul sequene within eh pir for ny u C, we o not nee to try both possibilities. In ft, totl of 2 C /2 trils suffies. Hene, the totl number of trils is (3 + n/2) C 2 C /2, whih implies y 2(3 + n/2). For exmple, suppose ring R u where u C hs the bove 6 possibilities n we re onsiering the first pir with pivot. Sine is not singleton noe, neessrily ppers in nother ring, sy R w. If the sequene for R w is eie, then we neessrily know whih sequene, bef or bef, woul be goo. This is beuse R u n R w must shre noe other thn n let s ll this noe. Sine is pivot for R u, if ppers before for R w then only the first sequene bef n be goo; if ppers fter for R w then only the seon sequene bef n be goo. v u u Fig. 5: Exmples of the grph F. One possible solution for the grph on the left (right) is to irle the vertex u n mrk ll other verties ross. If vertex v in the mile grph is not in C then neither vertex is irle. In generl, we onstrut irete grph F where eh vertex orrespons to vertex in C. We put irete ege from u to w if the pivot of u is vertex in the ring R w. If there re multiple suh rings R w for u we hoose n rbitrry one. As rgue bove, if there is irete ege from u to w, then we only nee to enumerte the two hoies in hosen pir for R w n n the hoie for R u is implie. We etermine whih rings to enumerte s follows. We mrk ross on vertex to inite tht the hoie is implie n we mrk irle on vertex to inite tht we enumerte both possibilities. Initilly, we mrk ross on vertex u if it hs no outgoing eges. This mens the pivot of u ppers in some ring R w tht belongs to L N D. Hene, the sequene for R w is lrey hosen n therefore the sequene for R u is implie. For eh vertex u in F tht is not yet mrke, we follow the irete eges, strting from u, until (i) we hve rehe mrke vertex (either with irle or with ross), or (ii) we stop right before the pth from u intersets itself, i.e., in vertex z suh tht there is n ege (z, u). In the ltter se, we irle the vertex where we stop. In both ses, we lso mrk ross on every (unmrke) vertex long the pth. (See Figure 5.) It is esy to verify tht the hoie for eh vertex with ross n be implie from the hoie for some vertex with irle. In terms of the running time, we observe tht t most hlf of the verties in F n be irle, sine eh irle vertex nees t lest one istint vertex tht hs ross. To mrk eh vertex in F with irle or ross requires visiting eh vertex one. Hene, the time requirement is liner in C. It follows tht the running time of Phse 3 is t most poly( C )(3 + n/2) C 2 C /2, whih is poly(k)(n/ 2)) C. From Lemms 1 n 5 we see tht lthough lgorithm A MR oes not enumerte ll possibilities for the

7 The mster ring problem 293 verties in L n C we o not miss out ny potentilly goo opening. Our lgorithm is therefore orret. We boun the running time s follows. Theorem 6 When the ring sizes n gets lrge, the running time of our lgorithm A MR is (1+o(1))(n/ 2) K P Q, where P is the time neee for topologil sort of K sequenes of length n, n Q is polynomil in K. Proof: It is esy to see tht the overll running time is the prout of the running times of the three phses n P, the time for eh topologil sort. From Lemms 2, 4 n 5, the overll running time is, We hve, n L + N (1 + o(1)) 2 (poly(k) + ( L + N )( 2) (2n) D ) (poly(k)(n/ 2) C ) P. n L + N 2 ( L + N )( 2) (2n) D (n/ 2) C nk 2 1 K/2 2 ( L + N )( 2.5) 2. 3 D /2 When the ring size n gets lrge, the vlue of δ is lrge n hene the size of the ominting set D pprohes smll onstnt. When > 2.5, the exponent of the seon term in the bove enomintor is positive. Hene, the bove expression pprohes (n/ 2) K. Therefore the overll running time of lgorithm A MR is (1 + o(1))(n/ 2) K P Q. We note tht the nive lgorithm tht enumertes ll 2n possibilities for eh ring tkes (2n) K P time. Our lgorithm essentilly improves the term (2n) K to (n/ 2) K. Our lgorithm hieves better running time for two importnt sublsses of inputs. Consier the sublss of sprse inputs: in the intersetion grph of the rings, H, ll the verties re of low-egree. Thus, our lgorithm termintes fter Phse 1. The following omes iretly from Lemm 2. Corollry 7 For ny 3, if the mximl egree in H is smller thn log n/ then the running time of the lgorithm is t most (1 + o(1))( n 2 ) K. In prtiulr, if the mximl egree in H is some onstnt 2 1 then the running time of A MR is (1 + o(1))(n 1 1 ) K. Consier now the sublss of ense inputs, where eh noe in the network ppers in t lest m rings, for some m 2; then, in Phse 3 of our lgorithm, we get tht the remining rings n be groupe to lusters of size t lest m. In eh luster we nee to try the two possible openings of single ring. (We use s before the lgorithm of Phse 3, with slight moifitions. We give the etils in the full version of the pper.) This reues the running time of Phse 3 to poly(k)(3 + n 2 ) C 2 C m. Corollry 8 If eh noe in the network ppers in t lest m rings, for some m 2, then the running n time of the lgorithm is t most (1 + o(1))( 2 (1 1 m ) )K. Ring Clerne. In the ring lerne problem, we nee to ler R 1 n reroute ll the trffi through the other rings. In orer for suh trnsition to our, it is ssume tht R 1 intersets with eh of the other rings. In other wors in the intersetion grph H every vertex is neighbor of the vertex w orresponing to R 1. Hene, {w} is ominting set for ll verties in H. We only nee to pply Phse 3 of our lgorithm. Using the simple nlysis in Lemm 3, it is esy to see tht ny opening of R 1 limits the number of openings of ny other ring to t most n. If we follow the more sophistite piring rgument in Lemm 3 we only nee to try totl of (n/ 2) K possibilities. Corollry 9 The lgorithm solves the ring lerne problem in t most (n/ 2) K P Q steps, for rings of ny length n 2. Rings of istint lengths. The nlysis for the se where eh ring R u hs istint size, n u, is similr. We remove the singleton noes n rete the intersetion grph H s before. For Phse 1, we sy tht vertex u hs low egree if it hs fewer thn δ u = log n u / neighbors. The running time of Phse 1 is t most (1 + o(1)) u N (2n u) u L δ u. Similr to Lemm 2 we eue, u ) u N(2n u L N δ u n u 2. ( L + N )( 2) u L In Phse 2, we fin gin ominting set D n we n boun D by V L N 1+ln(1+δ) 1+δ, where δ = min u δ u. When ll ring sizes n u get lrge, the size of D pprohes smll onstnt. The running

8 294 Hs Shhni n Lis Zhng time for Phse 2 is poly(k)+ u D (2n u). Finlly, for Phse 3 we use the piring lgorithm s esribe in Lemm 5 for the verties in C, n the running time is poly(k) u C (n u/ 2). Theorem 10 For rings with istint sizes, when the ring sizes get lrge the running time of lgorithm A MR is (1 + o(1)) u (n u/ 2) P Q, where the o(1) term is funtion of the ring sizes n, P is the time neee for topologil sort of K sequenes, n Q is polynomil in K. 4 Reltion to Other Problems We briefly isuss how MRP reltes to the shortest ommon supersequene (SCS) n feebk r set (FAS) problems. We efer the etils of this setion to the full version. 4.1 Shortest Common Supersequene In SCS we re given K strings, S = {S 1,..., S K }, of lengths n 1,..., n K, over n lphbet Σ, where Σ = N. We seek supersequene T for S of minimum length. MRP efines the following nturl vrint of SCS. A two-wy yli permuttion of string llows yli shifts of the string in the forwr n reverse iretions. For exmple, the string b hs 4 forwr shifts, b, b, b n b, n 4 reverse shifts, b, b, b n b. In the two-wy yli SCS (2Cyli-SCS) problem, we seek string T of minimum length, suh tht there exists two-wy yli permuttion of eh string S 1,..., S K in S tht is subsequene of T. We sy tht T is 2yli supersequene for S. A supersequene T of length N orrespons to mster ring for the set of rings efine by S 1,..., S K. The SCS problem is known to be hr to pproximte. In prtiulr, Jing n Li [10] showe tht there exists onstnt ε > 0 suh tht if SCS hs polynomil time pproximtion lgorithm with rtio log ε K, then NP is ontine in DTIME(2 polylog(k) ). The best known pproximtion rtio is K+3 4, ue to Frser n Irving [7]. Mienorf onsiere in [11] number of vrints of SCS. This inlues the Cyli-SCS problem, in whih the strings in S n be ylilly permute in the sme iretion. The pper shows tht this problem is NP-hr. (Cyli-SCS solves MRP in the se where eh ring hs fixe orienttion.) On the other hn, Permuttion-SCS, where eh string S k n be permute to ny one of the n k! possibilities, is shown in [11] to be polynomilly solvble for strings of ny length. This implies tht MRP n be solve in polynomil time for inputs where n k 3, for 1 k K. The hrness of 2Cyli-SCS n be shown vi reution from the vertex over problem. Theorem 11 Given m, it is NP-hr to etermine if 2Cyli-SCS hs solution t most m. Our lgorithm, A MR, n be ombine with ynmi progrmming lgorithm for SCS [6, 9, 5] to yiel n optiml solution for 2Cyli-SCS with running time of O(N 2 K K k=1 n2 k ). Alterntively, we n fin supersequene T of minimum length by guessing first the yli shift of eh string in T ; we n then solve the SCS problem using ynmi progrmming (see, e.g. [6]). The best known DP lgorithm hs running time O( K k=1 n k). Thus, we hve, K k=1 Theorem 12 The 2Cyli-SCS problem n be solve in O( n2 k ) steps. 2 K/2 4.2 Feebk Ar Set MRP reltes lso to the feebk r set (FAS) problem in irete grphs, whih is known to be NPhr [8]. Consier the speil se of MRP in whih the orienttion for eh of the rings is given. We enote this oriente version MRP O. We n view MRP O s the following vrint of FAS, tht we ll ext subset FAS. We hve irete grph G = (V, E), n set of K (irete) yles in G, R = {R 1,..., R K }. Let G = (V, E ) be the subgrph inue by the verties n eges in R. We seek subset of K eges in E whose eletion leves G yli, suh tht in eh of the yles R 1,..., R K we omit extly one ege. Suh subset of verties exists iff we hve solution for the orresponing MRP O instne. Sine we re given the orienttion for eh of the rings, we n pply only Phse 3 of lgorithm A MR. By fining mster ring, we solve the ext subset FAS problem. Hene, we hve Corollry 13 For ny K 1 n n k 2, for ll 1 k K, ext subset FAS on the subgrph G inue by K yles of the lengths n 1,..., n K n be solve in P ( K k=1 n k/( 2) K ) steps, where P is polynomil of K.

9 The mster ring problem Open Problems Consier the following prmeterize version of the Permuttion-SCS. Eh string S k, 1 k K, is ssoite with subset of permuttions, Π k, n we seek supersequene T of minimum length, suh tht there exists permuttion of S k in Π k tht is subsequene of T. We ll this problem Perm-SCS(Π k ). Inee, the Cyli-SCS problem is speil se of this problem, in whih Π k is the set of n k yli shifts of S k, in single iretion. As shown in [11], this speil se of the problem is NP-hr. We hve shown (in Theorem 11) tht if we exten the permuttion sets in the Cyli-SCS, so tht Π k is the set of yli shifts in two iretions (2Cyli-SCS), the problem remins NP-hr. On the other hn, when Π k is the set of ll possible permuttions of S k (Permuttion-SCS), the problem is solvble in polynomil time [11]. Determining whether Perm-SCS(Π k ) is polynomilly solvble on other lsses of inputs remins n open problem. Finlly, nturl vrint of MRP whih is of prtil interest, is to ientify mximum subset of rings for whih we n fin mster ring, in ny given network. Aknowlegements We thnk n nonymous referee for helpful omments on the pper. Referenes [1] S. Ahry, B. Gupt, P. Risboo, A. Srivstv. Hitless Network Engineering of SONET Rings, Globeom [2] S. Ahry, B. Gupt, P. Risboo, A. Srivstv. In-servie Optimiztion of stke SONET Rings, submitte. [3] N. Alon n J. H. Spener. The Probbilisti Metho, Seon Eition. Wiley-Intersiene, [4] T. H. Cormen, C. E. Leiserson, R. L. Rivest n C. Stein, Introution to Algorithms, 2n Eition, MIT Press n MGrw-Hill, [5] D. E. Foulser, M. Li n Q. Yng, A Theory of Pln Merging, Artifiil Intelligene, 57, 1992, pp [6] C. B. Frser, subsequenes n Supersequenes of Strings. Ph.D. Thesis, Dept. of Computer Siene, University of Glsgow, [7] C. B. Frser n R. W. Irving, Approximtion lgorithms for the shortest ommon supersequene, Nori J. Comp. 2, 1995, pp [8] M.R. Grey n D.S. Johnson. Computers n Intrtbility: A Guie to the Theory of NP-Completeness. W.H. Freemn, [9] S.Y. Itog, The String Merging Problem, BIT, 21, 1981, pp [10] T. Jing n M. Li, On the Approximtion of Shortest Common Supersequenes n Longest Common Subsequenes, SIAM Journl on Computing, 24(5), Otober 1995, pp [11] M. Mienorf, More on the omplexity of ommon superstring n supersequene problems, Theoretil Computer Siene 125 (1994), [12] Mobius network mngement n optimiztion systems. Luent Tehnologies Proprietry. Internl website: mobius/. [13] R. Rmswmi n K. Sivrjn. Optil networks: prtil perspetive. (Morgn Kufmnn Publishers In., Sn Frniso, 1998). [14] E. Rosen n A. Viswnthn Internet Stnrs for Multi Protool Lbel Swithing. In

10 296 Hs Shhni n Lis Zhng

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

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

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

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

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

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

The vertex leafage of chordal graphs

The vertex leafage of chordal graphs The vertex lefge of horl grphs Steven Chplik, Jurj Stho b Deprtment of Physis n Computer Siene, Wilfri Lurier University, 75 University Ave. West, Wterloo, Ontrio N2L 3C5, Cn b DIMAP n Mthemtis Institute,

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

T b a(f) [f ] +. P b a(f) = Conclude that if f is in AC then it is the difference of two monotone absolutely continuous functions.

T b a(f) [f ] +. P b a(f) = Conclude that if f is in AC then it is the difference of two monotone absolutely continuous functions. Rel Vribles, Fll 2014 Problem set 5 Solution suggestions Exerise 1. Let f be bsolutely ontinuous on [, b] Show tht nd T b (f) P b (f) f (x) dx [f ] +. Conlude tht if f is in AC then it is the differene

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

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

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

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

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

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

Proportions: A ratio is the quotient of two numbers. For example, 2 3

Proportions: A ratio is the quotient of two numbers. For example, 2 3 Proportions: rtio is the quotient of two numers. For exmple, 2 3 is rtio of 2 n 3. n equlity of two rtios is proportion. For exmple, 3 7 = 15 is proportion. 45 If two sets of numers (none of whih is 0)

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

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

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

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

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

Metodologie di progetto HW Technology Mapping. Last update: 19/03/09

Metodologie di progetto HW Technology Mapping. Last update: 19/03/09 Metodologie di progetto HW Tehnology Mpping Lst updte: 19/03/09 Tehnology Mpping 2 Tehnology Mpping Exmple: t 1 = + b; t 2 = d + e; t 3 = b + d; t 4 = t 1 t 2 + fg; t 5 = t 4 h + t 2 t 3 ; F = t 5 ; t

More information

Analysis of Temporal Interactions with Link Streams and Stream Graphs

Analysis of Temporal Interactions with Link Streams and Stream Graphs Anlysis of Temporl Intertions with n Strem Grphs, Tiphine Vir, Clémene Mgnien http:// ltpy@ LIP6 CNRS n Soronne Université Pris, Frne 1/23 intertions over time 0 2 4 6 8,,, n for 10 time units time 2/23

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

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

Vidyalankar S.E. Sem. III [CMPN] Discrete Structures Prelim Question Paper Solution

Vidyalankar S.E. Sem. III [CMPN] Discrete Structures Prelim Question Paper Solution S.E. Sem. III [CMPN] Discrete Structures Prelim Question Pper Solution 1. () (i) Disjoint set wo sets re si to be isjoint if they hve no elements in common. Exmple : A = {0, 4, 7, 9} n B = {3, 17, 15}

More information

A Disambiguation Algorithm for Finite Automata and Functional Transducers

A Disambiguation Algorithm for Finite Automata and Functional Transducers A Dismigution Algorithm for Finite Automt n Funtionl Trnsuers Mehryr Mohri Cournt Institute of Mthemtil Sienes n Google Reserh 51 Merer Street, New York, NY 1001, USA Astrt. We present new ismigution lgorithm

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

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

On-Line Construction of Compact Directed Acyclic Word Graphs

On-Line Construction of Compact Directed Acyclic Word Graphs On-Line Constrution of Compt Direte Ayli Wor Grphs Shunsuke neng, Hiroms Hoshino, Ayumi Shinohr, Msyuki Tke,SetsuoArikw, Ginrlo Muri 2, n Giulio Pvesi 2 Dept. of nformtis, Kyushu University, Jpn {s-ine,hoshino,yumi,tke,rikw}@i.kyushu-u..jp

More information

Numbers and indices. 1.1 Fractions. GCSE C Example 1. Handy hint. Key point

Numbers and indices. 1.1 Fractions. GCSE C Example 1. Handy hint. Key point GCSE C Emple 7 Work out 9 Give your nswer in its simplest form Numers n inies Reiprote mens invert or turn upsie own The reiprol of is 9 9 Mke sure you only invert the frtion you re iviing y 7 You multiply

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

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

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

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

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

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

C. C^mpenu, K. Slom, S. Yu upper boun of mn. So our result is tight only for incomplete DF's. For restricte vlues of m n n we present exmples of DF's

C. C^mpenu, K. Slom, S. Yu upper boun of mn. So our result is tight only for incomplete DF's. For restricte vlues of m n n we present exmples of DF's Journl of utomt, Lnguges n Combintorics u (v) w, x{y c OttovonGuerickeUniversitt Mgeburg Tight lower boun for the stte complexity of shue of regulr lnguges Cezr C^mpenu, Ki Slom Computing n Informtion

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

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

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

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

Maximum size of a minimum watching system and the graphs achieving the bound

Maximum size of a minimum watching system and the graphs achieving the bound Mximum size of minimum wthing system n the grphs hieving the oun Tille mximum un système e ontrôle minimum et les grphes tteignnt l orne Dvi Auger Irène Chron Olivier Hury Antoine Lostein 00D0 Mrs 00 Déprtement

More information

Computing on rings by oblivious robots: a unified approach for different tasks

Computing on rings by oblivious robots: a unified approach for different tasks Computing on rings y olivious roots: unifie pproh for ifferent tsks Ginlorenzo D Angelo, Griele Di Stefno, Alfreo Nvrr, Niols Nisse, Krol Suhn To ite this version: Ginlorenzo D Angelo, Griele Di Stefno,

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

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

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

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

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

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

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

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

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

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

Math 32B Discussion Session Week 8 Notes February 28 and March 2, f(b) f(a) = f (t)dt (1)

Math 32B Discussion Session Week 8 Notes February 28 and March 2, f(b) f(a) = f (t)dt (1) Green s Theorem Mth 3B isussion Session Week 8 Notes Februry 8 nd Mrh, 7 Very shortly fter you lerned how to integrte single-vrible funtions, you lerned the Fundmentl Theorem of lulus the wy most integrtion

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

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

Solutions to Problem Set #1

Solutions to Problem Set #1 CSE 233 Spring, 2016 Solutions to Prolem Set #1 1. The movie tse onsists of the following two reltions movie: title, iretor, tor sheule: theter, title The first reltion provies titles, iretors, n tors

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

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

New Expansion and Infinite Series

New Expansion and Infinite Series Interntionl Mthemticl Forum, Vol. 9, 204, no. 22, 06-073 HIKARI Ltd, www.m-hikri.com http://dx.doi.org/0.2988/imf.204.4502 New Expnsion nd Infinite Series Diyun Zhng College of Computer Nnjing University

More information

More Properties of the Riemann Integral

More Properties of the Riemann Integral More Properties of the Riemnn Integrl Jmes K. Peterson Deprtment of Biologil Sienes nd Deprtment of Mthemtil Sienes Clemson University Februry 15, 2018 Outline More Riemnn Integrl Properties The Fundmentl

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

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Finite Automt Theory nd Forml Lnguges TMV027/DIT321 LP4 2018 Lecture 10 An Bove April 23rd 2018 Recp: Regulr Lnguges We cn convert between FA nd RE; Hence both FA nd RE ccept/generte regulr lnguges; More

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

Sections 5.3: Antiderivatives and the Fundamental Theorem of Calculus Theory:

Sections 5.3: Antiderivatives and the Fundamental Theorem of Calculus Theory: Setions 5.3: Antierivtives n the Funmentl Theorem of Clulus Theory: Definition. Assume tht y = f(x) is ontinuous funtion on n intervl I. We ll funtion F (x), x I, to be n ntierivtive of f(x) if F (x) =

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

Mathematical Proofs Table of Contents

Mathematical Proofs Table of Contents Mthemtil Proofs Tle of Contents Proof Stnr Pge(s) Are of Trpezoi 7MG. Geometry 8.0 Are of Cirle 6MG., 9 6MG. 7MG. Geometry 8.0 Volume of Right Cirulr Cyliner 6MG. 4 7MG. Geometry 8.0 Volume of Sphere Geometry

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

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

Solutions to Assignment 1

Solutions to Assignment 1 MTHE 237 Fll 2015 Solutions to Assignment 1 Problem 1 Find the order of the differentil eqution: t d3 y dt 3 +t2 y = os(t. Is the differentil eqution liner? Is the eqution homogeneous? b Repet the bove

More information

Outline Data Structures and Algorithms. Data compression. Data compression. Lossy vs. Lossless. Data Compression

Outline Data Structures and Algorithms. Data compression. Data compression. Lossy vs. Lossless. Data Compression 5-2 Dt Strutures n Algorithms Dt Compression n Huffmn s Algorithm th Fe 2003 Rjshekr Rey Outline Dt ompression Lossy n lossless Exmples Forml view Coes Definition Fixe length vs. vrile length Huffmn s

More information

Line Integrals and Entire Functions

Line Integrals and Entire Functions Line Integrls nd Entire Funtions Defining n Integrl for omplex Vlued Funtions In the following setions, our min gol is to show tht every entire funtion n be represented s n everywhere onvergent power series

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

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

THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS.

THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS. THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS RADON ROSBOROUGH https://intuitiveexplntionscom/picrd-lindelof-theorem/ This document is proof of the existence-uniqueness theorem

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

UNIFORM CONVERGENCE. Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3

UNIFORM CONVERGENCE. Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3 UNIFORM CONVERGENCE Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3 Suppose f n : Ω R or f n : Ω C is sequence of rel or complex functions, nd f n f s n in some sense. Furthermore,

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

Hyers-Ulam stability of Pielou logistic difference equation

Hyers-Ulam stability of Pielou logistic difference equation vilble online t wwwisr-publitionsom/jns J Nonliner Si ppl, 0 (207, 35 322 Reserh rtile Journl Homepge: wwwtjnsom - wwwisr-publitionsom/jns Hyers-Ulm stbility of Pielou logisti differene eqution Soon-Mo

More information

DIFFERENCE BETWEEN TWO RIEMANN-STIELTJES INTEGRAL MEANS

DIFFERENCE BETWEEN TWO RIEMANN-STIELTJES INTEGRAL MEANS Krgujev Journl of Mthemtis Volume 38() (204), Pges 35 49. DIFFERENCE BETWEEN TWO RIEMANN-STIELTJES INTEGRAL MEANS MOHAMMAD W. ALOMARI Abstrt. In this pper, severl bouns for the ifferene between two Riemn-

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

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

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

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