Hash-based Subgraph Query Processing Method for Graph-structured XML Documents

Size: px
Start display at page:

Download "Hash-based Subgraph Query Processing Method for Graph-structured XML Documents"

Transcription

1 Hsh-bse Subgrph Query Proessing Metho for Grph-struture XML Douments Hongzhi Wng Hrbin Institute of Teh. Jinzhong Li Hrbin Institute of Teh. Jizhou Luo Hrbin Institute of Teh. Hong Go Hrbin Institute of Teh. ABSTRACT When XML ouments re moele s grphs, mny reserh issues rise. In prtiulr, there re mny new hllenges in query proessing on grph-struture XML ouments beuse tritionl query proessing tehniques for tree-struture XML ouments nnot be iretly pplie. This pper stuies the problem of struturl queries on grphstruture XML ouments. A hsh-bse struturl join lgorithm, HGJoin, is first propose to hnle rehbility queries on grph-struture XML ouments. Then, it is extene to the lgorithms to proess struturl queries in form of biprtite grphs. Finlly, bse on these lgorithms, strtegy to proess subgrph queries in form of generl DAGs is propose. Anlysis n experiments show tht ll the lgorithms hve high performne. It is notble tht ll the lgorithms bove n be slightly moifie to proess struturl queries in form of generl grphs. 1. INTRODUCTION XML hs beome the e fto stnr for informtion representtion n exhnge over the Internet. In mny pplitions, n XML oument nees to be moele s grph more nturlly thn tree. For exmple, the XML oument of the reltionship of publitions n uthors pts to grph struture sine one pper my hve more thn one uthor n one uthor my hve more thn one pper. A frgment of suh informtion is shown in Fig 1. Obviously, the grph-struture XML oument n be represente in tree struture by upliting the element with more thn one inoming pths. But it will result in reunny. If the informtion in Fig 1 is represente with tree-struture XML oument, the element uthor will Support by the Key Progrm of the Ntionl Nturl Siene Fountion of Chin uner Grnt No ; the Ntionl Grn Funmentl Reserh 973 Progrm of Chin uner Grnt No.2006CB303000; the Ntionl Nturl Siene Fountion of Chin uner Grnt No n No Permission to mke igitl or hr opies of portions of this work for personl or lssroom use is grnte without fee provie tht opies Permission re not me to opy or istribute without fee for ll or profit prt of or this ommeril mteril is vntge grnte provie n tht tht the opies opies ber re not this me notie or n istribute the full for ittion iret ommeril on the first vntge, pge. the Copyright VLDB opyright for omponents notie n of the this title work of the owne publition by others n thn its te VLDB pper, n notie is given tht opying is by permission of the Very Lrge Dt Enowment must be honore. Bse Enowment. To opy otherwise, or to republish, to post on servers Abstrting with reit is permitte. To opy otherwise, to republish, or to reistribute to lists, requires fee n/or speil permission from the to post on servers or to reistribute to lists requires prior speifi publisher, ACM. permission n/or fee. Request permission to republish from: VLDB 08, August 24-30, 2008, Aukln, New Zeln Publitions Dept., ACM, In. Fx +1 (212) or Copyright 2008 VLDB Enowment, ACM /00/00. permissions@m.org. be uplite. onferene ICDE proeeings proeeing title t 1 bib rtile journls journl nme volume TKDE 17(2)title t 2 uthor rtile nme n 1 emil Figure 1: An Exmple of Grph-struture XML Among the queries on grph-struture XML ouments, the subgrph queries re wiely use. A subgrph query on grph-struture XML ouments (subgrph query for short) is to retrieve the subgrphs mthing the grph in the query. For instne, subgrph query on the grphstruture XML oument in Fig 1 is to retrieve the nmes of uthors with publitions both in proeeings n journls. Another subgrph query on the XML oument in Fig 1 is to retrieve the nme of the journl with n uthor who publishe ppers in the onferene ICDE. Suh queries re iffiult to represent with tritionl tree-struture queries. It is big hllenge to proess subgrph queries effiiently. All the four kins of tritionl methos of proessing struturl queries on tree-struture XML ouments, struturl join bse methos[2], holisti Twigjoin bse methos[3], struturl inex bse methos[14, 12] n subsequene mthing bse methos[23, 19], nnot be use to proess subgrph queries. The struturl join bse methos n the holisti Twigjoin bse methos both epen on the lbelling sheme speilly for tree-struture XML ouments. The enoing sheme of the grph-struture XML ouments is totlly ifferent from tht of the tree-struture XML ouments. As result, they nnot be use to proess subgrph queries. The struturl inex bse methos of proessing struturl queries on tree-struture XML ouments require tht the size of the inex must be very smll. However, the inies of the grph-struture XML ouments re very lrge in generl. Thus, the struturl inex bse methos e 1 PVLDB '08, August 23-28, 2008, Aukln, New Zeln Copyright 2008 VLDB Enowment, ACM /08/08 478

2 nnot be use to proess the subgrph queries effiiently. The subsequene mthing bse methos require tht the tree-struture XML ouments n the queries on the ouments must be onverte into sequenes before query proessing. It is iffiult to overt grph-struture XML oument into sequene so tht it is not esy to proess subgrph queries using the subsequene mthing bse methos. A few methos hs been propose to proess some kins of subgrph queries on XML t in form of some speil kins of grphs. A metho, lle StkD, is presente in to [4] to proess twig queries on DAG-struture t. It is moifition of holisti TwigJoin bse metho. However, StkD fouses on tree-struture twig queries n is not suitble for queries in form of omplex grphs. Aitionlly, when there re mny eges in the grph, StkD shoul mintin very lrge t struture. In this se, it nees very huge min memory spe, whih is not prtil n it beomes ineffiient. Another moifition of the holisti TwigJoin-bse metho is presente in [27] to proess twig queries on grph-struture t. However, it only works on kin of speil grphs, i.e. st-plnr grphs [11], but not suitble for other grphs. In summry, urrent methos nnot proess generl subgrph queries effetively or effiiently. To proess generl subgrph queries effetively n effiiently, new metho bse on lbeling sheme [17] is propose in this pper. The resons of hoosing the lbeling sheme [17] re s following. It ontins only intervls n ientifitions (is). All intervls n is re numeril vlues so tht there is n orer on them, whih mkes query proessing esier. It is omptible with the jent lbeling sheme so tht it n be use to proess queries with both rehbility n jent eges. We will isuss this in etils in Setion 6. By slightly moifition, the lbeling sheme n be use to proess grphs with irles. Our propose metho is esigne step by step. First, hsh-bse join lgorithm, HGJoin, is propose for proessing rehbility queries on grph-struture XML. Seon, the HGJoin lgorithm is extene to the IT-HGJoin n T-HGJoin lgorithms to proess the rehbility queries with multiple nestors or multiple esennts. Then, Bi- HGJoin, the ombintion of IT-HGJoin n T-HGJoin, is esigne to proess queries in form of omplete biprtite grphs. Finlly, bse on ll the bove lgorithms, the metho for proessing subgrph queries in form of DAGs is propose. Without losing generlity, this pper will fous on subgrph queries in form of DAG with only rehbility reltionships on eges for the onveniene of isussion. With slight moifition, the metho n be use to proess ny generl subgrph queries. The ontributions of this pper re s follows: Bse on the rehbility sheme in [17], fmily of hsh-bse join lgorithms is presente s bsi opertors of subgrph query proessing. For struturl queries in form of generl grphs, n effiient metho is presente. The bsi ie is to split query into biprtite subqueries eh of whih n be proesse by some HGJoin lgorithm. In orer to fin effetive splitting strtegy, ost-bse query optimiztion strtegy is presente with some elertion strtegies. The extensive experimentl results show tht the propose lgorithms outperform the existing lgorithms n our query splitting strtegy is effetive n effiient. The rest of this pper is orgnize s follows: Setion 2 introues some bkgroun knowlege. Setion 3 presents the bsi version of HGJoin lgorithm for rehbility query with one nestor n one esennt. Setion 4 illustrte the lgorithms for queries in form of biprtite grphs. The strtegy of proessing queries in form of generl DAGs is propose in Setion 5. The extensions of our metho for the generl subgrph queries re isusse in Setion 6. Experimentl results n nlysis re shown in Setion 7. Relte work is isusse in Setion 8 n Setion 9 onlues this pper. 2. PRELIMINARIES In this setion, the bkgroun n nottions use in this pper re presente. 2.1 Grph-struture XML Dt n Queries With IDREF-ID in n XML oument representing referene reltionship, n XML oument n be onsiere s tgge irete grph. Elements n ttributes in n XML oument is mppe to the noes in grph. Direte nesting reltionships n referene reltionships in n XML oument is mppe to the eges in grph. For exmple, n XML oument is shown in Fig 2() n its grph struture is shown in Fig 2(b). In grph-struture XML oument, struturl queries re efine bse on the struturl reltionship between noes. In the grph struture G of n XML oument, two noes n b stisfy jent reltionship if n only if n ege from to b exists in G; two noes n b stisfy rehbility reltionship if n only if pth from to b exists in G. A rehbility query is to retrieve ll pirs of noes (n,n ) in G where n hs tg, n hs tg n n n n stisfy rehbilty reltionship in G. For exmple, the result of rehbility e in the grph in Fig 2(b) inlues (,e 1), (, e 2), (,e 3). Ajent queries n be efine similrly. The ombintion of multiple rehbility or jent reltionships forms subgrph queries. A subgrph query is tgge irete grph Q={V, E, tg, rel}, where V is the noe set of Q; E is the ege set of Q; the funtion tg : V T AG is the tg funtion (T AG is the set of tgs); the funtion rel : E AXIS shows the struturl reltionships between the noes in the query (AXIS is the set of reltionships between noes; P C AXIS represents jent reltionship; AD AXIS represents rehbility reltionship). The irete grph (V,E) is lle the query grph. If b E n rel(b) = P C, then b is lle n jent ege. If b E n rel(b) = AD, then b is lle rehbility ege. In V, the noes without inoming eges re lle soures n the noes without outgoing 479

