Swinburne Research Bank

Size: px
Start display at page:

Download "Swinburne Research Bank"

Transcription

1 Swinune Reseh Bnk Zhou, R., Liu, C., Wng, J., & Li, J. (2009). Continment etween unions of XPth queies. Oiginlly pulished in X. Zhou, H. Yokot, K. Deng, & Q. Liu (eds.) Poeedings of the 14th Intentionl Confeene on Dtse Systems fo Advned Applitions (DASFAA 2009), Bisne, Austli, Apil Letue notes in ompute siene (Vol. 5463, pp ). Belin: Spinge. Aville fom: Copyight Spinge-Velg Belin Heideleg This is the utho s vesion of the wok, posted hee with the pemission of the pulishe fo you pesonl use. No futhe distiution is pemitted. You my lso e le to ess the pulished vesion fom you liy. The definitive vesion is ville t Swinune Univesity of Tehnology CRICOS Povide 00111D swinune.edu.u

2 Continment etween Unions of XPth Queies Rui Zhou 1, Chengfei Liu 1, Junhu Wng 2, nd Jinxin Li 1 1 Swinune Univesity of Tehnology, Meloune, Austli {zhou,liu,jinxinli}@swin.edu.u 2 Giffith Univesity, Gold Cost, Austli J.Wng@giffith.edu.u Astt. In this ppe, we ddess the ontinment polem fo unions of XPth queies with nd without shem. We find the polem n e lwys edued into ontinment polem etween one single quey nd union of queies. When shem is not ville, the polem n e futhe edued into heking ontinment etween piwise queies (eh fom one union), ut this only holds fo some XPth susets, suh s XP {/,//,[]}, ut not fo XP {/,//,[], }. We then show the polem is still solvle in XP {/,//,[], }, though no effiient lgoithm exists. When shem is t hnd, we popose sttegy to ewite quey into union of simplified queies sed on shem infomtion, nd then pply methods developed when shem is not tken into ount. The polem is then edued into heking ontinment etween unions of queies in XP {/,[]} without shem. 1 Intodution Testing quey ontinment is key tehnique in mny dtse pplitions. In quey optimiztion [1], it is sutsk to hek if two fomultions of quey e equivlent, nd hene to hoose the fomultion with less evlution ost. In dt integtion senio, espeilly ewiting queies using views [2], it povides mens to find equivlent o ontined ewitings, nd lso to detet edundnt ewitten queies to sve omputtion time. Quey ontinment n lso e used to mintin integity onstints [3] nd detemine when queies e independent of updtes to the dtse [4]. In eltionl ontext, ontinment hs een studied fo onjuntive queies 3 [1] nd unions of onjuntive queies [6]. In [6], it shows, fo two unions of onjuntive queies P nd Q, P is ontined in Q if nd only if ny quey p in P is ontined in some quey q in Q. Theefoe, ontinment fo unions of onjuntive queies n e edued into ontinment fo ( nume of) pis of queies. While fo XML queies, espeilly XPth [7] queies, the ontinment polem is minly studied etween two single queies [8 11], ut not fo unions of XPth queies. Some questions still need to e nsweed: Cn we dw simil onlusion fo unions of XPth queies s tht fo unions of onjuntive queies? If not, how n we detemine ontinment etween unions of XPth queies? Does 3 A typil quey tht is extensively studied in eltionl dtse, see [5].

3 it mke ny diffeene whethe n XML shem is ville? We will look into these questions in this ppe. Befoe heding into the min pt, we would like to stess gin the impotne of detemining ontinment etween unions of queies. One typil pplition is ewiting queies using views, whee to detet edundnt ewiting mens to detet if ewitten quey is ontined in union of othe ewitten queies. This is speil se of union ontinment, fo one of the unions ontins only one quey. In this ppe, we show tht the piwise ompison popety fo unions of onjuntive queies holds only fo some XPth susets, suh s XP {/,//,[]} fetuing hild, desendnt, nd nh xes. Fo lge suset XP {/,//,[], }, with wildds dded, we povide n exmple to show two queies n e omined togethe to ontin thid quey, though neithe of them ould solely ontin the thid one. Theefoe we should devise some new sttegy to detet ontinment eltionship fo unions of queies in this suset. To mke the wok ompehensive, we lso disuss ontinment unde shem infomtion. A quey p not ontined in nothe quey q in genel, my e ontined in q unde shem onstints, euse shem imposes some onstints, onfining wildds nd desendnt xes in the quey eing intepeted in some ptiul wys. In ode to tkle this polem, we popgte shem onstints into queies to eliminte wildds nd desendnt edges, nd thus simplify the queies into queies in suset XP {/,[]}. Then fte hsing the simplified pttens in XP {/,[]}, estlished methods fo unions of queies without shem n e pplied. In this ppe, Ou ontiutions e highlighted s follows: We e the fist to investigte the ontinment polem fo unions of queies in XML ontext, ptiully on XPth queies. We show the polem n e lwys edued into ontinment polem etween one single quey nd union of queies. When shem is not ville, the polem n e futhe edued into heking ontinment etween two single queies (eh fom one union). Howeve, this esult only holds fo some simple XPth susets like XP {/,//,[]}, not fo XP {/,//,[], }. But fotuntely in XP {/,//,[], }, the polem is still solvle. When shem is ville, we suggest sttegy to ewite quey into union of simplified queies sed on shem infomtion, nd then pply the methods developed when shem is not onsideed. The polem is then edued into heking ontinment etween unions of queies in XP {/,[]} without shem. The est of this ppe is ognized s follows. In Setion 2, we will give some nottions nd kgound knowledge. Then we popose two impotnt theoems nd tkle the ontinment polem without shem in Setion 3. Shem infomtion will e tken into ount in Setion 4 to eliminte wildd nodes nd expnd desendnt edges. In Setion 5, we extend the disussion fom XPth queies into genel tee ptten queies. Relted wok is given in Setion 6. Finlly, we dw onlusion nd popose some futue wok in Setion 7.

4 2 Peliminies In this setion, we intodue some nottions nd kgound knowledge. XML douments nd XPth queies e modelled s tees nd tee pttens, nd evluting n XPth quey on n XML doument is modelled s mthing tee ptten to tee. We lso fomulte the definition fo ontinment etween unions of XPth queies t the end of this setion. 2.1 XML Tees In the litetue, n XML doument is modeled s n unodeed tee 4 with nodes leled fom n infinite lphet Σ (Σ is finite, if shem is ville), the lel of eh node oesponds to n XML element, n ttiute nme o dt vlue, the oot node of the tee epesents the oot element in the doument. We slightly modify the model y dding new oot with unique lel Σ to the tee, seving s the doument node. In this wy, the oot node in the pevious model eomes (single) hild of this doument node, nd evey XML doument stts with oot node leled, see Definition 1. We will see the im of this modifition in the next susetion. We denote ll possile tees ove Σ s T Σ. Definition 1. An XML doument is tee t = (V t,e t, t,σ), whee V t is the node set, nd v V t, v hs lel in the lphet Σ, denoted s lel(v); E t is the edge set; t V t is the oot node of t, nd lel( t ) = ; 2.2 XPth Quey XPth is the oe sulss of XML quey lnguges. We onside suset of XPth fetuing hild xes (/), desendnt xes (//), nhes ([ ]), nd wildds (*). It n e epesented y the following gmm: p. l p/p p//p p[p] whee. denotes the uent ontext node, l is lel fom lphet Σ nd * epesents wildd lel. We denote this suset s XP {/,//,[], }. The esult of evluting n XPth expession p XP {/,//,[], } on tee t T Σ, denoted s p(t), is set of nodes in t. The fomlized semntis e given in [12] (omitted hee), whee the ontext node is fixed on the doument node if the ontext node is not expliitly speified. Like in [8], esides llowing the usge of. immeditely inside pedite [ ], we futhe llow. to ppe t the eginning of n expession to ptue the XPth queies stting with / o //. Fo exmple, queies // nd ////, whih do not onfom to the ove 4 Ode is ignoed in most pevious eseh woks, nd so it is in this wok.

5 gmm, i.e. ignoed in pevious woks (suh s [8,9,13]), n e now ewitten into.// nd.////, nd theefoe e ptued. Sine. lwys inspets the doument node (whih we intentionlly dded in the fome setion) y defult, the ewitten expessions oetly peseve the semntis. Moeove, XPth expessions stting with lel n e sfely ewitten into some expessions stting with. s well, eg, / equls to.//. In this wy, n XPth quey oesponds to unique tee ptten quey, see the following definition. Definition 2. An XPth quey q n e expessed s tee ptten (V q,e q, q,d q,σ q ), whee V q is the node set, nd v V q, v hs lel in finite lphet Σ q { }, denoted s lel(v); E q is the edge set, nd e E q,type(e) {/,//}. We use the tem pedge ( d-edge ) to epesent the type of n edge, / ( // ). q is the oot node of the quey, oesponding to the leding. tg in q (if the uent ontext node is not speified, then lel( q ) = ); d q is the nswe (lso lled distinguished o etun) node of the quey, identified with ile; The esult of evluting n XPth quey, equls to finding emeddings fom tee ptten quey q to tee t, whih n e epesented s q(t) = {f(d q ) f is some emedding fom p to t}. Emedding is defined s follows: Definition 3. An emedding fom tee ptten q = (V q,e q, q,d q,σ q ) to tee t = (V t,e t, t,σ) is mpping f : V q V t, stisfying: Root peseving: f( q ) = t ; Lel peseving: v V q, lel(v) = o lel(v) = lel(f(v)); Stutue peseving: e = (v 1,v 2 ) E q, if e is p-edge, f(v 1 ) is the pent node of f(v 2 ); e is n d-edge, f(v 1 ) is n nesto node of f(v 2 ) inluding the se f(v 1 ) eing the pent of f(v 2 ). In this wok, ll XPth queies e oseved s tee pttens fo ese of disussion, nd we will povide some disussions on genel tee pttens (queies with moe thn one distinguished nodes) in Setion Continment Fomultion Fo ny two tee ptten quey p nd q, p is sid to e ontined in q, denoted s p q, iff t T Σ,p(t) q(t). We now extend the definition to unions of queies. We use lowese lette nd n uppese lette to eflet single quey nd union of queies espetively. Let P = {p 1,p 2,,p m } e union of queies, the esult of this set of queies on tee t, denoted s P(t), is defined s p 1 (t) p 2 (t) p m (t). Fo two unions of queies P = {p 1,p 2,,p m } nd Q = {q 1,q 2, q n }, P is sid to e ontined in Q, iff t T Σ,P(t) Q(t) (i.e. p 1 (t) p 2 (t) p m (t) q 1 (t) q 2 (t) q n (t) ).

6 3 Continment without Shem In this setion, we will investigte ontinment polem etween unions of XPth queies without shem infomtion. We stt with eduing the polem into simplified fom nd intoduing oolen tee ptten. Afte tht, we endevo to solve the polem fo oolen tee pttens elonging to suset P {/,//,[]}. Finlly, lge suset with wildds, P {/,//,[], }, will e disussed. 3.1 Continment Redution To simplify the polem, we popose theoem to edue the ontinment heking etween two unions of queies into ontinment heking etween one single quey nd union of queies. The theoem lso holds when shem is t hnd. Theoem 1. Fo two unions of XPth queies P = {p 1,p 2,,p m } nd Q, we hve: P Q, iff p i P, p i Q. Poof. If: Given p i P, p i Q, we hve, fom definition, fo ny tee t T Σ, p i (t) Q(t). Theefoe, fo ny tee t T Σ, p 1 (t) p 2 (t) p m (t) Q(t), tht is P Q; Only if: Given P Q, we hve t T Σ,P(t) Q(t), i.e. p 1 (t) p 2 (t) p m (t) Q(t), thus p i, p i (t) p 1 (t) p 2 (t) p m (t) Q(t). The ide onveyed y the ove theoem is simple, ut it lys foundtion to hek union ontinment, euse we n lwys sfely simplify the left pt of the ompison into single quey. This leds to some futhe explotions nd osevtions in Setion 3.3 nd Boolen Tee Ptten Boolen ptten (shot fo oolen tee ptten) is tee ptten quey with no distinguished node. The esult of evluting oolen ptten p on tee t, p(t), is oolen vlue, eithe tue o flse. p(t) is tue, mens thee exists n emedding fom p to t, othewise p(t) is flse. Fo two oolen pttens, p nd q, we sy p is ontined in q, denoted s p q, iff t T Σ, p(t) q(t). Eh XPth tee ptten oesponds to unique oolen ptten, whih n e otined y dding hild node with distint lel x to the distinguished node, nd mke the distinguished node not outstnding ny moe (shown in Fig. 1). Let the oesponding oolen pttens of XPth pttens p nd q e p nd q espetively. Aoding to [14], p q iff p q. Consequently, fo ese of disussion, XPth tee ptten queies e onsideed s oolen pttens in the est of the ppe. Nottions p nd q will efe to oolen pttens fom now on, nd we no longe use p nd q. And the esult of union of oolen tee pttens Q = {q 1,q 2,,q n } on tee t n e then expessed in the fom of Q(t) = q 1 (t) q 2 (t) q n (t), fo Q(t) is oolen vlue. We lso use P {/,//,[]} to denote the oesponding oolen ptten suset fo XPth tee pttens in XP {/,//,[]}.

7 x p p Fig. 1. A XPth Tee Ptten p nd Its Coesponding Boolen Ptten p 3.3 Pttens in P {/,//,[]} As is shown in Theoem 1, heking ontinment etween unions of queies n lwys e edued into heking ontinment etween one single quey nd union of queies. Then one question ises: Cn the polem e futhe edued into heking ontinment fo nume of quey pis? Tht is, if quey is ontined in union of queies, does it men tht the single quey is ontined in some ptiul quey fom the union? The nswe is yes, ut the esult is estited to etin suset of queies. Fo simpliity, we illustte this esult (expessed s Theoem 2) within quey suset P {/,//,[]}, whih hs nhes nd desendnt xes, ut no wildds. We will point out lge quey suset whee the popety still holds fte poving the theoem. Theoem 2. Fo oolen ptten p nd union of oolen pttens Q = {q 1,q 2,,q n } in P {/,//,[]}, we hve: p Q, iff q i Q, suh tht p q i. Poof. The suffiient ondition is ovious. Now we will pove the neessy ondition y poving its ontpositive sttement, i.e. to show tht if p is not ontined in ny q i Q, then p nnot e ontined in Q. Befoe stting the poof, we fist intodue tehnique lled homomophism poviding suffiient nd neessy ondition to deide ontinment etween two single pttens in P {/,//,[]}. A homomophism fom one ptten p = (V p,e p, p,σ p ) to nothe q = (V q,e q, q,σ q ), is funtion h : V p V q stisfying the definition of emedding (given in Definition 3). The only diffeene is tht homomophism is mpping fom one quey ptten to nothe, while emedding is mpping fom ptten to dt tee. Aoding to Theoem 3 in [8], fo two oolen pttens p nd q in P {/,//,[]}, p q iff thee exists homomophism fom V q to V p. In othe wods, if p q, thee must exist node v i in V q, suh tht we nnot find ny homomophism h tht hs oesponding node h(v i ) in V p, stisfying lel peseving nd stutue peseving onditions w..t. nodes v i nd h(v i ). We ll suh node v i pivte node of q ginst p. We lso nme, on some pth in q (fom oot to lef), the fist pivte node s tnsitionl node. To pove the ontpositive sttement of the neessy ondition in Theoem 2, given q i Q,p q i, we ould onstut tee t, suh tht p(t) holds while q i (t) is flse. And hene p(t) does not imply Q(t) = q 1 (t) q 2 (t) q n (t), nmely p is not ontined in Q. The tee t n e onstuted s follows: eple eh d-edge in p with two p-edges nd n dditionl distint lel z.

8 Fo instne, // n e tnsfomed into /z/. Hee lel z does not ppe in ny Σ qi (i.e. z Σ n i=1 Σ q i ), whee Σ qi is the lphet of q i. Sine Σ is infinite (when thee is no shem ville) nd Σ qi is finite (euse the nume of lels in quey is limited), this tnsfomtion is lwys possile. Afte the tnsfomtion, it is stightfowd tht the esult tee t onfoms to ptten p, nd thus p(t) is tue. Howeve, fo ny q i, we n show q i (t) is flse. The eson is: sine p q i, thee must e some tnsitionl node v i in q i, suh tht fo the tnsitionl node, we nnot find oesponding node f(v i ) in t defined y ny emedding f fom q i to t. Othewise, if suh emedding f existed, we ould otin twin homomophism h fom q i to p sed on f. Hee the twin homomophism h would hve the sme mpping funtion s emedding f, euse, in f, no nodes in q i n e mpped onto z-nodes (nodes with distint lel z) in t. Theefoe, oesponding node h(v i ) in p would exist fo the homomophism. This esult ontdits with the ssumption tht v i is tnsitionl node. Rell tht, tnsitionl node in q i ould not mp onto ny node in p y ny homomophism, s esult, q i Q, q i (t) is flse, i.e. Q(t) = q 1 (t) q 2 (t) q n (t) is flse. In ddition, p(t) is tue, hene p(t) Q(t). The ontpositive sttement of the neessy ondition is poved. The omplexity of testing ontinment etween one ptten p nd union of pttens Q = {q 1,q 2,,q n } is O( p n i=1 q i ), ounded y O(n p q mx ), whee q mx is mx{ q i }. This is n immedite esult fom tht finding homomophism fom ptten q i to p is of omplexity O( p q i ), whee p, q i e the size (nume of nodes) of p nd q i espetively. Howeve, Theoem 2 only holds in P {/,//,[]}, o lge suset ˆP {/,//,[], } mentioned in [15]. ˆP {/,//,[], } efes to n XPth quey suset futhe inluding wildds, ut with two dditionl estitions: (i) no wildd node is inident with d-edges(//) nd (ii) thee is no wildd lef node. The eson tht Theoem 2 holds fo limited quey suset lies in the following spets: (1) If thee e wildd nodes in the pttens, homomophism only seves s suffiient (ut not neessy) ondition to detemine ontinment etween two pttens. We will give n exmple nd devise sttegy in the next susetion to del with pttens in P {/,//,[], }. (2) Moeove, if thee is shem ville, the theoem does not neessily hold in P {/,//,[]} s well, euse lphet Σ eomes finite, nd thee my not lwys exist distint lel z to tnsfom n d-edge // into /z/, nd thus the uent poof is not suffiient. We will onside queies onfoming to shem in Setion Pttens in P {/,//,[], } We fist give simple exmple to show tht Theoem 2 is not tue fo suset P {/,//,[], }. See in Fig 2, p q 1 nd p q 2, ut it is ovious tht p is equivlent to Q = q 1 q 2, euse if is desendnt of, then eithe is diet hild of o is desendnt of s hild. And p = Q implies p Q. The exmple shows tht sevel pttens my e omined togethe to ontin tget ptten, though none of them ould solely ontin the tget. This osevtion mkes

9 the polem omplite in P {/,//,[], }, fo it is diffiult to know whih pttens should e omined togethe to ontin the tget. * p:./// q1:.// q2:.//*// Fig. 2. Continment with Wildd Node Fotuntely, tking dvntge of Lemm 3 in [8], the ontinment polem etween one single ptten p nd union of pttens Q == {q 1,q 2,,q n } n e edued to heking ontinment etween two single pttens s well. The two single pttens n e onstuted esily, s is shown in Fig. 3, whee in oth p nd q is lel in Σ, T 0 T Σ is tee suh tht fo ny q i, q i (T 0 ) is tue. This n e hieved y fusing the oots of q i (this is possile euse they she the sme oot lel ), nd epling ll wildds with n ity lel, nd ll d-edges with p-edges. It hs een poved tht p Q(Q = q 1 q 2 q n ), iff p q. Sine p,q P {/,//,[], } nd deiding p q is onp-omplete, the ontinment polem etween unions of pttens in P {/,//,[], } is onp-omplete. Despite we nnot ek the intinsi omplexity esult fo suset P {/,//,[], }, we mnge to onvet the polem into one tht we hve solving sttegy. T0 T0 n-1 P T0 n-1 q1 q2 n qn p' T0 q' Fig. 3. Constutions of Ptten p nd q One my elize tht sine P {/,//,[]} is suset of P {/,//,[], }, we n, without lose of genelity, use the onstution method ove, to hek whethe p q using homomophism tehnique in ode to detemine ontinment eltionship etween p nd Q fo suset P {/,//,[]}. This intodues nothe sttegy to solve the polem fo suset P {/,//,[]}. The osevtion is tue, ut the dwk of the ove method is tht it is less effiient thn the method implied y Theoem 2. We now illustte it y nlyzing the lgoithm omplexity. Fo ptten p, it ontins 2(n 1) nume of T 0 tees, eh of whih hs the size n i=1 q i (see how to onstut T 0 in the pevious pgph), nd thus p is p +2(n 1) n i=1 q i.

10 The size of q is esy to get s n i=1 q i. The lgoithm omplexity O( p q ) is O(( p + 2(n 1) n i=1 q i ) n i=1 q i ), ounded y O(n p q mx + 2(n 1)n 2 q 2 mx), lge thn O(n p q mx ) given in the lst setion. To onlude, if thee is no wildd node in the quey ptten, it is ette to ompe p with queies in Q one y one. 4 Continment with Shem Given shem G, if fo ny tee t onfoming to G, we hve p(t) q(t), then we sy p is ontined in q unde G, denoted s p G q. Shem povides mens to define o onstin XML dt. A ptten p not ontined in ptten q in genel, my e ontined in q fo tees onfoming to etin shem. We show simple exmple in Fig. 4, p 1 hs wildd node, nd p 2 hs n d-edge, they e not ontined in Q = q 1 q 2 in genel. But if shem G is ville, ll the queies should onfom to G. It is not hd to see p 1 G p 2 G Q, in ft p 1 = G p 2 = G Q. * p1 p2 q1 d q2 G Fig. 4. Continment with Shem Infomtion Shem infomtion is usully modelled s egul expessions o few nume of onstints. The woks [9, 10] show tht ontinment etween pttens in P {/,//,[],,DTD} is EXPTIME-omplete, nd some moe theoetil esults w..t. vious ptten susets n e found in [11]. Sine the ontinment polem is ledy diffiult fo two single pttens, it is unlikely to hve n effiient method to detemine ontinment etween unions of pttens in P {/,//,[],,DTD}. The im of ou wok is not to ek the poved EXPTIME-omplete uppeound fo two queies, no to povide ny ext omplexity esults fo unions of queies, ut to eexmine the polem fom nothe ngle nd to suggest sttegy to hek ontinment etween two single pttens o unions of pttens with shem infomtion. The ide is to popgte DTD onstints into queies so s to eliminte wildds nd desendnt edges. Consequently, the polem ould e onveted into ontinment etween unions of simplified queies in P {/,[]}. Then, fte hsing pttens in P {/,[]} with DTD onstints, we n pply Theoem 1 nd 2 to evlute the ontinment eltionship. In ou ppe, we model the shem s dieted gph G. (we don t onside disjuntions in the shem.) G is DAG mens the shem is not eusive, othewise G will hve iles. We will onside G s DAG fist in Setion 4.1, 4.2 nd 4.3 nd will disuss eusive shem in Setion 4.4. d

11 4.1 Eliminting Wildds With shem ville, wildd node n e epled y speifi lels in Σ, s long s the esult ptten onfoms to the given shem. A nive method is to pik n ity lel in Σ fo eh wildd node, nd then to veify if the lely speified quey omplies with shem G. This method equies to veify Σ k (whee k is the nume of wildd nodes in ptten) nume of queies, nd is oviously not effiient. Algoithm 1 Algoithm fo Eliminting Wildd Nodes 1: fo ll node v tht is not -node in ptten p do 2: L(v) {lel(v)}; 3: end fo 4: fo ll lef -node v in p do 5: L(v) Σ; 6: end fo 7: Mk ll lef nodes nd ll non -nodes; 8: epet 9: fo eh -node x in p whose hilden x 1, x 2,, x k e ll mked do 10: fo i = 1 to k do 11: S i φ; 12: fo eh β L(x i ) do 13: if ((x, x i ) is p-edge nd thee is some α L(x) suh tht (α, β) is n edge in G) o ((x, x i ) is n d-edge nd thee is some α L(x) suh tht thee is pth fom α to β in G) then 14: S i S i {α}; 15: end if 16: end fo 17: end fo 18: L(x) k i=1 Si; 19: Mk x; 20: end fo 21: until ll -nodes in p e mked 22: Unmk oot p nd ll non -nodes; 23: epet 24: fo eh -node x in p whose pent x p is unmked do 25: fo eh β L(x) do 26: if ((x p, x) is p-edge nd thee is some α L(x p) suh tht (α, β) is n edge in G) o ((x p, x) is n d-edge nd thee is some α L(x p) suh tht thee is pth fom α to β in G) then 27: Add (β, α) into P(x); 28: else 29: Remove β fom L(x); 30: end if 31: end fo 32: Unmk x; 33: end fo 34: until ll -nodes e unmked

12 We popose n impoved lgoithm shown in Algoithm 1. The si ide is to use existing stutul infomtion in the quey to void wild guesses. It is inspied y [16] in whih simil ide ws used to test the stisfiility of tee ptten unde shem G. Hee, in ou senio, we need to eod detiled lel eltionships (pent-hild o nesto-desendnt) fo djent node pis, euse these eltionships ould e futhe utilized to tnsfom one quey with wildds into union of queies without wildds. Algoithm 1 sns the wildd nodes in p twie: ottom-up (line 8-21) nd then top-down (line 23-34). The ottom-up phse lultes set of possile lels L(x) fo eh wildd node x, using infomtion out possile lels of its hilden. The top-down phse futhe efines the set L(x) using infomtion out the pent lel of x. The pent-hild nd nesto-desendnt eltionships e eoded s lel pis in P(x). Note tht in the lgoithm, we omit, fo evity, the step to hek if L(x) = φ fte line 18 nd 29 (L(x) = φ mens ptten p does not onfom to G), sine it is not diffiult to implement. The lgoithm uns in O( p Σ 2 ): lines 1-7 uns in O( p ); the ottom-up phse visits eh node in p t most twie, nd within the loop, lines n e done in O( Σ 2 ). And thus lines 8-21 un in O( p Σ 2 ). The top-down phse lso uns in O( p Σ 2 ). If thee is n index on shem G, p(α,β) o d(α,β) n e heked effiiently. 4.2 Eliminting d-edges Now we hve otined unions of queies without wildds. Howeve, Theoem 2 is still not suffiient to deide ontinment etween two sets of queies unde shem (eollet the exmple in Fig. 4). We need to eple ll the dedges with onete pths ompomising only p-edges, euse d-edges must e intepeted in speifi wys onstined y the shem. A nive method to expnd n d-edge (v 1,v 2 ), simil to eliminting wildd nodes, is to find ll the pths etween two lels lel(v 1 ) nd lel(v 2 ) in shem G, nd eple the d-edges with one of these onete pths. Oviously, thee my e mny wys to eple n d-edge, nd thus ptten onsisting d-edges will e tnsfomed into union of lge nume of pttens in P {/,[]}. Then with the follow-up tetment in Setion 4.3, one n detemine the ontinment eltionship fo unions of queies unde shem. To void geneting possily exponentil nume of pttens, ette solution is to wisely eple n d-edge (v 1,v 2 ) with sugph etween lel(v 1 ) nd lel(v 2 ) in G, denoted s G s (lel(v 1 ),lel(v 2 )). To define G s (lel(v 1 ),lel(v 2 )) fomlly, G s (lel(v 1 ),lel(v 2 )) = { node v v G v is ehle fom lel(v 1 ) lel(v 2 ) is ehle fom v}. As long s the given ptten onfoms to G, i.e. lel(v 2 ) is ehle fom lel(v 1 ) in G, sugph G s (lel(v 1 ),lel(v 2 )) will lwys exist, no mtte G hs iles o not. In ddition, to find G s (lel(v 1 ),lel(v 2 )) is not expensive. It inludes top-down tvese in G fom lel(v 1 ) to lel(v 2 ), nd ottom-up tvese fom lel(v 2 ) to lel(v 1 ). The ide is simil to Algoithm 1, nd hene we omit the detils.

13 4.3 Chsing Pttens in P{/, []} Now we hve wildds nd d-edges eliminted, nd ll the pttens tnsfomed into P {/,[]}. To edue the polem into one without shem, we hve the lst step to hse the pttens in P {/,[]} s muh s possile with siling onstints nd funtionl onstints [9]. When G is not eusive, the poess is not diffiult, sine the esult pttens (fte hsing) should e finite. The polem then onvets into heking ontinment fo unions of queies in P {/,[]} without shem. Theefte, we n pply Theoem 1 nd 2 to solve it. Note tht, fte expnding d-edges, ptten my eome DAG the thn igoous tee ptten in P {/,[]}. ut the hse poess is the sme exept tht we my not pply siling onstints t some node whose hild nodes e following o-semntis, euse these hild nodes e expnded fom n d-edge expessed s ltentive pths (o sugphs), mking siling onstints not stisfied on suh node. On the othe hnd, when homomophism is used to detet ontinment etween suh o-semnti pttens, finl step needs to e dded. Fo exmple, when we ondut mpping fom ptten p to q, we n dw the onlusion q p with two futhe onditions holding: (1) fo evey sugph hsed fom G s (lel(v 1 ),lel(v 2 )) in p, one of its sugph onneting v 1 nd v 2 must e mpped on to q; (2) fo evey two nodes v 1 nd v 2 with n d-edge in q, if v 2 is mpped, then evey v 2 s nesto (on ll ltentive sugphs) should e mpped y some node in p. 4.4 Reusive Shem One hllenge ises: if the shem is eusive, ptten n e hsed ontinuously without stop, nd /-pth (pth only onsisting of p-edges) my ontin ile epeted fo ny times. In suh ses, we llow the loop to ppe one in the hsed ptten to keep tk of the nodes in ile, nd we lso tg the loop stt node nd loop end node. Now we e le to ewite quey in P {/,//,[],,DTD} into union of finite nume of queies in P {/,[]}. Theoem 2 will then e suffiient to deide the ontinment. A ondition needs to e dded when to find homomophism fom ptten q to ptten p (p, q e in P {/,[]} with loop stt node nd loop end node tgged): if v 1 nd v 2 e the loop stt node nd loop end node in q, thee must exist ile in G with lels lel(h(v 1 )), lel(h(v 2 )) s stt nd end espetively. Hee, h(v 1 ) nd h(v 2 ) my not e loop stt nd end nodes in ptten p. Fig. 5 shows n exmple. p 0 nd q 0 e two queies involving d-edges. G is shem ontining ile. Afte expnding d-edges nd hsing with shem G fo p 0 nd q 0, we get pttens p nd q. In ptten q, // is expnded nd hsed into // with node v 1 lelled, node v 2 lelled s the loop stt nd loop end. Similly, // is expnded nd hsed into // in p. Consideing the esult pttens p nd q, thee is homomophism fom q to p, nd moeove, nodes h(v 1 ) nd h(v 2 ), the oesponding nodes in p of loop stt v 1 nd loop end v 2 in q, hve lels = lel(h(v 1 )) nd = lel(h(v 2 )) tht e stt nd end nodes of ile in G. Theefoe, ptten p is ontined in ptten q, nd thus the oiginl ptten p 0 is ontined in q 0.

14 Note tht the ondition does not equie h(v 1 ) nd h(v 2 ) e the loop stt nd loop end nodes in p. p0 h(v1) h(v2) (stt) (end) p v1 (stt) v2 (end) q Fig. 5. Expnding Edges unde Reusive Shem In the ove disussion, we ssume tht thee e no inteseted iles in G, i.e. the eusive loops hve no ovelps. This ssumption oviously simplifies the polem, nd it is still inteesting nd hllenging to investigte the ontinment polem of unions of pttens unde omplex eusive shem. q0 G 5 Disussions on Genel Tee Ptten Queies Diffeent fom XPth tee pttens, genel tee ptten queies my ontin moe thn one distinguished nodes. This my dd diffiulty to ontinment heking in some iumstne. In ft, it is due to multiple distinguished nodes tht ontinment etween genel tee pttens is not the sme s ontinment etween oolen pttens. We illustte the osevtion y fistly eviewing Poposition 1 in [8] nd then show when the poposition is not oet nd why. To estte it: let two genel tee pttens e p nd q, we n otin two oolen pttens p nd q y dding distint lels l 1,,l k to the k distinguished nodes in p nd q espetively, then we hve p q iff. p q. Howeve, one ould disove tht the poposition only holds fo output-ode-sensitive queies. In othe wods, the distinguished nodes should hve fixed ode so tht we n lel them in unique wy. See Fig. 6 fo n exmple. Ptten q hs two distinguished nodes nd. Suppose thee is no pedefined ode fo the distinguished nodes, to tnsfom q into oolen ptten, we hve two lelling shemes shown s q 1 nd q 2 espetively. Oviously, q 1 nd q 2 e not identil. Theefoe, in suh sitution, genel tee ptten quey should e tnsfomed into unions of oolen pttens, the thn single ptten. Hene if we hve k distinguished nodes, we will hve k! wys to lel them, esulting in k! oolen pttens to epesent genel tee ptten. This will signifintly omplite ontinment detetion if the nume of distinguished nodes is lge. Lukily, fo XPth queies, thee is only one distinguished node, so the oolen ptten evolved fom its oesponding XPth ptten is unique. And the onlusions we got in the ove setions e still oet. In some el pplitions, genel tee ptten queies indeed ognize the distinguished nodes in fixed ode, suh s tee ptten queies indued fom XQuey queies. But we should keep in mind

15 tht ontinment etween genel tee pttens nd oolen pttens e not lwys the sme. l1 l2 l1 q q1 q2 Fig. 6. Diffeent Leling Sheme fo Genel Tee Ptten Quey l2 6 Relted Wok Quey ontinment ws fist put fowd togethe with quey equivlene in ode to optimize quey evlution in eltionl ontext [1], whee ontinment polem is studied fo two queies ontining selet, pojet nd join opetos. Lte, ontinment of unions of queies is disussed in [6]. It povided suffiient nd neessy ondition showing tht ontinment etween unions of queies n e edued into ontinment etween nume of piwise queies. In [17], the uthos showed if eltions e modelled s multisets of tuples, the pevious suffiient nd neessy ondition holds only fo one type of lel system, while fo nothe type of lel system, the ontinment polem is undeidle. Unfotuntely, the estlished theoy fo eltionl queies nnot e pplied in XML ontext. The ontinment polem etween unions of XPth queies is still open, though fuitful esults hve een podued fo ontinment etween two single queies. In some pionee woks, the polem ws shown in PTIME fo XPth susets XP {/,[], }, XP {/,//,[]} nd XP {/,//, }, nd futhemoe poved to e onp-omplete fo XP {/,//,[], } in [8]. When shem is ville, the polem tuned out to e moe diffiult, euse dt tees e onstined oding to ptiul ptten, nd thus XPth queies with wildd nodes nd d-edges nnot e intepeted itily. Wood [9] nd Neven nd Shwentik [10] independently showed the ontinment etween two XPth queies in XP {/,//,[],,DTD} is deidle, in ft is EXPTIME-omplete. Neven nd Shwentik [10] lso disussed disjuntion nd viles in XPth. Moe theoetil esults with espet to vious XPth quey susets e summized in [11]. A ihe XPth fgment, XPth2.0, is eently exmined in [18]. 7 Conlusions nd Futue Wok In this ppe, we hve ddessed the ontinment polem etween unions of XPth queies. We showed tht the polem n e lwys edued into ontinment etween one quey nd union of queies. We lso poved tht, fo XPth

16 suset XP {/,//,[]}, the polem n e edued into heking ontinment etween two single queies, eh fom one union. Fo lge suset XP {/,//,[], }, we utilize n existing tehnique to develop n effetive sttegy to solve the polem. When shem is ville, we ould use the shem to eliminte wildd nodes nd expnd d-edges in the quey so tht ou developed theoem ould e pplied theefte to deide ontinment eltionship etween unions of queies unde shem infomtion. One dietion fo futue wok is to onside moe omplited eusive eltionships in shem, eg. two iles my hve intesetions. This is lwys diffiult polem, my esult in hsing pttens in P {/,[]} the hllenging. Aknowledgments. This wok ws suppoted y the Austlin Reseh Counil Disovey Pojet unde the gnt nume DP Refeenes 1. Aho, A.V., Sgiv, Y., Ullmn, J.D.: Equivlenes mong eltionl expessions. SIAM J. Comput. 8(2) (1979) Hlevy, A.Y.: Answeing queies using views: A suvey. VLDB J. 10(4) (2001) Gupt, A., Sgiv, Y., Ullmn, J.D., Widom, J.: Constint heking with ptil infomtion. In: PODS. (1994) Levy, A.Y., Sgiv, Y.: Queies independent of updtes. In: VLDB. (1993) Chnd, A.K., Melin, P.M.: Optiml implementtion of onjuntive queies in eltionl dt ses. In: STOC. (1977) Sgiv, Y., Ynnkkis, M.: Equivlenes mong eltionl expessions with the union nd diffeene opetos. J. ACM 27(4) (1980) Clk, J., DeRose, S.: XML pth lnguge (XPth) 1.0. In: W3C Reommendtion, (Noveme 1999) 8. Miklu, G., Suiu, D.: Continment nd equivlene fo fgment of XPth. J. ACM 51(1) (2004) Wood, P.T.: Continment fo XPth fgments unde DTD onstints. In: ICDT. (2003) Neven, F., Shwentik, T.: XPth ontinment in the pesene of disjuntion, DTDs, nd viles. In: ICDT. (2003) Shwentik, T.: Xpth quey ontinment. SIGMOD Re. 33(1) (2004) Wdle, P.: A foml semntis of pttens in xslt nd xpth. Mkup Lng. 2(2) (2000) Ame-Yhi, S., Cho, S., Lkshmnn, L.V.S., Sivstv, D.: Tee ptten quey minimiztion. The VLDB Jounl 11(4) (2002) Wng, J., Yu, J.X., Liu, C.: On tee ptten quey ewiting using views. In: WISE. (2007) Wng, J., Yu, J.X., Liu, C.: Contined ewitings of xpth queies using views evisited. In: WISE. (2008) Lkshmnn, L.V.S., Rmesh, G., Wng, H., Zho, Z.J.: On testing stisfiility of tee ptten queies. In: VLDB. (2004) Ionnidis, Y.E., Rmkishnn, R.: Continment of onjuntive queies: eyond eltions s sets. ACM Tns. Dtse Syst. 20(3) (1995) ten Cte, B., Lutz, C.: The omplexity of quey ontinment in expessive fgments of xpth 2.0. In: PODS. (2007) 73 82

Chapter 7. Kleene s Theorem. 7.1 Kleene s Theorem. The following theorem is the most important and fundamental result in the theory of FA s:

Chapter 7. Kleene s Theorem. 7.1 Kleene s Theorem. The following theorem is the most important and fundamental result in the theory of FA s: Chpte 7 Kleene s Theoem 7.1 Kleene s Theoem The following theoem is the most impotnt nd fundmentl esult in the theoy of FA s: Theoem 6 Any lnguge tht cn e defined y eithe egul expession, o finite utomt,

More information

The Area of a Triangle

The Area of a Triangle The e of Tingle tkhlid June 1, 015 1 Intodution In this tile we will e disussing the vious methods used fo detemining the e of tingle. Let [X] denote the e of X. Using se nd Height To stt off, the simplest

More information

Topic II.1: Frequent Subgraph Mining

Topic II.1: Frequent Subgraph Mining Topi II.1: Fequent Sugph Mining Disete Topis in Dt Mining Univesität des Slndes, Süken Winte Semeste 2012/13 T II.1-1 TII.1: Fequent Sugph Mining 1. Definitions nd Polems 1.1. Gph Isomophism 2. Apioi-Bsed

More information

10.3 The Quadratic Formula

10.3 The Quadratic Formula . Te Qudti Fomul We mentioned in te lst setion tt ompleting te sque n e used to solve ny qudti eqution. So we n use it to solve 0. We poeed s follows 0 0 Te lst line of tis we ll te qudti fomul. Te Qudti

More information

Andersen s Algorithm. CS 701 Final Exam (Reminder) Friday, December 12, 4:00 6:00 P.M., 1289 Computer Science.

Andersen s Algorithm. CS 701 Final Exam (Reminder) Friday, December 12, 4:00 6:00 P.M., 1289 Computer Science. CS 701 Finl Exm (Reminde) Fidy, Deeme 12, 4:00 6:00 P.M., 1289 Comute Siene. Andesen s Algoithm An lgoithm to uild oints-to gh fo C ogm is esented in: Pogm Anlysis nd Seiliztion fo the C ogmming Lnguge,

More information

Mathematical Reflections, Issue 5, INEQUALITIES ON RATIOS OF RADII OF TANGENT CIRCLES. Y.N. Aliyev

Mathematical Reflections, Issue 5, INEQUALITIES ON RATIOS OF RADII OF TANGENT CIRCLES. Y.N. Aliyev themtil efletions, Issue 5, 015 INEQULITIES ON TIOS OF DII OF TNGENT ILES YN liev stt Some inequlities involving tios of dii of intenll tngent iles whih inteset the given line in fied points e studied

More information

Week 8. Topic 2 Properties of Logarithms

Week 8. Topic 2 Properties of Logarithms Week 8 Topic 2 Popeties of Logithms 1 Week 8 Topic 2 Popeties of Logithms Intoduction Since the esult of ithm is n eponent, we hve mny popeties of ithms tht e elted to the popeties of eponents. They e

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

Prerna Tower, Road No 2, Contractors Area, Bistupur, Jamshedpur , Tel (0657) ,

Prerna Tower, Road No 2, Contractors Area, Bistupur, Jamshedpur , Tel (0657) , R Pen Towe Rod No Conttos Ae Bistupu Jmshedpu 8 Tel (67)89 www.penlsses.om IIT JEE themtis Ppe II PART III ATHEATICS SECTION I (Totl ks : ) (Single Coet Answe Type) This setion ontins 8 multiple hoie questions.

More information

Validating XML Documents in the Streaming Model with External Memory

Validating XML Documents in the Streaming Model with External Memory Vlidting XML Douments in the Steming Model with Extenl Memoy Chistin Kond LIAFA, Univ. Pis Dideot; Pis, Fne; nd Univ. Pis-Sud; Osy, Fne. kond@li.f Fédéi Mgniez LIAFA, Univ. Pis Dideot, CNRS; Pis, Fne.

More information

Edinburgh Research Explorer

Edinburgh Research Explorer Einugh Reseh Exploe Chteizing XML Twig Queies with Exmples Cittion fo pulishe vesion: Stwoko, S & Wiezoek, P 2015, Chteizing XML Twig Queies with Exmples. in 18th Intentionl Confeene on Dtse Theoy, ICDT

More information

2-Way Finite Automata Radboud University, Nijmegen. Writer: Serena Rietbergen, s Supervisor: Herman Geuvers

2-Way Finite Automata Radboud University, Nijmegen. Writer: Serena Rietbergen, s Supervisor: Herman Geuvers 2-Wy Finite Automt Rdoud Univesity, Nijmegen Wite: Seen Rietegen, s4182804 Supeviso: Hemn Geuves Acdemic Ye 2017-2018 Contents 1 Intoduction 3 2 One wy utomt, deteministic nd non-deteministic 5 3 Ovehed

More information

( ) D x ( s) if r s (3) ( ) (6) ( r) = d dr D x

( ) D x ( s) if r s (3) ( ) (6) ( r) = d dr D x SIO 22B, Rudnick dpted fom Dvis III. Single vile sttistics The next few lectues e intended s eview of fundmentl sttistics. The gol is to hve us ll speking the sme lnguge s we move to moe dvnced topics.

More information

Math 4318 : Real Analysis II Mid-Term Exam 1 14 February 2013

Math 4318 : Real Analysis II Mid-Term Exam 1 14 February 2013 Mth 4318 : Rel Anlysis II Mid-Tem Exm 1 14 Febuy 2013 Nme: Definitions: Tue/Flse: Poofs: 1. 2. 3. 4. 5. 6. Totl: Definitions nd Sttements of Theoems 1. (2 points) Fo function f(x) defined on (, b) nd fo

More information

10 Statistical Distributions Solutions

10 Statistical Distributions Solutions Communictions Engineeing MSc - Peliminy Reding 1 Sttisticl Distiutions Solutions 1) Pove tht the vince of unifom distiution with minimum vlue nd mximum vlue ( is ) 1. The vince is the men of the sques

More information

Module 4: Moral Hazard - Linear Contracts

Module 4: Moral Hazard - Linear Contracts Module 4: Mol Hzd - Line Contts Infomtion Eonomis (E 55) Geoge Geogidis A pinipl employs n gent. Timing:. The pinipl o es line ontt of the fom w (q) = + q. is the sly, is the bonus te.. The gent hooses

More information

Data Structures. Element Uniqueness Problem. Hash Tables. Example. Hash Tables. Dana Shapira. 19 x 1. ) h(x 4. ) h(x 2. ) h(x 3. h(x 1. x 4. x 2.

Data Structures. Element Uniqueness Problem. Hash Tables. Example. Hash Tables. Dana Shapira. 19 x 1. ) h(x 4. ) h(x 2. ) h(x 3. h(x 1. x 4. x 2. Element Uniqueness Poblem Dt Stuctues Let x,..., xn < m Detemine whethe thee exist i j such tht x i =x j Sot Algoithm Bucket Sot Dn Shpi Hsh Tbles fo (i=;i

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

FI 2201 Electromagnetism

FI 2201 Electromagnetism FI 1 Electomgnetism Alexnde A. Isknd, Ph.D. Physics of Mgnetism nd Photonics Resech Goup Electosttics ELECTRIC PTENTIALS 1 Recll tht we e inteested to clculte the electic field of some chge distiution.

More information

Michael Rotkowitz 1,2

Michael Rotkowitz 1,2 Novembe 23, 2006 edited Line Contolles e Unifomly Optiml fo the Witsenhusen Counteexmple Michel Rotkowitz 1,2 IEEE Confeence on Decision nd Contol, 2006 Abstct In 1968, Witsenhusen intoduced his celebted

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

Incremental Maintenance of XML Structural Indexes

Incremental Maintenance of XML Structural Indexes Inementl Mintenne of XML Stutul Indexes Ke Yi Ho He Ion Stnoi Jun Yng Dept. Compute Siene Duke Univesity yike@s.duke.edu Dept. Compute Siene Duke Univesity hohe@s.duke.edu IBMT.J.Wtson Reseh Cente is@us.ibm.om

More information

Fourier-Bessel Expansions with Arbitrary Radial Boundaries

Fourier-Bessel Expansions with Arbitrary Radial Boundaries Applied Mthemtics,,, - doi:./m.. Pulished Online My (http://www.scirp.og/jounl/m) Astct Fouie-Bessel Expnsions with Aity Rdil Boundies Muhmmd A. Mushef P. O. Box, Jeddh, Sudi Ai E-mil: mmushef@yhoo.co.uk

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

A Study of Some Integral Problems Using Maple

A Study of Some Integral Problems Using Maple Mthemtis n Sttistis (): -, 0 DOI: 0.89/ms.0.000 http://www.hpub.og A Stuy of Some Integl Poblems Ug Mple Chii-Huei Yu Deptment of Mngement n Infomtion, Nn Jeon Univesity of Siene n Tehnology, Tinn City,

More information

Data Compression LZ77. Jens Müller Universität Stuttgart

Data Compression LZ77. Jens Müller Universität Stuttgart Dt Compession LZ77 Jens Mülle Univesität Stuttgt 2008-11-25 Outline Intoution Piniple of itiony methos LZ77 Sliing winow Exmples Optimiztion Pefomne ompison Applitions/Ptents Jens Mülle- IPVS Univesität

More information

Analysis of Variance for Multiple Factors

Analysis of Variance for Multiple Factors Multiple Fto ANOVA Notes Pge wo Fto Anlsis Anlsis of Vine fo Multiple Ftos Conside two ftos (tetments) A nd B with A done t levels nd B done t levels. Within given tetment omintion of A nd B levels, leled

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

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

Language Processors F29LP2, Lecture 5

Language Processors F29LP2, Lecture 5 Lnguge Pocessos F29LP2, Lectue 5 Jmie Gy Feuy 2, 2014 1 / 1 Nondeteministic Finite Automt (NFA) NFA genelise deteministic finite utomt (DFA). They llow sevel (0, 1, o moe thn 1) outgoing tnsitions with

More information

Deterministic simulation of a NFA with k symbol lookahead

Deterministic simulation of a NFA with k symbol lookahead Deteministic simultion of NFA with k symbol lookhed SOFSEM 7 Bl Rvikum, Clifoni Stte Univesity (joint wok with Nic Snten, Univesity of Wteloo) Oveview Definitions: DFA, NFA nd lookhed DFA Motivtion: utomted

More information

About Some Inequalities for Isotonic Linear Functionals and Applications

About Some Inequalities for Isotonic Linear Functionals and Applications Applied Mthemticl Sciences Vol. 8 04 no. 79 8909-899 HIKARI Ltd www.m-hiki.com http://dx.doi.og/0.988/ms.04.40858 Aout Some Inequlities fo Isotonic Line Functionls nd Applictions Loedn Ciudiu Deptment

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

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

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

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

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

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

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

Previously. Extensions to backstepping controller designs. Tracking using backstepping Suppose we consider the general system

Previously. Extensions to backstepping controller designs. Tracking using backstepping Suppose we consider the general system 436-459 Advnced contol nd utomtion Extensions to bckstepping contolle designs Tcking Obseves (nonline dmping) Peviously Lst lectue we looked t designing nonline contolles using the bckstepping technique

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

1 Nondeterministic Finite Automata

1 Nondeterministic Finite Automata 1 Nondeterministic Finite Automt Suppose in life, whenever you hd choice, you could try oth possiilities nd live your life. At the end, you would go ck nd choose the one tht worked out the est. Then you

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

Lecture 14. Protocols. Key Distribution Center (KDC) or Trusted Third Party (TTP) KDC generates R1

Lecture 14. Protocols. Key Distribution Center (KDC) or Trusted Third Party (TTP) KDC generates R1 Lectue 14 Potocols 1 Key Distiution Cente (KDC) o Tusted Thid Pty (TTP) KDC genetes R1 lice otins R1 Msg1: K () Msg2: K (R1 K (R1) ) Msg3: K (R1) o otins R1 nd knows to use s key fo communicting with lice

More information

Influence of the Magnetic Field in the Solar Interior on the Differential Rotation

Influence of the Magnetic Field in the Solar Interior on the Differential Rotation Influene of the gneti Fiel in the Sol Inteio on the Diffeentil ottion Lin-Sen Li * Deptment of Physis Nothest Noml Univesity Chnghun Chin * Coesponing utho: Lin-Sen Li Deptment of Physis Nothest Noml Univesity

More information

EECE 260 Electrical Circuits Prof. Mark Fowler

EECE 260 Electrical Circuits Prof. Mark Fowler EECE 60 Electicl Cicuits Pof. Mk Fowle Complex Numbe Review /6 Complex Numbes Complex numbes ise s oots of polynomils. Definition of imginy # nd some esulting popeties: ( ( )( ) )( ) Recll tht the solution

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

3.1 Magnetic Fields. Oersted and Ampere

3.1 Magnetic Fields. Oersted and Ampere 3.1 Mgnetic Fields Oested nd Ampee The definition of mgnetic induction, B Fields of smll loop (dipole) Mgnetic fields in mtte: ) feomgnetism ) mgnetiztion, (M ) c) mgnetic susceptiility, m d) mgnetic field,

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

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

INTEGRATION. 1 Integrals of Complex Valued functions of a REAL variable

INTEGRATION. 1 Integrals of Complex Valued functions of a REAL variable INTEGRATION NOTE: These notes re supposed to supplement Chpter 4 of the online textbook. 1 Integrls of Complex Vlued funtions of REAL vrible If I is n intervl in R (for exmple I = [, b] or I = (, b)) nd

More information

Logic Synthesis and Verification

Logic Synthesis and Verification Logi Synthesis nd Verifition SOPs nd Inompletely Speified Funtions Jie-Hong Rolnd Jing 江介宏 Deprtment of Eletril Engineering Ntionl Tiwn University Fll 2010 Reding: Logi Synthesis in Nutshell Setion 2 most

More information

On Natural Partial Orders of IC-Abundant Semigroups

On Natural Partial Orders of IC-Abundant Semigroups Intentionl Jounl of Mthemtics nd Computtionl Science Vol. No. 05 pp. 5-9 http://www.publicsciencefmewok.og/jounl/ijmcs On Ntul Ptil Odes of IC-Abundnt Semigoups Chunhu Li Bogen Xu School of Science Est

More information

Optimization. x = 22 corresponds to local maximum by second derivative test

Optimization. x = 22 corresponds to local maximum by second derivative test Optimiztion Lectue 17 discussed the exteme vlues of functions. This lectue will pply the lesson fom Lectue 17 to wod poblems. In this section, it is impotnt to emembe we e in Clculus I nd e deling one-vible

More information

Discrete Model Parametrization

Discrete Model Parametrization Poceedings of Intentionl cientific Confeence of FME ession 4: Automtion Contol nd Applied Infomtics Ppe 9 Discete Model Pmetition NOKIEVIČ, Pet Doc,Ing,Cc Deptment of Contol ystems nd Instumenttion, Fculty

More information

Electronic Supplementary Material

Electronic Supplementary Material Electonic Supplementy Mteil On the coevolution of socil esponsiveness nd behvioul consistency Mx Wolf, G Snde vn Doon & Fnz J Weissing Poc R Soc B 78, 440-448; 0 Bsic set-up of the model Conside the model

More information

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.)

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.) CS 373, Spring 29. Solutions to Mock midterm (sed on first midterm in CS 273, Fll 28.) Prolem : Short nswer (8 points) The nswers to these prolems should e short nd not complicted. () If n NF M ccepts

More information

π,π is the angle FROM a! TO b

π,π is the angle FROM a! TO b Mth 151: 1.2 The Dot Poduct We hve scled vectos (o, multiplied vectos y el nume clled scl) nd dded vectos (in ectngul component fom). Cn we multiply vectos togethe? The nswe is YES! In fct, thee e two

More information

Illustrating the space-time coordinates of the events associated with the apparent and the actual position of a light source

Illustrating the space-time coordinates of the events associated with the apparent and the actual position of a light source Illustting the spe-time oointes of the events ssoite with the ppent n the tul position of light soue Benh Rothenstein ), Stefn Popesu ) n Geoge J. Spi 3) ) Politehni Univesity of Timiso, Physis Deptment,

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

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

Symmetrical Components 1

Symmetrical Components 1 Symmetril Components. Introdution These notes should e red together with Setion. of your text. When performing stedy-stte nlysis of high voltge trnsmission systems, we mke use of the per-phse equivlent

More information

ITI Introduction to Computing II

ITI Introduction to Computing II ITI 1121. Intoduction to Computing II Mcel Tucotte School of Electicl Engineeing nd Compute Science Abstct dt type: Stck Stck-bsed lgoithms Vesion of Febuy 2, 2013 Abstct These lectue notes e ment to be

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

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

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

Review of Mathematical Concepts

Review of Mathematical Concepts ENEE 322: Signls nd Systems view of Mthemticl Concepts This hndout contins ief eview of mthemticl concepts which e vitlly impotnt to ENEE 322: Signls nd Systems. Since this mteil is coveed in vious couses

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

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

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

Physics 505 Fall 2005 Midterm Solutions. This midterm is a two hour open book, open notes exam. Do all three problems.

Physics 505 Fall 2005 Midterm Solutions. This midterm is a two hour open book, open notes exam. Do all three problems. Physics 55 Fll 5 Midtem Solutions This midtem is two hou open ook, open notes exm. Do ll thee polems. [35 pts] 1. A ectngul ox hs sides of lengths, nd c z x c [1] ) Fo the Diichlet polem in the inteio

More information

r r E x w, y w, z w, (1) Where c is the speed of light in vacuum.

r r E x w, y w, z w, (1) Where c is the speed of light in vacuum. ISSN: 77-754 ISO 900:008 Cetified Intentionl Jonl of Engineeing nd Innovtive Tehnology (IJEIT) olme, Isse 0, Apil 04 The Replement of the Potentils s Conseene of the Limittions Set by the Lw of the Self

More information

Engr354: Digital Logic Circuits

Engr354: Digital Logic Circuits Engr354: Digitl Logi Ciruits Chpter 4: Logi Optimiztion Curtis Nelson Logi Optimiztion In hpter 4 you will lern out: Synthesis of logi funtions; Anlysis of logi iruits; Tehniques for deriving minimum-ost

More information

Probabilistic Retrieval

Probabilistic Retrieval CS 630 Lectue 4: 02/07/2006 Lectue: Lillin Lee Scibes: Pete Bbinski, Dvid Lin Pobbilistic Retievl I. Nïve Beginnings. Motivtions b. Flse Stt : A Pobbilistic Model without Vition? II. Fomultion. Tems nd

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

Simple Schemas for Unordered XML

Simple Schemas for Unordered XML Simple Schems fo Unodeed XML Iovk Bonev Univesity of Lille & INRIA, Fnce iovk.onev@ini.f Rdu Ciucnu Univesity of Lille & INRIA, Fnce du.ciucnu@ini.f Słwek Stwoko Univesity of Lille & INRIA, Fnce slwomi.stwoko@ini.f

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

Chapter 2 Finite Automata

Chapter 2 Finite Automata Chpter 2 Finite Automt 28 2.1 Introduction Finite utomt: first model of the notion of effective procedure. (They lso hve mny other pplictions). The concept of finite utomton cn e derived y exmining wht

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

Farey Fractions. Rickard Fernström. U.U.D.M. Project Report 2017:24. Department of Mathematics Uppsala University

Farey Fractions. Rickard Fernström. U.U.D.M. Project Report 2017:24. Department of Mathematics Uppsala University U.U.D.M. Project Report 07:4 Frey Frctions Rickrd Fernström Exmensrete i mtemtik, 5 hp Hledre: Andres Strömergsson Exmintor: Jörgen Östensson Juni 07 Deprtment of Mthemtics Uppsl University Frey Frctions

More information

Homework 3 Solutions

Homework 3 Solutions CS 341: Foundtions of Computer Science II Prof. Mrvin Nkym Homework 3 Solutions 1. Give NFAs with the specified numer of sttes recognizing ech of the following lnguges. In ll cses, the lphet is Σ = {,1}.

More information

Chapter Seven Notes N P U1C7

Chapter Seven Notes N P U1C7 Chpte Seven Notes N P UC7 Nme Peiod Setion 7.: Angles nd Thei Mesue In fling, hitetue, nd multitude of othe fields, ngles e used. An ngle is two diffeent s tht hve the sme initil (o stting) point. The

More information

CHENG Chun Chor Litwin The Hong Kong Institute of Education

CHENG Chun Chor Litwin The Hong Kong Institute of Education PE-hing Mi terntionl onferene IV: novtion of Mthemtis Tehing nd Lerning through Lesson Study- onnetion etween ssessment nd Sujet Mtter HENG hun hor Litwin The Hong Kong stitute of Edution Report on using

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

U>, and is negative. Electric Potential Energy

U>, and is negative. Electric Potential Energy Electic Potentil Enegy Think of gvittionl potentil enegy. When the lock is moved veticlly up ginst gvity, the gvittionl foce does negtive wok (you do positive wok), nd the potentil enegy (U) inceses. When

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

Section 4.4. Green s Theorem

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

More information

CHAPTER 7 Applications of Integration

CHAPTER 7 Applications of Integration CHAPTER 7 Applitions of Integtion Setion 7. Ae of Region Between Two Cuves.......... Setion 7. Volume: The Disk Method................. Setion 7. Volume: The Shell Method................ Setion 7. A Length

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

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

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

This immediately suggests an inverse-square law for a "piece" of current along the line.

This immediately suggests an inverse-square law for a piece of current along the line. Electomgnetic Theoy (EMT) Pof Rui, UNC Asheville, doctophys on YouTube Chpte T Notes The iot-svt Lw T nvese-sque Lw fo Mgnetism Compe the mgnitude of the electic field t distnce wy fom n infinite line

More information

XPath Rewriting Using Multiple Views. Author. Published. Journal Title DOI. Copyright Statement. Downloaded from. Griffith Research Online

XPath Rewriting Using Multiple Views. Author. Published. Journal Title DOI. Copyright Statement. Downloaded from. Griffith Research Online XPth Rewriting Using Multiple Views Author Wng, Junhu, Yu, Jeffre Pulished 2008 Journl Title Leture Notes in Computer siene DOI https://doi.org/10.1007/978-3-540-85654-2_43 Copright Sttement 2008 Springer

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

Class Summary. be functions and f( D) , we define the composition of f with g, denoted g f by

Class Summary. be functions and f( D) , we define the composition of f with g, denoted g f by Clss Summy.5 Eponentil Functions.6 Invese Functions nd Logithms A function f is ule tht ssigns to ech element D ectly one element, clled f( ), in. Fo emple : function not function Given functions f, g:

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

The Formulas of Vector Calculus John Cullinan

The Formulas of Vector Calculus John Cullinan The Fomuls of Vecto lculus John ullinn Anlytic Geomety A vecto v is n n-tuple of el numbes: v = (v 1,..., v n ). Given two vectos v, w n, ddition nd multipliction with scl t e defined by Hee is bief list

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

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

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