Properties of Tree Convex Constraints 1,2

Size: px
Start display at page:

Download "Properties of Tree Convex Constraints 1,2"

Transcription

1 Properties of Tree Convex Constrints 1,2 Yunlin Zhng, Eugene C Freuder b Deprtment of Computer Science, Texs Tech University, Lubbock, USA b Cork Constrint Computtion Center, University College Cork, Irelnd Abstrct It is known tht tree convex network is globlly consistent if it is pth consistent However, if tree convex network is not pth consistent, enforcing pth consistency on it my not mke it globlly consistent In this pper, we investigte the properties of some tree convex constrints under intersection nd composition As result, we identify sub-clss of tree convex networks tht re loclly chin convex nd strictly union closed This clss of problems cn be mde globlly consistent by rc nd pth consistency nd thus is trctble Interestingly, we lso find tht some scene lbeling problem cn be modeled by tree convex constrints in nturl nd meningful wy Key words: Constrint networks, tree convex constrints, row convex constrints, connected row convex constrints, scene lbeling problem 1 Introduction A binry constrint network is tree convex [20] if we cn construct tree for the domin of ech vrible so tht for ny constrint, no mtter wht vlue one vrible tkes, ll the vlues llowed for the other vrible form subtree of the constructed tree As n exmple, the constrint c xy of Fig 1() is tree convex while c xy of Fig 1(c) is not Corresponding uthor Emil ddresses: yzhng@csttuedu (Yunlin Zhng), efreuder@4cuccie (Eugene C Freuder) 1 A preliminry version of this pper ppered in [18] 2 This work hs received support from Science Foundtion Irelnd under Grnt 00/PI1/C075 Preprint submitted to Elsevier Science 27 July 2007

2 b c d c xy = b c b c d c xy = () (b) (c) Fig 1 () Constrint c xy is represented by mtrix The column {, b, c} beside the mtrix is the domin of x, nd the row {, b, c, d} bove the mtrix is the domin of y (b) A tree constructed for the vlues of the domin of y c xy is tree convex with respect to this tree (c) c xy is obtined from c xy by deleting the vlue from the domin of y c xy is not tree convex with respect to ny tree Tree convex constrints further the study of the convexity nd monotonicity of constrints [14,13] It hs been shown tht tree convex network is globlly consistent if it is pth consistent However, if tree convex network is not pth consistent, enforcing pth consistency on it my not mke it globlly consistent becuse some constrints my be modified during the enforcing procedure nd thus my no longer be tree convex In this pper, we exmine the tree convex constrints nd chrcterize conditions under which the desirble tree convex property of network is preserved when rc nd pth consistency re enforced We then identify trctble clss of restricted tree convex constrints This result generlizes the erlier work on monotone [13] nd connected row convex constrints [5] The ltter is built on the work of [14] Finlly, we show tht tree convex constrints help to model some scene lbeling problems in nturl nd meningful wy The relted work by Jevons et l [7,8] nd Kumr [10] will be discussed in the lst section 2 Preliminries In this section, we review the bsic concepts nd nottions used in this pper Constrint Networks A binry constrint network consists of set of vribles V = {x 1, x 2,, x n } with finite domin D i for ech vrible x i V, nd set of binry constrints C over the vribles of V c xy denotes constrint on vribles x nd y which is defined s reltion over D x nd D y Opertions on reltions, eg, intersection ( ), composition ( ), nd inverse, re pplicble to constrints We ssume tht, between ny ordered vribles (x, y), there is only one constrint c xy nd c yx re considered to be two different constrints However, we 2

3 ssume the inverse of c xy is equl to c yx Imge Given constrint c xy nd vlue u D x, v D y is support of u if u nd v stisfy c xy, tht is (u, v) c xy The imge of u under c xy, denoted by I y (u), is the set of ll its supports in D y The imge of subset of D x is the union of the imges of its vlues k-consistency A constrint network is k-consistent if ny consistent instntition of ny distinct k 1 vribles cn be consistently extended to ny new vrible A network is strongly k-consistent if it is j-consistent for ll j k A strongly n-consistent network is clled globlly consistent 2- nd 3-consistency re usully clled rc consistency nd pth consistency respectively Note tht, under this definition, we need to dd universl constrint between vribles tht re not explicitly constrined by the network More mterils on these concepts cn be found in [11,13,6] Forests, Trees, Chins, nd Sets In the following we review trees tht ply fundmentl role in the nlysis of tree convex constrints nd introduce some new nottions used in this pper A forest is grph without ny cycles A tree is connected grph without ny cycles A forest cn be regrded s set of trees In the rest of the pper, we lwys ssume there is root for tree in forest The pth between ny two nodes (or vertices) of tree is unique nd the distnce of node to the root is defined s the number of edges in the pth between them Given tree, subtree is defined s connected subgrph of the tree, nd its root is the node closest to the root of the tree A forest on set S is forest whose vertex set is exctly S We lso cll set I subtree of forest T if there exists subtree of some tree in T such tht its vertex set is exctly I An empty set is subtree of ny forest A tree (nd subtree respectively) becomes chin (nd subchin respectively) if ech of its nodes hs t most one child The lst vlue (or node) of subchin is the frthest one wy from its root For exmple, the grph in Fig 1(b) is tree on {, b, c, d} {, b, c} is subtree of it, nd {, b} is subchin whose lst vlue is b The intersection of two trees is defined s the grph whose vertices nd edges re in both trees It hs the following property: Proposition 1 [20] Let T 1, T 2 be two subtrees of some tree The intersection of T 1 nd T 2 is lso subtree of the tree Furthermore, if the intersection is not empty, the root of the intersection is either the root of T 1 or tht of T 2 Next, we relx the tree structures, used in some concepts in [20], to the forest structures 3

4 Definition 1 Sets E 1,, E k re tree convex with respect to forest T on E i if every E i is subtree of T i 1l For exmple, given the tree in Fig 1(b), sets {, b, c}, {, b, d}, nd {, c, d} re tree convex Definition 2 A constrint c xy is tree convex with respect to forest T on D y if the imges of ll vlues in D x re tree convex with respect to T Exmple Consider c xy in Fig 1() The imges of, b, c re {, b, c}, {, c, d}, nd {, b, d} respectively They re tree convex with respect to the tree in Fig 1(b) nd thus c xy is tree convex with respect to tht tree The reders re invited to verify tht there is no tree to mke c xy (in Fig 1(c)) tree convex In [20], tree convex constrint network is defined s network where ll constrints re tree convex with respect to common tree on the union of ll domins in the network In the following definition, only the forests on the individul domins mtter Definition 3 A constrint network is tree convex if there exists forest on the domin of ech vrible such tht every constrint c xy of the network is tree convex with respect to the forest on D y As pointed out by one of the referees, the new definition of tree convexity of constrint networks is equivlent to the old ones [20] if the domins of the vribles re disjoint Given ny problem, we cn mke the domins of the vribles disjoint by renming the vlues of the domins of the vribles so tht they re different from those of the domins of the other vribles The renming preserves the solutions of constrint network One dvntge of the new definition is tht even if the domins of two vribles shre some vlues, it explicitly llows us to construct different forests for them in deciding the tree convexity of the network More importntly, in this pper, we need to introduce further restrictions (eg, consecutiveness) on tree convex constrints The forest-bsed definition helps to simplify the presenttion, the proofs, nd the understnding of the results The tree convex set intersection lemm in [20] still holds for the new definition of tree convex sets, which cn be lifted to the following consistency result Proposition 2 A tree convex constrint network is globlly consistent if it is pth consistent The proof follows directly from tht of [20] becuse the new definition does not ffect the essentil prt of tht proof 4