3 < i="1 > < b i="b1" > < i="1" f="f1"/ > < i="2" > < f i="f1"/ > </> < i="3" f="f1" ="1"/ > < /b > < i="1" > < e i="e1" ="1" ="2" ="3"/ > < e i="e2" ="1" ="2" ="3"/ > < e i="e3" ="1" ="2" ="3"/ > < / > < / > () An XML Frgment b1 8, [0,8] 1 9, [0,9] (b) The Grph of Fig 2() 1 7, [0,7] noes to generte the post-orer of eh noe. Note tht uring the trversl, when noe n C generte from strongly onnete omponent C G is esse, if the post orer of lst esse noe is p, then p + 1, p + 2,, p + V re ssigne to n C (where V C is the set of noes in C). Then, eh noe n T is ssigne number i n n intervl [x,i], where i is the post orer of n; x is the smllest post orer of esennts of n in T. All the noes in D re trverse in the reverse topologil orer. When noe n is rehe, the intervl sets of n s hilren in D re opie to tht of n. Intersete intervls in the intervl set of n re merge , [2,2] 1,[0,1] 3 3, [0,7] e1 4, [0,7] e2 5, [0,7] e3 6, [0,7] [0,0] n C, its intervl set is tht of n C; its i is one of the is of n C. Eh noe in C hs ifferent i. 0, [0,0] f1 () The Rehbility oe of Fig 2() Figure 2: An Exmple of Grph-struture XML () f (b) 3 1 f1 () 1 Figure 3: Exmple Queries eges re lle sinks. For simpliity, subgrph query is represente s Q = (V, E). The result of subgrph query Q = {V Q, E Q} on grph G = {V G, E G} is R G,Q = {g = (V g, E g) V g V G n bijetive mp f g : V g V Q n injetive mp p g : V g V G stisfying n V g, tg(n) = tg(f g(n)) = tg(p g(n)); e = (n 1, n 2) E g, p g(n 1), p g(n 2) stisfy the reltionship rel(f(n 1), f(n 2))}. For exmple, Fig 3(b) shows subgrph query, in whih single line represents n jent ege n ouble line represents rehbility ege. The result of suh query on the grph shown in Fig 2(b) is the grph in Fig 3(). e () 2.2 Rehbility Lbelling Sheme The lbelling sheme for grph-struture XML oument is to juge the rehbility reltionship between ny two noes in n XML oument without retrieving other informtion, suh tht subgrph queries n be proesse effiiently. The lbelling sheme use in this pper is n extension [24] of tht in [17]. The rehbility lbelling sheme n be generte in the following steps: Eh strongly onnete omponent in G is ontrte to one noe to onvert G to DAG D. An optimum tree overing T of the DAG D is foun. A epth-first trversl from the root of T esses ll When suh steps re finishe, eh noe n in G is ssigne number n.i n set of intervls I n. In [24], it is prove tht noe rehes noe b if n only if b.i belongs to some intervl of I. For exmple, the lbelling sheme of the grph in Fig 2(b) is shown in Fig 2(). Sine the i of f1 is in the intervl [0,0] of 2, it n be juge tht 2 n f1 stisfy rehbility reltionship. In orer to retrieve pirs of noes stisfying rehbility query bse on rehbility lbelling sheme, the following storge strtegy is pplie. For eh tg t T AG of n XML oument, two lists, t.alist n t.dlist, re store. N t is the set of noes with tg t. t.dlist is the list of the elements in set {n.i n N t} sorte inrementlly. t.alist is the elements in set {(vl, n.i) n N t, [x, y] I n, vl = x or vl = y} sorte by the first item. From the thir step of enoing, for eh noe n, I n hs no overlpping intervls. Therefore, tg(n).alist hs the following property whih is the bse of the lgorithms in the following setions. Proposition 1. For noe n, ll the elements in tg(n). Alist with the seon item equls to n.i form n orere list (vl i1, n.i), (vl i2, n.i),, (vl ik, n.i). In suh n orere list, l s u r v k o not exist suh tht both [vl is, vl ir ] n [vl iu, vl iv ] belong to I n. Aitionlly, in orer to juge whether ll the intervls of one noe hs been proesse, for eh noe n, tuple (null, i) is inserte next to the lst tuple of tg(n).alist with the seon item equls to n.i, where null represents empty. To proess the queries with preites n buil-in funtions, s the preproessing step, the lbelling shemes re filtere with the preites n buil-in funtions before the proessing of subgrph query. In orer to nlyze the omplexity of lgorithms in this pper, N = mx t T AG {n V g tg(n) = t}. The set of the seon items of ll elements in Alist is ID Alist. Obviously, for eh Alist n Dlist, ID Alist N, Dlist N. 3. HASH-BASED JOIN ALGORITHM FOR GRAPH-STRUCTURED XML (HGJOIN) In this setion, hsh-bse join lgorithm is presente to proess rehbility queries in form of on grphstruture XML t bse on the rehbility lbelling sheme. 480

4 Algorithm 1 HGJoin =Alist.begin =Dlist.begin while Alist.en AND Dlist.en o if vl i then if i / H then H.insert(i ) =.nextnoe else if vl < i then H.elete(i ) =.nextnoe else for i H o ppen (i, i ) to OutputList =.nextnoe; else for i H o ppen (i, i ) to OutputList =.nextnoe; b 11 (b 11 ) ( 21 ) ( 21 ) (b 31 ) 22 ( 31 ) 11 ( 12 ) 31 ( 11 ) ( 12 ) b 12 (b 21 ) 22 e e 1 e ( 21 ) Figure 4: Exmple t Bse on the storge strtegy, suppose Alist = tg().alist n Dlist = tg().dlist. Intuitively, for ny i j Dlist, if two tuples in Alist, (x, i i) n (y,i i), stisfy x i i y n [x, y] is n intervl of the lbelling sheme of some noe, then (i i, i j) belongs to the result set. Proposition 1 ssures tht the query n be proesse with snning Alist n Dlist lterntely only one. During the sn, hsh tble H is use to store is of noes stisfying the onition tht for eh noe n, the strt point x of some intervl in I n hs been snne while orresponing en point y is not met. Proportion 1 shows tht before suh y is met, none of the strt points of other intervls in I n will be met. When orresponing y is met, n.i will be remove from H. The step is shown s following. At first, ursors n re ssigne to Alist n Dlist, respetively. During the sn of Alist, if the urrent tuple (vl,i ) stisfies vl i n i H, it mens tht the en position of some intervl is met n suh n intervl is impossible to ontin i. Sine the elements in Dlist is in inrementl orer, n suh n intervl is impossible to ontin other unsnne elements in Dlist. So i is remove from H n is upte. If vl = i n i H or vl > i, it mens tht i is ontine in some intervl with vl s the en point. In suh n instne, prtil results re outputte n the sn is swithe to Dlist. During the sn of Dlist, if i < vl, or vl = i n i H, then bse on the properties of elements in H, for i H, (i, i ) is outputte n is upte; if i > vl, or vl = i but i / H, it mens tht vl is possibly the strt position of n intervl ontining i n the sn is swithe to Alist. The pseuo-oe of HGJoin is shown in Algorithm (b 41 ) ( 32 ) ( 31 ) e 3 ( 41 ) (b 51 ) b e () b (b) Figure 5: Query Exmples Exmple 1. In Fig 4, we give the intuition of Alist n Dlist, where, b,, n e re tgs. The elements with tg re 1, 2, 3 n 4. Eh intervl of i is represente by line segment n enote by ij. The strt point of the line segment is the strt position of the intervl n the en point of the line segment is the en position of the intervl. The position of element i in the intervl is represente by irle. For exmple, 1.i is in the en position of intervl 12 n 2.i is in the mile of the intervl 21; other symbols hve the sme menings. For rehblity query b, orresponing Alist hs n orere list with first items sorte in form of (the en point) of ij, i.i n Dlist={b 1.i, b 3.i, b 2.i}. After Alist n Dlist snne with HGJoin lgorithm, the outputte result is ( 1.i, b 1.i), ( 1.i, b 3.i), ( 2.i, b 3.i), ( 1.i, b 2.i) in orer. Complexity Anlysis The time ost of HGJoin lgorithm hs three prts, the ost of opertions of H, the ost of isk I/O n the ost of result outputting. The time ost is Cost = Alist (ost 2 I + ost D) + result ost out + ( Alist entry A + Dlist entry D ) ost B B I/O with eh item orresponing to eh prt, where the ost of insertion n eletion of H one re ost I n ost D, respetively, entry A n entry D re the sizes of eh tuple in Alist n Dlist, respetively, B is the size of isk blok, ost I/O is the ost of essing eh isk blok n ost out is the ost of outputting one tuple. The spe ost of HGJoin lgorithm is the spe ost of the hsh tble H. Therefore, the spe omplexity is the lrgest size of H uring the lgorithm. In the worst se, ll the elements in ID Alist re in H. Therefore, the spe ost of HGJoin is no more thn N. 4. EXTENSIONS OF HGJOIN HGJoin n be extene to proess some speil ses of subgrph queries. For subgrph query Q=(V, E, tg, rel), if V = V s {}, / Vs, n E = {(, ) V s}, then Q is n IT-query. If V = V s, / V s, n E = {(, ) V s}, then Q is T-query. In this setion, we will present two extensions of HGJoin lgorithm, IT-HGJoin n T-HGJoin to proess IT-query n T-query, respetively. 4.1 Algorithm for IT-queries In this setion, HGJoin is extene to proess IT-queries. For n IT-query Q, suppose its soures re 1,, k n its sink is. Let Alist i = tg( i).alist, Dlist = tg().dlist, i 1, 2,, k. Similr s HGJoin lgorithm, IT-HGJoin lgorithm sns Alist 1,, Alist k n Dlist lterntively one n obtins the results of n IT-query. During the sn, hsh tble H i is ssigne to eh Alist i, the funtion of whih is the sme s H in HGJoin lgorithm. In the lgorithm, ursors l 1, l 2,, l k point to the urrent snne position of Alist 1, Alist 2,, Alist k, respetively. A ursor l points to the urrent snne position of Dlist. The lgo- 481

