Efficient Processing of Ordered XML Twig Pattern

Size: px
Start display at page:

Download "Efficient Processing of Ordered XML Twig Pattern"

Transcription

1 Effcent Processng of Ordered XML Twg Pattern Jaheng Lu, Tok Wang Lng, Tan Yu, Changqng L, and We N School of computng, Natonal Unversty of Sngapore {lujahen, lngtw, yutan, lchangq, nwe}@comp.nus.edu.sg Abstract. Fndng all the occurrences of a twg pattern n an XML database s a core operaton for effcent evaluaton of XML queres. Holstc twg jon algorthm has showed ts superorty over bnary decompose based approach due to effcent reducng ntermedate results. The exstng holstc jon algorthms, however, cannot deal wth ordered twg queres. A straghtforward approach that frst matches the unordered twg queres and then prunes away the undesred answers s obvously not optmal n most cases. In ths paper, we study a novel holstc-processng algorthm, called OrderedTJ, for ordered twg queres. We show that OrderedTJ can dentfy a large query class to guarantee the I/O optmalty. Fnally, our experments show the effectveness, scalablty and effcency of our proposed algorthm. 1 Introducton Wth the rapdly ncreasng popularty of XML for data representaton, there s a lot of nterest n query processng over data that conforms to a tree-structured data model([1],[5]). Effcent fndng all twg patterns n an XML database s a major concern of XML query processng. Recently, holstc twg jon approach has been taken as an effcent way to match twg pattern snce ths approach can effcently control the sze of ntermedate results([1],[2],[3],[4]). We observe that, however, the exstng work on holstc twg query matchng only consdered unordered twg queres. But XPath defnes four ordered axes: followng-sblng, precedng-sblng, followng, precedng. For example, XPath: //book/text/followng-sblng::chapter s an ordered query, whch fnds all chapters n the dataset that are followng sblngs of text whch should be a chld of book. We call a twg query whch cares the order of the matchng elements as an ordered twg query. On the other hand, we denote a twg query that does not consder the order of matchng elements as an unordered query. In ths paper, we research how to effcently evaluate an ordered twg query. To handle an ordered twg query, navely, we can use the exstng algorthm (e.g. TwgStack[1]/TwgStackLst[5]) to output the ntermedate path solutons for each ndvdual root-leaf query path, and then merge path solutons so that the fnal solutons are guaranteed to satsfy the order predcates of the query. Although exstng algorthms are appled, such a post-processng approach has a serous dsadvantage: many ntermedate results may not contrbute to fnal answers. K.V. Andersen, J. Debenham, and R. Wagner (Eds.): DEXA 2005, LNCS 3588, pp , Sprnger-Verlag Berln Hedelberg 2005

2 Effcent Processng of Ordered XML Twg Pattern 301 Motvated by the recent success n effcent processng unordered twg queres holstcally, we present n ths paper a novel holstc algorthm, called OrderedTJ, for ordered twg queres. The contrbuton of ths paper can be summarzed as follows: 1. We develop a new holstc ordered twg jon algorthm, namely OrderedTJ, based on the new concept of Ordered Chldren Extenson (for short OCE). Wth OCE, an element contrbutes to fnal results only f the order of ts chldren accords wth the order of correspondng query nodes. Thus, effcent holstc algorthm for ordered-twgs can be leveraged. 2. If we call edges between branchng nodes and ther chldren as branchng edges and denote the branchng edge connectng to the n th chld as the n th branchng edge, we analytcally demonstrate that when the ordered-twg contans only ancestor-descendant relatonshp from the 2nd branchng edge, OrderedTJ s I/O optmal among all sequental algorthms that read the entre nput. In other words, the optmalty of OrderedTJ allows the exstence of parent-chld relatonshps n non-branchng edges and the frst branchng edges. 3. Our expermental results show that the effectveness, scalablty and effcency of our holstc twg algorthms for ordered twg pattern. The remander of the paper s organzed as follows. Secton 2 presented related work. The novel ordered twg jon algorthm s descrbed n Secton 3. Secton 4 s dedcated to our expermental results and we close ths paper by concluson and future work n Secton 5. 2 Related Work Wth the ncreasng popularty of XML data, query processng and optmzaton for XML databases have attracted a lot of research nterest. There s a rch set of lterature on matchng twg queres effcently. Below, we descrbe these lteratures wth the notce that the exstng work deals wth only unordered twg queres. Zhang et al.([9]) proposed a mult-predcate merge jon (MPMGJN) algorthm based on (DocId, Start, End, Level) labelng of XML elements. The later work by Al- Khalfa et al.([7]) gave a stack-based bnary structural jon algorthm. Dfferent from bnary structural jon approaches, Bruno et al.([1]) proposed a holstc twg jon algorthm, called TwgStack, to avod producng a large ntermedate result. However, the class of optmal queres n TwgStack s very small. When a twg query contans any parent-chld edge, the sze of useless ntermedate results may be very large. Lu et al.([5]) propose a new algorthm called TwgStackLst. They use lst data structure to cache lmted elements to dentfy a larger optmal query class. TwgStackLst s I/O optmal for queres wth only ancestor-descendant relatonshps n all branchng edges. Recently, Jang et al.([3]) researched the problem of effcent evaluaton of twg queres wth OR predcates. Chen et al.([2]) researched the relatonshp between dfferent data partton strateges and the optmal query classes for holstc twg jon. Lu et al.([6]) proposed a new labelng scheme called extended Dewey to effcently process XML twg pattern.

3 302 J. Lu et al. 3 Ordered Twg Jon Algorthm 3.1 Data Model and Ordered Twg Pattern We model XML documents as ordered trees. Fgure 1(e) shows an example XML data tree. Each tree element s assgned a regon code (start, end, level) based on ts poston. Each text s assgned a regon code that has the same start and end values. XML queres make use of twg patterns to match relevant portons of data n an XML database. The pattern edges are parent-chld or ancestor-descendant relatonshps. Gven an ordered twg pattern Q and an XML database D, a match of Q n D s dentfed by a mappng from the nodes n Q to the elements n D, such that: () the query node predcates are satsfed by the correspondng database elements; and () the parent-chld and ancestor-descendant relatonshps between query nodes are satsfed by the correspondng database elements; and () the orders of query sblng nodes are satsfed by the correspondng database elements. In partcular, wth regon encodng, gven any node q Q and ts rght-sblng r Q(f any), ther correspondng database elements, say e q and e r n D, must satsfy that e q.end<e r.start. The answers to query Q wth n nodes can be represented as a lst of n-ary tuples, where each tuple (t 1,t 2,.t n ) conssts of the database elements that dentfy a dstnct match of Q n D. Fgure 1(a) shows three sample XPath and Fgure 1(b-d) shows the correspondng ordered twg patterns for the data of Fg 1(e). For each branchng node, we use a symbol > n a box to mark ts chldren ordered. Note that n Q3, we add book as the root of the ordered query, snce t s the root of XML document tree. For example, the query soluton for Q3 s only <book 1, chpater 2, ttle 2, related work, secton 3 >. But f Q3 were an unordered query, secton 1, secton 2 also would nvolve n answers. XPah of Q1: //chapter/secton/precedngsblng::ttle XPah of Q2: /book/author/followngsblng::chpater/ttle/followngsblng::secton XPah of Q3: //chapter[ttle="related work"]/followng::secton (a) Xpath expressons chapter > ttle secton (b) Q1 book > author chapter > ttle (c) Q2 secton book > chapter secton ttle "Related work" (d) Q3 (2,3,2) author 1 chapter 1 (1,25,1) book 1 (4,10,2) (11,17,2) chapter2 (18,24,2) chapter 3 (5.7,3) (8.9,3) (12,14,3) (15.16,3) (19,21,3) (22,23,3) ttle 1 secton 1 ttle 2 secton 2 ttle 3 secton 3 (6.6,4) (13,13,4) (20,20,4) "Introducton" "Related work" "Algorthm" (e) XML document Fg. 1. (a) three XPaths (b)-(d) the correspondng ordered twg query (e) an XML tree 3.2 Algorthm In ths secton, we present OrderedTJ, a novel holstc algorthm for fndng all matches of an ordered twg pattern aganst an XML document. OrderedTJ makes the extenson of TwgStackLst algorthm n the prevous work [5] to handle ordered twg pattern. We wll frst ntroduce data structures and notatons to be used by OrderedTJ.