5 3 Properties of Intersection nd Composition of Tree Convex Constrints A network cn be mde pth consistent by removing from the constrints the tuples which cn not be consistently extended to new vrible It is equivlent to the mtrix computtion c xy = c xy (c zy c xz ), where denotes composition To mke use of Theorem 2, we need to study the impct of the intersection nd composition opertions on the tree convexity of constrints Intersection preserves tree convexity Proposition 3 Assume constrints c 1 xy nd c 2 xy re tree convex with respect to forest T on the domin D y Their intersection is lso tree convex Proof Let c xy = c 1 xy c 2 xy For ny v D x, its imges under c 1 xy nd c 2 xy re both subtrees of T The intersection of the two imges is subtree of T by Proposition 1 Tht is, the imge of every v D x is subtree of T Hence, c xy is tree convex However, the composition of tree convex constrints might not preserve the tree convexity Let us use more intuitive wy thn mtrix multipliction to understnd the composition Consider the constrints in Fig 2 After composing c xy nd c yz, the imge of under the composition c xz is {, b, c, d} tht is exctly the union of the imges of b nd d in D y under c yz To ssure tht the imge of under c xz is tree, we cn simply require tht I z (b) I z (d) is (sub)tree, tht is I z (b) nd I z (d) touch ech other x c xy y c yz z x c xz z b b b c d c d c d Fig 2 The composition of two constrints In the digrms of this pper, vlue is drwn s dot or letter, nd vrible is drwn s n ellipse The vlues inside n ellipse form the domin of the corresponding vrible The edges between two ellipses specify the constrint between the corresponding vribles Definition 4 A tree convex constrint c xy with respect to forest T y on D y is consecutive with respect to forest T x on D x if nd only if for every two neighboring vlues, b on T x, I y () I y (b) is subtree of T y A constrint network is tree convex nd consecutive iff there exists forest on ech domin such tht every constrint c xy is tree convex nd consecutive with respect to the forests on D y nd D x Proposition 4 The clss of consecutive tree convex constrints is closed under composition 5

6 Proof Let c xy nd c yz be two consecutive tree convex constrints with respect to forests T x, T y nd T z on D x, D y nd D z respectively, nd c xz the composition of c xy nd c yz Firstly, we show tht c xz is tree convex Consider ny v D x Let its imge in D y be I y (v) The imge of v under c xz would be b Iy(v)I z (b) where I z (b) is the imge of b under c yz Since the union of the imges of ny neighboring vlues in I y (v) is subtree of T z, the union of ll the imges of vlues of I y (v) is subtree of T z Secondly, we show tht c xz is consecutive Let u, v D x be neighbors under T x Let I z (u) nd I z (v) be their imges under c xz Since c xy is consecutive, I y (u) I y (v) is subtree of T y Hence, the union of the imges (with respect to c yz ) of the vlues of I y (u) I y (v) is subtree of T z due to the consecutiveness of c yz Therefore, I z (u) I z (v) is subtree of T z 4 Trctble Tree Convex Constrint Networks The intersection of two subtrees my be n empty set, which mens tht, fter the intersection of two tree convex constrints, the imge of vlue could be empty Deleting such vlue could mke constrint no longer tree convex, which is shown by the exmple in Fig 1 It is lso interesting to note tht constrint c xy my become tree convex fter sufficient number of vlues re removed from D y The following specil clss of tree convex constrints tht is closed under the opertion of deleting vlues Definition 5 A constrint c xy is loclly chin convex with respect to forest on D y if nd only if the imge of every vlue in D x is subchin of the forest A constrint network is loclly chin convex iff there exists forest on ech domin such tht every constrint c xy is loclly chin convex with respect to the forest on D y For exmple, under the tree for D y in Fig 1(b), the constrint in Fig 1() is not loclly chin convex becuse the imge of D x is {, b, c} tht is not subchin of the tree on D y In fct, there does not exist ny tree to mke it chin convex Proposition 5 A loclly chin convex constrint network (V, D, C) is still loclly chin convex fter the removl of ny vlue from ny domin Proof Assume the forest on D y is T y nd vlue v is removed from D y The removl of v does not ffect the property of ny constrint c yx C We need to show tht every c xy C is loclly chin convex The deletion of v could 6

7 mke the imges of some vlues of D x not connected By constructing new forest T y on D y, those broken subchins would be connected under T y Let the children of v be v 1,, v l nd the prent of v be p v Construct new forest T y from T y by removing v nd ll edges incident on v If v is the root of some tree of T y, let T y be T y The imge of ny vlue of D x either contins v or not In the ltter cse, the imge is still chin In the former cse, v is the shllowest node of the imge, chin, nd thus the imge is still chin fter the removl of v If v is not the root of ny tree of T y, construct T y from T y by dding n edge between p v nd v i for ll i(1 i l) The imge of ny vlue of D x is subchin of T y To identify trctble clss of tree convex constrints, first ttempt is to combine the locl chin convexity (for deleting vlue) with consecutiveness (for composition) However, the composition my destroy the chin convexity, s shown by the exmple in Fig 3() c x b c xy y b c d c d d b () c yz z y c yx x p v p r v r l c v c l (b) Fig 3 In this digrm, we drw the tree on domin inside n ellipse () Both c xy nd c yz re loclly chin convex, but their composition is not becuse the imge of b D x under this composition is {b, c, d} (the drkened shpe) tht is not subchin (b) t y contins the solid lines in D y t x contins (p r, r, l, c l ) t r contins (r, l) The imge of vlue under the composition is the union of severl subchins This union cn not be gurnteed to be subchin by the consecutiveness of the constrints We need stronger restriction Definition 6 A constrint c xy is loclly chin convex nd strictly union closed with respect to forests T x on D x nd T y on D y iff the imge of ny subchin of T x is subchin of T y Remrk Locl chin convexity nd strict union closedness imply consecutiveness of constrint network; but consecutiveness of loclly chin convex network might not imply strict union closedness s shown by the exmple in Fig 3 Now we introduce the clss of constrint networks tht is closed under the removl of vlue, nd the intersection nd composition of constrints Definition 7 A constrint network is loclly chin convex nd strictly union closed iff there exists forest on ech domin such tht every constrint c xy 7

8 of the network is loclly chin convex nd strictly union closed with respect to the forests on D x nd D y Theorem 1 A loclly chin convex nd strictly union closed constrint network (V, D, C) cn be trnsformed to n equivlent globlly consistent network in polynomil time Proof We show tht the given network is loclly chin convex fter rc nd pth consistency re enforced on it In ccordnce with Theorem 2, the new network is globlly consistent It is known tht rc nd pth consistency enforcing [19] re of polynomil complexity Since rc consistency enforcing only removes vlues from domins, we show tht fter the removl of ny vlue v D y the network is still loclly chin convex nd strictly union closed Tht is, we show tht ll constrints c xy, c yx C re loclly chin convex nd strictly union closed Cse 1 Consider ny c xy C nd the forests T x on D x nd T y on D y Similr to the proof of Proposition 5, we cn construct new forest T y for y such tht for every subchin of T x, its imge is still subchin under T y Cse 2 Consider ny constrint c yx C nd the forests T x on D x nd T y on D y If it is still loclly chin convex nd strictly union closed, we re done Otherwise, there exists subchin t y of T y such tht it contins v nd its imge is no longer connected grph due to the removl of v See Fig 3(b) Let t x be the imge of t y before removing v After the removl of v, t x is broken into two chins Let the gp (removed subchin) in t x be t r Note t r might not be equl to the imge of v due to the possible overlpping of the imge of v nd tht of its prent nd/or child Let r be the root nd l the lst node of t r Let p v nd p r be the prents of v nd r respectively, nd c v nd c l the children of v nd l respectively Consider ny node u t r We know tht u is supported by v, but not by p v or by c v in t y Further, since c xy is loclly chin convex nd strictly union closed, the imge of t x must be subchin contining (p v, v, c v ) It implies tht the imge of u must be on or contin the subchin (p v, v, c v ) Hence, v is the only support of u After v is gone, u should lso be removed After the removl of t r, the imge of t y is now connected nd thus subchin Next, we show tht pth consistency enforcing preserves the locl chin convexity nd strict union closedness For ny constrint c xz, pth consistency is usully done by first composing c xy nd c yz, nd then setting the new constrint between x nd z to be the intersection of c xz nd c yz c xy Firstly, we show tht the composition of c xy nd c yz is loclly chin convex nd strictly union closed Assume c xy nd c yz re loclly chin convex nd strictly union closed with respect to the forests T x, T y nd T z on D x, D y nd D z respectively For ny subchin t x D x, its imge t y under c xy is subchin 8