5 Algorithm 2 IT-HGJoin for i = 1 to k o o i = Alist i.begin = Dlist.begin while i Alist i.en o for i=1 to k o while vl i < i o if i i H i then H i.insert(i i ) else H i.elete(i i ) i = i.next while vl i = vl AND i i / H i o H i.insert(i i ) i = i.next if none of the hsh tbles re not empty then OutputList = OutputT uples(h 1,, H k, i ) for eh i o while vl i = vl AND i i H i o H i.elete(i i ) i = i.next =.next rithm sns Alist 1, Alist 2,, Alist k in turn. i li s in pirs (vl li, i li ) stisfying vl li i l n i li / H i re inserte to H i n i li s in pirs (vl li, i li ) stisfying vl li i l n i li H i re remove from H i. After Alist k is proesse, the sn is swithe to Dlist. Suh proessing is similr s the Dlist sn in HGJoin lgorithm. At tht time, the noe orresponing to eh i in ny H i is n nestor of the noe orresponing to i l. If ny of H i is not empty, it mens tht with its nestors, the noe with i l mthes the esenent in the query. Suh subgrphs re outputte s prtil results. Sine eh tuple in H 1 H 2 H k orrespons to eh group of ifferent nestors of i l, ll the tuples in H 1 H 2 H k {i l } shoul be outputte. In the step of result output, funtion OutputTuples(H 1,, H k, i ) is invoke. After suh prtil results re outputte, the sn is swithe to Alist 1,, Alist k. IT-HGJoin lgorithm is shown in Algorithm 2. In the implementtion of IT-HGJoin lgorithm, the size of H 1 H 2 H k my be very lrge. In orer to store prtil results effiiently, lteny proessing strtegy is pplie. Tht is, H 1,, H k n orresponing i l re store respetively. The Crtesin proution is not performe until suh prtil result will be use. Complexities Anlysis Obviously, the worst spe omplexity is kn. Similr s the nlysis of HGJoin, the time omplexity Cost = Alist i (ost 2 I + ost O) + result ost out + ( Alist i entry A ) ost I/O + Dlist entry D B B 4.2 Algorithm for T-queries In this setion, n lgorithm for proessing T-queries is presente. In T-query Q, the soure is n sinks re 1,, k. Let Alist=tg().Alist, Dlist i=tg( i).dlist, i {1, 2,, k}. Sine in Q, the soure hs multiples esennts 1, k n in the rehbility lbelling sheme, ll the noes with tgs tg( 1), tg( k ) o not belong to the sme intervl of noe with tg(), in orer to obtin the result of Q, ll results of rehbility query i where i {1,, k} shoul be obtine n the join opertion is performe on suh intermeite results. HGJoin n be pplie to proess rehbility queries i. For the interest of effiieny, the k wy sns of HGJoin lgorithm re ombine. Tht is, uring the sns on Alist, Dlist 1,, Dlist k re proesse together. Suh tht ll intermeite results n be obtine by snning ll lists only one. In orer to mke join opertion effiient, hsh tble IHT i is ssigne to eh Dlist i. When buket in some IHT i is full, the intermeite results in suh buket re sorte bse on the first items (the i vlue of the noe mthing ) n written out to the isk. When the intermeite results re obtine, ll tuples in form of (i, i 1) IHT 1,, (i, i k )IHT k re joine to generte tuple, (i, i 1,, i k ), the prtil result of ITquery. Obviously, the ost of join opertion inreses fst with IHT i. In orer to reue the ost of join, the size of IHT i shoul be erese uring join. The strtegy in T-Join lgorithm is tht uring the sn of Alist, when the en sign (null,i) (see Setion 2.2) is met, it mens tht the following steps of the sn will not generte intermeite result in form of (i, ). Therefore, the join opertion n be performe on urrent IHT 1,,IHT k to generte ll results in form of (i, i 1,, i k ). Then the tuples with form (i, ) re elete from IHT 1,,IHT k n orresponing isk bloks re merge. Even though the bove strtegy n minimize the size of IHT i uring join opertion, frequent join opertions will mke n lgorithm ineffiient. Aitionlly, fter eh join opertion, the number of isk bloks to be merge is very limite. In orer to mke it more effiient, the join lteny strtegy is pplie in T-HGJoin lgorithm. Tht is, uring T-HGJoin lgorithm, n nestor tble A with fixe size is mintine. During the sn of Alist, when en sign (null,i) is met, i is inserte to A. When A is full or the sn of Alist is finishe, the join opertion is performe on urrent IHT 1,, IHT k to generte prtil query results with form (i,,, ) where i is the i of ny element in A. Then intermeite results with form (i, ) re elete n for eh buket in ny IHT i, mergble isk bloks re merge. In orer to reue the spe ost of prtil results storge, the lteny proessing strtegy similr s IT-HGJoin n lso be pplie. Exmple 2. The proessing of the T-query in Fig 5(b) on the t in Fig 4 is onsiere. For esy isussion, suppose tht eh buket n only ontin two tuples n eh IHT uses hsh funtion hsh(x)=x mo 2. It mens tht eh IHT hs only two bukets. The size of nestor tble A is 2. When T-HGJoin lgorithm esses tuple (null, 1.i), generte intermeite results re shown in Fig 6(). 1.i is inserte to A. At tht time, A is not full, so the join opertion is not performe. When the tuple (null, 3.i) is snne, the intermeite results re shown in Fig 6(b). 3.i is inserte to A n A is full, so the join opertion is performe on the intermeite results with only 1 n 3 n results ( 1, b 1, 2, 2), ( 1, b 2, 2, 2) n ( 1, b 3, 2, 2) re generte. After join, ll intermeite results in IHTs relte to 1 n 3 re elete. Current intermeite result is shown s Fig 6(). Complexities Anlysis The time ost of T-HGJoin inlues 4 prts, the ost of opertions on H, the isk I/O ost of essing Alist n ll Dlists, the ost of proessing intermeite results n the ost of outputting finl results. In the worst se, sine eh element in Alist is the nestor of ny element in eh Dlist i, IHT i N 2. Therefore, the worst time ost of T-HGJoin is Cost = Alist (ost 2 I + ost O)+( Alist entry A + Dlist i entry D ) ost B B I/O +(k N 2 482

6 Memory -b bukets 1 b 1 1 b 3 2 b 3 - bukets bukets Memory Disk -b bukets - bukets - bukets 3 b 4 2 b b 2 2 b b 1 1 b 3 Memory Disk IHT b IHT IHT 2 b b () (b) () Figure 6: Intermeite Results in ifferent Steps of Exmple 2 ost I +2 k ( entry IHT N 2 n B b ) ost I/O +[( entry IHT N 2 B n b 1) + ( N 2 n b ) k ost join] N) + result F ost out, eh item of whih orrespons the ost of eh prt. The ost nlysis of the former two n lst prts is similr s tht of HGJoin. In the thir item, ost join is the ost of generting one output tuple. The min memory ost of T-HGJoin lgorithm inlues the spe for the hsh tble H uring the sn of Alist n min memory use to store intermeite results in IHT i. With the symbols isusse bove, the min memory spe ost of T-HGJoin is N + k n b B in the worst se. 4.3 Algorithm for Biprtite Queries In this setion, the proessing lgorithm for biprtite subgrph queries is presente. At first, the lgorithm for the biprtite subgrph queries in speil se tht ll esennts shre the sme nestor (CBi for brief) is presente n then tht of biprtite subgrph queries is presente. Suppose tht the soures of CBi query re 1,, m n the soures re 1,, n. Let Alist i=tg( i).alist, Dlist j=tg( j).dlist, i {1,, m}, j {1,, n}. In the lgorithm, ursors l 1,, l m points to the urrent snne position of Alist 1,, Alist m, respetively. t 1,, t n points to the urrent snne positions of Dlist 1,, Dlist n, respetively. Similr s IT-HGJoin, the lgorithm ssigns hsh tble H i for eh soure i. Similr s T-HGJoin, the lgorithm ssigns hsh tble IHT j for the intermeite results orresponing to eh sink j. Bi-HGJoin lgorithm inlues two lterntive steps. In the first step, similr s IT-HGJoin, the lgorithm sns Alist 1,, Alist m in turn n inserts i li in the pir (vl li, i li ) stisfying vl li min(i tj ) (1 j n) n i li / H i to H i. When Alist m is proesse, the lgorithm swithes to proess the Dlist j with the smllest i tj. If the hsh tbles H 1,,H m is not empty, eh tuple (h 1,, h m, i tj ) H 1 H m {i tj } is inserte to the buket with hsh vlue hsh(h 1,,, h m) of IHT j. The seon step is similr s the join of intermeite results in T-HGJoin. When in eh Alist i, the en sign (null, h i) of h i is met, where 1 i m, the ombintion of nestor (h 1,, h m) is inserte into the nestor tble A. When A is full or ll sns on Alists hve been finishe, for eh ombintion (h 1,, h m) in A, the bukets with hsh vlue hsh(h 1,, h m) in IHT 1,, IHT n re joine to generte prtil query result with form (h 1,, h m, i 1,, i n). Then orresponing intermeite results re elete n isk bloks in suh bukets re merge. When the join opertion is finishe, the first step resumes. The bove steps re repete until ll elements in ny Alist i hve been snne. Suh lgorithm nnot proess generl biprtite subgrph b e () f b e f g (b) b e f () f g () Figure 7: An Exmple for Complex Biprtite Query queries. Sine sinks my hve ifferent soures, it is iffiult to fin hsh funtion to ssure effetive exeution of join opertion. Intuitively, suh problem n be proesse with following steps. Bse on the ost moel presente in Setion 5.1, query is split to some CBi subqueries. Then Bi-HGJoin is invoke to proess CBi subqueries to obtin intermeite results. At lst, intermeite results re joine together to obtin finl query results. For exmple, the biprtite subgrph query shown in Fig 7(b) n be split to CBi subqueries in Fig 7() n Fig 7(). When intermeite results re obtine, the equl join is performe on f elements to obtin finl results. 5. DAG SUBGRAPH QUERY EVALUATION In this setion, we present hsh-bse evlution strtegy for struturl queries in form of DAGs. The iret proessing of generl DAG subgrph query requires not only lrge min memory spe but lso lrge isk spe. The effiieny is ffete. Hene the strtegy presente in this setion oes not proess generl subgrph queries iretly but lso splits DAG subgrph query to some CBi-queries. Eh CBi subquery is proesse to obtin intermeite results. Then, join opertions re exeute to obtin finl results. Suh join is performe with sort-merge lgorithms. For exmple, to proess the query in Fig 8(), it is split to the subquerires: q 11 in Fig 8(b), q 12 in Fig 8() n rehbility query e. Then lbelling shemes with tgs tg(b) n tg() re filtere with intermeite results of q 11. Then subquery q 12 is proesse on filtere lbelling shemes to obtin intermeite results. The rehbility query is proesse on filtere t to obtin intermeite results. At lst, the join opertion is performe on suh three groups of intermeite results to obtin finl results. Obviously, the key of the bove strtegy is how to split the query n onstrut the query pln. A query pln n be moelle s DAG D=(V, E), where eh noe in V represents n opertion (possible opertions inlues HGJoin, IT-HGJoin, T-HGJoin n Bi-HGJoin, Filter n sort-merge opertions). The results of the opertion in rrow til is the input of opertion in rrow he. For exmple, in Fig 8(), T HGJoin {(,b),(,)} represents tht 483

7 b () e b (b) q 11 b e () q 12 Bi-HGJoin {(,b), (,)} Filter b IT-HGJoin{(b,),(,)} () Filter HGJoin(,e) Figure 8: Exmple of Query Pln T-HGJoin lgorithm is performe on the lbelling shemes with tg tg(), tg(b) n tb(). F ilter represents tht the lbelling shemes with tg tg() re filtere to eliminte the lbelling shemes whih re not in the intermeite results of T HGJoin {(,b),(,)}. Other opertions hve the sme menings. At first, we esign the ost moel. Then query pln genertion lgorithm n query optimiztion elerte strtegy re presente. 5.1 The Cost Moel The query pln of subgrph query hs multiple hoies. In orer to generte n effiient query pln, query optimizer is require. As the bse of the query optimiztion, the ost moel is presente in this setion. For eh opertion in the query pln, its ost hs two prts, exeution time n require min memory. The former represents the exeution effiieny of query pln n the ltter is the min memory spe whih is require uring query pln exeution. The estimtion of the ost of sort-merge join opertion hs been stuie extensively n the time ost of HGJoin n IT-HGJoin n be estimte s the time omplexity in Setion 3 n Setion 4.1, respetively. This setion fouses on the ost moel of T-HGJoin n Bi-HGJoin. The ost moel of T-HGJoin is similr s time nlysis in Setion 4.2. With intermeite size estimtion tehniques[15, 16], for ID Alist n i {1, 2,, k}, P,i, the number of tuples relte to in the intermeite results of join opertion of Alist n Dlist i, n be estimte. Aitionlly, suh tehnique n be use to estimte S,i, the number of isk bloks of the intermeite results relte to in IHT i t the time when (null,) is met in Alist. Therefore, intermeite results relte to n be estimte s S = i 1,..,k S,i. When intermeite results relte to re joine, S,1,,S,k times of isk bloks istribute in IHT 1,, IHT k re require to be esse with Nest loop metho, respetively. In suh step, the number of isk bloks to be esse is estimte s NL = i 1,..,k S,i. Bse on suh estimtions, the time ost of T-HGJoin is estimte s Cost = Alist (ost 2 I +ost O)+( Alist entry A + B Dlisti entry D ) ost B I/O +ost I k i=1 seletivity(a, Di)+ 2 ID Alist S ost I/O + A NL + resultf ostout, where sel(a, D i) is the result number of join on A n D i. The estimtion of Bi-HGJoin is similr s T-HGJoin. The number of intermeite result genertion with the join on Alist 1,, Alist m n Dlist is enote by sel(a 1,, A m, D i). The number of intermeite results relte to the ombintion of noes 1,, m( i ID Alisti is enote by S 1, m. The number of isk bloks for joining intermeite results with 1,, m is enote by NL 1,, m. The estimtion of these prmeters is similr s those of T- HGJoin. The time of Bi-HGJoin opertion n be estimte b (e) s Cost = Alist i (ost 2 I + ost O) + ( Alist entry A + B Dlisti entry D ) ost B I/O +ost I n i=1 sel(a1,, Am, Di)+ 2 i A i S 1, m ost I/O + i A ji NL 1,, m + result F ost out. The min memory require by n opertion inlues fixe min memory n lterble min memory. The fixe min memory is the buffer for the intermeite result. The size of suh prt equls to fixe vlue fixe mm. The lterble prt is the min memory of the hsh tbles orresponing to Alists uring query proessing. The size of suh prt is liner with the mximum number of nestors of esennts uring query proessing. nestor represents the number of nestors in Alist(s) of Dlist. entry H is the size of t element in hsh tble H. The spe ost of the opertion is ost mm = fixe mm + mx Dlist ( nestor ) entry H. 5.2 Algorithms for Query Pln Genertion In this setion, the proess of query exeution is represente by stte grph n then optiml query pln is generte s the shortest pth genertion lgorithm on the stte grph. Suppose (V Q,E Q) is the query grph of subgrph query Q (m= E Q ). The irete grph G = (V G, E G ) is the stte grph of the subgrph query Q, where V G = {g g = (V g, E g) n E g E Q}. There is irete ege from g V G to g V G if n only if subquery Q gg = (V gg, E gg ) belonging to one of rehbility query, T-query, IT-query n CBi-query exists with E g E gg = E g. The noe in G representing the query grph (V Q, E Q) is lle the strt stte of G, enote by g 0. The noe (V Q, φ) in G is lle en stte of G, enote by g m. Other elements in V G re lle intermeite sttes of G. Obviously, in G, ny pth g 0=g i1,g i2,, g ik = g m (k m) from g 0 to g m orrespons to proessing ourse of the query Q. Suh ourse proesses subqueries Q gij g ij+1 1 j< k) step by step. The query pln esribing suh ourse is generte with following steps. For the first ege in the pth g i1 g i2, n opertion O E (where E = E gi1 g i2 ) is onstrute bse on the opertion type O {HGJoin, T HGJoin, IT HGJoin, Bi HGJoin} of Q gi1 g i2. It is suppose tht the query pln for g 0=g i1,g i2,,g ij hs been generte n the olletion of sets of intermeite results is enote by B j. The ege g ij g ij+1 in the pth is onsiere. At first, bse on the opertion type O {HGJoin, T HGJoin, IT HGJoin, Bi HGJoin} of Q gij g ij+1, n opertion O E is e to the query pln (where E = E gi1 gi 2 ). Then eh noe V gi1 g i2 is onsiere. If some set of intermeite results exists in B j, then n opertion F ilter is e to the query pln. An ege from orresponing intermeite result set is e to F ilter n nother ege from F ilter is e to O E. Then intermeite results set of O E is e to B j. At tht time, if there is mergble intermeite results set in B j, then n opertion sort-merge is e to the query pln n n ege from orresponing intermeite is e result set to new e sort-merge opertion. At the sme time, the unmerge intermeite results set is elete from B j n the merge intermeite result set is inserte. The bove steps re repete until no intermeite result sets n be merge. Let B j+1 = B j. The query pln of other eges is generte until ll the eges in the pth re onsiere. During the genertion of query pln for the pth g 0 = 484

