Constraint Satisfaction Problems

Size: px
Start display at page:

Download "Constraint Satisfaction Problems"

Transcription

1 Constaint Satisfaction Polems Seach and Look-ahead Alet-Ludwigs-Univesität Feiug Stefan Wölfl, Chistian Becke-Asano, and Benhad Neel Noveme 17, 2014

2 Seach and Look-ahead Enfocing consistency is one way of solving constaint netwoks: Gloally consistent netwoks can easily e solved in polynomial time. Howeve, enfocing gloal consistency is costly in time and space: it not only takes exponential time to compute an equivalent gloally consistent netwok, ut also exponential space to stoe it. Thus, it is usually advisale to only enfoce local consistency (e. g., ac consistency o path consistency), and compute a solution though seach though the emaining possiilities. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 2 / 50

3 State Spaces Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 3 / 50

4 State spaces: Infomally The fundamental astactions fo seach ae state spaces. They ae defined in tems of: states, epesenting a patial solution to a polem (which may o may not e extensile to a full solution) an initial state fom which to seach fo a solution goal states epesenting solutions opeatos that define how a new state can e otained fom a given state Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 5 / 50

5 State spaces: Fomally Definition (state space) A state space is a 4-tuple S = S,s 0,S,O, whee S is a finite set of states, s 0 S is the initial state, S S is the set of goal states, and O is a finite set of opeatos, whee each opeato o O is a patial function on S, i. e. o : S S fo some S S. We say that an opeato o is applicale in state s if o(s) is defined. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 6 / 50

6 Seach Seach is the polem of finding a sequence of opeatos that tansfoms the initial state into a goal state. Definition (solution of a state space) Let S = S,s 0,S,O e a state space, and let o 1,...,o n O e an opeato sequence. Inductively define esult states 0, 1,..., n S {invalid}: 0 := s 0 Fo i {1,...,n}, if o i is applicale in i 1, then i := o i ( i 1 ). Othewise, i := invalid. The opeato sequence is a solution iff n S. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 7 / 50

7 Seach gaphs and seach algoithms State spaces can e depicted as state gaphs: laeled diected gaphs whee states ae vetices and thee is a diected ac fom s to s with lael o iff o(s) = s fo some opeato o. Thee ae many classical algoithms fo finding solutions in state gaphs, e. g. depth-fist seach, eadth-fist seach, iteative deepening seach, o heuistic algoithms like A. These algoithms offe diffeent tade-offs in tems of untime and memoy usage. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 8 / 50

8 State spaces fo constaint netwoks The state spaces fo constaint netwoks usually have two special popeties: The seach gaphs ae tees (i. e., thee is exactly one path fom the initial state to any eachale seach state). All solutions ae at the same level of the tee. Due to these popeties, vaiations of depth-fist seach ae usually the method of choice fo solving constaint netwoks. We will now define state spaces fo constaint netwoks. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 9 / 50

9 Unodeed seach space Definition (unodeed seach space) Let N = V,D,C e a constaint netwok. The unodeed seach space of N is the following state space: states: patial solutions of N (i. e., consistent assignments) initial state: the empty assignment /0 goal states: solutions of N opeatos: fo each v i V and d D i, one opeato o vi =d as follows: o vi =d is applicale in those states s whee v i is not defined and s {(v i,d)} is consistent o vi =d(s) = s {(v i,d)} Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 10 / 50

10 Unodeed seach space: Intuition The unodeed seach space fomalizes the systematic constuction of solutions, y consistently extending patial solutions until a solution is found. Late on, we will conside altenative (non-systematic) seach techniques. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 11 / 50

11 Unodeed seach space: Discussion In pactice, one will only seach fo solutions in suspaces of the complete unodeed seach space: Conside a state s whee v i V has not een assigned a value. If no solution can e eached fom any successo state fo the opeatos o vi =d (d D i ), then no solution can e eached fom s. Thee is no point in tying opeatos o vj =d fo othe vaiales v j v i in this case! Thus, it is sufficient to conside opeatos fo one paticula unassigned vaiale in each seach state. How to decide which vaiale to use is an impotant issue. Hee, we fist conside static vaiale odeings. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 12 / 50

12 Odeed seach spaces Let N = V,D,C e a constaint netwok. Definition (vaiale odeing) A vaiale odeing of N is a pemutation of the vaiale set V. We wite vaiale odeings in sequence notation: v 1,...,v n. Definition (odeed seach space) Let σ = v 1,...,v n e a vaiale odeing of N. The odeed seach space of N along odeing σ is the state space otained fom the unodeed seach space of N y esticting each opeato o vi =d i to states s with s = i 1. In othe wods, in the initial state, only v 1 can e assigned, then only v 2, then only v 3,... Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 13 / 50

13 The impotance of good odeings All odeed seach spaces fo the same constaint netwok contain the same set of solution states. Howeve, the total nume of states can vay damatically etween diffeent odeings. The size of a state space is a (ough) measue fo the hadness of finding a solution, so we ae inteested in small seach spaces. One way of measuing the quality of a state space is y counting the nume of dead ends: the fewe, the ette. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 14 / 50

14 Dead ends Definition (dead end) A dead end of a state space is a state which is not a goal state and in which no opeato is applicale. In an odeed seach space, a dead end is a patial solution that cannot e consistently extended to the next vaiale in the odeing. In the unodeed seach space, a dead end is a patial solution that cannot e consistently extended to any of the emaining vaiales. In oth cases, this patial solution cannot e pat of a solution. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 15 / 50

15 Backtack-fee seach spaces Definition (acktack-fee) A state space is called acktack-fee if it contains no dead ends. A constaint netwok N is called acktack-fee along vaiale odeing σ if the odeed seach space of N along σ is acktack-fee. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 16 / 50

16 Backtack-fee netwoks: Discussion Backtack-fee netwoks ae the ideal case fo seach algoithms. Constaint netwoks ae aely acktack-fee along any odeing in the way they ae specified natually. Howeve, constaint netwoks can e efomulated (eplaced with an equivalent constaint netwok) to educe the nume of dead ends. One way of doing this is y enfocing a local consistency popety like ac consistency o path consistency, which leads to a tighte netwok. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 17 / 50

17 Constaint tightness and dead ends Lemma Let N and N e equivalent constaint netwoks. If N is at least as tight as N, then Poof. the unodeed seach space of N has at most as many dead ends as the unodeed seach space of N, and the odeed seach space of N along any odeing σ has at most as many dead ends as the odeed seach space of N along the same odeing σ. Fo evey dead end of N (in eithe kind of state space), the same assignment is a state in the state space fo N which has at least one dead end as a descendant. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 18 / 50

18 Gloal consistency and dead ends Lemma Let N e a constaint netwok. The following thee statements ae equivalent: The unodeed seach space of N is acktack-fee. The odeed seach space of N is acktack-fee along each odeing σ. N is gloally consistent. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 19 / 50

19 Reducing dead ends futhe Replacing constaint netwoks y tighte, equivalent netwoks is a poweful way of educing dead ends. Howeve, one can go much futhe y also tightening constaints duing seach, fo example y enfocing local consistency fo a given patial instantiation. We will conside such seach algoithms soon. In geneal, thee is a tade-off etween educing the nume of dead ends and the ovehead fo consistency easoning. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 20 / 50

20 Backtacking Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 21 / 50

21 Backtacking Backtacking taveses the seach space of patial instantiations in a depth-fist manne in two phases: fowad phase: vaiales ae selected in sequence; the cuent patial solution is extended y assigning a consistent value to the next vaiale (if possile) ackwad phase: if no consistent instantiation fo the cuent vaiale exists, we etun to the pevious vaiale. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 23 / 50

22 Backtacking: Example Conside the constaint netwok defined y the following coloing polem: v 2, g v 1,, g v 7, v 6, g, y, v 3, v 4, g v 5 Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 24 / 50

23 Backtacking: Example On this example we apply the acktacking algoithm y using the vaiale odeing: v 1,v 7,v 4,v 5,v 6,v 3,v 2, and we otain: v 1 v 7 v 4 v 5 v 6 v 3 v 2 Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 25 / 50

24 Backtacking: Example On this example we apply the acktacking algoithm y using the vaiale odeing: v 1,v 7,v 4,v 5,v 6,v 3,v 2, and we otain: v 1 g v 7 v 4 v 5 v 6 v 3 v 2 Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 25 / 50

25 Backtacking: Example On this example we apply the acktacking algoithm y using the vaiale odeing: v 1,v 7,v 4,v 5,v 6,v 3,v 2, and we otain: v 1 g v 7 v 4 v 5 v 6 v 3 v 2 Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 25 / 50

26 Backtacking: Example On this example we apply the acktacking algoithm y using the vaiale odeing: v 1,v 7,v 4,v 5,v 6,v 3,v 2, and we otain: v 1 g v 7 v 4 v 5 v 6 v 3 v 2 Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 25 / 50