9 Since the imge of t y with respect to c yz is subchin of D z, the imge of t x under the composition is subchin of D z c xz c xz x z p v v b c d () c xz x p v v (b) z b c d p v x v c xz (c) b c d z Fig 4 () c xz c xz In the intersection, ssume b nd c re not shred by the imges of v under c xz nd under c xz The constrints c xz nd c xz should hve form s shown in (b) nd (c) Secondly, we show tht the intersection, c xz, of c xz nd c xz (= c xy c yz ) is loclly chin convex nd strictly union closed Consider subchin, with only one vlue, of D x Its imges under c xz nd c xz re subchins of the forest on D z Their intersection is still chin nd thus v s imge under c xz is subchin Consider subchin t x, with more thn one vlues, of D x In this prgrph, when we refer to n imge, it is under c xz If the imge of t x is subchin of D z, we re done Otherwise, let t z be the imge of t x t z is not subchin Since the intersection does not form cycle, t z must not be connected Strting from the root of t x, we find the first vlue v t x whose imge is disjoint from the imge of its prent p v Assume the imge of v is below tht of p v (the opposite cn be proved similrly) Let be the lst vlue of p v s imge Let d be the root of v s imge See Fig 4() Let u be ny vlue between (but not including) nd d in D z We next prove tht there is no support for u Hence, vlues between nd d should be removed nd the imge of t x is chin fter the deletion Let p v s imges under c xz nd c xz be I(p v ) nd I (p v ) respectively The intersection of I(p v ) nd I (p v ) is subchin of D z Since both I(p v ) nd I (p v ) re chins, must be the lst vlue of either I(p v ) or I (p v ) Assume it is the lst vlue of I(p v ) See Fig 4(b) It implies p v is not in u s imge I(u) under c zx, since u is between nd d I(u) hs to be below p v (not including it) becuse I(u) is chin Let I(v) nd I (v) be the imges of v under c xz nd c xz respectively I(v) should include t lest d nd ll vlues between nd d in the tree D z becuse c xz is loclly chin convex nd strictly union closed Since d is the root of I(v) I (v), I (v) includes d but does not include vlues bove d (see Fig 4(c)) Hence, v is not support of u (under c xz), implying tht I (u) hs to be bove v (not including it) Therefore, the imge of u under c xz is empty becuse it is the intersection of I(u) nd I (u) In other words, u hs no support in the intersection of c xz nd c xz 9

10 Now we re ble to discuss cse ignored in the previous discussion In the originl constrint network, there might not be ny constrint between some vribles, sy x nd y Without loss of generlity, we ssume the grph of the originl network is connected Therefore, there must be pth from x to y All constrints on the pth re loclly chin convex nd strictly union closed By the result in the previous prgrphs, the intersection nd composition of loclly convex nd strictly union closed constrints re closed Let c xy be the composition of the constrints over the pth in order The constrint c xy is loclly chin convex nd strictly union closed Now, before enforcing pth consistency (nd possibly one more round of rc consistency), set the constrint between x nd y to be c xy nd repet this for ny two vribles without direct constrint on them After this modifiction, for ny two vribles there is constrint on them tht is loclly chin convex nd strictly union closed Hence, the constrint network is loclly chin convex fter enforcing pth consistency nd thus is globlly consistent 5 An Appliction of Tree Convex Networks In this section, we exmine the ppliction of tree convex constrints to scene lbeling problem Given two dimensionl line drwing of physicl world of plne-fced objects, the scene lbeling problem is to identify from the drwing the physicl objects nd their sptil reltions with the requirement tht the identifiction grees with humn being Wltz nd others reduce this problem into problem of ssociting line with lbel such tht set of concrete constrints on the junctions re stisfied Given line drwing, junction is defined s the mximum set of lines tht intersect t the sme point Note tht lines of drwing correspond to edges of physicl objects, nd junctions correspond to vertexes of physicl objects There re only three types of edges tht line cn represent: convex, concve, nd boundry edges tht re denoted by the lbels +, - nd > respectively An edge is the intersection of two surfces of n object It is convex if it cn be touched by bll from the front For exmple, when there is cube in front of viewer, its top edge is convex for the viewer An edge is concve if it cn never be touched by bll For exmple, when viewer fces wll nd floor, their intersection edge is concve becuse there is no wy to mke bll touch the edge from the front A boundry edge is the intersection of the bckground nd surfce of n object of concern An excellent exposition of scene lbeling problems cn be found in the book [16], nd detiled tretment of this topic cn be found in [15] Scene lbeling problems re NP-hrd [9] In the following, we show tht some scene lbeling instnce cn be modeled nturlly by tree convex constrints 10

11 nd solved efficiently Consider the line drwing in Fig 5 tken from [14] This drwing involves three types of junctions: Fork, Arrow, nd Ell The shpe of junction 1 is Fork, tht of the junctions 3 nd 5 is n Arrow, nd tht of junctions 4, 6 nd 7 is n Ell To lbel this drwing is to find solution of constrint network defined s follows We introduce vrible x i for ech junction i A vlue for vrible is wy to lbel the lines in the corresponding junction Under pproprite ssumptions, there re only 5 physiclly relizble wys to lbel Fork, 3 n Arrow, nd 6 n Ell, which re listed in Fig 5 The constrints on the vribles re strightforwrd, ie, ny two vribles should tke the sme lbel on their shred line All the constrints re listed s mtrices in Fig A line drwing Fork Arrow u v w Ell b c d e Fig 5 The left is line drwing, nd the right is tble of the lbelings for vrious junctions The letter bove ech lbeling of junction is its nme by which the lbeling is referred to in the rest of this section A distinctive feture of this model is tht the vlues of vrible hve complex structures nd there is some nturl reltionship mong them Consider the vlues for Fork junction in Fig 5 Vlues c, d, nd e hve n edge lbeled s -, nd ll three edges of b re lbeled s - We cn let b be the prent of c, d nd e, resulting in the subtree {b, c, d, e} in Fig 6() Since vlue hs nothing to do with the rest, it forms tree itself Similrly, we hve the forests for Arrow vlues in Fig 6(b) nd Ell vlues in Fig 6(c) Under these forests, the constrints re loclly chin convex nd strongly union closed For exmple, consider the constrint c 21 on vribles x 2 nd x 1 in Fig 6 The domin of x 1 is shown in Fig 6 (), nd tht of x 2 in Fig 6(b) It cn be verified tht the imge of every subchin of the forest of x 2 is subchin of the forest of x 1 Note tht n empty set is tken s (trivil) subchin of ny tree By Theorem 1, this network is globlly consistent fter rc nd pth consistency re enforced on it In this exmple, we hve identified the forest structures for the domins in n intuitive nd meningful wy A more generl lesson is tht by studying the semntics of domin vlues, we could discover more efficient constrint solving techniques 11

12 bcde u c 21 = v c 31 = c 51 = w c b d e () Fork v u w (b) Arrow u c 24 = c 37 = c 56 = v w c 26 = c 34 = c 57 = (c) Ell Fig 6 The constrints for lbeling the drwing in Fig 5 6 Relted Work nd Conclusion Jevons nd collegues hve done series of work to chrcterize the complexity of constrint lnguges [3] A constrint lnguge is prmeterized by set Given set D, constrint lnguge over D is set of reltions with finite rity Given lnguge L over D, the constrint stisfction problems ssocited with L, denoted by CSP(L), re triple (V, D, C) where V is n rbitrry set of vribles, D (over which L is defined) the domin of ech vrible of V, nd C the set of constrints over the vribles such tht ech c C belongs to L A constrint lnguge L over D is trctble if CSP(L ) cn be solved in polynomil time, for ech finite subset L L Severl types of polymorphism hve been identified to chrcterize the trctble lnguges In this pper, insted of constrint lnguge, we consider the trctbility of set of problems (V, D, C) where V = {1, 2,, n}, D = {D 1, D 2,, D n } nd D i (n rbitrry finite set) is the domin of vrible i (i 1n), nd C set of constrints Our result shows tht this set of problems cn be solved in polynomil time when certin convexity properties re stisfied Although the trctbility of constrint lnguge seems to be the sme s the trctbility of set of problems, they re indeed different The key difference lies in tht constrint lnguge involves fixed domin D nd fixed set of reltions L All vribles in different instnces of CSP(L) hve to hve the sme domin D A recent work [2] hs generlized constrint lnguges to multi-sorted constrint lnguges tht re over more thn one set For multi-sorted constrint lnguge L over {D 1, D 2,, D k }, the vribles in CSP(L) re llowed to tke ny D i (i 1k) s their domins It is shown tht even this simple extension hs serious consequences for the chrcteriztion of constrint lnguges: [the originl constrint lnguges] cn in fct msk the difference between trctbility nd NP-completeness for some lnguges, [2] Not ll results for constrint lnguges hold for multi-sorted lnguges There is still gp between multi-sorted lnguge nd set of problems In 12