8 g i1,g i2,,g ik =g m, group of opertions re e to the query pln for g ij g ij+1. wg ij g ij+1, the sum of time ost of suh opertion group, n the mximum spe ost w re onsiere. If w is not lrger thn vilble min memory spe, then let the weight of ege g ij g ij+1 equl to w gij gi j+1. Otherwise, suh group of opertions is infesible n the weight of ege g ij g ij+1 equls to +. In suh wy, ny ege gg in G is unique, sine whtever the pth to g is, the olletion of sets of intermeite results sets re the sme. Therefore, the opertion e to gg is the sme. From the bove isussion, it n be seen tht pth from g 0 to g m in the weighte query grph G =(V G,E G ) orrespons to query pln with the weighte length s the ost of the query pln. Therefore, the genertion of the optiml query pln is to fin the shortest pth from g 0 to g m in G. Suh problem n be solve with Dijkstr lgorithm [1]. For the interests of spe, etils of the lgorithm is omitte. From the onstrution of G, it n be known tht V G = 2 m. Sine the time omplexity of Dijkstr lgorithm with n noes in the grph is O(n 2 ), the time omplexity for the genertion of the shortest pth with Dijkstr lgorithm is O(2 2m ). Note tht m is the number of eges in the query grph, for the grph with smller grphs suh lgorithm is effiient. 5.3 Query Optimiztion Aelertion In setion 5.2, when the size of G is lrge, both the time n spe omplexity of optiml query pln genertion with Dijkstr lgorithm will be very lrge. In this setion, some elertion rules re presente. In the following isussion, the weighte length of the urrent shortest pth from g 0 to g is enote by w g with initil vlue +. One g is rehe in the lgorithm, w g is upte. Sine Dijkstr lgorithm uses Best-first expning strtegy, when g is hosen to expen, the shortest pth from g 0 to g is obtine. Bse on suh property, the following rules n be obtine. The former n hlt the lgorithm to reue the run time. The ltter will elete the sttes impossibly belonging to the shortest pth to reue the spe ost. Rule 1 In the Dijkstr lgorithm, if the selete stte g equls to g m or w g w gm, then the urrent shortest pth from g 0 to g m is outputte n the lgorithm hlts. Rule 2 In the Dijkstr lgorithm, if the selete stte is g n eh outgoing ege gg of g stisfies w g + w gg > w g (w gg is the weight of the ege gg ), then g is elete from the t struture of the Dijkstr lgorithm. Proposition 2. Rule 1 n Rule 2 will not ffet the result of query optimiztion. Intuitively, the time ost of exeuting omplex opertion iretly is often smller thn the sum of the time ost of the series of simple opertion split from suh opertion. For exmple, CBi-subquery n be split to some T-subqueries or IT-subqueries, but the sum of the run time of these subqueries is often lrger thn the run time of exeution of CBi iretly. Therefore, in the Dijkstr lgorithm, the sttes with ll esennts expne n be neglete to elerte query optimiztion. This is Rule 3. Rule 3 For urrent stte g n gg E G in Dijkstr lgorithm, if some esennt stte of g hs been inserte into the t struture, then the expning of g will not be performe. For hil stte g of g, the seletivity of g is efine s the seletivity of the opertions orresponing to the ege gg. When the urrent stte g hosen to expn with Dijkstr lgorithm hs multiple hilren sttes, only the hilren with higher seletivities re hosen. So tht query optimiztion will be elerte. Then we hve the following rule. Rule 4 For eh expnsion stte g in Dijkstr lgorithm, ll the hilren of g re sorte by the seletivities. When the expnsion is performe for C times or ll the hilren hve been proesse, the expnsion of g is finishe. Even though Rule 3 n Rule 4 will result in non-optiml query pln. These two rules n reue the time omplexity of query optimiztion effetively. Proposition 3. With Rule 3 n Rule 4, the omplexity of Dijkstr lgorithm is O(C 2 m ) in the worst se. 6. DISCUSSIONS In this setion, we present the isussions bout two vritions to mke our query proessing metho to support subgrph queries in form of generl grphs. One is how to mke the metho to support subgrph query in form of grphs with irles. The other is how to mke the metho to support subgrph queries with jent reltionships. 6.1 Evlute Queries with Cirles In this setion, we present strtegy to pt the fmily of HGJoin to support subgrph queries with irles. Suh strtegy is bse on the feture tht ll rehbility lbelling sheme of the noes in the sme strongly onnete omponent(scc for brief) shre the sme intervl sets. The bsi ie is to ientify ll the SCCs in the noes in the grph relte to the query with lbelling shemes. An i is ssigne to eh SCC n suh i is lso ssigne to the noes belong to suh SCC. All eges in the SCC in the query re elete. Eh seprte prt of the query is proesse iniviully. Then the results of these prts re joine together with the i of SCC bse on the noes orresponing to the query noes in the sme SCC. 6.2 Evlute Queries with Ajent Eges Subgrph queries with jent eges n be proesse in the lgorithms similr to the fmily of HGJoin. An jent lbelling shem is ssigne to eh noe. The genertion of jent lbelling sheme is tht for eh noe with posti i, intervl [i,i] is ssigne to eh of its prents. The benefit of suh sheme is tht the jugement of jent reltionship is sme s tht of rehbility lbelling sheme so tht the proessing tehniques for subgrphs with only rehbility reltionships n be pplie to evlute struturl queries with jent eges. If query noe n s n nestor hs both rehbility n jent outgoing eges, n shoul be split to two query noes with only rehbility n jent outgoing eges, respetively. It is beuse ifferent intervls re use to juge rehbility n jent reltionships. Consiering only outgoing eges is beuse the jugements of rehbility n jent reltionship use the sme postis. When the query proessing metho is pplie, for the query noe with rehbility outgoing eges, intervls in rehbility sheme re use, while for query noe with jent outgoing eges, intervls in jent sheme re use. The lgorithm is sme s the orresponing one in the fmily of HGJoin. 485

9 Tble 1: Sttistis of the XMrk Dtsets ftor Size(M) #Noes(K) #Eges(K) Num(M) Tble 2: The Qulity of Query Pln Query OPT MAX MIN AVG XMQC XMQC EXPERIMENTAL EVALUATION In this setion, we present the results n nlysis of prt of our extensive experiments on the lgorithms in this pper. 7.1 Experimentl Setup Experiments were run on Pentium 3GHz with 512M memory. We implemente ll our lgorithms in this pper. The tset we teste is the XMrk benhmrk [20]. It n be moele s grph with omplite shem n irles. Douments re generte with ftors 0.1 to 2.5. Their prmeters re shown in Tble 1, where Num is the number of numbers in the lbelling sheme in the storge. In orer to evlute the lgorithms on grphs in vrious forms, we lso use syntheti t generte with 2 prmeters: the number of noes with eh tg (noe number for brief) n n the probbility between noes with two ifferent tgs(ege probbility for brief) p. The t set generte in this wy is lle the rnom tset. All the grphs in the rnom tset hve 8 tgs in orer {A, B, C, D, E, F, G, H}. The grphs in the rnom tset my be DAGs or generl grph (GG for brief). For GG, the probbility between eh pir of noes with ny tg is p. For DAG, only the probbility of n existing ege from noe with smller tg to noe with lrger tg is p but the probbility of the eges in inverte iretion is 0. We use run time s the mesure of lgorithms (RT for brief). For queries on XMrk, we hoose two queries for eh lgorithm, one ontins ll the noes not in the irle with smller seletivity, the other one ontins some noes in the irle with lrger seletivity. The queries for HGJoin re XMQS1:text emph n XMQS2:person bol. Queries for IT-HGJoin n T-HGJoin re in Fig 9(), Fig 9(b) n Fig 9(), Fig 9(), respetively. For the omprison with the lgorithm in [4], we lso esign omplex twig queries XMQW1 n XMQW2 shown in Fig 9() n Fig 9(). In orer to stuy the performne of query optimiztion eeply, we esign two omplex struture queries XMQC1 n XMQC2 in Fig 9(i) n Fig 9(j), respetively. Sine Bi-HGJoin lgorithm is the ombintion of IT-HGJoin n T-HGJoin n its fetures re represente by the experiments of these two lgorithms, ue to spe limittion, the experimentl results speilly for Bi-HGJoin re not shown. In orer to mke query grphs ler, without onfusion, in the query grphs we use rrows to represent AD reltionships. Some of these queries re from rel instnes while some of them re syntheti. For exmple, XMQS1 represents the query for retrieving the text n the emph prt belonging to it n XMQT1 is to retrieve the text with ll emph, bol n keywors in it. For queries on the rnom tset, sine the seletivity is minly etermine by ege probbility, we hoose one query for eh lgorithm. The query for HGJoin is RQS: A E. Queries for IT-HGJoin n T-HGJoin re in Fig 9(e) n Fig 9(f). Twig query n omplex query re RQW n RQC, shown in Fig 9(k) n Fig 9(l). Sine the query proessing methos for the queries in form of irle or with jent reltionships re the extensions of tht for DAG queries, the fetures of these lgorithms re similr. Due to spe limittion, the experimentl results of suh queries re not shown in this pper. 7.2 Comprisons For omprison, we implemente stkd lgorithm in [4]. The omprison is performe on 10M XMrk t n rnom XML oument in form of DAG n generl grph with 4096 noes n ege probbility of 0.1, 0.8, 0.4, representing sprse eges, ense eges n the ensity of ege between those two instnes. Note tht in suh se, the ege probbilities 0.1, 0.4 n 0.8 orrespon to the rtio of the numbers of eges n the numbers of noes of 250, 922 n The results re shown in Fig 10 From the results, it n be seen tht the effiieny of our lgorithm outperforms StkD signifintly, espeilly when the ensity of eges is lrge. For rnom grphs with high ege ensity, the ifferene is the most signifint. It hs two resons. The first is tht when the ege of grph is ense, one intervl my be shre by mny noes; our metho n proess sme intervls of noes with sme tg together while StkD proesses them seprtely. The seon is when noes hve mny intervls, stkd hs to mintin very lrge t struture, the opertions on whih is ostly. 7.3 The Effetiveness of Query Optimiztion To vlite the effetiveness of the query optimiztion, we hek the qulity of query plns n the effiieny of query optimiztion. In the experiments in this setion, we fixe the vilble memory to 1M n performe query optimiztion on the 50M XMrk oument The Qulity of Query Pln To vlite the qulity of query plns, we ompre the exeution time of the query pln generte by the optimizer with those of 10 rnom query plns. The results re shown in Tble 2, where the unit of time is ms n OPT is the exeution time of query pln optimize with rule4 with C = 4. The mximl, miniml n verge run time of 10 rnomly generte query plns re shown in the olumns of MAX, MIN n AVG, respetively. From the results, the query optiml strtegy lwys vois the worst query pln n obtins better query pln thn rnom plns o The Effiieny of Query Optimiztion To hek the effiieny of query optimiztion, we ompre the optimiztion time of XMQC1 n XMQC2 with vrious elertion rules. The result is shown in Tble 3, where timei represents the optimiztion time of the optimiztion with Rule i, respetively. EXE-Time is the run time of query pln obtine by query optimizer with rule4. Here in rule4, C is set to be 4. The unit of time is ms. From the results, it n be seen tht our rules n reue query optimiztion time effetively n ompring with query pln exeution 486