27 Backtacking: Example On this example we apply the acktacking algoithm y using the vaiale odeing: v 1,v 7,v 4,v 5,v 6,v 3,v 2, and we otain: v 1 g v 7 v 4 v 5 v 6 v 3 v 2 Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 25 / 50

28 Backtacking: Example On this example we apply the acktacking algoithm y using the vaiale odeing: v 1,v 7,v 4,v 5,v 6,v 3,v 2, and we otain: v 1 g v 7 v 4 v 5 g v 6 v 3 v 2 Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 25 / 50

29 Backtacking: Example On this example we apply the acktacking algoithm y using the vaiale odeing: v 1,v 7,v 4,v 5,v 6,v 3,v 2, and we otain: v 1 g v 7 v 4 v 5 g v 6 v 3 v 2 Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 25 / 50

30 Backtacking: Example On this example we apply the acktacking algoithm y using the vaiale odeing: v 1,v 7,v 4,v 5,v 6,v 3,v 2, and we otain: v 1 g v 7 v 4 v 5 g g v 6 y y v 3 v 2 Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 25 / 50

31 Backtacking: Example On this example we apply the acktacking algoithm y using the vaiale odeing: v 1,v 7,v 4,v 5,v 6,v 3,v 2, and we otain: v 1 g v 7 v 4 v 5 g g v 6 y y v 3 v 2 Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 25 / 50

32 Backtacking: Example On this example we apply the acktacking algoithm y using the vaiale odeing: v 1,v 7,v 4,v 5,v 6,v 3,v 2, and we otain: v 1 g v 7 v 4 v 5 g g v 6 y y v 3 v 2 Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 25 / 50

33 Backtacking: Example On this example we apply the acktacking algoithm y using the vaiale odeing: v 1,v 7,v 4,v 5,v 6,v 3,v 2, and we otain: v 1 g v 7 v 4 v 5 g g v 6 y y v 3 v 2 Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 25 / 50

34 Backtacking: Example On this example we apply the acktacking algoithm y using the vaiale odeing: v 1,v 7,v 4,v 5,v 6,v 3,v 2, and we otain: v 1 g v 7 v 4 v 5 g g v 6 y y v 3 v 2 Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 25 / 50

35 Backtacking: Example On this example we apply the acktacking algoithm y using the vaiale odeing: v 1,v 7,v 4,v 5,v 6,v 3,v 2, and we otain: v 1 g v 7 v 4 v 5 g g v 6 y y v 3 v 2 Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 25 / 50

36 Backtacking algoithm (ecusive vesion) Backtacking(N, a): Input: a constaint netwok N = V, D, C and a patial solution a of N (initially: the empty instantiation a = {}) Output: a solution of N o inconsistent if a is not locally consistent with N: etun inconsistent if a is defined fo all vaiales in V: etun a select some vaiale v i fo which a is not defined fo each value d fom D i : a := a {(v i,d)} a Backtacking(N,a ) if a is not inconsistent : etun a etun inconsistent Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 26 / 50

37 Backtacking algoithm (ecusive vesion 2) Backtacking(N, a): Input: a constaint netwok N = V, D, C and a patial solution a of N (initially: the empty instantiation a = {}) Output: a solution of N o inconsistent if a is defined fo all vaiales in V: etun a select some vaiale v i fo which a is not defined fo each value d fom D i : a := a {(v i,d)} if a is locally consistent with N: a Backtacking(N,a ) if a is not inconsistent : etun a etun inconsistent Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 27 / 50

38 Banching stategies Enumeation The vaiale v is instantiated in tun to each value in its domain. Fist v = d 1, then v = d 2, etc. Binay choice points The vaiale v is instantiated to some value in its domain. Assuming the value 1 is chosen in ou example, two anches ae geneated and the constaints v = d 1 and v d 1 ae posted, espectively. Domain splitting The domain of the vaiale v is split in two pats. Fo instance, with a domain of size 4: choose fist v = {d 1,d 2 }, then v = {d 3,d 4 } Those ae identical when constaints ae inay. Fo this lectue, we will only conside the enumeation anching stategy. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 28 / 50

39 Look-ahead stategies Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 29 / 50

40 Impovements of Backtacking Backtacking suffes fom thashing: patial solutions that cannot e extended to a full solution may e epocessed seveal times (always leading to a dead end in the seach space) Idea: Impove (pactical) pefomance y pepocessing the seach space undeneath the cuently selected vaiale impoving (in a dynamic way) the seach stategy two schemes (elated to the two phases of acktacking seach), namely look-ahead and look-ack stategies Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 31 / 50

41 Look-ahead and look-ack Look-ahead: invoked when next vaiale o next value is selected. Fo example: Which vaiale should e instantiated next? pefe vaiales that impose tighte constaints on the est of the seach space Which value should e chosen fo the next vaiale? maximize the nume of options fo futue assignments Look-ack: invoked when the acktacking step is pefomed afte eaching a dead end. Fo example: How deep should we acktack? avoid ielevant acktack points (y analyzing easons fo the dead end and jumping ack to the souce of failue) How can we lean fom dead ends? ecod easons fo dead ends as new constaints so that the same inconsistencies can e avoided at late stages of the seach Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 32 / 50

42 Look-ahead and look-ack Look-ahead: invoked when next vaiale o next value is selected. Fo example: Which vaiale should e instantiated next? pefe vaiales that impose tighte constaints on the est of the seach space Which value should e chosen fo the next vaiale? maximize the nume of options fo futue assignments Look-ack: invoked when the acktacking step is pefomed afte eaching a dead end. Fo example: How deep should we acktack? avoid ielevant acktack points (y analyzing easons fo the dead end and jumping ack to the souce of failue) How can we lean fom dead ends? ecod easons fo dead ends as new constaints so that the same inconsistencies can e avoided at late stages of the seach Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 32 / 50

43 Backtacking with look-ahead LookAhead(N, a): Input: a constaint netwok N = V, D, C and a patial solution a of N (initialy: the empty instantiation a = {}) Output: a solution of N o inconsistent SelectValue(v i,d i,a,n): pocedue that selects and deletes a consistent value d D i ; etuns d and a efinement of N; etuns null, if all a {(v i,d)} ae inconsistent if a is defined fo all vaiales in V: etun a select some vaiale v i fo which a is not defined N N, D i D i // (wok on a copy) while D i is non-empty d,n SelectValue(v i,d i,a,n ) if d is not null : a LookAhead(N,a {(v i,d)}) if a is not inconsistent : etun a etun inconsistent Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 33 / 50

44 Ac-consistency ased look-ahead 1 Fowad Checking: popagate the effect of a value-selection to each single non-instantiated vaiales 2 Patial Look-Ahead... 3 Full Look-Ahead... 4 Real Full Look-Ahead: enfoce full ac consistency on the futue vaiales afte each assignment to the cuent vaiale Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 34 / 50

45 SelectValue-FowadChecking SelectValue-FowadChecking(v i,d i,a,n): select and delete d fom D i fo each v j shaing a constaint with v i fo which a is not defined D j D j // (wok on a copy) fo each value d D j if not consistent(a {(v i,d),(v j,d )}) emove d fom D j if any futue D j is empty // (v i x leads to a dead end) etun null D j D j // (popagate all futue D j ) etun d Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 35 / 50

46 SelectValue-RealFullLookAhead SelectValue-RealFullLookAhead(v i,d i,a,n): select and delete d fom D i D j D j (fo all non-assigned v j v i wok on a copy) epeat fo each v j (j i) fo which a is not defined fo each v k (k i,j) fo which a is not defined fo each value d D j if thee is no value d D k such that consistent(a {(v i,d), (v j,d ), (v k,d )}) emove d fom D j until no value was emoved if any futue D j is empty // (v i d leads to a dead end) etun null D j D j // (popagate all futue D j ) etun d Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 36 / 50

47 Look-ahead example (no look-ahead) Example s 1 s 2 s 3 s 4 s 5 s 1 s 2 s 3 s 4 s 5 Initial State Red Blue Geen Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 37 / 50

48 Example: Look-ahead with fowad checking Example s 1 s 2 s 3 s 4 s 5 s 1 s 2 s 3 s 4 s 5 Initial State Red Blue Geen Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 38 / 50

49 Example: Look-ahead with fowad checking Example s 1 s 2 s 3 s 4 s 5 s 1 s 2 s 3 s 4 s 5 Decision Red Blue Geen O Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 38 / 50

50 Example: Look-ahead with fowad checking Example s 1 s 2 s 3 s 4 s 5 s 1 s 2 s 3 s 4 s 5 Popagation Red Blue Geen O X X X Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 38 / 50

51 Example: Look-ahead with fowad checking Example s 1 s 2 s 3 s 4 s 5 Red Blue Geen s 1 O s 2 X O s 3 s 4 s 5 Decision X X Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 38 / 50