13 the CSPs ssocited with multi-sorted lnguge, the domins of vribles re restricted to fixed collection of sets while in set of problems, rbitrry set is llowed to be the domin of vrible The knowledge is still bsent on how lgebric opertions cn be used to directly chrcterize the trctbility of set of problems To hve better understnding of the reltionship between our result nd the results on constrint lnguges, we focus on constrint lnguges Consider constrint lnguge L over D Prticulrly, every reltion R L stisfies the convexity property mentioned in Theorem 1 Since enforcing rc nd pth consistency gurntees globl consistency of CSP(L) (by Theorem 1), L must hve ner-unnimity polymorphism by the result in [8] In this sitution, the result in [8] gives generl chrcteriztion ( indirectly through lgebric opertions) of ll constrint lnguges on which enforcing locl (k-) consistency ensures globl consistency while our result helps to identify concrete subclss of these lnguges ( directly through the convexity properties of the constrints) Bsed on the work reported here, Kumr [10] hs proposed more generl property on tree convexity rc consistent consecutive tree convexity (AC- CTC) such tht the problems with tht property re trctble Rdiclly different from our nd Jevons nd collegues pproches, Kumr uses rndom lgorithms s tool to show the trctbility of the problems of concern Due to the nture of our pproch, enforcing rc nd pth consistency on our proposed clss of problems ensures globl consistency, nd there is efficient deterministic lgorithms to chieve the globl consistency [12,1] For the ACCTC problems, it is not known whether there is efficient deterministic lgorithms, neither is it known whether the rc nd pth consistency ensures globl consistency The tree convexity of constrint network cn be recognized efficiently [17] Kumr lso observes tht n lgorithm in [4] cn be used to recognize the tree convexity of network lthough no lgorithm is presented to recognize the ACCTC of network As the cse of connected row convexity nd ACCTC, how to recognize efficiently whether constrint network is loclly chin convex nd strictly union closed is n open problem We hve presented some properties of tree convex constrints tht re closed under intersection nd/or composition As result, we identified new trctble clss of networks loclly chin convex nd strictly union closed networks on which enforcing rc nd pth consistency on them ensures globl consistency This result generlizes the existing work on convexity of constrints, eg, [5], nd revels more fundmentl property locl chin convexity nd strict union closedness tht determines the trctbility of clss of convex constrints Our result lso shows direct interction between the semntics of constrints nd the semntics of domin vlues in deciding trctble clss of problems This interction is reflected in the properties of intersection nd 13

14 composition of tree convex constrints An ppliction of the new trctble clss of networks is lso presented, demonstrting tht tree convexity is useful nd nturl wy to chrcterize the semntics of domin vlues, in ddition to the trditionl ones like totl ordering References [1] C Bessiere, JC Regin, RHC Yp, nd Y Zhng An optiml corse-grined rc consistency lgorithm Artificil Intelligence, 165(2): , 2005 [2] Andrei A Bultov nd Peter Jevons An lgebric pproch to multi-sorted constrints In CP, pges , 2003 [3] Dvid Cohen nd Peter Jevons The complexity of constrint lnguges In F Rossi, P vn Beek, nd T Wlsh, editors, Hndbook of Constrint Progrmming, pges Elsevier, 2006 [4] Vincent Conitzer, Jonthn Derryberry, nd Tuoms Sndholm Combintoril uctions with structured item grphs In AAAI, pges , 2004 [5] Y Deville, O Brette, nd P Vn Hentenryck Constrint stisfction over connected row convex constrints In Proceedings of Interntionl Joint Conference on Artificil Intelligence 1997, volume 1, pges , Ngoy, Jpn, 1997 IJCAI Inc (See lso Artificil Intelligence 109(1999): ) [6] EC Freuder Synthesizing constrint expressions Communictions of ACM, 21(11): , 1978 [7] P G Jevons, D A Cohen, nd M Gyssens Closure properties of constrints Journl of The ACM, 44(4): , 1997 [8] Peter Jevons, Dvid A Cohen, nd Mrtin C Cooper Constrints, consistency nd closure Artif Intell, 101(1-2): , 1998 [9] L M Kirousis nd C H Ppdimitriou The complexity of recognizing polyhedrl scenes In Journl of Computer nd System Sciences, volume 37, pges 14 38, 1988 [10] T K Stish Kumr Simple rndomized lgorithms for trctble row nd tree convex constrints In AAAI, 2006 [11] A K Mckworth Consistency in networks of reltions Artificil Intelligence, 8(1): , 1977 [12] R Mohr nd TC Henderson Arc nd pth consistency revisited Artificil Intelligence, 28: , 1986 [13] U Montnri Networks of constrints: fundmentl properties nd pplictions Informtion Science, 7(2):95 132,

15 [14] P vn Beek nd R Dechter On the minimlity nd globl consistency of row-convex constrint networks Journl of The ACM, 42(3): , 1995 [15] D L Wltz Generting semntic descriptions from drwings of scenes with shdows Technicl Report MAC-AI-TR-271, MIT, Cmbridge, MA, 1972 [16] Ptrick Henry Winston Artificil Intelligence Addison-Wesley, Reding, Msschusetts, third edition, 1992 [17] Guy Yosiphon Efficient lgorithm for identifying tree convex constrints Mnuscript, 2003 [18] Yunlin Zhng nd Eugene C Freuder Trctble tree convex constrints In Proceedings of Ntionl Conference on Artificil Intelligence 2004, pges , Sn Jose, CA, USA, 2004 AAAI press [19] Yunlin Zhng nd Rolnd H C Yp Mking AC-3 n optiml lgorithm In Proceedings of Interntionl Joint Conference on Artificil Intelligence 2001, pges , Settle, 2001 IJCAI Inc [20] Yunlin Zhng nd Rolnd H C Yp Consistency nd set intersection In Proceedings of Interntionl Joint Conference on Artificil Intelligence 2003, pges , Acpulco, Mexico, 2003 IJCAI Inc 15

Artificial Intelligence

Artificial Intelligence Artificial Intelligence 172 (2008) 1605 1612 Contents lists available at ScienceDirect Artificial Intelligence www.elsevier.com/locate/artint Properties of tree convex constraints, Yuanlin Zhang a,, Eugene

More information

such that the S i cover S, or equivalently S

such that the S i cover S, or equivalently S MATH 55 Triple Integrls Fll 16 1. Definition Given solid in spce, prtition of consists of finite set of solis = { 1,, n } such tht the i cover, or equivlently n i. Furthermore, for ech i, intersects i

More information

MA1008. Calculus and Linear Algebra for Engineers. Course Notes for Section B. Stephen Wills. Department of Mathematics. University College Cork

MA1008. Calculus and Linear Algebra for Engineers. Course Notes for Section B. Stephen Wills. Department of Mathematics. University College Cork MA1008 Clculus nd Liner Algebr for Engineers Course Notes for Section B Stephen Wills Deprtment of Mthemtics University College Cork s.wills@ucc.ie http://euclid.ucc.ie/pges/stff/wills/teching/m1008/ma1008.html

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

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

INTRODUCTION TO SIMPLICIAL COMPLEXES

INTRODUCTION TO SIMPLICIAL COMPLEXES INTRODUCTION TO SIMPLICIAL COMPLEXES CASEY KELLEHER AND ALESSANDRA PANTANO 0.1. Introduction. In this ctivity set we re going to introduce notion from Algebric Topology clled simplicil homology. The min

More information

SOME EXAMPLES OF SUBDIVISION OF SMALL CATEGORIES