10 text bol keywor person item bier text person A B C A emph tegory emph keywor bol ress emph wth D B C D () XMQI1 (b) XMQI2 () XMQT1 () XMQT2 (e) RQI (f) RQT site lose_ution A wth person phone person item eution open_ution tegory keywor text buyer person seller site person item open_ution A B C D B C D E F G bol keywor (g) XMQW1 bol (h) XMQW2 emph ity ge (i) XMQC1 bol emph tegory (j) XMQC2 E F G H (k) RQW H (l) RQC Figure 9: Query Set () XMrk (b) Rnom DAG () Rnom Generl Grph Figure 10: Results of Comprison Tble 3: Effiieny of Query Optimiztion Query time1 time2 time3 time4 EXE-Time XMQC XMQC time, optimize query optimiztion time is very smll. 7.4 Chnging Prmeters Slbility The slbility experiment is to test the run time with the oument in the sme shem but with vrious size. In our experiments, for XMrk, we hnge the ftor from 0.5 to 2.5 n the results re shown in Fig 11() n Fig 11(b). Run time of Fig 11() is in log sle. From the results, the run time of XMQS1, XMQS2, XMQI1, XMQI2 n XMQW2 hnges lmost linerly with the t size. When t size gets lrger, the proess times of XMQT1, XMQT2, XMQW1, XMWC1 n XMWC2 inrese fst. It is beuse mjor prts of these queries re relte to some irle or biprtite subgrph in XML t. The results of suh prt re s the Crtesin proution of relte noes n the number of results n intermeite results inrese in the power of the number of query noes. Therefore, the proessing time inreses fster thn linerly. Sine the time omplexity is relte to the size of results, it is inherent. For the rnom tset, experiments on DAG were performe. Noe number ftors re hnge with fixe ege probbilities 0.1. The results re shown in Fig 11(). Note tht run time n noe number xes of Fig 11() re in log sle. For the sme reson isusse in the lst prgrph, the query proessing time of RQS, RQI, RQT n RQW inreses fster thn linerly with noe number. The run time of RQC oes not inrese signifintly with noe number beuse with query optimizer, RQC is performe bottom-up n the seletivity of subquery ({E, F, G}, H) is very smll. As result, the query proessing time inreses fster thn linerly only when the size of finl results inreses fster. For the rnom tset, we performe experiments on DAGs n hnge ege probbilities from 0.1 to 1.0 with fixe noe number The results re shown in Fig 11(), it shows tht the run time of RQS, RQI, RQT n RQW oes not hnge signifintly with the number of eges. It is beuse when the eges beome ense, more intervls re opie to nestors n the intervls of ll noes tren to be the sme. Bse on our t preproessing strtegy, sme intervls re merge. Therefore, the query proessing time of these queries oes not hnge lot. RQC is n exeption. When the ege probbility hnges from 0.2 to 0.3, the run time hnges signifintly. It is beuse RQC is omplex n only when the ensity of eges rehes threshol, the number of results beomes lrge. We lso performe experiments on generl grphs with 487

V = set of vertices (vertex / node) E = set of edges (v, w) (v, w in V)

V = set of vertices (vertex / node) E = set of edges (v, w) (v, w in V) Definitions G = (V, E) V = set of verties (vertex / noe) E = set of eges (v, w) (v, w in V) (v, w) orere => irete grph (igrph) (v, w) non-orere => unirete grph igrph: w is jent to v if there is n ege from

More information

Chapter 9. Greedy Technique. Copyright 2007 Pearson Addison-Wesley. All rights reserved.

Chapter 9. Greedy Technique. Copyright 2007 Pearson Addison-Wesley. All rights reserved. Chpter 9 Greey Tehnique Copyright 2007 Person Aison-Wesley. All rights reserve. Greey Tehnique Construts solution to n optimiztion prolem piee y piee through sequene of hoies tht re: fesile lolly optiml

More information

Distance vector protocol

Distance vector protocol istne vetor protool Irene Finohi finohi@i.unirom.it Routing Routing protool Gol: etermine goo pth (sequene of routers) thru network from soure to Grph strtion for routing lgorithms: grph noes re routers

More information

Table-driven look-ahead lexical analysis

Table-driven look-ahead lexical analysis Tle-riven look-he lexil nlysis WUU YANG Computer n Informtion Siene Deprtment Ntionl Chio-Tung University, HsinChu, Tiwn, R.O.C. Astrt. Moern progrmming lnguges use regulr expressions to efine vli tokens.

More information

MITSUBISHI ELECTRIC RESEARCH LABORATORIES Cambridge, Massachusetts. Introduction to Matroids and Applications. Srikumar Ramalingam

MITSUBISHI ELECTRIC RESEARCH LABORATORIES Cambridge, Massachusetts. Introduction to Matroids and Applications. Srikumar Ramalingam Cmrige, Msshusetts Introution to Mtrois n Applitions Srikumr Rmlingm MERL mm//yy Liner Alger (,0,0) (0,,0) Liner inepenene in vetors: v, v2,..., For ll non-trivil we hve s v s v n s, s2,..., s n 2v2...

More information

Containers: Queue and List

Containers: Queue and List Continers: Queue n List Queue A ontiner in whih insertion is one t one en (the til) n eletion is one t the other en (the he). Also lle FIFO (First-In, First-Out) Jori Cortell n Jori Petit Deprtment of

More information

Paradigm 5. Data Structure. Suffix trees. What is a suffix tree? Suffix tree. Simple applications. Simple applications. Algorithms

Paradigm 5. Data Structure. Suffix trees. What is a suffix tree? Suffix tree. Simple applications. Simple applications. Algorithms Prdigm. Dt Struture Known exmples: link tble, hep, Our leture: suffix tree Will involve mortize method tht will be stressed shortly in this ourse Suffix trees Wht is suffix tree? Simple pplitions History

More information

Graph Contraction and Connectivity

Graph Contraction and Connectivity Chpter 14 Grph Contrtion n Connetivity So fr we hve mostly overe tehniques for solving problems on grphs tht were evelope in the ontext of sequentil lgorithms. Some of them re esy to prllelize while others

More information

10.2 Graph Terminology and Special Types of Graphs

10.2 Graph Terminology and Special Types of Graphs 10.2 Grph Terminology n Speil Types of Grphs Definition 1. Two verties u n v in n unirete grph G re lle jent (or neighors) in G iff u n v re enpoints of n ege e of G. Suh n ege e is lle inient with the

More information

Lecture 12 : Topological Spaces

Lecture 12 : Topological Spaces Leture 12 : Topologil Spes 1 Topologil Spes Topology generlizes notion of distne nd loseness et. Definition 1.1. A topology on set X is olletion T of susets of X hving the following properties. 1. nd X

More information

Outline. CS38 Introduction to Algorithms. Graphs. Graphs. Graphs. Graph traversals

Outline. CS38 Introduction to Algorithms. Graphs. Graphs. Graphs. Graph traversals Outline CS38 Introution to Algorithms Leture 2 April 3, 2014 grph trversls (BFS, DFS) onnetivity topologil sort strongly onnete omponents heps n hepsort greey lgorithms April 3, 2014 CS38 Leture 2 2 Grphs

More information

Class Overview. Database Design. Database Design Process. Database Design. Introduction to Data Management CSE 414

Class Overview. Database Design. Database Design Process. Database Design. Introduction to Data Management CSE 414 Introution to Dt Mngement CSE 44 Unit 6: Coneptul Design E/R Digrms Integrity Constrints BCNF Introution to Dt Mngement CSE 44 E/R Digrms ( letures) CSE 44 Autumn 08 Clss Overview Dtse Design Unit : Intro

More information

A decision support system prototype for fuzzy multiple objective optimization

A decision support system prototype for fuzzy multiple objective optimization EUSFLAT - LFA A eision support system prototype for fuzzy multiple ojetive optimiztion Fengjie Wu Jie Lu n Gungqun Zhng Fulty of Informtion Tehnology University of Tehnology Syney Austrli E-mil: {fengjiewjieluzhngg}@it.uts.eu.u

More information

A matching algorithm for measuring the structural similarity between an XML document and a DTD and its applications $

A matching algorithm for measuring the structural similarity between an XML document and a DTD and its applications $ Informtion Systems 29 (2004) 23 46 A mthing lgorithm for mesuring the struturl similrity etween n XML oument n DTD n its pplitions $ Elis Bertino, Giovnn Guerrini, Mro Mesiti, * Diprtimento i Informti

More information

FEEDBACK: The standard error of a regression is not an unbiased estimator for the standard deviation of the error in a multiple regression model.

FEEDBACK: The standard error of a regression is not an unbiased estimator for the standard deviation of the error in a multiple regression model. Introutory Eonometris: A Moern Approh 6th Eition Woolrige Test Bnk Solutions Complete ownlo: https://testbnkre.om/ownlo/introutory-eonometris-moern-pproh-6th-eition-jeffreym-woolrige-test-bnk/ Solutions

More information

Greedy Algorithm. Algorithm Fall Semester