52 Example: Look-ahead with fowad checking Example s 1 s 2 s 3 s 4 s 5 Red Blue Geen s 1 O s 2 X O s 3 X s 4 X s 5 X X Popagation Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 38 / 50

53 Example: Look-ahead with fowad checking Example s 1 s 2 s 3 s 4 s 5 Red Blue Geen s 1 O s 2 X O s 3 X O s 4 X s 5 X X Decision Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 38 / 50

54 Example: Look-ahead with fowad checking Example s 1 s 2 s 3 s 4 s 5 Popagation Red Blue Geen s 1 O s 2 X O s 3 X O s 4 X X s 5 X X X Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 38 / 50

55 Example: Look-ahead with fowad checking Example s 1 s 2 s 3 s 4 s 5 Red Blue Geen s 1 O s 2 X O s 3 O X s 4 X s 5 X X Decision Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 38 / 50

56 Example: Look-ahead with fowad checking Example s 1 s 2 s 3 s 4 s 5 Decision Red Blue Geen s 1 O s 2 X O s 3 O X s 4 X O s 5 X X Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 38 / 50

57 Example: Look-ahead with fowad checking Example s 1 s 2 s 3 s 4 s 5 Decision Red Blue Geen s 1 O s 2 X O s 3 O X s 4 X O s 5 X X O Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 38 / 50

58 Example: Real full look-ahead Example s 1 s 2 s 3 s 4 s 5 s 1 s 2 s 3 s 4 s 5 Initial State Red Blue Geen Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 39 / 50

59 Example: Real full look-ahead Example s 1 s 2 s 3 s 4 s 5 s 1 s 2 s 3 s 4 s 5 Decision Red Blue Geen O Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 39 / 50

60 Example: Real full look-ahead Example s 1 s 2 s 3 s 4 s 5 s 1 s 2 s 3 s 4 s 5 Popagation Red Blue Geen O X X X Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 39 / 50

61 Example: Real full look-ahead Example s 1 s 2 s 3 s 4 s 5 Red Blue Geen s 1 O s 2 X O s 3 s 4 s 5 Decision X X Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 39 / 50

62 Example: Real full look-ahead Example s 1 s 2 s 3 s 4 s 5 Red Blue Geen s 1 O s 2 X O s 3 X s 4 X s 5 X X Popagation Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 39 / 50

63 Example: Real full look-ahead Example s 1 s 2 s 3 s 4 s 5 Red Blue Geen s 1 O s 2 X O s 3 X s 4 X s 5 X X O Popagation Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 39 / 50

64 Example: Real full look-ahead Example s 1 s 2 s 3 s 4 s 5 Popagation Red Blue Geen s 1 O s 2 X O s 3 X X s 4 X X s 5 X X O Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 39 / 50

65 Example: Real full look-ahead Example s 1 s 2 s 3 s 4 s 5 Popagation Red Blue Geen s 1 O s 2 X O s 3 O X X s 4 X O X s 5 X X O Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 39 / 50

66 Ac consistency-ased look-ahead 1 Fowad checking: O(e k 2 ), Real full look-ahead (also known as MAC): with AC3-vaiant in O(e k 3 ), whee k is the cadinality of the lagest domain and e is the nume of constaints. Remak Keeping the alance etween puning the seach space and cost of look-ahead Good tadeoffs ae nowadays: Fowad checking Real full look-ahead Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 40 / 50

67 Futhe SelectValue functions Dynamic look-ahead value odeings: estimate likelihood that a non-ejected value leads to a solution. Fo example: MinConflicts (MC): pefe a value that emoves the smallest nume of values fom the domains of futue vaiales MaxDomainSize (MD): pefe a value that ensues the lagest minimum domain sizes of futue vaiales (i.e., calculate n d := min vj D j afte assigning v i d, and n d fo v i d, espectively; if n d > n d, then pefe v i d) Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 41 / 50

68 Choosing a vaiale ode Backtacking and LookAhead leave the choice of vaiale odeing open. Odeing geatly affects pefomance. execises We distinguish Dynamic odeing: In each state, decide independently which vaiale to assign to next. Can e seen as seach in a suspace of the unodeed seach space. Static odeing: A vaiale odeing σ is fixed in advance. Seach is conducted in the odeed seach space along σ. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 42 / 50

69 Dynamic vaiale odeings Common heuistic: Fail-fist Always select a vaiale whose emaining domain has a minimal nume of elements. intuition: few sutees small seach space exteme case: only one value left no seach compae Unit Popagation in DPLL pocedue Should e comined with a constaint popagation technique such as Fowad Checking o Ac Consistency. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 43 / 50

70 Static vaiale odeings Static vaiale odeings... lead to no ovehead duing seach ut ae less flexile than dynamic odeings In pactice, they ae often vey good if chosen popely. Popula choices: Max-cadinality odeing Min-width odeing Cycle cutset odeing Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 44 / 50

71 Static vaiale odeings: Max-cadinality odeing Max-cadinality odeing 1 Stat with an aitay vaiale. 2 Repeatedly add a vaiale such that the nume of constaints whose scope is a suset of the set of added vaiales is maximal. Beak ties aitaily. fo the othe two odeing stategies, we fist need to lay some foundations Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 45 / 50

72 Odeed gaphs Definition (odeed gaph) Let G = V,E e a gaph. An odeed gaph fo G is a tuple V,E,σ, whee σ is an odeing (pemutation) of the vetices in V. As usual, we use sequence notation fo the odeing: σ = v 1,...,v n. We wite v v if v pecedes v in σ. The paents of v V in the odeed gaph ae the neighos that pecede it: {u V u v,{u,v} E}. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 46 / 50

73 Width of a gaph Definition (width) The width of a vetex v of an odeed gaph is the nume of paents of v. The width of an odeed gaph is the maximal width of its vetices. The width of a gaph G is the minimal width of all odeed gaphs fo G. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 47 / 50

74 Gaphs of width 1 Theoem A gaph with at least one edge has width 1 iff it is a foest (i.e., iff it contains no cycles). Poof. A gaph with at least one edge has at least width 1. ( ): If a gaph has a cycle consisting of vetices C, then in any odeing σ, one of the vetices in C will appea last. This vetex will have width at least 2. Thus, the width of the odeing cannot e 1. ( ): Conside a gaph V,E with no cycles. In evey connected component, pick an aitay vetex; these ae called oot nodes. Constuct odeed gaph V,E,σ y putting oot nodes fist in σ, then nodes with distance 1 fom a oot node, then distance 2, 3, etc. This odeed gaph has width 1. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 48 / 50

75 Gaphs of width 1 Theoem A gaph with at least one edge has width 1 iff it is a foest (i.e., iff it contains no cycles). Poof. A gaph with at least one edge has at least width 1. ( ): If a gaph has a cycle consisting of vetices C, then in any odeing σ, one of the vetices in C will appea last. This vetex will have width at least 2. Thus, the width of the odeing cannot e 1. ( ): Conside a gaph V,E with no cycles. In evey connected component, pick an aitay vetex; these ae called oot nodes. Constuct odeed gaph V,E,σ y putting oot nodes fist in σ, then nodes with distance 1 fom a oot node, then distance 2, 3, etc. This odeed gaph has width 1. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 48 / 50

76 Gaphs of width 1 Theoem A gaph with at least one edge has width 1 iff it is a foest (i.e., iff it contains no cycles). Poof. A gaph with at least one edge has at least width 1. ( ): If a gaph has a cycle consisting of vetices C, then in any odeing σ, one of the vetices in C will appea last. This vetex will have width at least 2. Thus, the width of the odeing cannot e 1. ( ): Conside a gaph V,E with no cycles. In evey connected component, pick an aitay vetex; these ae called oot nodes. Constuct odeed gaph V,E,σ y putting oot nodes fist in σ, then nodes with distance 1 fom a oot node, then distance 2, 3, etc. This odeed gaph has width 1. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 48 / 50

77 Significance of width To find solutions to constaint netwoks, we ae inteested in the width of the pimal constaint gaph. The width of a gaph is a (ough) difficulty measue. Fo width 1, we can make this moe pecise (next slide). In geneal, thee is a povale elationship etween solution effot and a closely elated measue called induced width. The odeing that leads to an odeed gaph of minimal width is usually a good static vaiale odeing. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 49 / 50

78 Constaint gaphs with width 1 Theoem Let N e a constaint netwok whose pimal constaint gaph has width 1. Then N can e solved in polynomial time. Note: Such a constaint netwok must e inay, as constaints of highe aity 3 induce cycles in the pimal constaint gaph. Lemma Let N e an ac-consistent (nomalized) constaint netwok whose pimal constaint gaph has width 1, and whee all vaiale domains ae non-empty. Then N is acktack-fee along any odeing with width 1. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 50 / 50