SOME EXAMPLES OF SUBDIVISION OF SMALL CATEGORIES SOME EXAMPLES OF SUBDIVISION OF SMALL CATEGORIES MARCELLO DELGADO Abstrct. The purpose of this pper is to build up the bsic conceptul frmework nd underlying motivtions tht will llow us to understnd ctegoricl

More information

II. THE ALGORITHM. A. Depth Map Processing

II. THE ALGORITHM. A. Depth Map Processing Lerning Plnr Geometric Scene Context Using Stereo Vision Pul G. Bumstrck, Bryn D. Brudevold, nd Pul D. Reynolds {pbumstrck,brynb,pulr2}@stnford.edu CS229 Finl Project Report December 15, 2006 Abstrct A

More information

9 Graph Cutting Procedures

9 Graph Cutting Procedures 9 Grph Cutting Procedures Lst clss we begn looking t how to embed rbitrry metrics into distributions of trees, nd proved the following theorem due to Brtl (1996): Theorem 9.1 (Brtl (1996)) Given metric

More information

Misrepresentation of Preferences

Misrepresentation of Preferences Misrepresenttion of Preferences Gicomo Bonnno Deprtment of Economics, University of Cliforni, Dvis, USA gfbonnno@ucdvis.edu Socil choice functions Arrow s theorem sys tht it is not possible to extrct from

More information

Midterm 2 Sample solution

Midterm 2 Sample solution Nme: Instructions Midterm 2 Smple solution CMSC 430 Introduction to Compilers Fll 2012 November 28, 2012 This exm contins 9 pges, including this one. Mke sure you hve ll the pges. Write your nme on the

More information

Theory of Computation CSE 105

Theory of Computation CSE 105 $ $ $ Theory of Computtion CSE 105 Regulr Lnguges Study Guide nd Homework I Homework I: Solutions to the following problems should be turned in clss on July 1, 1999. Instructions: Write your nswers clerly

More information

Stained Glass Design. Teaching Goals:

Stained Glass Design. Teaching Goals: Stined Glss Design Time required 45-90 minutes Teching Gols: 1. Students pply grphic methods to design vrious shpes on the plne.. Students pply geometric trnsformtions of grphs of functions in order to

More information

CS201 Discussion 10 DRAWTREE + TRIES

CS201 Discussion 10 DRAWTREE + TRIES CS201 Discussion 10 DRAWTREE + TRIES DrwTree First instinct: recursion As very generic structure, we could tckle this problem s follows: drw(): Find the root drw(root) drw(root): Write the line for the

More information

Definition of Regular Expression

Definition of Regular Expression Definition of Regulr Expression After the definition of the string nd lnguges, we re redy to descrie regulr expressions, the nottion we shll use to define the clss of lnguges known s regulr sets. Recll

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

a(e, x) = x. Diagrammatically, this is encoded as the following commutative diagrams / X

a(e, x) = x. Diagrammatically, this is encoded as the following commutative diagrams / X 4. Mon, Sept. 30 Lst time, we defined the quotient topology coming from continuous surjection q : X! Y. Recll tht q is quotient mp (nd Y hs the quotient topology) if V Y is open precisely when q (V ) X

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

Unit 5 Vocabulary. A function is a special relationship where each input has a single output.

Unit 5 Vocabulary. A function is a special relationship where each input has a single output. MODULE 3 Terms Definition Picture/Exmple/Nottion 1 Function Nottion Function nottion is n efficient nd effective wy to write functions of ll types. This nottion llows you to identify the input vlue with

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

1. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES)

1. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES) Numbers nd Opertions, Algebr, nd Functions 45. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES) In sequence of terms involving eponentil growth, which the testing service lso clls geometric

More information

9 4. CISC - Curriculum & Instruction Steering Committee. California County Superintendents Educational Services Association

9 4. CISC - Curriculum & Instruction Steering Committee. California County Superintendents Educational Services Association 9. CISC - Curriculum & Instruction Steering Committee The Winning EQUATION A HIGH QUALITY MATHEMATICS PROFESSIONAL DEVELOPMENT PROGRAM FOR TEACHERS IN GRADES THROUGH ALGEBRA II STRAND: NUMBER SENSE: Rtionl

More information

L. Yaroslavsky. Fundamentals of Digital Image Processing. Course

L. Yaroslavsky. Fundamentals of Digital Image Processing. Course L. Yroslvsky. Fundmentls of Digitl Imge Processing. Course 0555.330 Lecture. Imge enhncement.. Imge enhncement s n imge processing tsk. Clssifiction of imge enhncement methods Imge enhncement is processing

More information

A New Learning Algorithm for the MAXQ Hierarchical Reinforcement Learning Method

A New Learning Algorithm for the MAXQ Hierarchical Reinforcement Learning Method A New Lerning Algorithm for the MAXQ Hierrchicl Reinforcement Lerning Method Frzneh Mirzzdeh 1, Bbk Behsz 2, nd Hmid Beigy 1 1 Deprtment of Computer Engineering, Shrif University of Technology, Tehrn,

More information

2014 Haskell January Test Regular Expressions and Finite Automata

2014 Haskell January Test Regular Expressions and Finite Automata 0 Hskell Jnury Test Regulr Expressions nd Finite Automt This test comprises four prts nd the mximum mrk is 5. Prts I, II nd III re worth 3 of the 5 mrks vilble. The 0 Hskell Progrmming Prize will be wrded

More information

arxiv:math/ v2 [math.co] 28 Feb 2006

arxiv:math/ v2 [math.co] 28 Feb 2006 Chord Digrms nd Guss Codes for Grphs rxiv:mth/0508269v2 [mth.co] 28 Feb 2006 Thoms Fleming Deprtment of Mthemtics University of Cliforni, Sn Diego L Joll, C 92093-0112 tfleming@mth.ucsd.edu bstrct lke

More information

arxiv:cs.cg/ v1 18 Oct 2005

arxiv:cs.cg/ v1 18 Oct 2005 A Pir of Trees without Simultneous Geometric Embedding in the Plne rxiv:cs.cg/0510053 v1 18 Oct 2005 Mrtin Kutz Mx-Plnck-Institut für Informtik, Srbrücken, Germny mkutz@mpi-inf.mpg.de October 19, 2005

More information

Preserving Constraints for Aggregation Relationship Type Update in XML Document

Preserving Constraints for Aggregation Relationship Type Update in XML Document Preserving Constrints for Aggregtion Reltionship Type Updte in XML Document Eric Prdede 1, J. Wenny Rhyu 1, nd Dvid Tnir 2 1 Deprtment of Computer Science nd Computer Engineering, L Trobe University, Bundoor

More information

An Efficient Divide and Conquer Algorithm for Exact Hazard Free Logic Minimization

An Efficient Divide and Conquer Algorithm for Exact Hazard Free Logic Minimization An Efficient Divide nd Conquer Algorithm for Exct Hzrd Free Logic Minimiztion J.W.J.M. Rutten, M.R.C.M. Berkelr, C.A.J. vn Eijk, M.A.J. Kolsteren Eindhoven University of Technology Informtion nd Communiction

More information

Dr. D.M. Akbar Hussain

Dr. D.M. Akbar Hussain Dr. D.M. Akr Hussin Lexicl Anlysis. Bsic Ide: Red the source code nd generte tokens, it is similr wht humns will do to red in; just tking on the input nd reking it down in pieces. Ech token is sequence

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

Graph Theory and DNA Nanostructures. Laura Beaudin, Jo Ellis-Monaghan*, Natasha Jonoska, David Miller, and Greta Pangborn

Graph Theory and DNA Nanostructures. Laura Beaudin, Jo Ellis-Monaghan*, Natasha Jonoska, David Miller, and Greta Pangborn Grph Theory nd DNA Nnostructures Lur Beudin, Jo Ellis-Monghn*, Ntsh Jonosk, Dvid Miller, nd Gret Pngborn A grph is set of vertices (dots) with edges (lines) connecting them. 1 2 4 6 5 3 A grph F A B C

More information

COMP 423 lecture 11 Jan. 28, 2008

COMP 423 lecture 11 Jan. 28, 2008 COMP 423 lecture 11 Jn. 28, 2008 Up to now, we hve looked t how some symols in n lphet occur more frequently thn others nd how we cn sve its y using code such tht the codewords for more frequently occuring

More information

Section 3.1: Sequences and Series