Greedy Algorithm. Algorithm Fall Semester Greey Algorithm Algorithm 0 Fll Semester Optimiztion prolems An optimiztion prolem is one in whih you wnt to fin, not just solution, ut the est solution A greey lgorithm sometimes works well for optimiztion

More information

Introduction. Example

Introduction. Example OMS0 Introution isjoint sets n minimum spnning trees In this leture we will strt by isussing t struture use for mintining isjoint subsets of some bigger set. This hs number of pplitions, inluing to mintining

More information

XML and Databases. Sebastian Maneth NICTA and UNSW. Lecture 2 Memory Representations for XML: Space vs Access Speed. -- Semester 1, 2010

XML and Databases. Sebastian Maneth NICTA and UNSW. Lecture 2 Memory Representations for XML: Space vs Access Speed. -- Semester 1, 2010 1 XML n Dtbses Leture 2 Memory Representtions for XML: Spe vs Aess Spee Sebstin Mneth NICTA n UNSW CSE@UNSW -- Semester 1, 2010 2 XML n Dtbses Leture 2 Memory Representtions for XML: Spe vs Aess Spee Sebstin

More information

COMMON FRACTIONS. or a / b = a b. , a is called the numerator, and b is called the denominator.

COMMON FRACTIONS. or a / b = a b. , a is called the numerator, and b is called the denominator. COMMON FRACTIONS BASIC DEFINITIONS * A frtion is n inite ivision. or / * In the frtion is lle the numertor n is lle the enomintor. * The whole is seprte into "" equl prts n we re onsiering "" of those

More information

XML and Databases. Outline. XPath. Outline - Lectures. XPath Data Model. Outline - Assignments. XPath. Sebastian Maneth NICTA and UNSW

XML and Databases. Outline. XPath. Outline - Lectures. XPath Data Model. Outline - Assignments. XPath. Sebastian Maneth NICTA and UNSW Outline XML n Dtses Leture 6 Noe Seleting Queries: XPth 1.0 1. XPth Dt Moel: 7 types of noes 2. Simple Exmples 3. Lotion Steps n Pths 4. Vlue Comprison, n Other Funtions Sestin Mneth NICTA n UNSW CSE@UNSW

More information

GENG2140 Modelling and Computer Analysis for Engineers

GENG2140 Modelling and Computer Analysis for Engineers GENG4 Moelling n Computer Anlysis or Engineers Letures 9 & : Gussin qurture Crete y Grn Romn Joles, PhD Shool o Mehnil Engineering, UWA GENG4 Content Deinition o Gussin qurture Computtion o weights n points

More information

Comparing Hierarchical Data in External Memory

Comparing Hierarchical Data in External Memory Compring Hierrhil Dt in Externl Memory Surshn S. Chwthe Deprtment of Computer Siene University of Mryln College Prk, MD 090 hw@s.um.eu Astrt We present n externl-memory lgorithm for omputing minimum-ost

More information

Cooperative Routing in Multi-Source Multi-Destination Multi-hop Wireless Networks

Cooperative Routing in Multi-Source Multi-Destination Multi-hop Wireless Networks oopertive Routing in Multi-Soure Multi-estintion Multi-hop Wireless Networks Jin Zhng Qin Zhng eprtment of omputer Siene n ngineering Hong Kong University of Siene n Tehnology, HongKong {zjzj, qinzh}@se.ust.hk

More information

Minimal Memory Abstractions

Minimal Memory Abstractions Miniml Memory Astrtions (As implemented for BioWre Corp ) Nthn Sturtevnt University of Alert GAMES Group Ferury, 7 Tlk Overview Prt I: Building Astrtions Minimizing memory requirements Performnes mesures

More information

Topological Queries on Graph-structured XML Data: Models and Implementations

Topological Queries on Graph-structured XML Data: Models and Implementations Topologicl Queries on Grph-structured XML Dt: Models nd Implementtions Hongzhi Wng, Jinzhong Li, nd Jizhou Luo Astrct In mny pplictions, dt is in grph structure, which cn e nturlly represented s grph-structured

More information

The Droplet Virtual Brush for Chinese Calligraphic Character Modeling

The Droplet Virtual Brush for Chinese Calligraphic Character Modeling The Droplet Virtul Brush for Chinese Clligrphi Chrter Moeling Xiofeng Mi Jie Xu Min Tng Jinxing Dong CAD & CG Stte Key L of Chin, Zhejing University, Hngzhou, Chin Artifiil Intelligene Institute, Zhejing

More information

Asurveyofpractical algorithms for suffix tree construction in external memory

Asurveyofpractical algorithms for suffix tree construction in external memory Asurveyofprtil lgorithms for suffix tree onstrution in externl memory M. Brsky,, U. Stege n A. Thomo University of Vitori, PO Box, STN CSC Vitori, BC, VW P, Cn SUMMAY The onstrution of suffix trees in

More information

Duality in linear interval equations

Duality in linear interval equations Aville online t http://ijim.sriu..ir Int. J. Industril Mthemtis Vol. 1, No. 1 (2009) 41-45 Dulity in liner intervl equtions M. Movhedin, S. Slhshour, S. Hji Ghsemi, S. Khezerloo, M. Khezerloo, S. M. Khorsny

More information

WORKSHOP 9 HEX MESH USING SWEEP VECTOR

WORKSHOP 9 HEX MESH USING SWEEP VECTOR WORKSHOP 9 HEX MESH USING SWEEP VECTOR WS9-1 WS9-2 Prolem Desription This exerise involves importing urve geometry from n IGES file. The urves re use to rete other urves. From the urves trimme surfes re

More information

Robust internal multiple prediction algorithm Zhiming James Wu, Sonika, Bill Dragoset*, WesternGeco

Robust internal multiple prediction algorithm Zhiming James Wu, Sonika, Bill Dragoset*, WesternGeco Roust internl multiple preition lgorithm Zhiming Jmes Wu, Sonik, Bill Drgoset*, WesternGeo Summry Multiple ttenution is n importnt t proessing step for oth mrine n ln t. Tehniques for surfe- rpily in the

More information

Comparison-based Choices

Comparison-based Choices Comprison-se Choies John Ugner Mngement Siene & Engineering Stnfor University Joint work with: Jon Kleinerg (Cornell) Senhil Mullinthn (Hrvr) EC 17 Boston June 28, 2017 Preiting isrete hoies Clssi prolem:

More information

CS453 INTRODUCTION TO DATAFLOW ANALYSIS

CS453 INTRODUCTION TO DATAFLOW ANALYSIS CS453 INTRODUCTION TO DATAFLOW ANALYSIS CS453 Leture Register llotion using liveness nlysis 1 Introdution to Dt-flow nlysis Lst Time Register llotion for expression trees nd lol nd prm vrs Tody Register

More information

Honors Thesis: Investigating the Algebraic Properties of Cayley Digraphs

Honors Thesis: Investigating the Algebraic Properties of Cayley Digraphs Honors Thesis: Investigting the Algebri Properties of Cyley Digrphs Alexis Byers, Wittenberg University Mthemtis Deprtment April 30, 2014 This pper utilizes Grph Theory to gin insight into the lgebri struture

More information

UNIT 11. Query Optimization

UNIT 11. Query Optimization UNIT Query Optimiztion Contents Introduction to Query Optimiztion 2 The Optimiztion Process: An Overview 3 Optimiztion in System R 4 Optimiztion in INGRES 5 Implementing the Join Opertors Wei-Png Yng,

More information

CS553 Lecture Introduction to Data-flow Analysis 1

CS553 Lecture Introduction to Data-flow Analysis 1 ! Ide Introdution to Dt-flow nlysis!lst Time! Implementing Mrk nd Sweep GC!Tody! Control flow grphs! Liveness nlysis! Register llotion CS553 Leture Introdution to Dt-flow Anlysis 1 Dt-flow Anlysis! Dt-flow

More information

Declarative Routing: Extensible Routing with Declarative Queries

Declarative Routing: Extensible Routing with Declarative Queries elrtive Routing: Extensile Routing with elrtive Queries Boon Thu Loo 1 Joseph M. Hellerstein 1,2, Ion toi 1, Rghu Rmkrishnn3, 1 University of Cliforni t Berkeley, 2 Intel Reserh Berkeley, 3 University

More information

WORKSHOP 8A TENSION COUPON

WORKSHOP 8A TENSION COUPON WORKSHOP 8A TENSION COUPON WS8A-2 Workshop Ojetives Buil the tension oupon geometry Control the mesh y using tehniques isusse in lss Compre FEA stress results to theoretil results From Stress Conentrtion

More information

Graph theory Route problems

Graph theory Route problems Bhelors thesis Grph theory Route prolems Author: Aolphe Nikwigize Dte: 986 - -5 Sujet: Mthemtis Level: First level (Bhelor) Course oe: MAE Astrt In this thesis we will review some route prolems whih re

More information

CS 241 Week 4 Tutorial Solutions

CS 241 Week 4 Tutorial Solutions CS 4 Week 4 Tutoril Solutions Writing n Assemler, Prt & Regulr Lnguges Prt Winter 8 Assemling instrutions utomtilly. slt $d, $s, $t. Solution: $d, $s, nd $t ll fit in -it signed integers sine they re 5-it

More information

Lecture 13: Graphs I: Breadth First Search