79 Constaint gaphs with width 1 Theoem Let N e a constaint netwok whose pimal constaint gaph has width 1. Then N can e solved in polynomial time. Note: Such a constaint netwok must e inay, as constaints of highe aity 3 induce cycles in the pimal constaint gaph. Lemma Let N e an ac-consistent (nomalized) constaint netwok whose pimal constaint gaph has width 1, and whee all vaiale domains ae non-empty. Then N is acktack-fee along any odeing with width 1. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 50 / 50

80 Constaint gaphs with width 1 (ctd.) Poof of the lemma. Let N e such a constaint netwok, and let σ = v 1,...,v n e a width-1 odeing fo N. We must show that all patial solutions of the fom {v 1 d 1,...,v i d i } fo 0 i < n can e consistently extended to vaiale v i+1. Since σ has width 1, the width of v i+1 is 0 o 1. v i+1 has width 0: Thee is no constaint etween v i+1 and any assigned vaiale, so any value in the (non-empty) domain of v i+1 is a consistent extension. v i+1 has width 1: Thee is exactly one vaiale v j {v 1,...,v i } with a constaint etween v j and v i+1. Fo evey choice (v j d j ), thee must e a consistent choice (v i+1 d i+1 ) ecause of ac consistency. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 51 / 50

81 Constaint gaphs with width 1 (ctd.) Poof of the lemma. Let N e such a constaint netwok, and let σ = v 1,...,v n e a width-1 odeing fo N. We must show that all patial solutions of the fom {v 1 d 1,...,v i d i } fo 0 i < n can e consistently extended to vaiale v i+1. Since σ has width 1, the width of v i+1 is 0 o 1. v i+1 has width 0: Thee is no constaint etween v i+1 and any assigned vaiale, so any value in the (non-empty) domain of v i+1 is a consistent extension. v i+1 has width 1: Thee is exactly one vaiale v j {v 1,...,v i } with a constaint etween v j and v i+1. Fo evey choice (v j d j ), thee must e a consistent choice (v i+1 d i+1 ) ecause of ac consistency. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 51 / 50

82 Constaint gaphs with width 1 (ctd.) Poof of the lemma. Let N e such a constaint netwok, and let σ = v 1,...,v n e a width-1 odeing fo N. We must show that all patial solutions of the fom {v 1 d 1,...,v i d i } fo 0 i < n can e consistently extended to vaiale v i+1. Since σ has width 1, the width of v i+1 is 0 o 1. v i+1 has width 0: Thee is no constaint etween v i+1 and any assigned vaiale, so any value in the (non-empty) domain of v i+1 is a consistent extension. v i+1 has width 1: Thee is exactly one vaiale v j {v 1,...,v i } with a constaint etween v j and v i+1. Fo evey choice (v j d j ), thee must e a consistent choice (v i+1 d i+1 ) ecause of ac consistency. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 51 / 50

83 Constaint gaphs with width 1 (ctd.) Poof of the lemma. Let N e such a constaint netwok, and let σ = v 1,...,v n e a width-1 odeing fo N. We must show that all patial solutions of the fom {v 1 d 1,...,v i d i } fo 0 i < n can e consistently extended to vaiale v i+1. Since σ has width 1, the width of v i+1 is 0 o 1. v i+1 has width 0: Thee is no constaint etween v i+1 and any assigned vaiale, so any value in the (non-empty) domain of v i+1 is a consistent extension. v i+1 has width 1: Thee is exactly one vaiale v j {v 1,...,v i } with a constaint etween v j and v i+1. Fo evey choice (v j d j ), thee must e a consistent choice (v i+1 d i+1 ) ecause of ac consistency. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 51 / 50

84 Constaint gaphs with width 1 (ctd.) Poof of the theoem. We can enfoce ac consistency and compute a width 1 odeing in polynomial time. If the esulting netwok has any empty vaiale domains, it is tivially unsolvale. Othewise, y the lemma, it can e solved in polynomial time y the Backtacking pocedue. Remak: Enfocing full ac consistency is actually not necessay; a limited fom of consistency is sufficient. (We do not discuss this futhe.) Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 52 / 50

85 Static vaiale odeings: Min-width odeing Min-width odeing Select a vaiale odeing such that the esulting odeed constaint gaph has minimal width among all choices. Remak: Can e computed efficiently y a geedy algoithm: 1 Choose a vetex v with minimal degee and emove it fom the gaph. 2 Recusively compute an odeing fo the emaining gaph, and place v afte all othe vetices. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 53 / 50

86 Static vaiale odeings: Cycle cutset odeing Definition (cycle cutset) Let G = V,E e a gaph. A cycle cutset fo G is a vetex set V V such that the sugaph induced y V \ V has no cycles. Cycle cutset odeing 1 Compute a (pefealy small) cycle cutset V. 2 Fist ode all vaiales in V (using any odeing stategy). 3 Then ode the emaining vaiales, using a width-1 odeing fo the sunetwok whee the vaiales in V ae emoved. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 54 / 50

87 Cycle cutsets: Remaks If the netwok is inay and the seach algoithm enfoces ac consistency afte assigning to the cutset vaiales, no futhe seach is needed at this point. untime O(k V p( N )) fo some polynomial p Howeve, finding minimum cycle cutsets is NP-had. Even finding appoximate solutions is povaly had. Howeve, in pactice good cutsets can usually e found. Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 55 / 50

88 Liteatue Rina Dechte. Constaint Pocessing, Chaptes 4 and 5, Mogan Kaufmann, 2003 Noveme 17, 2014 Wölfl, Neel and Becke-Asano Constaint Satisfaction Polems 56 / 50

24.2 Naive Backtracking

24.2 Naive Backtracking Foundations of Atificial Intelligence Apil 16, 2018 24. Constaint Satisfaction Polems: Backtacking Foundations of Atificial Intelligence 24. Constaint Satisfaction Polems: Backtacking Malte Helmet Univesity

More information

Search and Lookahead. Bernhard Nebel, Julien Hué, and Stefan Wölfl. June 4/6, 2012

Search and Lookahead. Bernhard Nebel, Julien Hué, and Stefan Wölfl. June 4/6, 2012 Search and Lookahead Bernhard Nebel, Julien Hué, and Stefan Wölfl Albert-Ludwigs-Universität Freiburg June 4/6, 2012 Search and Lookahead Enforcing consistency is one way of solving constraint networks:

More information

A Bijective Approach to the Permutational Power of a Priority Queue

A Bijective Approach to the Permutational Power of a Priority Queue A Bijective Appoach to the Pemutational Powe of a Pioity Queue Ia M. Gessel Kuang-Yeh Wang Depatment of Mathematics Bandeis Univesity Waltham, MA 02254-9110 Abstact A pioity queue tansfoms an input pemutation

More information

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence Foundations of Atificial Intellience 24. Constaint Satisfaction Polems: Backtackin Matin Wehle Univesität Basel Apil 15, 2016 Constaint Satisfaction Polems: Oveview Chapte oveview: constaint satisfaction

More information

gr0 GRAPHS Hanan Samet

gr0 GRAPHS Hanan Samet g0 GRPHS Hanan Samet ompute Science epatment and ente fo utomation Reseach and Institute fo dvanced ompute Studies Univesity of Mayland ollege Pak, Mayland 0 e-mail: hjs@umiacs.umd.edu opyight 199 Hanan

More information

Math 301: The Erdős-Stone-Simonovitz Theorem and Extremal Numbers for Bipartite Graphs

Math 301: The Erdős-Stone-Simonovitz Theorem and Extremal Numbers for Bipartite Graphs Math 30: The Edős-Stone-Simonovitz Theoem and Extemal Numbes fo Bipatite Gaphs May Radcliffe The Edős-Stone-Simonovitz Theoem Recall, in class we poved Tuán s Gaph Theoem, namely Theoem Tuán s Theoem Let

More information

Lecture 18: Graph Isomorphisms

Lecture 18: Graph Isomorphisms INFR11102: Computational Complexity 22/11/2018 Lectue: Heng Guo Lectue 18: Gaph Isomophisms 1 An Athu-Melin potocol fo GNI Last time we gave a simple inteactive potocol fo GNI with pivate coins. We will

More information

Pushdown Automata (PDAs)

Pushdown Automata (PDAs) CHAPTER 2 Context-Fee Languages Contents Context-Fee Gammas definitions, examples, designing, ambiguity, Chomsky nomal fom Pushdown Automata definitions, examples, euivalence with context-fee gammas Non-Context-Fee

More information

Compactly Supported Radial Basis Functions

Compactly Supported Radial Basis Functions Chapte 4 Compactly Suppoted Radial Basis Functions As we saw ealie, compactly suppoted functions Φ that ae tuly stictly conditionally positive definite of ode m > do not exist The compact suppot automatically

More information

The Chromatic Villainy of Complete Multipartite Graphs

The Chromatic Villainy of Complete Multipartite Graphs Rocheste Institute of Technology RIT Schola Wos Theses Thesis/Dissetation Collections 8--08 The Chomatic Villainy of Complete Multipatite Gaphs Anna Raleigh an9@it.edu Follow this and additional wos at:

More information

Fractional Zero Forcing via Three-color Forcing Games

Fractional Zero Forcing via Three-color Forcing Games Factional Zeo Focing via Thee-colo Focing Games Leslie Hogben Kevin F. Palmowski David E. Robeson Michael Young May 13, 2015 Abstact An -fold analogue of the positive semidefinite zeo focing pocess that

More information

Supplementary information Efficient Enumeration of Monocyclic Chemical Graphs with Given Path Frequencies

Supplementary information Efficient Enumeration of Monocyclic Chemical Graphs with Given Path Frequencies Supplementay infomation Efficient Enumeation of Monocyclic Chemical Gaphs with Given Path Fequencies Masaki Suzuki, Hioshi Nagamochi Gaduate School of Infomatics, Kyoto Univesity {m suzuki,nag}@amp.i.kyoto-u.ac.jp

More information

Stanford University CS259Q: Quantum Computing Handout 8 Luca Trevisan October 18, 2012

Stanford University CS259Q: Quantum Computing Handout 8 Luca Trevisan October 18, 2012 Stanfod Univesity CS59Q: Quantum Computing Handout 8 Luca Tevisan Octobe 8, 0 Lectue 8 In which we use the quantum Fouie tansfom to solve the peiod-finding poblem. The Peiod Finding Poblem Let f : {0,...,

More information

Solution to HW 3, Ma 1a Fall 2016

Solution to HW 3, Ma 1a Fall 2016 Solution to HW 3, Ma a Fall 206 Section 2. Execise 2: Let C be a subset of the eal numbes consisting of those eal numbes x having the popety that evey digit in the decimal expansion of x is, 3, 5, o 7.

More information

gr0 GRAPHS Hanan Samet

gr0 GRAPHS Hanan Samet g0 GRPHS Hanan Samet ompute Science epatment and ente fo utomation Reseach and Institute fo dvanced ompute Studies Univesity of Mayland ollege Pak, Mayland 074 e-mail: hjs@umiacs.umd.edu opyight 1997 Hanan

More information

Fall 2014 Randomized Algorithms Oct 8, Lecture 3

Fall 2014 Randomized Algorithms Oct 8, Lecture 3 Fall 204 Randomized Algoithms Oct 8, 204 Lectue 3 Pof. Fiedich Eisenband Scibes: Floian Tamè In this lectue we will be concened with linea pogamming, in paticula Clakson s Las Vegas algoithm []. The main

More information

Probablistically Checkable Proofs

Probablistically Checkable Proofs Lectue 12 Pobablistically Checkable Poofs May 13, 2004 Lectue: Paul Beame Notes: Chis Re 12.1 Pobablisitically Checkable Poofs Oveview We know that IP = PSPACE. This means thee is an inteactive potocol

More information

The Substring Search Problem

The Substring Search Problem The Substing Seach Poblem One algoithm which is used in a vaiety of applications is the family of substing seach algoithms. These algoithms allow a use to detemine if, given two chaacte stings, one is

More information

Temporal-Difference Learning

Temporal-Difference Learning .997 Decision-Making in Lage-Scale Systems Mach 17 MIT, Sping 004 Handout #17 Lectue Note 13 1 Tempoal-Diffeence Leaning We now conside the poblem of computing an appopiate paamete, so that, given an appoximation

More information

New problems in universal algebraic geometry illustrated by boolean equations

New problems in universal algebraic geometry illustrated by boolean equations New poblems in univesal algebaic geomety illustated by boolean equations axiv:1611.00152v2 [math.ra] 25 Nov 2016 Atem N. Shevlyakov Novembe 28, 2016 Abstact We discuss new poblems in univesal algebaic

More information

ITI Introduction to Computing II

ITI Introduction to Computing II ITI 1121. Intoduction to Computing II Macel Tucotte School of Electical Engineeing and Compute Science Abstact data type: Stack Stack-based algoithms Vesion of Febuay 2, 2013 Abstact These lectue notes

More information

Relating Branching Program Size and. Formula Size over the Full Binary Basis. FB Informatik, LS II, Univ. Dortmund, Dortmund, Germany

Relating Branching Program Size and. Formula Size over the Full Binary Basis. FB Informatik, LS II, Univ. Dortmund, Dortmund, Germany Relating Banching Pogam Size and omula Size ove the ull Binay Basis Matin Saueho y Ingo Wegene y Ralph Wechne z y B Infomatik, LS II, Univ. Dotmund, 44 Dotmund, Gemany z ankfut, Gemany sauehof/wegene@ls.cs.uni-dotmund.de

More information

working pages for Paul Richards class notes; do not copy or circulate without permission from PGR 2004/11/3 10:50

working pages for Paul Richards class notes; do not copy or circulate without permission from PGR 2004/11/3 10:50 woking pages fo Paul Richads class notes; do not copy o ciculate without pemission fom PGR 2004/11/3 10:50 CHAPTER7 Solid angle, 3D integals, Gauss s Theoem, and a Delta Function We define the solid angle,

More information

On the ratio of maximum and minimum degree in maximal intersecting families

On the ratio of maximum and minimum degree in maximal intersecting families On the atio of maximum and minimum degee in maximal intesecting families Zoltán Lóánt Nagy Lale Özkahya Balázs Patkós Máté Vize Mach 6, 013 Abstact To study how balanced o unbalanced a maximal intesecting

More information

Central Coverage Bayes Prediction Intervals for the Generalized Pareto Distribution

Central Coverage Bayes Prediction Intervals for the Generalized Pareto Distribution Statistics Reseach Lettes Vol. Iss., Novembe Cental Coveage Bayes Pediction Intevals fo the Genealized Paeto Distibution Gyan Pakash Depatment of Community Medicine S. N. Medical College, Aga, U. P., India

More information

C/CS/Phys C191 Shor s order (period) finding algorithm and factoring 11/12/14 Fall 2014 Lecture 22

C/CS/Phys C191 Shor s order (period) finding algorithm and factoring 11/12/14 Fall 2014 Lecture 22 C/CS/Phys C9 Sho s ode (peiod) finding algoithm and factoing /2/4 Fall 204 Lectue 22 With a fast algoithm fo the uantum Fouie Tansfom in hand, it is clea that many useful applications should be possible.

More information

Secret Exponent Attacks on RSA-type Schemes with Moduli N = p r q

Secret Exponent Attacks on RSA-type Schemes with Moduli N = p r q Secet Exponent Attacks on RSA-type Schemes with Moduli N = p q Alexande May Faculty of Compute Science, Electical Engineeing and Mathematics Univesity of Padebon 33102 Padebon, Gemany alexx@uni-padebon.de

More information

Journal of Inequalities in Pure and Applied Mathematics

Journal of Inequalities in Pure and Applied Mathematics Jounal of Inequalities in Pue and Applied Mathematics COEFFICIENT INEQUALITY FOR A FUNCTION WHOSE DERIVATIVE HAS A POSITIVE REAL PART S. ABRAMOVICH, M. KLARIČIĆ BAKULA AND S. BANIĆ Depatment of Mathematics

More information

10/04/18. P [P(x)] 1 negl(n).

10/04/18. P [P(x)] 1 negl(n). Mastemath, Sping 208 Into to Lattice lgs & Cypto Lectue 0 0/04/8 Lectues: D. Dadush, L. Ducas Scibe: K. de Boe Intoduction In this lectue, we will teat two main pats. Duing the fist pat we continue the

More information

15.081J/6.251J Introduction to Mathematical Programming. Lecture 6: The Simplex Method II

15.081J/6.251J Introduction to Mathematical Programming. Lecture 6: The Simplex Method II 15081J/6251J Intoduction to Mathematical Pogamming ectue 6: The Simplex Method II 1 Outline Revised Simplex method Slide 1 The full tableau implementation Anticycling 2 Revised Simplex Initial data: A,

More information

Macro Theory B. The Permanent Income Hypothesis

Macro Theory B. The Permanent Income Hypothesis Maco Theoy B The Pemanent Income Hypothesis Ofe Setty The Eitan Beglas School of Economics - Tel Aviv Univesity May 15, 2015 1 1 Motivation 1.1 An econometic check We want to build an empiical model with

More information

EM Boundary Value Problems

EM Boundary Value Problems EM Bounday Value Poblems 10/ 9 11/ By Ilekta chistidi & Lee, Seung-Hyun A. Geneal Desciption : Maxwell Equations & Loentz Foce We want to find the equations of motion of chaged paticles. The way to do

More information

CERFACS 42 av. Gaspard Coriolis, Toulouse, Cedex 1, France. Available at Date: April 2, 2008.

CERFACS 42 av. Gaspard Coriolis, Toulouse, Cedex 1, France. Available at   Date: April 2, 2008. ON THE BLOCK TRIANGULAR FORM OF SYMMETRIC MATRICES IAIN S. DUFF and BORA UÇAR Technical Repot: No: TR/PA/08/26 CERFACS 42 av. Gaspad Coiolis, 31057 Toulouse, Cedex 1, Fance. Available at http://www.cefacs.f/algo/epots/

More information

9.1 The multiplicative group of a finite field. Theorem 9.1. The multiplicative group F of a finite field is cyclic.

9.1 The multiplicative group of a finite field. Theorem 9.1. The multiplicative group F of a finite field is cyclic. Chapte 9 Pimitive Roots 9.1 The multiplicative goup of a finite fld Theoem 9.1. The multiplicative goup F of a finite fld is cyclic. Remak: In paticula, if p is a pime then (Z/p) is cyclic. In fact, this

More information

Convergence Dynamics of Resource-Homogeneous Congestion Games: Technical Report

Convergence Dynamics of Resource-Homogeneous Congestion Games: Technical Report 1 Convegence Dynamics of Resouce-Homogeneous Congestion Games: Technical Repot Richad Southwell and Jianwei Huang Abstact Many esouce shaing scenaios can be modeled using congestion games A nice popety

More information

COMPLETE POSITIVE GROUP PRESENTATIONS

COMPLETE POSITIVE GROUP PRESENTATIONS COMPLETE POSITIVE GROUP PRESENTATIONS PATRICK DEHORNOY Astact. A cominatoial popety of positive goup pesentations, called completeness, is intoduced, with an effective citeion fo ecognizing complete pesentations,

More information

MDS Array Codes with Optimal Rebuilding

MDS Array Codes with Optimal Rebuilding 0 IEEE Intenational Symposium on Infomation Theoy Poceedings MDS Aay Codes with Optimal Reuilding Itzhak Tamo, Zhiying Wang and Jehoshua Buck Electical Engineeing Depatment, Califonia Institute of Technology,

More information

HOW TO TEACH THE FUNDAMENTALS OF INFORMATION SCIENCE, CODING, DECODING AND NUMBER SYSTEMS?

HOW TO TEACH THE FUNDAMENTALS OF INFORMATION SCIENCE, CODING, DECODING AND NUMBER SYSTEMS? 6th INTERNATIONAL MULTIDISCIPLINARY CONFERENCE HOW TO TEACH THE FUNDAMENTALS OF INFORMATION SCIENCE, CODING, DECODING AND NUMBER SYSTEMS? Cecília Sitkuné Göömbei College of Nyíegyháza Hungay Abstact: The

More information

ON INDEPENDENT SETS IN PURELY ATOMIC PROBABILITY SPACES WITH GEOMETRIC DISTRIBUTION. 1. Introduction. 1 r r. r k for every set E A, E \ {0},

ON INDEPENDENT SETS IN PURELY ATOMIC PROBABILITY SPACES WITH GEOMETRIC DISTRIBUTION. 1. Introduction. 1 r r. r k for every set E A, E \ {0}, ON INDEPENDENT SETS IN PURELY ATOMIC PROBABILITY SPACES WITH GEOMETRIC DISTRIBUTION E. J. IONASCU and A. A. STANCU Abstact. We ae inteested in constucting concete independent events in puely atomic pobability

More information

Deterministic vs Non-deterministic Graph Property Testing

Deterministic vs Non-deterministic Graph Property Testing Deteministic vs Non-deteministic Gaph Popety Testing Lio Gishboline Asaf Shapia Abstact A gaph popety P is said to be testable if one can check whethe a gaph is close o fa fom satisfying P using few andom

More information

Top K Nearest Keyword Search on Large Graphs

Top K Nearest Keyword Search on Large Graphs Top K Neaest Keywod Seach on Lage Gaphs Miao Qiao, Lu Qin, Hong Cheng, Jeffey Xu Yu, Wentao Tian The Chinese Univesity of Hong Kong, Hong Kong, China {mqiao,lqin,hcheng,yu,wttian}@se.cuhk.edu.hk ABSTRACT

More information

Lecture 28: Convergence of Random Variables and Related Theorems

Lecture 28: Convergence of Random Variables and Related Theorems EE50: Pobability Foundations fo Electical Enginees July-Novembe 205 Lectue 28: Convegence of Random Vaiables and Related Theoems Lectue:. Kishna Jagannathan Scibe: Gopal, Sudhasan, Ajay, Swamy, Kolla An

More information

4/18/2005. Statistical Learning Theory

4/18/2005. Statistical Learning Theory Statistical Leaning Theoy Statistical Leaning Theoy A model of supevised leaning consists of: a Envionment - Supplying a vecto x with a fixed but unknown pdf F x (x b Teache. It povides a desied esponse

More information

Quantum Fourier Transform

Quantum Fourier Transform Chapte 5 Quantum Fouie Tansfom Many poblems in physics and mathematics ae solved by tansfoming a poblem into some othe poblem with a known solution. Some notable examples ae Laplace tansfom, Legende tansfom,

More information

Auchmuty High School Mathematics Department Advanced Higher Notes Teacher Version

Auchmuty High School Mathematics Department Advanced Higher Notes Teacher Version The Binomial Theoem Factoials Auchmuty High School Mathematics Depatment The calculations,, 6 etc. often appea in mathematics. They ae called factoials and have been given the notation n!. e.g. 6! 6!!!!!

More information

feasible solutions prune off subspace (contains no feasible solutions) split cut cut fixpoint of the cutting process split

feasible solutions prune off subspace (contains no feasible solutions) split cut cut fixpoint of the cutting process split in Knowledge Engineeing Reviews, 2001 Synthesis of Efficient Constaint Satisfaction Pogams Stephen J. Westfold and Douglas R. Smith Kestel Institute 3260 Hillview Avenue Palo Alto, Califonia 94304 fwestfold,smithg@kestel.edu

More information

ON THE INVERSE SIGNED TOTAL DOMINATION NUMBER IN GRAPHS. D.A. Mojdeh and B. Samadi

ON THE INVERSE SIGNED TOTAL DOMINATION NUMBER IN GRAPHS. D.A. Mojdeh and B. Samadi Opuscula Math. 37, no. 3 (017), 447 456 http://dx.doi.og/10.7494/opmath.017.37.3.447 Opuscula Mathematica ON THE INVERSE SIGNED TOTAL DOMINATION NUMBER IN GRAPHS D.A. Mojdeh and B. Samadi Communicated

More information

A proof of the binomial theorem

A proof of the binomial theorem A poof of the binomial theoem If n is a natual numbe, let n! denote the poduct of the numbes,2,3,,n. So! =, 2! = 2 = 2, 3! = 2 3 = 6, 4! = 2 3 4 = 24 and so on. We also let 0! =. If n is a non-negative

More information

Physics 2A Chapter 10 - Moment of Inertia Fall 2018

Physics 2A Chapter 10 - Moment of Inertia Fall 2018 Physics Chapte 0 - oment of netia Fall 08 The moment of inetia of a otating object is a measue of its otational inetia in the same way that the mass of an object is a measue of its inetia fo linea motion.

More information

On the Structure of Linear Programs with Overlapping Cardinality Constraints

On the Structure of Linear Programs with Overlapping Cardinality Constraints On the Stuctue of Linea Pogams with Ovelapping Cadinality Constaints Tobias Fische and Mac E. Pfetsch Depatment of Mathematics, TU Damstadt, Gemany tfische,pfetsch}@mathematik.tu-damstadt.de Januay 25,

More information

Upward order-preserving 8-grid-drawings of binary trees

Upward order-preserving 8-grid-drawings of binary trees CCCG 207, Ottawa, Ontaio, July 26 28, 207 Upwad ode-peseving 8-gid-dawings of binay tees Theese Biedl Abstact This pape concens upwad ode-peseving staightline dawings of binay tees with the additional

More information

Goodness-of-fit for composite hypotheses.

Goodness-of-fit for composite hypotheses. Section 11 Goodness-of-fit fo composite hypotheses. Example. Let us conside a Matlab example. Let us geneate 50 obsevations fom N(1, 2): X=nomnd(1,2,50,1); Then, unning a chi-squaed goodness-of-fit test

More information

To Feel a Force Chapter 7 Static equilibrium - torque and friction

To Feel a Force Chapter 7 Static equilibrium - torque and friction To eel a oce Chapte 7 Chapte 7: Static fiction, toque and static equilibium A. Review of foce vectos Between the eath and a small mass, gavitational foces of equal magnitude and opposite diection act on

More information

Vanishing lines in generalized Adams spectral sequences are generic

Vanishing lines in generalized Adams spectral sequences are generic ISSN 364-0380 (on line) 465-3060 (pinted) 55 Geomety & Topology Volume 3 (999) 55 65 Published: 2 July 999 G G G G T T T G T T T G T G T GG TT G G G G GG T T T TT Vanishing lines in genealized Adams spectal

More information

The Implementation of the Conditions for the Existence of the Most Specific Generalizations w.r.t. General EL-TBoxes

The Implementation of the Conditions for the Existence of the Most Specific Generalizations w.r.t. General EL-TBoxes The Implementation of the Conditions fo the Existence of the Most Specific Genealizations w..t. Geneal EL-TBoxes Adian Nuadiansyah Technische Univesität Desden Supevised by: Anni-Yasmin Tuhan Febuay 12,

More information

AQI: Advanced Quantum Information Lecture 2 (Module 4): Order finding and factoring algorithms February 20, 2013

AQI: Advanced Quantum Information Lecture 2 (Module 4): Order finding and factoring algorithms February 20, 2013 AQI: Advanced Quantum Infomation Lectue 2 (Module 4): Ode finding and factoing algoithms Febuay 20, 203 Lectue: D. Mak Tame (email: m.tame@impeial.ac.uk) Intoduction In the last lectue we looked at the

More information

Classical Worm algorithms (WA)

Classical Worm algorithms (WA) Classical Wom algoithms (WA) WA was oiginally intoduced fo quantum statistical models by Pokof ev, Svistunov and Tupitsyn (997), and late genealized to classical models by Pokof ev and Svistunov (200).

More information

arxiv: v1 [math.co] 4 May 2017

arxiv: v1 [math.co] 4 May 2017 On The Numbe Of Unlabeled Bipatite Gaphs Abdullah Atmaca and A Yavuz Ouç axiv:7050800v [mathco] 4 May 207 Abstact This pape solves a poblem that was stated by M A Haison in 973 [] This poblem, that has

More information

Recurrence-Relation-Based Reward Model for Performability Evaluation of Embedded Systems

Recurrence-Relation-Based Reward Model for Performability Evaluation of Embedded Systems Recuence-Relation-Based Rewad Model fo Pefomaility Evaluation of Emedded Systems Ann T. Tai Kam S. Tso IA Tech, Inc. Los Angeles, CA 90094, USA William H. Sandes Univesity of Illinois Uana, IL 61801, USA

More information

FEASIBLE FLOWS IN MULTICOMMODITY GRAPHS. Holly Sue Zullo. B. S., Rensselaer Polytechnic Institute, M. S., University of Colorado at Denver, 1993

FEASIBLE FLOWS IN MULTICOMMODITY GRAPHS. Holly Sue Zullo. B. S., Rensselaer Polytechnic Institute, M. S., University of Colorado at Denver, 1993 FEASIBLE FLOWS IN MULTICOMMODITY GRAPHS by Holly Sue Zullo B. S., Rensselae Polytechnic Institute, 1991 M. S., Univesity of Coloado at Denve, 1993 A thesis submitted to the Faculty of the Gaduate School

More information

HASHING METHODS. Hanan Samet

HASHING METHODS. Hanan Samet hs0 HASHING METHODS Hanan Samet Compute Science Depatment and Cente fo Automation Reseach and Institute fo Advanced Compute Studies Univesity of Mayland College Pak, Mayland 07 e-mail: hjs@umiacs.umd.edu

More information

Chapter 5 Linear Equations: Basic Theory and Practice

Chapter 5 Linear Equations: Basic Theory and Practice Chapte 5 inea Equations: Basic Theoy and actice In this chapte and the next, we ae inteested in the linea algebaic equation AX = b, (5-1) whee A is an m n matix, X is an n 1 vecto to be solved fo, and

More information

F-IF Logistic Growth Model, Abstract Version

F-IF Logistic Growth Model, Abstract Version F-IF Logistic Gowth Model, Abstact Vesion Alignments to Content Standads: F-IFB4 Task An impotant example of a model often used in biology o ecology to model population gowth is called the logistic gowth

More information

Pattern Recognition and Machine Learning. Face Detection using Color Histograms

Pattern Recognition and Machine Learning. Face Detection using Color Histograms Patten Recognition and Machine Leaning James L. Cowley ENSIMAG 3 - MMIS Fall Semeste 016 Lesson 1 Octoe 016 Outline Face Detection using Colo Histogams Notation... 1. Two-Class Patten Detectos... 3. Pefomance

More information

Physics 211: Newton s Second Law

Physics 211: Newton s Second Law Physics 211: Newton s Second Law Reading Assignment: Chapte 5, Sections 5-9 Chapte 6, Section 2-3 Si Isaac Newton Bon: Januay 4, 1643 Died: Mach 31, 1727 Intoduction: Kinematics is the study of how objects

More information

Output-Sensitive Algorithms for Computing Nearest-Neighbour Decision Boundaries

Output-Sensitive Algorithms for Computing Nearest-Neighbour Decision Boundaries Output-Sensitive Algoithms fo Computing Neaest-Neighou Decision Boundaies David Bemne Eik Demaine Jeff Eickson John Iacono Stefan Langeman Pat Moin Godfied Toussaint ABSTRACT. Given a set R of ed points

More information

MULTILAYER PERCEPTRONS

MULTILAYER PERCEPTRONS Last updated: Nov 26, 2012 MULTILAYER PERCEPTRONS Outline 2 Combining Linea Classifies Leaning Paametes Outline 3 Combining Linea Classifies Leaning Paametes Implementing Logical Relations 4 AND and OR

More information

A STUDY OF HAMMING CODES AS ERROR CORRECTING CODES

A STUDY OF HAMMING CODES AS ERROR CORRECTING CODES AGU Intenational Jounal of Science and Technology A STUDY OF HAMMING CODES AS ERROR CORRECTING CODES Ritu Ahuja Depatment of Mathematics Khalsa College fo Women, Civil Lines, Ludhiana-141001, Punjab, (India)

More information

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

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

More information

Encapsulation theory: radial encapsulation. Edmund Kirwan *

Encapsulation theory: radial encapsulation. Edmund Kirwan * Encapsulation theoy: adial encapsulation. Edmund Kiwan * www.edmundkiwan.com Abstact This pape intoduces the concept of adial encapsulation, wheeby dependencies ae constained to act fom subsets towads

More information

Internet Appendix for A Bayesian Approach to Real Options: The Case of Distinguishing Between Temporary and Permanent Shocks

Internet Appendix for A Bayesian Approach to Real Options: The Case of Distinguishing Between Temporary and Permanent Shocks Intenet Appendix fo A Bayesian Appoach to Real Options: The Case of Distinguishing Between Tempoay and Pemanent Shocks Steven R. Genadie Gaduate School of Business, Stanfod Univesity Andey Malenko Gaduate

More information

6 PROBABILITY GENERATING FUNCTIONS

6 PROBABILITY GENERATING FUNCTIONS 6 PROBABILITY GENERATING FUNCTIONS Cetain deivations pesented in this couse have been somewhat heavy on algeba. Fo example, detemining the expectation of the Binomial distibution (page 5.1 tuned out to

More information

Lab #4: Newton s Second Law

Lab #4: Newton s Second Law Lab #4: Newton s Second Law Si Isaac Newton Reading Assignment: bon: Januay 4, 1643 Chapte 5 died: Mach 31, 1727 Chapte 9, Section 9-7 Intoduction: Potait of Isaac Newton by Si Godfey Knelle http://www.newton.cam.ac.uk/at/potait.html

More information

EQUI-PARTITIONING OF HIGHER-DIMENSIONAL HYPER-RECTANGULAR GRID GRAPHS

EQUI-PARTITIONING OF HIGHER-DIMENSIONAL HYPER-RECTANGULAR GRID GRAPHS EQUI-PARTITIONING OF HIGHER-DIMENSIONAL HYPER-RECTANGULAR GRID GRAPHS ATHULA GUNAWARDENA AND ROBERT R MEYER Abstact A d-dimensional gid gaph G is the gaph on a finite subset in the intege lattice Z d in

More information

Analytical time-optimal trajectories for an omni-directional vehicle

Analytical time-optimal trajectories for an omni-directional vehicle Analytical time-optimal tajectoies fo an omni-diectional vehicle Weifu Wang and Devin J. Balkcom Abstact We pesent the fist analytical solution method fo finding a time-optimal tajectoy between any given

More information

On decompositions of complete multipartite graphs into the union of two even cycles

On decompositions of complete multipartite graphs into the union of two even cycles On decompositions of complete multipatite gaphs into the union of two even cycles A. Su, J. Buchanan, R. C. Bunge, S. I. El-Zanati, E. Pelttai, G. Rasmuson, E. Spaks, S. Tagais Depatment of Mathematics

More information

A generalization of the Bernstein polynomials

A generalization of the Bernstein polynomials A genealization of the Benstein polynomials Halil Ouç and Geoge M Phillips Mathematical Institute, Univesity of St Andews, Noth Haugh, St Andews, Fife KY16 9SS, Scotland Dedicated to Philip J Davis This

More information

Additive Approximation for Edge-Deletion Problems

Additive Approximation for Edge-Deletion Problems Additive Appoximation fo Edge-Deletion Poblems Noga Alon Asaf Shapia Benny Sudakov Abstact A gaph popety is monotone if it is closed unde emoval of vetices and edges. In this pape we conside the following

More information

Graphs of Sine and Cosine Functions

Graphs of Sine and Cosine Functions Gaphs of Sine and Cosine Functions In pevious sections, we defined the tigonometic o cicula functions in tems of the movement of a point aound the cicumfeence of a unit cicle, o the angle fomed by the

More information

Conjugate Gradient Methods. Michael Bader. Summer term 2012

Conjugate Gradient Methods. Michael Bader. Summer term 2012 Gadient Methods Outlines Pat I: Quadatic Foms and Steepest Descent Pat II: Gadients Pat III: Summe tem 2012 Pat I: Quadatic Foms and Steepest Descent Outlines Pat I: Quadatic Foms and Steepest Descent

More information

Splay Trees Handout. Last time we discussed amortized analysis of data structures

Splay Trees Handout. Last time we discussed amortized analysis of data structures Spla Tees Handout Amotied Analsis Last time we discussed amotied analsis of data stuctues A wa of epessing that even though the wost-case pefomance of an opeation can be bad, the total pefomance of a sequence

More information

1 Explicit Explore or Exploit (E 3 ) Algorithm

1 Explicit Explore or Exploit (E 3 ) Algorithm 2.997 Decision-Making in Lage-Scale Systems Mach 3 MIT, Sping 2004 Handout #2 Lectue Note 9 Explicit Exploe o Exploit (E 3 ) Algoithm Last lectue, we studied the Q-leaning algoithm: [ ] Q t+ (x t, a t

More information

Exceptional regular singular points of second-order ODEs. 1. Solving second-order ODEs

Exceptional regular singular points of second-order ODEs. 1. Solving second-order ODEs (May 14, 2011 Exceptional egula singula points of second-ode ODEs Paul Gaett gaett@math.umn.edu http://www.math.umn.edu/ gaett/ 1. Solving second-ode ODEs 2. Examples 3. Convegence Fobenius method fo solving

More information

Moment-free numerical approximation of highly oscillatory integrals with stationary points

Moment-free numerical approximation of highly oscillatory integrals with stationary points Moment-fee numeical appoximation of highly oscillatoy integals with stationay points Sheehan Olve Abstact We pesent a method fo the numeical quadatue of highly oscillatoy integals with stationay points.

More information

On a generalization of Eulerian numbers

On a generalization of Eulerian numbers Notes on Numbe Theoy and Discete Mathematics Pint ISSN 1310 513, Online ISSN 367 875 Vol, 018, No 1, 16 DOI: 10756/nntdm018116- On a genealization of Euleian numbes Claudio Pita-Ruiz Facultad de Ingenieía,

More information

THE JEU DE TAQUIN ON THE SHIFTED RIM HOOK TABLEAUX. Jaejin Lee

THE JEU DE TAQUIN ON THE SHIFTED RIM HOOK TABLEAUX. Jaejin Lee Koean J. Math. 23 (2015), No. 3, pp. 427 438 http://dx.doi.og/10.11568/kjm.2015.23.3.427 THE JEU DE TAQUIN ON THE SHIFTED RIM HOOK TABLEAUX Jaejin Lee Abstact. The Schensted algoithm fist descibed by Robinson

More information

Brief summary of functional analysis APPM 5440 Fall 2014 Applied Analysis

Brief summary of functional analysis APPM 5440 Fall 2014 Applied Analysis Bief summay of functional analysis APPM 5440 Fall 014 Applied Analysis Stephen Becke, stephen.becke@coloado.edu Standad theoems. When necessay, I used Royden s and Keyzsig s books as a efeence. Vesion

More information

The Erdős-Hajnal conjecture for rainbow triangles

The Erdős-Hajnal conjecture for rainbow triangles The Edős-Hajnal conjectue fo ainbow tiangles Jacob Fox Andey Ginshpun János Pach Abstact We pove that evey 3-coloing of the edges of the complete gaph on n vetices without a ainbow tiangle contains a set

More information

Surveillance Points in High Dimensional Spaces

Surveillance Points in High Dimensional Spaces Société de Calcul Mathématique SA Tools fo decision help since 995 Suveillance Points in High Dimensional Spaces by Benad Beauzamy Januay 06 Abstact Let us conside any compute softwae, elying upon a lage

More information

The Congestion of n-cube Layout on a Rectangular Grid S.L. Bezrukov J.D. Chavez y L.H. Harper z M. Rottger U.-P. Schroeder Abstract We consider the pr

The Congestion of n-cube Layout on a Rectangular Grid S.L. Bezrukov J.D. Chavez y L.H. Harper z M. Rottger U.-P. Schroeder Abstract We consider the pr The Congestion of n-cube Layout on a Rectangula Gid S.L. Bezukov J.D. Chavez y L.H. Hape z M. Rottge U.-P. Schoede Abstact We conside the poblem of embedding the n-dimensional cube into a ectangula gid

More information

Merging to ordered sequences. Efficient (Parallel) Sorting. Merging (cont.)

Merging to ordered sequences. Efficient (Parallel) Sorting. Merging (cont.) Efficient (Paae) Soting One of the most fequent opeations pefomed by computes is oganising (soting) data The access to soted data is moe convenient/faste Thee is a constant need fo good soting agoithms

More information

CALCULUS II Vectors. Paul Dawkins

CALCULUS II Vectors. Paul Dawkins CALCULUS II Vectos Paul Dawkins Table of Contents Peface... ii Vectos... 3 Intoduction... 3 Vectos The Basics... 4 Vecto Aithmetic... 8 Dot Poduct... 13 Coss Poduct... 21 2007 Paul Dawkins i http://tutoial.math.lama.edu/tems.aspx

More information

Construction Schemes for Fault-Tolerant Hamiltonian Graphs

Construction Schemes for Fault-Tolerant Hamiltonian Graphs Constuction Schemes fo Fault-Toleant Hamiltonian Gaphs Jeng-Jung Wang Depatment of Compute and Infomation Science, National Chiao Tung Univesity, Hsinchu, Taiwan 30050, Republic of China Chun-Nan Hung

More information

Math 2263 Solutions for Spring 2003 Final Exam

Math 2263 Solutions for Spring 2003 Final Exam Math 6 Solutions fo Sping Final Exam ) A staightfowad appoach to finding the tangent plane to a suface at a point ( x, y, z ) would be to expess the cuve as an explicit function z = f ( x, y ), calculate

More information

Matrix Colorings of P 4 -sparse Graphs

Matrix Colorings of P 4 -sparse Graphs Diplomabeit Matix Coloings of P 4 -spase Gaphs Chistoph Hannnebaue Januay 23, 2010 Beteue: Pof. D. Winfied Hochstättle FenUnivesität in Hagen Fakultät fü Mathematik und Infomatik Contents Intoduction iii

More information

ANA BERRIZBEITIA, LUIS A. MEDINA, ALEXANDER C. MOLL, VICTOR H. MOLL, AND LAINE NOBLE

ANA BERRIZBEITIA, LUIS A. MEDINA, ALEXANDER C. MOLL, VICTOR H. MOLL, AND LAINE NOBLE THE p-adic VALUATION OF STIRLING NUMBERS ANA BERRIZBEITIA, LUIS A. MEDINA, ALEXANDER C. MOLL, VICTOR H. MOLL, AND LAINE NOBLE Abstact. Let p > 2 be a pime. The p-adic valuation of Stiling numbes of the

More information

Homework # 3 Solution Key

Homework # 3 Solution Key PHYSICS 631: Geneal Relativity Homewok # 3 Solution Key 1. You e on you hono not to do this one by hand. I ealize you can use a compute o simply look it up. Please don t. In a flat space, the metic in

More information

As is natural, our Aerospace Structures will be described in a Euclidean three-dimensional space R 3.

As is natural, our Aerospace Structures will be described in a Euclidean three-dimensional space R 3. Appendix A Vecto Algeba As is natual, ou Aeospace Stuctues will be descibed in a Euclidean thee-dimensional space R 3. A.1 Vectos A vecto is used to epesent quantities that have both magnitude and diection.

More information

Review: Electrostatics and Magnetostatics

Review: Electrostatics and Magnetostatics Review: Electostatics and Magnetostatics In the static egime, electomagnetic quantities do not vay as a function of time. We have two main cases: ELECTROSTATICS The electic chages do not change postion

More information

Lecture 2 - Thermodynamics Overview

Lecture 2 - Thermodynamics Overview 2.625 - Electochemical Systems Fall 2013 Lectue 2 - Themodynamics Oveview D.Yang Shao-Hon Reading: Chapte 1 & 2 of Newman, Chapte 1 & 2 of Bad & Faulkne, Chaptes 9 & 10 of Physical Chemisty I. Lectue Topics:

More information