Section 3.1: Sequences and Series Section.: Sequences d Series Sequences Let s strt out with the definition of sequence: sequence: ordered list of numbers, often with definite pttern Recll tht in set, order doesn t mtter so this is one

More information

A Transportation Problem Analysed by a New Ranking Method

A Transportation Problem Analysed by a New Ranking Method (IJIRSE) Interntionl Journl of Innovtive Reserch in Science & Engineering ISSN (Online) 7-07 A Trnsporttion Problem Anlysed by New Rnking Method Dr. A. Shy Sudh P. Chinthiy Associte Professor PG Scholr

More information

1 Quad-Edge Construction Operators

1 Quad-Edge Construction Operators CS48: Computer Grphics Hndout # Geometric Modeling Originl Hndout #5 Stnford University Tuesdy, 8 December 99 Originl Lecture #5: 9 November 99 Topics: Mnipultions with Qud-Edge Dt Structures Scribe: Mike

More information

Section 10.4 Hyperbolas

Section 10.4 Hyperbolas 66 Section 10.4 Hyperbols Objective : Definition of hyperbol & hyperbols centered t (0, 0). The third type of conic we will study is the hyperbol. It is defined in the sme mnner tht we defined the prbol

More information

File Manager Quick Reference Guide. June Prepared for the Mayo Clinic Enterprise Kahua Deployment

File Manager Quick Reference Guide. June Prepared for the Mayo Clinic Enterprise Kahua Deployment File Mnger Quick Reference Guide June 2018 Prepred for the Myo Clinic Enterprise Khu Deployment NVIGTION IN FILE MNGER To nvigte in File Mnger, users will mke use of the left pne to nvigte nd further pnes

More information

Fig.1. Let a source of monochromatic light be incident on a slit of finite width a, as shown in Fig. 1.

Fig.1. Let a source of monochromatic light be incident on a slit of finite width a, as shown in Fig. 1. Answer on Question #5692, Physics, Optics Stte slient fetures of single slit Frunhofer diffrction pttern. The slit is verticl nd illuminted by point source. Also, obtin n expression for intensity distribution

More information

MATH 2530: WORKSHEET 7. x 2 y dz dy dx =

MATH 2530: WORKSHEET 7. x 2 y dz dy dx = MATH 253: WORKSHT 7 () Wrm-up: () Review: polr coordintes, integrls involving polr coordintes, triple Riemnn sums, triple integrls, the pplictions of triple integrls (especilly to volume), nd cylindricl

More information

Determining Single Connectivity in Directed Graphs

Determining Single Connectivity in Directed Graphs Determining Single Connectivity in Directed Grphs Adm L. Buchsbum 1 Mrtin C. Crlisle 2 Reserch Report CS-TR-390-92 September 1992 Abstrct In this pper, we consider the problem of determining whether or

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

Functor (1A) Young Won Lim 10/5/17

Functor (1A) Young Won Lim 10/5/17 Copyright (c) 2016-2017 Young W. Lim. Permission is grnted to copy, distribute nd/or modify this document under the terms of the GNU Free Documenttion License, Version 1.2 or ny lter version published

More information

Functor (1A) Young Won Lim 8/2/17

Functor (1A) Young Won Lim 8/2/17 Copyright (c) 2016-2017 Young W. Lim. Permission is grnted to copy, distribute nd/or modify this document under the terms of the GNU Free Documenttion License, Version 1.2 or ny lter version published

More information

Alignment of Long Sequences. BMI/CS Spring 2012 Colin Dewey

Alignment of Long Sequences. BMI/CS Spring 2012 Colin Dewey Alignment of Long Sequences BMI/CS 776 www.biostt.wisc.edu/bmi776/ Spring 2012 Colin Dewey cdewey@biostt.wisc.edu Gols for Lecture the key concepts to understnd re the following how lrge-scle lignment

More information

AVolumePreservingMapfromCubetoOctahedron

AVolumePreservingMapfromCubetoOctahedron Globl Journl of Science Frontier Reserch: F Mthemtics nd Decision Sciences Volume 18 Issue 1 Version 1.0 er 018 Type: Double Blind Peer Reviewed Interntionl Reserch Journl Publisher: Globl Journls Online

More information

CS311H: Discrete Mathematics. Graph Theory IV. A Non-planar Graph. Regions of a Planar Graph. Euler s Formula. Instructor: Işıl Dillig

CS311H: Discrete Mathematics. Graph Theory IV. A Non-planar Graph. Regions of a Planar Graph. Euler s Formula. Instructor: Işıl Dillig CS311H: Discrete Mthemtics Grph Theory IV Instructor: Işıl Dillig Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 1/25 A Non-plnr Grph Regions of Plnr Grph The plnr representtion of

More information

The Structure of Forward, Reverse, and Transverse Path Graphs in The Pattern Recognition Algorithms of Sellers

The Structure of Forward, Reverse, and Transverse Path Graphs in The Pattern Recognition Algorithms of Sellers The Structure of Forwrd, Reverse, nd Trnsverse Pth Grhs in The Pttern Recognition Algorithms of Sellers Lewis Lsser Dertment of Mthemtics nd Comuter Science York College/CUNY Jmic, New York 11451 llsser@york.cuny.edu

More information

Statistical classification of spatial relationships among mathematical symbols

Statistical classification of spatial relationships among mathematical symbols 2009 10th Interntionl Conference on Document Anlysis nd Recognition Sttisticl clssifiction of sptil reltionships mong mthemticl symbols Wl Aly, Seiichi Uchid Deprtment of Intelligent Systems, Kyushu University

More information

CPSC 213. Polymorphism. Introduction to Computer Systems. Readings for Next Two Lectures. Back to Procedure Calls

CPSC 213. Polymorphism. Introduction to Computer Systems. Readings for Next Two Lectures. Back to Procedure Calls Redings for Next Two Lectures Text CPSC 213 Switch Sttements, Understnding Pointers - 2nd ed: 3.6.7, 3.10-1st ed: 3.6.6, 3.11 Introduction to Computer Systems Unit 1f Dynmic Control Flow Polymorphism nd

More information

Pointwise convergence need not behave well with respect to standard properties such as continuity.

Pointwise convergence need not behave well with respect to standard properties such as continuity. Chpter 3 Uniform Convergence Lecture 9 Sequences of functions re of gret importnce in mny res of pure nd pplied mthemtics, nd their properties cn often be studied in the context of metric spces, s in Exmples

More information

CSE 401 Midterm Exam 11/5/10 Sample Solution

CSE 401 Midterm Exam 11/5/10 Sample Solution Question 1. egulr expressions (20 points) In the Ad Progrmming lnguge n integer constnt contins one or more digits, but it my lso contin embedded underscores. Any underscores must be preceded nd followed

More information

Cone Cluster Labeling for Support Vector Clustering

Cone Cluster Labeling for Support Vector Clustering Cone Cluster Lbeling for Support Vector Clustering Sei-Hyung Lee Deprtment of Computer Science University of Msschusetts Lowell MA 1854, U.S.A. slee@cs.uml.edu Kren M. Dniels Deprtment of Computer Science

More information

Union-Find Problem. Using Arrays And Chains. A Set As A Tree. Result Of A Find Operation

Union-Find Problem. Using Arrays And Chains. A Set As A Tree. Result Of A Find Operation Union-Find Problem Given set {,,, n} of n elements. Initilly ech element is in different set. ƒ {}, {},, {n} An intermixed sequence of union nd find opertions is performed. A union opertion combines two

More information

MTH 146 Conics Supplement

MTH 146 Conics Supplement 105- Review of Conics MTH 146 Conics Supplement In this section we review conics If ou ne more detils thn re present in the notes, r through section 105 of the ook Definition: A prol is the set of points

More information

12-B FRACTIONS AND DECIMALS

12-B FRACTIONS AND DECIMALS -B Frctions nd Decimls. () If ll four integers were negtive, their product would be positive, nd so could not equl one of them. If ll four integers were positive, their product would be much greter thn

More information

Lecture 10 Evolutionary Computation: Evolution strategies and genetic programming