Lecture 13: Graphs I: Breadth First Search Leture 13 Grphs I: BFS 6.006 Fll 2011 Leture 13: Grphs I: Bredth First Serh Leture Overview Applitions of Grph Serh Grph Representtions Bredth-First Serh Rell: Grph G = (V, E) V = set of verties (ritrry

More information

Deflation DFA: Remembering History is Adequate

Deflation DFA: Remembering History is Adequate This full text pper ws peer reviewe t the iretion of IEEE Communitions Soiety subjet mtter experts for publition in the IEEE ICC 21 proeeings Defltion DFA: Remembering History is Aequte Yi Tng 1, Tinfn

More information

COMPUTER EDUCATION TECHNIQUES, INC. (WEBLOGIC_SVR_ADM ) SA:

COMPUTER EDUCATION TECHNIQUES, INC. (WEBLOGIC_SVR_ADM ) SA: In orer to lern whih questions hve een nswere orretly: 1. Print these pges. 2. Answer the questions. 3. Sen this ssessment with the nswers vi:. FAX to (212) 967-3498. Or. Mil the nswers to the following

More information

UTMC APPLICATION NOTE UT1553B BCRT TO INTERFACE PSEUDO-DUAL-PORT RAM ARCHITECTURE INTRODUCTION ARBITRATION DETAILS DESIGN SELECTIONS

UTMC APPLICATION NOTE UT1553B BCRT TO INTERFACE PSEUDO-DUAL-PORT RAM ARCHITECTURE INTRODUCTION ARBITRATION DETAILS DESIGN SELECTIONS UTMC APPLICATION NOTE UT1553B BCRT TO 80186 INTERFACE INTRODUCTION The UTMC UT1553B BCRT is monolithi CMOS integrte iruit tht provies omprehensive Bus Controller n Remote Terminl funtions for MIL-STD-

More information

Internet Routing. Reminder: Routing. CPSC Network Programming

Internet Routing. Reminder: Routing. CPSC Network Programming PS 360 - Network Progrmming Internet Routing Mihele Weigle eprtment of omputer Siene lemson University mweigle@s.lemson.eu pril, 00 http://www.s.lemson.eu/~mweigle/ourses/ps360 Reminer: Routing Internet

More information

Internet Routing. IP Packet Format. IP Fragmentation & Reassembly. Principles of Internet Routing. Computer Networks 9/29/2014.

Internet Routing. IP Packet Format. IP Fragmentation & Reassembly. Principles of Internet Routing. Computer Networks 9/29/2014. omputer Networks 9/29/2014 IP Pket Formt Internet Routing Ki Shen IP protool version numer heder length (words) for qulity of servie mx numer remining hops (deremented t eh router) upper lyer protool to

More information

MATH 25 CLASS 5 NOTES, SEP

MATH 25 CLASS 5 NOTES, SEP MATH 25 CLASS 5 NOTES, SEP 30 2011 Contents 1. A brief diversion: reltively prime numbers 1 2. Lest common multiples 3 3. Finding ll solutions to x + by = c 4 Quick links to definitions/theorems Euclid

More information

Bayesian Networks: Directed Markov Properties (Cont d) and Markov Equivalent DAGs

Bayesian Networks: Directed Markov Properties (Cont d) and Markov Equivalent DAGs Byesin Networks: Direte Mrkov Properties (Cont ) n Mrkov Equivlent DAGs Huizhen Yu jney.yu@s.helsinki.fi Dept. Computer Siene, Univ. of Helsinki Proilisti Moels, Spring, 2010 Huizhen Yu (U.H.) Byesin Networks:

More information

Lesson 4.4. Euler Circuits and Paths. Explore This

Lesson 4.4. Euler Circuits and Paths. Explore This Lesson 4.4 Euler Ciruits nd Pths Now tht you re fmilir with some of the onepts of grphs nd the wy grphs onvey onnetions nd reltionships, it s time to egin exploring how they n e used to model mny different

More information

CMPUT101 Introduction to Computing - Summer 2002

CMPUT101 Introduction to Computing - Summer 2002 CMPUT Introdution to Computing - Summer 22 %XLOGLQJ&RPSXWHU&LUFXLWV Chpter 4.4 3XUSRVH We hve looked t so fr how to uild logi gtes from trnsistors. Next we will look t how to uild iruits from logi gtes,

More information

Advanced Programming Handout 5. Enter Okasaki. Persistent vs. Ephemeral. Functional Queues. Simple Example. Persistent vs.

Advanced Programming Handout 5. Enter Okasaki. Persistent vs. Ephemeral. Functional Queues. Simple Example. Persistent vs. Avne Progrmming Hnout 5 Purel Funtionl Dt Strutures: A Cse Stu in Funtionl Progrmming Persistent vs. Ephemerl An ephemerl t struture is one for whih onl one version is ville t time: fter n upte opertion,

More information

Generating Editors for Direct Manipulation of Diagrams

Generating Editors for Direct Manipulation of Diagrams Generting Eitors for Diret Mnipultion of Digrms Gerhr Viehstet n Mrk Mins Lehrstuhl für Progrmmiersprhen Universität Erlngen-Nürnerg Mrtensstr. 3, 91058 Erlngen, Germny E-mil: fviehste,minsg@informtik.uni-erlngen.e

More information

Using SIMD Registers and Instructions to Enable Instruction-Level Parallelism in Sorting Algorithms

Using SIMD Registers and Instructions to Enable Instruction-Level Parallelism in Sorting Algorithms Using SIMD Registers n Instrutions to Enle Instrution-Level Prllelism in Sorting Algorithms Timothy Furtk furtk@s.ulert. José Nelson Amrl mrl@s.ulert. Roert Niewiomski niewio@s.ulert. Deprtment of Computing

More information

Line The set of points extending in two directions without end uniquely determined by two points. The set of points on a line between two points

Line The set of points extending in two directions without end uniquely determined by two points. The set of points on a line between two points Lines Line Line segment Perpendiulr Lines Prllel Lines Opposite Angles The set of points extending in two diretions without end uniquely determined by two points. The set of points on line between two

More information

WORKSHOP 8B TENSION COUPON

WORKSHOP 8B TENSION COUPON WORKSHOP 8B TENSION COUPON WS8B-2 Workshop Ojetives Prtie reting n eiting geometry Prtie mesh seeing n iso meshing tehniques. WS8B-3 Suggeste Exerise Steps 1. Crete new tse. 2. Crete geometry moel of the

More information

Section 2.3 Functions. Definition: Let A and B be sets. A function (mapping, map) f from A to B, denoted f :A B, is a subset of A B such that

Section 2.3 Functions. Definition: Let A and B be sets. A function (mapping, map) f from A to B, denoted f :A B, is a subset of A B such that Setion 2.3 Funtions Definition: Let n e sets. funtion (mpping, mp) f from to, enote f :, is suset of suh tht x[x y[y < x, y > f ]] n [< x, y 1 > f < x, y 2 > f ] y 1 = y 2 Note: f ssoites with eh x in

More information

Complete Coverage Path Planning of Mobile Robot Based on Dynamic Programming Algorithm Peng Zhou, Zhong-min Wang, Zhen-nan Li, Yang Li

Complete Coverage Path Planning of Mobile Robot Based on Dynamic Programming Algorithm Peng Zhou, Zhong-min Wang, Zhen-nan Li, Yang Li 2nd Interntionl Conference on Electronic & Mechnicl Engineering nd Informtion Technology (EMEIT-212) Complete Coverge Pth Plnning of Mobile Robot Bsed on Dynmic Progrmming Algorithm Peng Zhou, Zhong-min

More information

CSc 453 Compilers and Systems Software. 6 : Top-Down Parsing I

CSc 453 Compilers and Systems Software. 6 : Top-Down Parsing I C 45 Compilers n ystems oftwre 6 : op-down Prsing I Christin Collberg Deprtment of Computer iene University of rizon ollberg@gmil.om Copyright 2009 Christin Collberg eptember 14, 2009 1 Overview 2 Compiler

More information

Outline. Motivation Background ARCH. Experiment Additional usages for Input-Depth. Regular Expression Matching DPI over Compressed HTTP

Outline. Motivation Background ARCH. Experiment Additional usages for Input-Depth. Regular Expression Matching DPI over Compressed HTTP ARCH This work ws supported y: The Europen Reserh Counil, The Isreli Centers of Reserh Exellene, The Neptune Consortium, nd Ntionl Siene Foundtion wrd CNS-119748 Outline Motivtion Bkground Regulr Expression

More information

WORKSHOP 19 GLOBAL/LOCAL MODELING USING FEM FIELDS

WORKSHOP 19 GLOBAL/LOCAL MODELING USING FEM FIELDS WORKSHOP 19 GLOBAL/LOCAL MODELING USING FEM FIELDS WS19-1 WS19-2 Prolem Desription This exerise is use to emonstrte how to mp isplement results from the nlysis of glol(overll) moel onto the perimeter of

More information

CICS Application Design

CICS Application Design CICS Applition Design In orer to lern whih questions hve een nswere orretly: 1. Print these pges. 2. Answer the questions. 3. Sen this ssessment with the nswers vi:. FAX to (212) 967-3498. Or. Mil the

More information

Scalable Spatio-temporal Continuous Query Processing for Location-aware Services

Scalable Spatio-temporal Continuous Query Processing for Location-aware Services Slle Sptio-temporl Continuous uery Proessing for Lotion-wre Servies iopeng iong Mohme F. Mokel Wli G. Aref Susnne E. Hmrush Sunil Prhkr Deprtment of Computer Sienes, Purue University, West Lfyette, IN

More information

COMPUTER EDUCATION TECHNIQUES, INC. (XML ) SA:

COMPUTER EDUCATION TECHNIQUES, INC. (XML ) SA: In orer to lern whih questions hve een nswere orretly: 1. Print these pges. 2. Answer the questions. 3. Sen this ssessment with the nswers vi:. FAX to (212) 967-3498. Or. Mil the nswers to the following

More information

Premaster Course Algorithms 1 Chapter 6: Shortest Paths. Christian Scheideler SS 2018

Premaster Course Algorithms 1 Chapter 6: Shortest Paths. Christian Scheideler SS 2018 Premster Course Algorithms Chpter 6: Shortest Pths Christin Scheieler SS 8 Bsic Grph Algorithms Overview: Shortest pths in DAGs Dijkstr s lgorithm Bellmn-For lgorithm Johnson s metho SS 8 Chpter 6 Shortest

More information

[SYLWAN., 158(6)]. ISI

[SYLWAN., 158(6)]. ISI The proposl of Improved Inext Isomorphi Grph Algorithm to Detet Design Ptterns Afnn Slem B-Brhem, M. Rizwn Jmeel Qureshi Fulty of Computing nd Informtion Tehnology, King Adulziz University, Jeddh, SAUDI

More information

3D convex hulls. Convex Hull in 3D. convex polyhedron. convex polyhedron. The problem: Given a set P of points in 3D, compute their convex hull

3D convex hulls. Convex Hull in 3D. convex polyhedron. convex polyhedron. The problem: Given a set P of points in 3D, compute their convex hull Convex Hull in The rolem: Given set P of oints in, omute their onvex hull onvex hulls Comuttionl Geometry [si 3250] Lur Tom Bowoin College onvex olyheron 1 2 3 olygon olyheron onvex olyheron 4 5 6 Polyheron

More information

If you are at the university, either physically or via the VPN, you can download the chapters of this book as PDFs.

If you are at the university, either physically or via the VPN, you can download the chapters of this book as PDFs. Lecture 5 Wlks, Trils, Pths nd Connectedness Reding: Some of the mteril in this lecture comes from Section 1.2 of Dieter Jungnickel (2008), Grphs, Networks nd Algorithms, 3rd edition, which is ville online

More information

Midterm Exam CSC October 2001

Midterm Exam CSC October 2001 Midterm Exm CSC 173 23 Otoer 2001 Diretions This exm hs 8 questions, severl of whih hve suprts. Eh question indites its point vlue. The totl is 100 points. Questions 5() nd 6() re optionl; they re not

More information

Evaluating Regular Expression Matching Engines on Network and General Purpose Processors

Evaluating Regular Expression Matching Engines on Network and General Purpose Processors Evluting Regulr Expression Mthing Engines on Network n Generl Purpose Proessors Mihel Behi Wshington University Computer Siene n Engineering St. Louis, MO 63130-4899 mehi@se.wustl.eu Chrlie Wisemn Wshington

More information

IMAGE COMPRESSION USING HIRARCHICAL LINEAR POLYNOMIAL CODING

IMAGE COMPRESSION USING HIRARCHICAL LINEAR POLYNOMIAL CODING Rsh Al-Tmimi et l, Interntionl Journl of Computer Siene nd Mobile Computing, Vol.4 Issue.1, Jnury- 015, pg. 11-119 Avilble Online t www.ijsm.om Interntionl Journl of Computer Siene nd Mobile Computing

More information

A Static Geometric Medial Axis Domain Decomposition in 2D Euclidean Space

A Static Geometric Medial Axis Domain Decomposition in 2D Euclidean Space A Sttic Geometric Meil Axis Domin Decomposition in D Euclien Spce LEONIDAS LINARDAKIS n NIKOS CHRISOCHOIDES College of Willim n Mry We present geometric omin ecomposition metho n its implementtion, which

More information

Partitioning for Parallelization Using Graph Parsing

Partitioning for Parallelization Using Graph Parsing Prtitioning for Prlleliztion Using Grph Prsing C. L. MCrery Deprtment of Computer Siene n Engineering Auurn University, Al 36849 e-mil: mrery@eng.uurn.eu (205) 844-6307 List of Figures Figure 3.1 Figure

More information

Bruce McCarl's GAMS Newsletter Number 37

Bruce McCarl's GAMS Newsletter Number 37 Bruce McCrl's GAMS Newsletter Number 37 This newsletter covers 1 Uptes to Expne GAMS User Guie by McCrl et l.... 1 2 YouTube vieos... 1 3 Explntory text for tuple set elements... 1 4 Reing sets using GDXXRW...

More information

4452 Mathematical Modeling Lecture 4: Lagrange Multipliers

4452 Mathematical Modeling Lecture 4: Lagrange Multipliers Mth Modeling Lecture 4: Lgrnge Multipliers Pge 4452 Mthemticl Modeling Lecture 4: Lgrnge Multipliers Lgrnge multipliers re high powered mthemticl technique to find the mximum nd minimum of multidimensionl

More information

INTEGRATED WORKFLOW ART DIRECTOR

INTEGRATED WORKFLOW ART DIRECTOR ART DIRECTOR Progrm Resoures INTEGRATED WORKFLOW PROGRAM PLANNING PHASE In this workflow phse proess, you ollorte with the Progrm Mnger, the Projet Mnger, nd the Art Speilist/ Imge Led to updte the resoures

More information

COMP108 Algorithmic Foundations

COMP108 Algorithmic Foundations Grph Theory Prudene Wong http://www.s.liv..uk/~pwong/tehing/omp108/201617 How to Mesure 4L? 3L 5L 3L ontiner & 5L ontiner (without mrk) infinite supply of wter You n pour wter from one ontiner to nother

More information

and vertically shrinked by

and vertically shrinked by 1. A first exmple 1.1. From infinite trnsltion surfe mp to end-periodi mp. We begin with n infinite hlf-trnsltion surfe M 0 desribed s in Figure 1 nd n ffine mp f 0 defined s follows: the surfe is horizontlly

More information

Parallelization Optimization of System-Level Specification

Parallelization Optimization of System-Level Specification Prlleliztion Optimiztion of System-Level Speifition Luki i niel. Gjski enter for Emedded omputer Systems University of liforni Irvine, 92697, US {li, gjski} @es.ui.edu strt This pper introdues the prlleliztion

More information

WORKSHOP 6 FRAME SURFACE MODEL ANALYSIS

WORKSHOP 6 FRAME SURFACE MODEL ANALYSIS WORKSHOP 6 FRAME SURFACE MODEL ANALYSIS WS6-1 WS6-2 Workshop Ojetives Crete finite element moel (meshes; onnet jent elements; pply e los, operting los, n grvity los; onstrin noes) for intermeitely iffiult

More information

Unit #9 : Definite Integral Properties, Fundamental Theorem of Calculus

Unit #9 : Definite Integral Properties, Fundamental Theorem of Calculus Unit #9 : Definite Integrl Properties, Fundmentl Theorem of Clculus Gols: Identify properties of definite integrls Define odd nd even functions, nd reltionship to integrl vlues Introduce the Fundmentl

More information

CSCI1950 Z Computa4onal Methods for Biology Lecture 2. Ben Raphael January 26, hhp://cs.brown.edu/courses/csci1950 z/ Outline

CSCI1950 Z Computa4onal Methods for Biology Lecture 2. Ben Raphael January 26, hhp://cs.brown.edu/courses/csci1950 z/ Outline CSCI1950 Z Comput4onl Methods for Biology Lecture 2 Ben Rphel Jnury 26, 2009 hhp://cs.brown.edu/courses/csci1950 z/ Outline Review of trees. Coun4ng fetures. Chrcter bsed phylogeny Mximum prsimony Mximum

More information

Structural Joins: A Primitive for Efficient XML Query Pattern Matching

Structural Joins: A Primitive for Efficient XML Query Pattern Matching Structurl Joins: A Primitive for Efficient XML Query Pttern Mtching Shurug Al-Khlif Univ of Michign shurug@eecs.umich.eu Jignesh M. Ptel Univ of Michign jignesh@eecs.umich.eu H. V. Jgish Univ of Michign

More information

FASTEST METHOD TO FIND ALTERNATIVE RE-ROUTE

FASTEST METHOD TO FIND ALTERNATIVE RE-ROUTE INTERNATIONAL JOURNAL OF RESEARCH IN COMPUTER APPLICATIONS AND ROBOTICS ISSN 2320-7345 FASTEST METHOD TO FIND ALTERNATIVE RE-ROUTE 1 M.JothiLkshmi, M.S., M.Phil. 2 C.Theeendr, M.S., M.Phil. 3 M.K.Pvithr,

More information

COSC 6374 Parallel Computation. Non-blocking Collective Operations. Edgar Gabriel Fall Overview

COSC 6374 Parallel Computation. Non-blocking Collective Operations. Edgar Gabriel Fall Overview COSC 6374 Prllel Computtion Non-loking Colletive Opertions Edgr Griel Fll 2014 Overview Impt of olletive ommunition opertions Impt of ommunition osts on Speedup Crtesin stenil ommunition All-to-ll ommunition

More information

Nearest Keyword Set Search in Multi-dimensional Datasets

Nearest Keyword Set Search in Multi-dimensional Datasets Nerest Keyword Set Serch in Multi-dimensionl Dtsets Vishwkrm Singh Deprtment of Computer Science University of Cliforni Snt Brbr, USA Emil: vsingh014@gmil.com Ambuj K. Singh Deprtment of Computer Science

More information

Cellular-based Population to Enhance Genetic Algorithm for Assignment Problems

Cellular-based Population to Enhance Genetic Algorithm for Assignment Problems Amerin Journl of Intelligent Systems. 0; (): -5 DOI: 0. 593/j.jis.000.0 Cellulr-se Popultion to Enhne Geneti Algorithm for Assignment Prolems Hossein Rjlipour Cheshmehgz *, Hiollh Hron, Mohmm Rez Myoi

More information

On the Detection of Step Edges in Algorithms Based on Gradient Vector Analysis

On the Detection of Step Edges in Algorithms Based on Gradient Vector Analysis On the Detection of Step Edges in Algorithms Bsed on Grdient Vector Anlysis A. Lrr6, E. Montseny Computer Engineering Dept. Universitt Rovir i Virgili Crreter de Slou sin 43006 Trrgon, Spin Emil: lrre@etse.urv.es

More information

Width and Bounding Box of Imprecise Points

Width and Bounding Box of Imprecise Points Width nd Bounding Box of Impreise Points Vhideh Keikh Mrten Löffler Ali Mohdes Zhed Rhmti Astrt In this pper we study the following prolem: we re given set L = {l 1,..., l n } of prllel line segments,

More information

PROBLEM OF APOLLONIUS

PROBLEM OF APOLLONIUS PROBLEM OF APOLLONIUS In the Jnury 010 issue of Amerin Sientist D. Mkenzie isusses the Apollonin Gsket whih involves fining the rius of the lrgest irle whih just fits into the spe etween three tngent irles

More information

Approximate Joins for Data Centric XML

Approximate Joins for Data Centric XML Approximte Joins for Dt Centri XML Nikolus Augsten 1, Mihel Böhlen 1, Curtis Dyreson, Johnn Gmper 1 1 Fulty of Computer Siene, Free University of Bozen-Bolzno Dominiknerpltz 3, Bozen, Itly {ugsten,oehlen,gmper}@inf.uniz.it

More information

Efficient Techniques for Tree Similarity Queries 1

Efficient Techniques for Tree Similarity Queries 1 Efficient Techniques for Tree Similrity Queries 1 Nikolus Augsten Dtbse Reserch Group Deprtment of Computer Sciences University of Slzburg, Austri July 6, 2017 Austrin Computer Science Dy 2017 / IMAGINE

More information

SMALL SIZE EDGE-FED SIERPINSKI CARPET MICROSTRIP PATCH ANTENNAS

SMALL SIZE EDGE-FED SIERPINSKI CARPET MICROSTRIP PATCH ANTENNAS Progress In Eletromgnetis Reserh C, Vol. 3, 195 22, 28 SMALL SIZE EDGE-FED SIERPINSKI CARPET MICROSTRIP PATCH ANTENNAS W.-L. Chen nd G.-M. Wng Rdr Engineering Deprtment Missile Institute of Air Fore Engineering

More information

Structure in solution spaces: Three lessons from Jean-Claude

Structure in solution spaces: Three lessons from Jean-Claude Struture in solution spes: Three lessons from Jen-Clue Dvi Eppstein Computer Siene Deprtment, Univ. of Cliforni, Irvine Conferene on Meningfulness n Lerning Spes: A Triute to the Work of Jen-Clue Flmgne

More information

DYNAMIC ROUTING ALGORITHMS IN VP-BASED ATM NETWORKS

DYNAMIC ROUTING ALGORITHMS IN VP-BASED ATM NETWORKS DYNAMIC ROUTING ALGORITHMS IN VP-BASED ATM NETWORKS Hon-Wi Chu n Dnny H K Tsng Deprtment of Electricl & Electronic Engineering The Hong Kong University of Science & Technology, Cler Wter By, Kowloon, Hong

More information

Computing offsets of freeform curves using quadratic trigonometric splines

Computing offsets of freeform curves using quadratic trigonometric splines Computing offsets of freeform curves using qudrtic trigonometric splines JIULONG GU, JAE-DEUK YUN, YOONG-HO JUNG*, TAE-GYEONG KIM,JEONG-WOON LEE, BONG-JUN KIM School of Mechnicl Engineering Pusn Ntionl

More information

SAS Event Stream Processing 5.1: Using SAS Event Stream Processing Studio

SAS Event Stream Processing 5.1: Using SAS Event Stream Processing Studio SAS Event Strem Proessing 5.1: Using SAS Event Strem Proessing Stuio Overview to SAS Event Strem Proessing Stuio Overview SAS Event Strem Proessing Stuio is we-se lient tht enles you to rete, eit, uplo,

More information

Using Red-Eye to improve face detection in low quality video images

Using Red-Eye to improve face detection in low quality video images Using Re-Eye to improve fe etetion in low qulity vieo imges Rihr Youmrn Shool of Informtion Tehnology University of Ottw, Cn youmrn@site.uottw. Any Aler Shool of Informtion Tehnology University of Ottw,

More information

Type Checking. Roadmap (Where are we?) Last lecture Context-sensitive analysis. This lecture Type checking. Symbol tables

Type Checking. Roadmap (Where are we?) Last lecture Context-sensitive analysis. This lecture Type checking. Symbol tables Type Cheking Rodmp (Where re we?) Lst leture Contet-sensitie nlysis Motition Attriute grmmrs Ad ho Synt-direted trnsltion This leture Type heking Type systems Using synt direted trnsltion Symol tles Leil

More information

Fault tree conversion to binary decision diagrams

Fault tree conversion to binary decision diagrams Loughorough University Institutionl Repository Fult tree onversion to inry deision digrms This item ws sumitted to Loughorough University's Institutionl Repository y the/n uthor. Cittion: ANDREWS, J.D.

More information

Towards Unifying Advances in Twig Join Algorithms

Towards Unifying Advances in Twig Join Algorithms Pro. 21st Austrlsin Dtse Conferene (ADC 2010), Brisne, Austrli Towrds Unifying Advnes in Twig Join Algorithms Nils Grimsmo Truls A. Bjørklund Deprtment of Computer nd Informtion Siene Norwegin University

More information

COSC 6374 Parallel Computation. Communication Performance Modeling (II) Edgar Gabriel Fall Overview. Impact of communication costs on Speedup

COSC 6374 Parallel Computation. Communication Performance Modeling (II) Edgar Gabriel Fall Overview. Impact of communication costs on Speedup COSC 6374 Prllel Computtion Communition Performne Modeling (II) Edgr Griel Fll 2015 Overview Impt of ommunition osts on Speedup Crtesin stenil ommunition All-to-ll ommunition Impt of olletive ommunition

More information