4 Effcent Processng of Ordered XML Twg Pattern 303 Notaton and data structures. An ordered query s represented wth an ordered tree. The functon, return chld nodes whch has parent-chld or ancestor-descedant relatonshps wth n, respectvely. The self-explanng functon returns the mmedate rght sblng node of n (f any). There s a data stream T n assocated wth each node n n the query twg. We use C n to pont to the current element n T n. We can access the values of C n by, and. The cursor can advance to the next element n T n wth the procedure. Intally, C n ponts to the frst element of T n. Our algorthm wll use two types of data structures: lst and stack. We assocate a lst L n and a stack S n for each node of queres. At every pont durng computaton: the nodes n stack S n are guaranteed to le on a root-leaf path n the database. We use to denote the top element n stack S n. Smlarly, elements n each lst L n are also strctly nested from the frst to the end,.e. each element s an ancestor or parent of that followng t. For each lst L n, we declare an nteger varable, say p n, as a cursor to pont to an element n L n. Intally, p n =0, whch ponts to the frst element of L n. a > b c d e 1 b 1 a 1 c 1 e2 d 1 e 1 b 1 a 1 c 1 d 1 b a > c c 1 a 1 a 2 b 1 (a) Query (b) Doc1 (c) Doc2 (a) Query (b) Data Fg. 2. Illustraton to ordered chld extenson Fg. 3. Optmalty example The challenge to ordered twg evaluaton s that, even f an element satsfes the parent-chld or ancestor-descendant relatonshp, t may not satsfy the order predcate. We ntroduce a new concept, namely Ordered Chldren Extenson (for short, OCE), whch s mportant to determne whether an element lkely nvolves n ordered queres. DEFINITION 1(OCE) Gven an ordered query Q and a dataset D, we say that an element e n (wth tag n Q) n D has an ordered chldren extenson (for short OCE), f the followng propertes are satsfed: () for n ADRChldren( n) n Q (f any), there s an element e n (wth tag n ) n D such that e n s a descendant of e n and e n also has OCE; () for n PCRChldren( n) n Q (f any), there s an element e (wth tag n) n the path e n to e n such that e s the parent of e n and e n also has OCE; () for each chld n of n and m = rghtsblng(n ) (f any), there are elements e n and e m such that e n.end < e m.start and both en and e have OCE. Propertes () and () dscuss the ancestor-descendant and parent-chld relatonshp respectvely. Property () manfests the order condton of queres. For example, see m