Lecture 10 Evolutionary Computation: Evolution strategies and genetic programming Lecture 10 Evolutionry Computtion: Evolution strtegies nd genetic progrmming Evolution strtegies Genetic progrmming Summry Negnevitsky, Person Eduction, 2011 1 Evolution Strtegies Another pproch to simulting

More information

arxiv: v1 [cs.cg] 1 Jun 2016

arxiv: v1 [cs.cg] 1 Jun 2016 HOW TO MORPH PLANAR GRAPH DRAWINGS Soroush Almdri, Ptrizio Angelini, Fidel Brrer-Cruz, Timothy M. Chn, Giordno D Lozzo, Giuseppe Di Bttist, Fbrizio Frti, Penny Hxell, Ann Lubiw, Murizio Ptrignni, Vincenzo

More information

Control-Flow Analysis and Loop Detection

Control-Flow Analysis and Loop Detection ! Control-Flow Anlysis nd Loop Detection!Lst time! PRE!Tody! Control-flow nlysis! Loops! Identifying loops using domintors! Reducibility! Using loop identifiction to identify induction vribles CS553 Lecture

More information

TASK SPECIFIC DESCRIPTION

TASK SPECIFIC DESCRIPTION MYP Algebr II/Trig Unit 2 Ch. 4 Trnsformtions Project Nme: Block: - Due Dte: Tuesdy, 11/7 (B-dy) & Wednesdy, 11/8 (A-dy) Mterils: Grph pper, ruler, protrctor, compss, highlight mrkers/colored pencils SCORE:

More information

SIMPLIFYING ALGEBRA PASSPORT.