5 304 J. Lu et al. the ordered query n Fg 2(a), n Doc 1, a 1 has the OCE, snce a 1 has descendants b 1,d 1, chld c 1 and more mportantly, b 1,c 1,d 1 appear n the correct order. In contrast, n Doc2, a 1 has not the OCE, snce d 1 s the descendant of c 1, but not the followng element of c 1 (.e. c 1.end d 1.start ). Algorthm OrderedTJ () 01Whle ( end() ) 02 q act = getnext(root 03 f (sroot(q act ) empty( S parent ( qact ))) cleanstack(q act, getend(q act ) 04 movestreamtostack(q act, S q act 05 f (sleaf(q act )) 06 showpathsolutons ( S,getElement(q act ) 07 else proceed( T 08 mergeallpathsolutons; Functon end() 01 return n subtreesnodes( root): sleaf ( n) eof ( C n q act Procedure cleanstack (n,actend) 01 whle ( empty( S n ) and (topend(s n )< actend)) do pop(s n Procedure movestreamtostack(n,s n ) 01 f((getend(n)< top(s rghtsblng(n) ).start) //check order 02 push getelement(n) to stack S n 06 proceed(n Procedure proceed(n) 01 f (empty(l n )) advance(t n 02 else L n.delete(p n 03 p n = 0; //move p n to pnt to the begnnng of L n Procedure showpathsolutons(s m,e) 01 ndex[m]=e 02 f (m == root ) //we are n root 03 Output(ndex[q 1 ],,ndex[q k ]) //k s the length of path processed 04 else //recursve call 05 for each element e n S parent(m) 06 f e satsfes the correspondng relatonshp wth e 07 showpathsolutons(s parent(m), e ) q act Fg. 4. Rocedure OrderedTJ Algorthm OrderedTJ. OrderedTJ, whch computes answers to an ordered query twg, operates n two phases. In the frst phase (lne 1-7), the ndvdual query rootleaf paths are output. In the second phase (lne 8), these solutons are merged-joned to compute the answers to the whole query. Next, we frst explan getnext algorthm whch s a core functon and then presents the man algorthm n detals. getnext(n)(see Fg 5) s a procedure called n the man algorthm of OrderedTJ. It dentfes the next stream to be processed and advanced. At lne 4-8, we check the condton () of OCE. Note that unlke the prevous algorthm TwgStackLst[5], n lne 8, we advance the maxmal (not mnmal) element that are not descendants of the

6 Effcent Processng of Ordered XML Twg Pattern 305 current element n stream T n, as we wll use t to determne sblng order. Lne 9-12 check the condton () of OCE. Lne 11 and 12 return the elements whch volate the query sblng order. Fnally, lne check the condton () of OCE. Now we dscuss the man algorthm of OrderedTJ. Frst of all, Lne 2 calls getnext algorthm to dentfy the next element to be processed. Lne 3 removes partal answers that cannot be extended to total answer from the stack. In lne 4, when we nsert a new element to stack, we need to check whether t has the approprate rght sblng. If n s a leaf node, we output the whole path soluton n lne 6. Algorthm getnext (n) 01 f (sleaf(n)) return n; 02 for all n n chldren(n) do 03 g = getnext(n f (g n ) return n ; 04 nmax = max arg n ( ) ( ) chldren n getstart n ; 05 nmn = mn arg n ( ) ( ) chldren n getstart n ; 06 Whle (getend(n) < getstart(n max )) proceed(n 07 f (getstart(n) >getstart(n mn )) 08 return max arg n ( ) ( ( ) ( )) ( ) chldren n getstart n getstart n getstart n ; > 09 sort all n n chldren(n) by start values; // assume the new order are n 1,n 2,,n k 10 for each n (1 n) do //check chldren order 11 f (n' n ) return n ; 12 else f ((>1) (getend(n -1 )>getstart(n )) return n MoveStreamToLst(n, n max 14 for n n PCRchldren(n) //check parent-chld relatonshp 15 f ( e' L such that e s the parent of n C n ) 16 f (n s the frst chld of n) 17 Move the cursor of lst L q to pont to e ; 18 else return n ; 19 return n; Proceudre MoveStreamToLst(n,g) 01 delete any element n L n that s not an ancestor of getelement(n 02 whle C n.start < getstart(g) do f C n.end>getend(g) L n.append(c n 03 advance(t n ) Procedure getelement(n) 01 f ( empty( L n )) return L n.elementat(p n 02 else return C n ; Procedure getstart(n) 01 return the start attrbute of getelement(n Procedure getend(n) 01 return the end attrbute of getelement(n Fg. 5. Functon GetNext n the man algorthm OrderedTJ EXAMPLE 1. Consder the ordered query and data n Fg 1(d) and (e) agan. Frst of all, the fve cursors are (book 1, chapter 1, ttle 1, related work, secton 1 ). After two calls of getnext(book), the cursors are forwarded to (book 1, chapter 2, ttle 2, related work, secton 1 ). Snce secton 1.start=6<chapter 2.start=9, we return secton (n lne 11 of getnext) and forward to secton 2. Then chapter 2.end=15> secton 2.start=13. We

7 306 J. Lu et al. return secton agan (n lne 12 of getnext) and forward to secton 3. Then chapter 2.end=15<secton 3.start=17. The followng steps push book 1 to stack and output the ndvdual two path solutons. Fnally, n the second phase of man algorthm, two path solutons are merged to form one fnal answer 3.3 Analyss of OrderedTJ In the secton, we show the correctness of OrderedTJ and analyze ts effcency. Some proofs are omtted here due to space lmtaton. DEFINITION 2 (head element e n ) In OrderedTJ, for each node n the ordered query, f Lst L n s not empty, then we say that the element ndcated by the cursor p n of L n s the head element of n, denoted by e n. Otherwse, we say that element C n n the stream T n s the head element of n. LEMMA 1. Suppose that for an arbtrary node n n the ordered query we have getnext(n)=n. Then the followng propertes hold: n has the OCE. Ether (a) n=n or (b) parent(n) does not have the OCE because of n (and possbly a descendant of n ). LEMMA 2. Suppose getnext(n)=n returns a query node n the lne 11 or 12 of Algorthm getnext. If the current stack s empty, the head element does not contrbute to any fnal soluton snce t does not satsfy the order condton of query. LEMMA 3. In Procedure movestreamtostack any element e that s nserted to stack S n satsfy the order requrement of the query. That s, f n has a rght-sblng node n n query, then there s an element e n n stream T n such that e n.start >e n.end. LEMMA 4. In OrderedTJ, when any element e s popped from stack, e s guaranteed not to partcpate a new soluton any longer. THEOREM 1. Gven an ordered twg pattern Q and an XML database D. Algorthm OrderedTJ correctly returns all answers for Q on D. Proof:[sketch] Usng Lemma 2, we know that when getnext returns a query node n n the lne 11 and 12 of getnext, f the stack s empty, the head element e n does not contrbute to any fnal solutons. Thus, any element n the ancestors of n that use e n n the OCE s returned by the getnext before e n. By usng lemma 3, we guarantee that each element n stack satsfy the order requrement n the query. Further. By usng lemma 4, we can mantan that, for each node n n the query, the elements that nvolve n the root-leaf path soluton n the stack S n. Fnally, each tme that n =getnext(root) s a leaf node, we output all soluton for e n (lne 6 of OrderedTJ). Now we analyze the optmalty of OrderedTJ. Recall that the unordered twg jon algorthm TwgStackLst([5]) s optmal for query wth only ancestor-descendant n all branchng edges, but our OrderedTJ can dentfy a lttle larger optmal class than TwgStackLst for ordered query. In partcular, the optmalty of OrderedTJ allows the exstence of parent-chld relatonshp n the frst branchng edge, as llustrated below.

8 Effcent Processng of Ordered XML Twg Pattern 307 EXAMPLE 2. Consder the ordered query and dataset n Fg 3. If the query were an unordered query, then TwgStackLst([5]) would scan a 1, c 1 and b 1 and output one useless soluton (a 1,c 1 ), snce before we advance b 1 we could not decde whether a 1 has a chld tagged wth b. But snce ths s an ordered query, we mmedately dentfy that c 1 does not contrbute to any fnal answer snce there s no element wth name b before c 1. Thus, ths example tells us that unlke algorthms for unordered query, OrderedTJ may guarantee the optmalty for queres wth parent-chld relatonshp n the frst branchng edge. THEOREM 2. Consder an XML database D and an ordered twg query Q wth only ancestor-descendant relatonshps n the n th (n 2) branchng edge. The worst case I/O complexty of OrdereTJ s lnear n the sum of the szes of nput and output lsts. The worst-case space complexty of ths algorthm s that the number of nodes n Q tmes the length of the longest path n D. text > bold keyword (a) Q1 descrpton text > > text partlst bold keyword emph S NP VP VBN (b) Q2 (c) Q3 (d) Q4 (e) Q5 (f) Q6 PP > IN NP S > > NN PP DT PRP_DOLLAR_ Fg. 6. Sx tested ordered twg queres (Q1,2,3 n XMark; Q4,5,6 n TreeBank) 4 Expermental Evaluaton 4.1 Expermental Setup We mplemented three ordered twg jon algorthms: straghtforward -TwgStack ( for short STW), straghtforward-twgstacklst (STWL) and OrderedTJ. The frst two algorthms use the straghtforward post-processng approach. By post-processng, we mean that the query s frst matched as an unordered twg (by TwgStack[1] and TwgStackLst[5], respectvely) and then we merge all ntermedate path solutons to get the answers for an ordered twg. We use JDK 1.4 wth the fle system as a smple storage engne. All experments were run on a 1.7G Pentum IV processor wth 768MB of man memory and 2GB quota of dsk space, runnng wndows XP system. We used two data sets for our experments. The frst s the well-known benchmark data: XMark. The sze of fle s 115M bytes wth factor 1.0. The second s a real dataset: TreeBank[8]. The deep recursve structure of ths data set makes ths an nterestng case for our experments. The fle sze s 82M bytes wth 2.4 mllon nodes. For each data set, we tested three XML twg queres (see Fg 6). These queres have dfferent structures and combnatons of parent-chld and ancestor-descendant edges. We choose these queres to gve a comprehensve comparson of algorthms.

9 308 J. Lu et al. Evaluaton metrcs. We wll use the followng metrcs to compare the performance of dfferent algorthms. () Number of ntermedate path solutons Ths metrc measures the total number of ntermedate path solutons, whch reflects the ablty of algorthms to control the sze of ntermedate results. () Total runnng tme Ths metrc s obtaned by averagng the total tme elapsed to answer a query wth sx consecutve runs and the best and worst performance results dscarded. STW STWL Or der e dtj STW STWL Or der edtj STW STWL OrderedTJ Execut on t me( second) Q1 Q2 Q3 XMar k dat aset (a) XMark Execut on t me( second) Q4 Q5 Q6 Tr eebank dat aset (b) TreeBank Execut on t me (seconds) XMark factor (c) varyng data sze Fg. 7. Evaluaton of ordered twg pattern on two datasets Table 1. The number of ntermedate path solutons Query Dataset STW STWL OrderedTJ Useful solutons Q1 XMark Q2 XMark Q3 XMark Q4 TreeBank Q5 TreeBank Q6 TreeBank Performance Analyss Fgure 7 shows the results on executon tme. An mmedate observaton from the fgure s that OrderedTJ s more effcent than STW and STWL for all queres. Ths can be explaned that OrderedTJ output much less ntermedate results. Table 1 shows the number of ntermedate path solutons. The last column shows the number of path solutons that contrbute to fnal solutons. For example, STW and STWL could output 500% more ntermedate results than OrderedTJ (see XMark Q2). Scalablty. We tested queres XMark Q2 for scalablty. We use XMark factor 1(115MB) 2(232MB) 3 (349M) and 4(465M). As shown n Fg 7(c), OrderedTJ scales lnearly wth the sze of the database. Wth the ncrease of data sze, the beneft of OrderedTJ over STW and STWL correspondngly ncreases. Sub-optmalty of OrderedTJ. As explaned n Secton 3, when there s any parentchld relatonshp n the n th branchng edges (n 2), OrderedTJ s not optmal. As shown n Q4,Q5 of Table 1, none of algorthms s optmal, snce all algorthms output some useless solutons. However, even n ths case, OrderedTJ stll outperforms STW and STWL by outputtng less useless ntermedate results.

10 Effcent Processng of Ordered XML Twg Pattern 309 Summary. Accordng to the expermental results, we draw two conclusons. Frst, our new algorthm OrderedTJ, could be used to evaluate ordered twg pattern because they have obvous performance advantage over the straghtforward approach: STW and STWL. Second, OrderedTJ guarantee the I/O optmalty for a large query class. 5 Concluson and Future Work In ths paper, we proposed a new holstc twg jon algorthm, called OrderedTJ, for processng ordered twg query. Although the dea of holstc twg jon has been proposed n unordered twg jon, applyng t for ordered twg matchng s nontrval. We developed a new concept ordered chld extenson to determne whether an element possbly nvolves n query answers. We also make the contrbuton by dentfyng a large query class to guarantee I/O optmal for OrderedTJ. Expermental results showed the effectveness, scalablty, and effcency of our algorthm. There s more to answer XPath query than s wthn the scope of ths paper. Consder an XPath query: //a/followng-sblng::b, we cannot transform ths query to an ordered twg pattern, snce there s no root node n ths query. Thus, algorthm OrderedTJ cannot be used to answer ths XPath. In fact, based on regon code (start,end,level), none of algorthms can answer ths query by accessng the labels of a and b alone, snce a and b may have no common parent even f they belong to the same level. We are currently desgnng a new labelng scheme to handle such case. References 1. N. Bruno, N. Koudas, and D. Srvastava. Holstc Twg Jons: Optmal XML pattern matchng. In Proc. of the SIGMOD, pages T. Chen J. Lu, and T. W Lng On boostng holsm n XML twg pattern matchng usng structural ndexng technques In Proc. of the SIGMOD 2005 To appear 3. H. Jang, H. Lu, W. Wang, Effcent Processng of XML Twg Queres wth OR-Predcates, In Proc. of the SIGMOD pages H. Jang, et al. Holstc twg jons on ndexed XML documents. In Proc. of the VLDB, pages , J. Lu, T. Chen and T. W. Lng Effcent Processng of XML Twg Patterns wth Parent Chld Edges: A Look-ahead Approach In Proc. of CIKM, pages , J. Lu et. al From Regon Encodng To Extended Dewey: On Effcent Processng of XML Twg Pattern Matchng In Proc. of VLDB, 2005 To appear 7. S. Al-Khalfa et. al Structural jons: A prmtve for effcent XML query pattern matchng. In Proc. of the ICDE, pages , Treebank 9. C. Zhang et. al. On supportng contanment queres n relatonal database management systems. In Proc. of the SIGMOD, 2001.

An Optimal Algorithm for Prufer Codes *

An Optimal Algorithm for Prufer Codes * J. Software Engneerng & Applcatons, 2009, 2: 111-115 do:10.4236/jsea.2009.22016 Publshed Onlne July 2009 (www.scrp.org/journal/jsea) An Optmal Algorthm for Prufer Codes * Xaodong Wang 1, 2, Le Wang 3,

More information

Parallelism for Nested Loops with Non-uniform and Flow Dependences

Parallelism for Nested Loops with Non-uniform and Flow Dependences Parallelsm for Nested Loops wth Non-unform and Flow Dependences Sam-Jn Jeong Dept. of Informaton & Communcaton Engneerng, Cheonan Unversty, 5, Anseo-dong, Cheonan, Chungnam, 330-80, Korea. seong@cheonan.ac.kr

More information

CE 221 Data Structures and Algorithms

CE 221 Data Structures and Algorithms CE 1 ata Structures and Algorthms Chapter 4: Trees BST Text: Read Wess, 4.3 Izmr Unversty of Economcs 1 The Search Tree AT Bnary Search Trees An mportant applcaton of bnary trees s n searchng. Let us assume

More information

Problem Set 3 Solutions

Problem Set 3 Solutions Introducton to Algorthms October 4, 2002 Massachusetts Insttute of Technology 6046J/18410J Professors Erk Demane and Shaf Goldwasser Handout 14 Problem Set 3 Solutons (Exercses were not to be turned n,

More information

6.854 Advanced Algorithms Petar Maymounkov Problem Set 11 (November 23, 2005) With: Benjamin Rossman, Oren Weimann, and Pouya Kheradpour

6.854 Advanced Algorithms Petar Maymounkov Problem Set 11 (November 23, 2005) With: Benjamin Rossman, Oren Weimann, and Pouya Kheradpour 6.854 Advanced Algorthms Petar Maymounkov Problem Set 11 (November 23, 2005) Wth: Benjamn Rossman, Oren Wemann, and Pouya Kheradpour Problem 1. We reduce vertex cover to MAX-SAT wth weghts, such that the

More information

Load Balancing for Hex-Cell Interconnection Network

Load Balancing for Hex-Cell Interconnection Network Int. J. Communcatons, Network and System Scences,,, - Publshed Onlne Aprl n ScRes. http://www.scrp.org/journal/jcns http://dx.do.org/./jcns.. Load Balancng for Hex-Cell Interconnecton Network Saher Manaseer,

More information

Hermite Splines in Lie Groups as Products of Geodesics

Hermite Splines in Lie Groups as Products of Geodesics Hermte Splnes n Le Groups as Products of Geodescs Ethan Eade Updated May 28, 2017 1 Introducton 1.1 Goal Ths document defnes a curve n the Le group G parametrzed by tme and by structural parameters n the

More information

Analysis of Continuous Beams in General

Analysis of Continuous Beams in General Analyss of Contnuous Beams n General Contnuous beams consdered here are prsmatc, rgdly connected to each beam segment and supported at varous ponts along the beam. onts are selected at ponts of support,

More information

Support Vector Machines

Support Vector Machines /9/207 MIST.6060 Busness Intellgence and Data Mnng What are Support Vector Machnes? Support Vector Machnes Support Vector Machnes (SVMs) are supervsed learnng technques that analyze data and recognze patterns.

More information

Classifier Selection Based on Data Complexity Measures *

Classifier Selection Based on Data Complexity Measures * Classfer Selecton Based on Data Complexty Measures * Edth Hernández-Reyes, J.A. Carrasco-Ochoa, and J.Fco. Martínez-Trndad Natonal Insttute for Astrophyscs, Optcs and Electroncs, Lus Enrque Erro No.1 Sta.

More information

A Fast Content-Based Multimedia Retrieval Technique Using Compressed Data

A Fast Content-Based Multimedia Retrieval Technique Using Compressed Data A Fast Content-Based Multmeda Retreval Technque Usng Compressed Data Borko Furht and Pornvt Saksobhavvat NSF Multmeda Laboratory Florda Atlantc Unversty, Boca Raton, Florda 3343 ABSTRACT In ths paper,

More information

Course Introduction. Algorithm 8/31/2017. COSC 320 Advanced Data Structures and Algorithms. COSC 320 Advanced Data Structures and Algorithms

Course Introduction. Algorithm 8/31/2017. COSC 320 Advanced Data Structures and Algorithms. COSC 320 Advanced Data Structures and Algorithms Course Introducton Course Topcs Exams, abs, Proects A quc loo at a few algorthms 1 Advanced Data Structures and Algorthms Descrpton: We are gong to dscuss algorthm complexty analyss, algorthm desgn technques

More information

CMPS 10 Introduction to Computer Science Lecture Notes

CMPS 10 Introduction to Computer Science Lecture Notes CPS 0 Introducton to Computer Scence Lecture Notes Chapter : Algorthm Desgn How should we present algorthms? Natural languages lke Englsh, Spansh, or French whch are rch n nterpretaton and meanng are not

More information

Sorting Review. Sorting. Comparison Sorting. CSE 680 Prof. Roger Crawfis. Assumptions

Sorting Review. Sorting. Comparison Sorting. CSE 680 Prof. Roger Crawfis. Assumptions Sortng Revew Introducton to Algorthms Qucksort CSE 680 Prof. Roger Crawfs Inserton Sort T(n) = Θ(n 2 ) In-place Merge Sort T(n) = Θ(n lg(n)) Not n-place Selecton Sort (from homework) T(n) = Θ(n 2 ) In-place

More information

Chapter 6 Programmng the fnte element method Inow turn to the man subject of ths book: The mplementaton of the fnte element algorthm n computer programs. In order to make my dscusson as straghtforward

More information

For instance, ; the five basic number-sets are increasingly more n A B & B A A = B (1)

For instance, ; the five basic number-sets are increasingly more n A B & B A A = B (1) Secton 1.2 Subsets and the Boolean operatons on sets If every element of the set A s an element of the set B, we say that A s a subset of B, or that A s contaned n B, or that B contans A, and we wrte A

More information

Programming in Fortran 90 : 2017/2018

Programming in Fortran 90 : 2017/2018 Programmng n Fortran 90 : 2017/2018 Programmng n Fortran 90 : 2017/2018 Exercse 1 : Evaluaton of functon dependng on nput Wrte a program who evaluate the functon f (x,y) for any two user specfed values

More information

Today s Outline. Sorting: The Big Picture. Why Sort? Selection Sort: Idea. Insertion Sort: Idea. Sorting Chapter 7 in Weiss.

Today s Outline. Sorting: The Big Picture. Why Sort? Selection Sort: Idea. Insertion Sort: Idea. Sorting Chapter 7 in Weiss. Today s Outlne Sortng Chapter 7 n Wess CSE 26 Data Structures Ruth Anderson Announcements Wrtten Homework #6 due Frday 2/26 at the begnnng of lecture Proect Code due Mon March 1 by 11pm Today s Topcs:

More information

Machine Learning: Algorithms and Applications

Machine Learning: Algorithms and Applications 14/05/1 Machne Learnng: Algorthms and Applcatons Florano Zn Free Unversty of Bozen-Bolzano Faculty of Computer Scence Academc Year 011-01 Lecture 10: 14 May 01 Unsupervsed Learnng cont Sldes courtesy of

More information

The Greedy Method. Outline and Reading. Change Money Problem. Greedy Algorithms. Applications of the Greedy Strategy. The Greedy Method Technique

The Greedy Method. Outline and Reading. Change Money Problem. Greedy Algorithms. Applications of the Greedy Strategy. The Greedy Method Technique //00 :0 AM Outlne and Readng The Greedy Method The Greedy Method Technque (secton.) Fractonal Knapsack Problem (secton..) Task Schedulng (secton..) Mnmum Spannng Trees (secton.) Change Money Problem Greedy

More information

Compiler Design. Spring Register Allocation. Sample Exercises and Solutions. Prof. Pedro C. Diniz

Compiler Design. Spring Register Allocation. Sample Exercises and Solutions. Prof. Pedro C. Diniz Compler Desgn Sprng 2014 Regster Allocaton Sample Exercses and Solutons Prof. Pedro C. Dnz USC / Informaton Scences Insttute 4676 Admralty Way, Sute 1001 Marna del Rey, Calforna 90292 pedro@s.edu Regster

More information

A Binarization Algorithm specialized on Document Images and Photos

A Binarization Algorithm specialized on Document Images and Photos A Bnarzaton Algorthm specalzed on Document mages and Photos Ergna Kavalleratou Dept. of nformaton and Communcaton Systems Engneerng Unversty of the Aegean kavalleratou@aegean.gr Abstract n ths paper, a

More information

The Shortest Path of Touring Lines given in the Plane

The Shortest Path of Touring Lines given in the Plane Send Orders for Reprnts to reprnts@benthamscence.ae 262 The Open Cybernetcs & Systemcs Journal, 2015, 9, 262-267 The Shortest Path of Tourng Lnes gven n the Plane Open Access Ljuan Wang 1,2, Dandan He

More information

CSE 326: Data Structures Quicksort Comparison Sorting Bound

CSE 326: Data Structures Quicksort Comparison Sorting Bound CSE 326: Data Structures Qucksort Comparson Sortng Bound Steve Setz Wnter 2009 Qucksort Qucksort uses a dvde and conquer strategy, but does not requre the O(N) extra space that MergeSort does. Here s the

More information

CSE 326: Data Structures Quicksort Comparison Sorting Bound

CSE 326: Data Structures Quicksort Comparison Sorting Bound CSE 326: Data Structures Qucksort Comparson Sortng Bound Bran Curless Sprng 2008 Announcements (5/14/08) Homework due at begnnng of class on Frday. Secton tomorrow: Graded homeworks returned More dscusson

More information

CSCI 104 Sorting Algorithms. Mark Redekopp David Kempe

CSCI 104 Sorting Algorithms. Mark Redekopp David Kempe CSCI 104 Sortng Algorthms Mark Redekopp Davd Kempe Algorthm Effcency SORTING 2 Sortng If we have an unordered lst, sequental search becomes our only choce If we wll perform a lot of searches t may be benefcal

More information

SAO: A Stream Index for Answering Linear Optimization Queries

SAO: A Stream Index for Answering Linear Optimization Queries SAO: A Stream Index for Answerng near Optmzaton Queres Gang uo Kun-ung Wu Phlp S. Yu IBM T.J. Watson Research Center {luog, klwu, psyu}@us.bm.com Abstract near optmzaton queres retreve the top-k tuples

More information

R s s f. m y s. SPH3UW Unit 7.3 Spherical Concave Mirrors Page 1 of 12. Notes

R s s f. m y s. SPH3UW Unit 7.3 Spherical Concave Mirrors Page 1 of 12. Notes SPH3UW Unt 7.3 Sphercal Concave Mrrors Page 1 of 1 Notes Physcs Tool box Concave Mrror If the reflectng surface takes place on the nner surface of the sphercal shape so that the centre of the mrror bulges

More information

CS221: Algorithms and Data Structures. Priority Queues and Heaps. Alan J. Hu (Borrowing slides from Steve Wolfman)

CS221: Algorithms and Data Structures. Priority Queues and Heaps. Alan J. Hu (Borrowing slides from Steve Wolfman) CS: Algorthms and Data Structures Prorty Queues and Heaps Alan J. Hu (Borrowng sldes from Steve Wolfman) Learnng Goals After ths unt, you should be able to: Provde examples of approprate applcatons for

More information

Related-Mode Attacks on CTR Encryption Mode

Related-Mode Attacks on CTR Encryption Mode Internatonal Journal of Network Securty, Vol.4, No.3, PP.282 287, May 2007 282 Related-Mode Attacks on CTR Encrypton Mode Dayn Wang, Dongda Ln, and Wenlng Wu (Correspondng author: Dayn Wang) Key Laboratory

More information

Sequential search. Building Java Programs Chapter 13. Sequential search. Sequential search

Sequential search. Building Java Programs Chapter 13. Sequential search. Sequential search Sequental search Buldng Java Programs Chapter 13 Searchng and Sortng sequental search: Locates a target value n an array/lst by examnng each element from start to fnsh. How many elements wll t need to

More information

Can We Beat the Prefix Filtering? An Adaptive Framework for Similarity Join and Search

Can We Beat the Prefix Filtering? An Adaptive Framework for Similarity Join and Search Can We Beat the Prefx Flterng? An Adaptve Framework for Smlarty Jon and Search Jannan Wang Guolang L Janhua Feng Department of Computer Scence and Technology, Tsnghua Natonal Laboratory for Informaton

More information

Non-Split Restrained Dominating Set of an Interval Graph Using an Algorithm

Non-Split Restrained Dominating Set of an Interval Graph Using an Algorithm Internatonal Journal of Advancements n Research & Technology, Volume, Issue, July- ISS - on-splt Restraned Domnatng Set of an Interval Graph Usng an Algorthm ABSTRACT Dr.A.Sudhakaraah *, E. Gnana Deepka,

More information

Fast Computation of Shortest Path for Visiting Segments in the Plane

Fast Computation of Shortest Path for Visiting Segments in the Plane Send Orders for Reprnts to reprnts@benthamscence.ae 4 The Open Cybernetcs & Systemcs Journal, 04, 8, 4-9 Open Access Fast Computaton of Shortest Path for Vstng Segments n the Plane Ljuan Wang,, Bo Jang

More information

The Codesign Challenge

The Codesign Challenge ECE 4530 Codesgn Challenge Fall 2007 Hardware/Software Codesgn The Codesgn Challenge Objectves In the codesgn challenge, your task s to accelerate a gven software reference mplementaton as fast as possble.

More information

Learning-Based Top-N Selection Query Evaluation over Relational Databases

Learning-Based Top-N Selection Query Evaluation over Relational Databases Learnng-Based Top-N Selecton Query Evaluaton over Relatonal Databases Lang Zhu *, Wey Meng ** * School of Mathematcs and Computer Scence, Hebe Unversty, Baodng, Hebe 071002, Chna, zhu@mal.hbu.edu.cn **

More information

Sorting: The Big Picture. The steps of QuickSort. QuickSort Example. QuickSort Example. QuickSort Example. Recursive Quicksort

Sorting: The Big Picture. The steps of QuickSort. QuickSort Example. QuickSort Example. QuickSort Example. Recursive Quicksort Sortng: The Bg Pcture Gven n comparable elements n an array, sort them n an ncreasng (or decreasng) order. Smple algorthms: O(n ) Inserton sort Selecton sort Bubble sort Shell sort Fancer algorthms: O(n

More information

Query Clustering Using a Hybrid Query Similarity Measure

Query Clustering Using a Hybrid Query Similarity Measure Query clusterng usng a hybrd query smlarty measure Fu. L., Goh, D.H., & Foo, S. (2004). WSEAS Transacton on Computers, 3(3), 700-705. Query Clusterng Usng a Hybrd Query Smlarty Measure Ln Fu, Don Hoe-Lan

More information

A Fast Visual Tracking Algorithm Based on Circle Pixels Matching

A Fast Visual Tracking Algorithm Based on Circle Pixels Matching A Fast Vsual Trackng Algorthm Based on Crcle Pxels Matchng Zhqang Hou hou_zhq@sohu.com Chongzhao Han czhan@mal.xjtu.edu.cn Ln Zheng Abstract: A fast vsual trackng algorthm based on crcle pxels matchng

More information

Mathematics 256 a course in differential equations for engineering students

Mathematics 256 a course in differential equations for engineering students Mathematcs 56 a course n dfferental equatons for engneerng students Chapter 5. More effcent methods of numercal soluton Euler s method s qute neffcent. Because the error s essentally proportonal to the

More information

A New Algorithm for Evaluating Ordered Tree Pattern Queries

A New Algorithm for Evaluating Ordered Tree Pattern Queries A New Algorthm for Evaluatng Ordered Tree Pattern Queres Yangjun Chen Dept. Appled computer Scence Unversty of Wnnpeg, Wnnpeg, Mantoba, Canada, R3b 2E9 Abstract - An XML tree pattern query, represented

More information

A New Approach For the Ranking of Fuzzy Sets With Different Heights

A New Approach For the Ranking of Fuzzy Sets With Different Heights New pproach For the ankng of Fuzzy Sets Wth Dfferent Heghts Pushpnder Sngh School of Mathematcs Computer pplcatons Thapar Unversty, Patala-7 00 Inda pushpndersnl@gmalcom STCT ankng of fuzzy sets plays

More information

Subspace clustering. Clustering. Fundamental to all clustering techniques is the choice of distance measure between data points;

Subspace clustering. Clustering. Fundamental to all clustering techniques is the choice of distance measure between data points; Subspace clusterng Clusterng Fundamental to all clusterng technques s the choce of dstance measure between data ponts; D q ( ) ( ) 2 x x = x x, j k = 1 k jk Squared Eucldean dstance Assumpton: All features

More information

Determining the Optimal Bandwidth Based on Multi-criterion Fusion

Determining the Optimal Bandwidth Based on Multi-criterion Fusion Proceedngs of 01 4th Internatonal Conference on Machne Learnng and Computng IPCSIT vol. 5 (01) (01) IACSIT Press, Sngapore Determnng the Optmal Bandwdth Based on Mult-crteron Fuson Ha-L Lang 1+, Xan-Mn

More information

An Entropy-Based Approach to Integrated Information Needs Assessment

An Entropy-Based Approach to Integrated Information Needs Assessment Dstrbuton Statement A: Approved for publc release; dstrbuton s unlmted. An Entropy-Based Approach to ntegrated nformaton Needs Assessment June 8, 2004 Wllam J. Farrell Lockheed Martn Advanced Technology

More information

Estimating Costs of Path Expression Evaluation in Distributed Object Databases

Estimating Costs of Path Expression Evaluation in Distributed Object Databases Estmatng Costs of Path Expresson Evaluaton n Dstrbuted Obect Databases Gabrela Ruberg, Fernanda Baão, and Marta Mattoso Department of Computer Scence COPPE/UFRJ P.O.Box 685, Ro de Janero, RJ, 2945-970

More information

Content Based Image Retrieval Using 2-D Discrete Wavelet with Texture Feature with Different Classifiers

Content Based Image Retrieval Using 2-D Discrete Wavelet with Texture Feature with Different Classifiers IOSR Journal of Electroncs and Communcaton Engneerng (IOSR-JECE) e-issn: 78-834,p- ISSN: 78-8735.Volume 9, Issue, Ver. IV (Mar - Apr. 04), PP 0-07 Content Based Image Retreval Usng -D Dscrete Wavelet wth

More information

Run-Time Operator State Spilling for Memory Intensive Long-Running Queries

Run-Time Operator State Spilling for Memory Intensive Long-Running Queries Run-Tme Operator State Spllng for Memory Intensve Long-Runnng Queres Bn Lu, Yal Zhu, and lke A. Rundenstener epartment of Computer Scence, Worcester Polytechnc Insttute Worcester, Massachusetts, USA {bnlu,

More information

2x x l. Module 3: Element Properties Lecture 4: Lagrange and Serendipity Elements

2x x l. Module 3: Element Properties Lecture 4: Lagrange and Serendipity Elements Module 3: Element Propertes Lecture : Lagrange and Serendpty Elements 5 In last lecture note, the nterpolaton functons are derved on the bass of assumed polynomal from Pascal s trangle for the fled varable.

More information

Hierarchical clustering for gene expression data analysis

Hierarchical clustering for gene expression data analysis Herarchcal clusterng for gene expresson data analyss Gorgo Valentn e-mal: valentn@ds.unm.t Clusterng of Mcroarray Data. Clusterng of gene expresson profles (rows) => dscovery of co-regulated and functonally

More information

Problem Definitions and Evaluation Criteria for Computational Expensive Optimization

Problem Definitions and Evaluation Criteria for Computational Expensive Optimization Problem efntons and Evaluaton Crtera for Computatonal Expensve Optmzaton B. Lu 1, Q. Chen and Q. Zhang 3, J. J. Lang 4, P. N. Suganthan, B. Y. Qu 6 1 epartment of Computng, Glyndwr Unversty, UK Faclty

More information

Adaptive Load Shedding for Windowed Stream Joins

Adaptive Load Shedding for Windowed Stream Joins Adaptve Load Sheddng for Wndowed Stream Jons Bu gra Gedk College of Computng, GaTech bgedk@cc.gatech.edu Kun-Lung Wu, Phlp Yu T.J. Watson Research, IBM {klwu,psyu}@us.bm.com Lng Lu College of Computng,

More information

Sum of Linear and Fractional Multiobjective Programming Problem under Fuzzy Rules Constraints

Sum of Linear and Fractional Multiobjective Programming Problem under Fuzzy Rules Constraints Australan Journal of Basc and Appled Scences, 2(4): 1204-1208, 2008 ISSN 1991-8178 Sum of Lnear and Fractonal Multobjectve Programmng Problem under Fuzzy Rules Constrants 1 2 Sanjay Jan and Kalash Lachhwan

More information

Insertion Sort. Divide and Conquer Sorting. Divide and Conquer. Mergesort. Mergesort Example. Auxiliary Array

Insertion Sort. Divide and Conquer Sorting. Divide and Conquer. Mergesort. Mergesort Example. Auxiliary Array Inserton Sort Dvde and Conquer Sortng CSE 6 Data Structures Lecture 18 What f frst k elements of array are already sorted? 4, 7, 1, 5, 1, 16 We can shft the tal of the sorted elements lst down and then

More information

An Iterative Solution Approach to Process Plant Layout using Mixed Integer Optimisation

An Iterative Solution Approach to Process Plant Layout using Mixed Integer Optimisation 17 th European Symposum on Computer Aded Process Engneerng ESCAPE17 V. Plesu and P.S. Agach (Edtors) 2007 Elsever B.V. All rghts reserved. 1 An Iteratve Soluton Approach to Process Plant Layout usng Mxed

More information

Learning the Kernel Parameters in Kernel Minimum Distance Classifier

Learning the Kernel Parameters in Kernel Minimum Distance Classifier Learnng the Kernel Parameters n Kernel Mnmum Dstance Classfer Daoqang Zhang 1,, Songcan Chen and Zh-Hua Zhou 1* 1 Natonal Laboratory for Novel Software Technology Nanjng Unversty, Nanjng 193, Chna Department

More information

A Deflected Grid-based Algorithm for Clustering Analysis

A Deflected Grid-based Algorithm for Clustering Analysis A Deflected Grd-based Algorthm for Clusterng Analyss NANCY P. LIN, CHUNG-I CHANG, HAO-EN CHUEH, HUNG-JEN CHEN, WEI-HUA HAO Department of Computer Scence and Informaton Engneerng Tamkang Unversty 5 Yng-chuan

More information

UB at GeoCLEF Department of Geography Abstract

UB at GeoCLEF Department of Geography   Abstract UB at GeoCLEF 2006 Mguel E. Ruz (1), Stuart Shapro (2), June Abbas (1), Slva B. Southwck (1) and Davd Mark (3) State Unversty of New York at Buffalo (1) Department of Lbrary and Informaton Studes (2) Department

More information

CHARUTAR VIDYA MANDAL S SEMCOM Vallabh Vidyanagar

CHARUTAR VIDYA MANDAL S SEMCOM Vallabh Vidyanagar CHARUTAR VIDYA MANDAL S SEMCOM Vallabh Vdyanagar Faculty Name: Am D. Trved Class: SYBCA Subject: US03CBCA03 (Advanced Data & Fle Structure) *UNIT 1 (ARRAYS AND TREES) **INTRODUCTION TO ARRAYS If we want

More information

CS1100 Introduction to Programming

CS1100 Introduction to Programming Factoral (n) Recursve Program fact(n) = n*fact(n-) CS00 Introducton to Programmng Recurson and Sortng Madhu Mutyam Department of Computer Scence and Engneerng Indan Insttute of Technology Madras nt fact

More information

Tsinghua University at TAC 2009: Summarizing Multi-documents by Information Distance

Tsinghua University at TAC 2009: Summarizing Multi-documents by Information Distance Tsnghua Unversty at TAC 2009: Summarzng Mult-documents by Informaton Dstance Chong Long, Mnle Huang, Xaoyan Zhu State Key Laboratory of Intellgent Technology and Systems, Tsnghua Natonal Laboratory for

More information

Meta-heuristics for Multidimensional Knapsack Problems

Meta-heuristics for Multidimensional Knapsack Problems 2012 4th Internatonal Conference on Computer Research and Development IPCSIT vol.39 (2012) (2012) IACSIT Press, Sngapore Meta-heurstcs for Multdmensonal Knapsack Problems Zhbao Man + Computer Scence Department,

More information

Solving two-person zero-sum game by Matlab

Solving two-person zero-sum game by Matlab Appled Mechancs and Materals Onlne: 2011-02-02 ISSN: 1662-7482, Vols. 50-51, pp 262-265 do:10.4028/www.scentfc.net/amm.50-51.262 2011 Trans Tech Publcatons, Swtzerland Solvng two-person zero-sum game by

More information

TN348: Openlab Module - Colocalization

TN348: Openlab Module - Colocalization TN348: Openlab Module - Colocalzaton Topc The Colocalzaton module provdes the faclty to vsualze and quantfy colocalzaton between pars of mages. The Colocalzaton wndow contans a prevew of the two mages

More information

A Gradient Difference based Technique for Video Text Detection

A Gradient Difference based Technique for Video Text Detection A Gradent Dfference based Technque for Vdeo Text Detecton Palaahnakote Shvakumara, Trung Quy Phan and Chew Lm Tan School of Computng, Natonal Unversty of Sngapore {shva, phanquyt, tancl }@comp.nus.edu.sg

More information

A Gradient Difference based Technique for Video Text Detection

A Gradient Difference based Technique for Video Text Detection 2009 10th Internatonal Conference on Document Analyss and Recognton A Gradent Dfference based Technque for Vdeo Text Detecton Palaahnakote Shvakumara, Trung Quy Phan and Chew Lm Tan School of Computng,

More information

Assignment # 2. Farrukh Jabeen Algorithms 510 Assignment #2 Due Date: June 15, 2009.

Assignment # 2. Farrukh Jabeen Algorithms 510 Assignment #2 Due Date: June 15, 2009. Farrukh Jabeen Algorthms 51 Assgnment #2 Due Date: June 15, 29. Assgnment # 2 Chapter 3 Dscrete Fourer Transforms Implement the FFT for the DFT. Descrbed n sectons 3.1 and 3.2. Delverables: 1. Concse descrpton

More information

An Approach in Coloring Semi-Regular Tilings on the Hyperbolic Plane

An Approach in Coloring Semi-Regular Tilings on the Hyperbolic Plane An Approach n Colorng Sem-Regular Tlngs on the Hyperbolc Plane Ma Louse Antonette N De Las Peñas, mlp@mathscmathadmueduph Glenn R Lago, glago@yahoocom Math Department, Ateneo de Manla Unversty, Loyola

More information

TPL-Aware Displacement-driven Detailed Placement Refinement with Coloring Constraints

TPL-Aware Displacement-driven Detailed Placement Refinement with Coloring Constraints TPL-ware Dsplacement-drven Detaled Placement Refnement wth Colorng Constrants Tao Ln Iowa State Unversty tln@astate.edu Chrs Chu Iowa State Unversty cnchu@astate.edu BSTRCT To mnmze the effect of process

More information

Array transposition in CUDA shared memory

Array transposition in CUDA shared memory Array transposton n CUDA shared memory Mke Gles February 19, 2014 Abstract Ths short note s nspred by some code wrtten by Jeremy Appleyard for the transposton of data through shared memory. I had some

More information

USING GRAPHING SKILLS

USING GRAPHING SKILLS Name: BOLOGY: Date: _ Class: USNG GRAPHNG SKLLS NTRODUCTON: Recorded data can be plotted on a graph. A graph s a pctoral representaton of nformaton recorded n a data table. t s used to show a relatonshp

More information

ELEC 377 Operating Systems. Week 6 Class 3

ELEC 377 Operating Systems. Week 6 Class 3 ELEC 377 Operatng Systems Week 6 Class 3 Last Class Memory Management Memory Pagng Pagng Structure ELEC 377 Operatng Systems Today Pagng Szes Vrtual Memory Concept Demand Pagng ELEC 377 Operatng Systems

More information

A Unified Framework for Semantics and Feature Based Relevance Feedback in Image Retrieval Systems

A Unified Framework for Semantics and Feature Based Relevance Feedback in Image Retrieval Systems A Unfed Framework for Semantcs and Feature Based Relevance Feedback n Image Retreval Systems Ye Lu *, Chunhu Hu 2, Xngquan Zhu 3*, HongJang Zhang 2, Qang Yang * School of Computng Scence Smon Fraser Unversty

More information

TOWARDS ADVANCED DATA RETRIEVAL FROM LEARNING OBJECTS REPOSITORIES

TOWARDS ADVANCED DATA RETRIEVAL FROM LEARNING OBJECTS REPOSITORIES The Fourth Internatonal Conference on e-learnng (elearnng-03), 6-7 September 03, Belgrade, Serba TOWARDS ADVANCED DATA RETRIEVAL FROM LEARNING OBJECTS REPOSITORIES VALENTINA PAUNOVIĆ Belgrade Metropoltan

More information

Adaptive Load Shedding for Windowed Stream Joins

Adaptive Load Shedding for Windowed Stream Joins Adaptve Load Sheddng for Wndowed Stream Jons Buğra Gedk, Kun-Lung Wu, Phlp S. Yu, Lng Lu College of Computng, Georga Tech Atlanta GA 333 {bgedk,lnglu}@cc.gatech.edu IBM T. J. Watson Research Center Yorktown

More information

Lecture 5: Multilayer Perceptrons

Lecture 5: Multilayer Perceptrons Lecture 5: Multlayer Perceptrons Roger Grosse 1 Introducton So far, we ve only talked about lnear models: lnear regresson and lnear bnary classfers. We noted that there are functons that can t be represented

More information

CHAPTER 10: ALGORITHM DESIGN TECHNIQUES

CHAPTER 10: ALGORITHM DESIGN TECHNIQUES CHAPTER 10: ALGORITHM DESIGN TECHNIQUES So far, we have been concerned wth the effcent mplementaton of algorthms. We have seen that when an algorthm s gven, the actual data structures need not be specfed.

More information

Complex Numbers. Now we also saw that if a and b were both positive then ab = a b. For a second let s forget that restriction and do the following.

Complex Numbers. Now we also saw that if a and b were both positive then ab = a b. For a second let s forget that restriction and do the following. Complex Numbers The last topc n ths secton s not really related to most of what we ve done n ths chapter, although t s somewhat related to the radcals secton as we wll see. We also won t need the materal

More information

Design and Analysis of Algorithms

Design and Analysis of Algorithms Desgn and Analyss of Algorthms Heaps and Heapsort Reference: CLRS Chapter 6 Topcs: Heaps Heapsort Prorty queue Huo Hongwe Recap and overvew The story so far... Inserton sort runnng tme of Θ(n 2 ); sorts

More information

A fault tree analysis strategy using binary decision diagrams

A fault tree analysis strategy using binary decision diagrams Loughborough Unversty Insttutonal Repostory A fault tree analyss strategy usng bnary decson dagrams Ths tem was submtted to Loughborough Unversty's Insttutonal Repostory by the/an author. Addtonal Informaton:

More information

Querying and Ranking XML Documents Based on Data Synopses

Querying and Ranking XML Documents Based on Data Synopses Queryng and Rankng XML Documents Based on Data Synopses Wemn He 1, Teng Lv 2 1 Department of Computng and New Meda Technologes Unversty of Wsconsn-Stevens Pont Stevens Pont, Wsconsn 54481, USA whe@uwsp.edu

More information

Optimal Workload-based Weighted Wavelet Synopses

Optimal Workload-based Weighted Wavelet Synopses Optmal Workload-based Weghted Wavelet Synopses Yoss Matas School of Computer Scence Tel Avv Unversty Tel Avv 69978, Israel matas@tau.ac.l Danel Urel School of Computer Scence Tel Avv Unversty Tel Avv 69978,

More information

OPTIMIZATION TECHNIQUE FOR PRIME NUMBER LABELING OF DIRECTED ACYCLIC GRAPHS

OPTIMIZATION TECHNIQUE FOR PRIME NUMBER LABELING OF DIRECTED ACYCLIC GRAPHS Journal of Theoretcal and Appled Informaton Technology 5 th February 207. Vol.95. No.3 2005 ongong JATIT & LLS ISSN: 992-8645 www.jatt.org E-ISSN: 87-395 OPTIMIZATION TECHNIQUE FOR PRIME NUMBER LABELING

More information

Performance Evaluation of Information Retrieval Systems

Performance Evaluation of Information Retrieval Systems Why System Evaluaton? Performance Evaluaton of Informaton Retreval Systems Many sldes n ths secton are adapted from Prof. Joydeep Ghosh (UT ECE) who n turn adapted them from Prof. Dk Lee (Unv. of Scence

More information

GSLM Operations Research II Fall 13/14

GSLM Operations Research II Fall 13/14 GSLM 58 Operatons Research II Fall /4 6. Separable Programmng Consder a general NLP mn f(x) s.t. g j (x) b j j =. m. Defnton 6.. The NLP s a separable program f ts objectve functon and all constrants are

More information

Term Weighting Classification System Using the Chi-square Statistic for the Classification Subtask at NTCIR-6 Patent Retrieval Task

Term Weighting Classification System Using the Chi-square Statistic for the Classification Subtask at NTCIR-6 Patent Retrieval Task Proceedngs of NTCIR-6 Workshop Meetng, May 15-18, 2007, Tokyo, Japan Term Weghtng Classfcaton System Usng the Ch-square Statstc for the Classfcaton Subtask at NTCIR-6 Patent Retreval Task Kotaro Hashmoto

More information

Virtual Memory. Background. No. 10. Virtual Memory: concept. Logical Memory Space (review) Demand Paging(1) Virtual Memory

Virtual Memory. Background. No. 10. Virtual Memory: concept. Logical Memory Space (review) Demand Paging(1) Virtual Memory Background EECS. Operatng System Fundamentals No. Vrtual Memory Prof. Hu Jang Department of Electrcal Engneerng and Computer Scence, York Unversty Memory-management methods normally requres the entre process

More information

Module Management Tool in Software Development Organizations

Module Management Tool in Software Development Organizations Journal of Computer Scence (5): 8-, 7 ISSN 59-66 7 Scence Publcatons Management Tool n Software Development Organzatons Ahmad A. Al-Rababah and Mohammad A. Al-Rababah Faculty of IT, Al-Ahlyyah Amman Unversty,

More information

arxiv: v2 [cs.db] 18 Sep 2017

arxiv: v2 [cs.db] 18 Sep 2017 Effcent Approxmate Query Answerng over Sensor Data wth Determnstc Error Guarantees arxv:1707.01414v2 [cs.db] 18 Sep 2017 ABSTRACT Jaquelne Brto UC San Dego jabrto@cs.ucsd.edu Yanns Katss UC San Dego katss@cs.ucsd.edu

More information

TF 2 P-growth: An Efficient Algorithm for Mining Frequent Patterns without any Thresholds

TF 2 P-growth: An Efficient Algorithm for Mining Frequent Patterns without any Thresholds TF 2 P-growth: An Effcent Algorthm for Mnng Frequent Patterns wthout any Thresholds Yu HIRATE, Ego IWAHASHI, and Hayato YAMANA Graduate School of Scence and Engneerng, Waseda Unversty {hrate, ego, yamana}@yama.nfo.waseda.ac.jp

More information

y and the total sum of

y and the total sum of Lnear regresson Testng for non-lnearty In analytcal chemstry, lnear regresson s commonly used n the constructon of calbraton functons requred for analytcal technques such as gas chromatography, atomc absorpton

More information

CPU Load Shedding for Binary Stream Joins

CPU Load Shedding for Binary Stream Joins Under consderaton for publcaton n Knowledge and Informaton Systems CPU Load Sheddng for Bnary Stream Jons Bugra Gedk 1,2, Kun-Lung Wu 1, Phlp S. Yu 1 and Lng Lu 2 1 IBM T.J. Watson Research Center, Hawthorne,

More information

Outline. CHARM: An Efficient Algorithm for Closed Itemset Mining. Introductions. Introductions

Outline. CHARM: An Efficient Algorithm for Closed Itemset Mining. Introductions. Introductions CHARM: An Effcent Algorthm for Closed Itemset Mnng Authors: Mohammed J. Zak and Chng-Ju Hsao Presenter: Junfeng Wu Outlne Introductons Itemset-Tdset tree CHARM algorthm Performance study Concluson Comments

More information

Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted from Hennessy & Patterson / 2003 Elsevier

Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted from Hennessy & Patterson / 2003 Elsevier Some materal adapted from Mohamed Youns, UMBC CMSC 611 Spr 2003 course sldes Some materal adapted from Hennessy & Patterson / 2003 Elsever Scence Performance = 1 Executon tme Speedup = Performance (B)

More information

Analysis of Non-coherent Fault Trees Using Ternary Decision Diagrams

Analysis of Non-coherent Fault Trees Using Ternary Decision Diagrams Analyss of Non-coherent Fault Trees Usng Ternary Decson Dagrams Rasa Remenyte-Prescott Dep. of Aeronautcal and Automotve Engneerng Loughborough Unversty, Loughborough, LE11 3TU, England R.Remenyte-Prescott@lboro.ac.uk

More information

Constructing Minimum Connected Dominating Set: Algorithmic approach

Constructing Minimum Connected Dominating Set: Algorithmic approach Constructng Mnmum Connected Domnatng Set: Algorthmc approach G.N. Puroht and Usha Sharma Centre for Mathematcal Scences, Banasthal Unversty, Rajasthan 304022 usha.sharma94@yahoo.com Abstract: Connected

More information

NGPM -- A NSGA-II Program in Matlab

NGPM -- A NSGA-II Program in Matlab Verson 1.4 LIN Song Aerospace Structural Dynamcs Research Laboratory College of Astronautcs, Northwestern Polytechncal Unversty, Chna Emal: lsssswc@163.com 2011-07-26 Contents Contents... 1. Introducton...

More information

Steps for Computing the Dissimilarity, Entropy, Herfindahl-Hirschman and. Accessibility (Gravity with Competition) Indices

Steps for Computing the Dissimilarity, Entropy, Herfindahl-Hirschman and. Accessibility (Gravity with Competition) Indices Steps for Computng the Dssmlarty, Entropy, Herfndahl-Hrschman and Accessblty (Gravty wth Competton) Indces I. Dssmlarty Index Measurement: The followng formula can be used to measure the evenness between

More information

Efficient Distributed File System (EDFS)

Efficient Distributed File System (EDFS) Effcent Dstrbuted Fle System (EDFS) (Sem-Centralzed) Debessay(Debsh) Fesehaye, Rahul Malk & Klara Naherstedt Unversty of Illnos-Urbana Champagn Contents Problem Statement, Related Work, EDFS Desgn Rate

More information

NAG Fortran Library Chapter Introduction. G10 Smoothing in Statistics

NAG Fortran Library Chapter Introduction. G10 Smoothing in Statistics Introducton G10 NAG Fortran Lbrary Chapter Introducton G10 Smoothng n Statstcs Contents 1 Scope of the Chapter... 2 2 Background to the Problems... 2 2.1 Smoothng Methods... 2 2.2 Smoothng Splnes and Regresson

More information