SIMPLIFYING ALGEBRA PASSPORT. SIMPLIFYING ALGEBRA PASSPORT www.mthletics.com.u This booklet is ll bout turning complex problems into something simple. You will be ble to do something like this! ( 9- # + 4 ' ) ' ( 9- + 7-) ' ' Give

More information

Dynamic Programming. Andreas Klappenecker. [partially based on slides by Prof. Welch] Monday, September 24, 2012

Dynamic Programming. Andreas Klappenecker. [partially based on slides by Prof. Welch] Monday, September 24, 2012 Dynmic Progrmming Andres Klppenecker [prtilly bsed on slides by Prof. Welch] 1 Dynmic Progrmming Optiml substructure An optiml solution to the problem contins within it optiml solutions to subproblems.

More information

2 Computing all Intersections of a Set of Segments Line Segment Intersection

2 Computing all Intersections of a Set of Segments Line Segment Intersection 15-451/651: Design & Anlysis of Algorithms Novemer 14, 2016 Lecture #21 Sweep-Line nd Segment Intersection lst chnged: Novemer 8, 2017 1 Preliminries The sweep-line prdigm is very powerful lgorithmic design

More information

Integration. September 28, 2017

Integration. September 28, 2017 Integrtion September 8, 7 Introduction We hve lerned in previous chpter on how to do the differentition. It is conventionl in mthemtics tht we re supposed to lern bout the integrtion s well. As you my

More information

CS143 Handout 07 Summer 2011 June 24 th, 2011 Written Set 1: Lexical Analysis

CS143 Handout 07 Summer 2011 June 24 th, 2011 Written Set 1: Lexical Analysis CS143 Hndout 07 Summer 2011 June 24 th, 2011 Written Set 1: Lexicl Anlysis In this first written ssignment, you'll get the chnce to ply round with the vrious constructions tht come up when doing lexicl

More information

Math 464 Fall 2012 Notes on Marginal and Conditional Densities October 18, 2012

Math 464 Fall 2012 Notes on Marginal and Conditional Densities October 18, 2012 Mth 464 Fll 2012 Notes on Mrginl nd Conditionl Densities klin@mth.rizon.edu October 18, 2012 Mrginl densities. Suppose you hve 3 continuous rndom vribles X, Y, nd Z, with joint density f(x,y,z. The mrginl

More information

F. R. K. Chung y. University ofpennsylvania. Philadelphia, Pennsylvania R. L. Graham. AT&T Labs - Research. March 2,1997.

F. R. K. Chung y. University ofpennsylvania. Philadelphia, Pennsylvania R. L. Graham. AT&T Labs - Research. March 2,1997. Forced convex n-gons in the plne F. R. K. Chung y University ofpennsylvni Phildelphi, Pennsylvni 19104 R. L. Grhm AT&T Ls - Reserch Murry Hill, New Jersey 07974 Mrch 2,1997 Astrct In seminl pper from 1935,

More information

A dual of the rectangle-segmentation problem for binary matrices

A dual of the rectangle-segmentation problem for binary matrices A dul of the rectngle-segmenttion prolem for inry mtrices Thoms Klinowski Astrct We consider the prolem to decompose inry mtrix into smll numer of inry mtrices whose -entries form rectngle. We show tht

More information

In the last lecture, we discussed how valid tokens may be specified by regular expressions.

In the last lecture, we discussed how valid tokens may be specified by regular expressions. LECTURE 5 Scnning SYNTAX ANALYSIS We know from our previous lectures tht the process of verifying the syntx of the progrm is performed in two stges: Scnning: Identifying nd verifying tokens in progrm.

More information

6.3 Volumes. Just as area is always positive, so is volume and our attitudes towards finding it.

6.3 Volumes. Just as area is always positive, so is volume and our attitudes towards finding it. 6.3 Volumes Just s re is lwys positive, so is volume nd our ttitudes towrds finding it. Let s review how to find the volume of regulr geometric prism, tht is, 3-dimensionl oject with two regulr fces seprted

More information

Tree Structured Symmetrical Systems of Linear Equations and their Graphical Solution

Tree Structured Symmetrical Systems of Linear Equations and their Graphical Solution Proceedings of the World Congress on Engineering nd Computer Science 4 Vol I WCECS 4, -4 October, 4, Sn Frncisco, USA Tree Structured Symmetricl Systems of Liner Equtions nd their Grphicl Solution Jime

More information

Digital Design. Chapter 6: Optimizations and Tradeoffs

Digital Design. Chapter 6: Optimizations and Tradeoffs Digitl Design Chpter 6: Optimiztions nd Trdeoffs Slides to ccompny the tetbook Digitl Design, with RTL Design, VHDL, nd Verilog, 2nd Edition, by Frnk Vhid, John Wiley nd Sons Publishers, 2. http://www.ddvhid.com

More information

Ray surface intersections

Ray surface intersections Ry surfce intersections Some primitives Finite primitives: polygons spheres, cylinders, cones prts of generl qudrics Infinite primitives: plnes infinite cylinders nd cones generl qudrics A finite primitive

More information

Solving Problems by Searching. CS 486/686: Introduction to Artificial Intelligence Winter 2016

Solving Problems by Searching. CS 486/686: Introduction to Artificial Intelligence Winter 2016 Solving Prolems y Serching CS 486/686: Introduction to Artificil Intelligence Winter 2016 1 Introduction Serch ws one of the first topics studied in AI - Newell nd Simon (1961) Generl Prolem Solver Centrl

More information

ECE 468/573 Midterm 1 September 28, 2012

ECE 468/573 Midterm 1 September 28, 2012 ECE 468/573 Midterm 1 September 28, 2012 Nme:! Purdue emil:! Plese sign the following: I ffirm tht the nswers given on this test re mine nd mine lone. I did not receive help from ny person or mteril (other

More information

Before We Begin. Introduction to Spatial Domain Filtering. Introduction to Digital Image Processing. Overview (1): Administrative Details (1):

Before We Begin. Introduction to Spatial Domain Filtering. Introduction to Digital Image Processing. Overview (1): Administrative Details (1): Overview (): Before We Begin Administrtive detils Review some questions to consider Winter 2006 Imge Enhncement in the Sptil Domin: Bsics of Sptil Filtering, Smoothing Sptil Filters, Order Sttistics Filters

More information

Ma/CS 6b Class 1: Graph Recap

Ma/CS 6b Class 1: Graph Recap M/CS 6 Clss 1: Grph Recp By Adm Sheffer Course Detils Adm Sheffer. Office hour: Tuesdys 4pm. dmsh@cltech.edu TA: Victor Kstkin. Office hour: Tuesdys 7pm. 1:00 Mondy, Wednesdy, nd Fridy. http://www.mth.cltech.edu/~2014-15/2term/m006/

More information

How to Design REST API? Written Date : March 23, 2015

How to Design REST API? Written Date : March 23, 2015 Visul Prdigm How Design REST API? Turil How Design REST API? Written Dte : Mrch 23, 2015 REpresenttionl Stte Trnsfer, n rchitecturl style tht cn be used in building networked pplictions, is becoming incresingly

More information

CSCI 446: Artificial Intelligence

CSCI 446: Artificial Intelligence CSCI 446: Artificil Intelligence Serch Instructor: Michele Vn Dyne [These slides were creted by Dn Klein nd Pieter Abbeel for CS188 Intro to AI t UC Berkeley. All CS188 mterils re vilble t http://i.berkeley.edu.]

More information

COMMON HALF YEARLY EXAMINATION DECEMBER 2018

COMMON HALF YEARLY EXAMINATION DECEMBER 2018 li.net i.net li.net i.net li.net i.net li.net i.net li.net i.net li.net i.net li.net i.net li.net i.net li.net i.net.pds.pds COMMON HALF YEARLY EXAMINATION DECEMBER 2018 STD : XI SUBJECT: COMPUTER SCIENCE

More information

Algorithms for graphs on surfaces

Algorithms for graphs on surfaces Algorithms for grphs on surfces Éric Colin de Verdière École normle supérieure, 20112012 ALGORITHMS FOR GRAPHS ON SURFACES Foreword nd introduction Foreword These notes re certinly not in nl shpe, nd comments

More information

Engineer To Engineer Note

Engineer To Engineer Note Engineer To Engineer Note EE-169 Technicl Notes on using Anlog Devices' DSP components nd development tools Contct our technicl support by phone: (800) ANALOG-D or e-mil: dsp.support@nlog.com Or visit

More information

Homework. Context Free Languages III. Languages. Plan for today. Context Free Languages. CFLs and Regular Languages. Homework #5 (due 10/22)

Homework. Context Free Languages III. Languages. Plan for today. Context Free Languages. CFLs and Regular Languages. Homework #5 (due 10/22) Homework Context Free Lnguges III Prse Trees nd Homework #5 (due 10/22) From textbook 6.4,b 6.5b 6.9b,c 6.13 6.22 Pln for tody Context Free Lnguges Next clss of lnguges in our quest! Lnguges Recll. Wht

More information

9.1 apply the distance and midpoint formulas

9.1 apply the distance and midpoint formulas 9.1 pply the distnce nd midpoint formuls DISTANCE FORMULA MIDPOINT FORMULA To find the midpoint between two points x, y nd x y 1 1,, we Exmple 1: Find the distnce between the two points. Then, find the

More information

Chapter 2 Sensitivity Analysis: Differential Calculus of Models

Chapter 2 Sensitivity Analysis: Differential Calculus of Models Chpter 2 Sensitivity Anlysis: Differentil Clculus of Models Abstrct Models in remote sensing nd in science nd engineering, in generl re, essentilly, functions of discrete model input prmeters, nd/or functionls

More information

Engineer To Engineer Note

Engineer To Engineer Note Engineer To Engineer Note EE-188 Technicl Notes on using Anlog Devices' DSP components nd development tools Contct our technicl support by phone: (800) ANALOG-D or e-mil: dsp.support@nlog.com Or visit

More information

Approximation by NURBS with free knots

Approximation by NURBS with free knots pproximtion by NURBS with free knots M Rndrinrivony G Brunnett echnicl University of Chemnitz Fculty of Computer Science Computer Grphics nd Visuliztion Strße der Ntionen 6 97 Chemnitz Germny Emil: mhrvo@informtiktu-chemnitzde

More information

Math 35 Review Sheet, Spring 2014

Math 35 Review Sheet, Spring 2014 Mth 35 Review heet, pring 2014 For the finl exm, do ny 12 of the 15 questions in 3 hours. They re worth 8 points ech, mking 96, with 4 more points for netness! Put ll your work nd nswers in the provided

More information

arxiv: v2 [math.ho] 4 Jun 2012

arxiv: v2 [math.ho] 4 Jun 2012 Volumes of olids of Revolution. Unified pproch Jorge Mrtín-Morles nd ntonio M. Oller-Mrcén jorge@unizr.es, oller@unizr.es rxiv:5.v [mth.ho] Jun Centro Universitrio de l Defens - IUM. cdemi Generl Militr,

More information

Introduction to Computer Engineering EECS 203 dickrp/eecs203/ CMOS transmission gate (TG) TG example

Introduction to Computer Engineering EECS 203  dickrp/eecs203/ CMOS transmission gate (TG) TG example Introduction to Computer Engineering EECS 23 http://ziyng.eecs.northwestern.edu/ dickrp/eecs23/ CMOS trnsmission gte TG Instructor: Robert Dick Office: L477 Tech Emil: dickrp@northwestern.edu Phone: 847

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

ON THE DEHN COMPLEX OF VIRTUAL LINKS

ON THE DEHN COMPLEX OF VIRTUAL LINKS ON THE DEHN COMPLEX OF VIRTUAL LINKS RACHEL BYRD, JENS HARLANDER Astrct. A virtul link comes with vriety of link complements. This rticle is concerned with the Dehn spce, pseudo mnifold with oundry, nd

More information

PATTERN AVOIDANCE IN BINARY TREES

PATTERN AVOIDANCE IN BINARY TREES PATTERN AVOIDANCE IN BINARY TREES ERIC S. ROWLAND Abstrct. This pper considers the enumertion of trees voiding contiguous pttern. We provide n lgorithm for computing the generting function tht counts n-lef

More information

Fig.25: the Role of LEX

Fig.25: the Role of LEX The Lnguge for Specifying Lexicl Anlyzer We shll now study how to uild lexicl nlyzer from specifiction of tokens in the form of list of regulr expressions The discussion centers round the design of n existing

More information

Better Hill-Climbing Searches for Parsimony

Better Hill-Climbing Searches for Parsimony Better Hill-Climbing Serches for Prsimony Gneshkumr Gnpthy, Vijy Rmchndrn, nd Tndy Wrnow Deprtment of Computer Sciences, University of Texs, Austin, TX 78712; gsgk, vlr, tndy @cs.utexs.edu Abstrct. The

More information

Class-XI Mathematics Conic Sections Chapter-11 Chapter Notes Key Concepts

Class-XI Mathematics Conic Sections Chapter-11 Chapter Notes Key Concepts Clss-XI Mthemtics Conic Sections Chpter-11 Chpter Notes Key Concepts 1. Let be fixed verticl line nd m be nother line intersecting it t fixed point V nd inclined to it t nd ngle On rotting the line m round

More information

An Expressive Hybrid Model for the Composition of Cardinal Directions

An Expressive Hybrid Model for the Composition of Cardinal Directions An Expressive Hyrid Model for the Composition of Crdinl Directions Ah Lin Kor nd Brndon Bennett School of Computing, University of Leeds, Leeds LS2 9JT, UK e-mil:{lin,brndon}@comp.leeds.c.uk Astrct In

More information

1 Drawing 3D Objects in Adobe Illustrator

1 Drawing 3D Objects in Adobe Illustrator Drwing 3D Objects in Adobe Illustrtor 1 1 Drwing 3D Objects in Adobe Illustrtor This Tutoril will show you how to drw simple objects with three-dimensionl ppernce. At first we will drw rrows indicting

More information

CS321 Languages and Compiler Design I. Winter 2012 Lecture 5

CS321 Languages and Compiler Design I. Winter 2012 Lecture 5 CS321 Lnguges nd Compiler Design I Winter 2012 Lecture 5 1 FINITE AUTOMATA A non-deterministic finite utomton (NFA) consists of: An input lphet Σ, e.g. Σ =,. A set of sttes S, e.g. S = {1, 3, 5, 7, 11,

More information

Spring 2018 Midterm Exam 1 March 1, You may not use any books, notes, or electronic devices during this exam.

Spring 2018 Midterm Exam 1 March 1, You may not use any books, notes, or electronic devices during this exam. 15-112 Spring 2018 Midterm Exm 1 Mrch 1, 2018 Nme: Andrew ID: Recittion Section: You my not use ny books, notes, or electronic devices during this exm. You my not sk questions bout the exm except for lnguge

More information