Optimizing STR Algorithms with Tuple Compression

Size: px
Start display at page:

Download "Optimizing STR Algorithms with Tuple Compression"

Transcription

1 Optimizing STR Algorithms with Tuple Compression Wei Xia and Roland H.C. Yap School of Computing National University of Singapore {xiawei, Abstract. Table constraints define an arbitrary constraint explicitly as a set of solutions (tuples) or non-solutions. Thus, space is proportional to number of tuples. Simple Tabular Reduction (STR), which dynamically reduces the table size by maintaining a table of only the valid tuples, has been shown to be efficient for enforcing Generalized Arc Consistency. The Cartesian product representation is another way of having a smaller table by compression. We investigate whether STR and the Cartesian product representation can work hand in hand. Our experiments show the compression-based STR can be faster once the tables compress well. Thus, the benefits of the STR2 and STR3 algorithms respectively are retained while consuming less space. Introduction Table constraints are the most general form of finite domain constraints where the table defines the solutions (or non-solutions) of the constraint. Two state-of-the-art GAC approaches for non-binary table constraints, STR [ 3] and mddc [4], incorporate some form of compression. In particular, STR uses dynamic compression which compresses the table during search by removing invalid tuples. Tables can also be compressed with the Cartesian product representation [5, 6] which was used before in the context of symmetry breaking and nogood learning. It was applied to compress table constraints in [7] and shown to improve the GAC-Schema+allowed algorithm. Compression of a table constraint using the Cartesian product representation for the tuples, which we call c-tuple(s), gives a static compression of the table. Dynamic compression in STR, on the other hand, compresses by reducing the table size by tabular reduction [] during search. However, the Cartesian product representation can inhibit tabular reduction. Thus, unlike GAC-Schema algorithms which use static tables where compression is likely to be beneficial, with STR there is interplay between both kinds of compression, changing their benefits respectively. A recent paper [8] proposed a more complex way to compress tables and applies STR on this compressed representation. However, their preliminary experiments showed that the revised algorithm to be competitive with STR [], but not faster than STR2 [2]. Ideally we want a compression schemes for STR where the overall benefits can outweigh the costs. In this paper, we return to the simple idea of Cartesian product compression and investigate whether static and dynamic compression approaches for GAC can be effectively combined on table constraints. We extend the STRx (STR2 [2] and STR3 [3])

2 algorithms to handle compression tuples [7]. We experiment with random and structured CSPs varying the degree of static and dynamic table compression. We find that compression is not always beneficial but when there is a reasonable amount of static compression, the compression algorithms, STR2-C and STR3-C are faster than STR2 and STR3 respectively. They also inherit the underlying properties of STR2 and STR3. 2 Background A constraint satisfaction problem (CSP) P = (X, C) consists of a finite set X of variables and a finite set C of constraints. Variables x i X only take values from a finite domain dom(x i ). An assignment (x i,a) denotes x i = a. An r-ary constraint C C on r distinct variables x,...,x r is a subset of the Cartesian product r i= dom(x i), denoted by rel(c), that restricts the values of the variables in C can take simultaneously. The scope is the set of variables denoted by var(c) and r is the arity of C. A set of assignments θ = {(x,a ),...,(x r,a r )} satisfies C iff (a,...,a r ) rel(c), also called a solution of C or tuple of C and θ[x i ] = a i. Solving a CSP is finding an assignment for each variable from its domain so that all constraints are satisfied. An assignment (x i,a) is generalized arc consistent (GAC) to P iff for every constraint C C such that x i var(c), there is a solution θ of C where (x i,a) θ and a dom(x i ) for every (x i,a) θ. This solution is called a support for (x i,a) in C. A variable x i X is GAC iff (x i,a) is GAC for every a dom(x i ). A constraint is GAC iff every variable in its scope is GAC. Finally, CSP P is GAC iff every constraint incis GAC. Definition. (C-tuple [5, 7]). Let C be an r-ary constraint. A compression tuple τ c = ({a,,a,2,...,a,k },...,{a r,,a r,2,...,a r,kr }) of C is the Cartesian product of a set of tuples. This compression tupleτ c is also called a c-tuple. A c-tuple admits any set of assignments that assigns one ofa,,...,a,k tox, one of a 2,,...,a 2,k2 to x 2, etc. Given a c-tuple τ c, τ c [x i ] denotes{a i,,...,a i,ki }. Fig (a) shows a table and Fig (c) shows its compressed form. A c-tuple can potentially represent an exponential number of tuples. We extend the concept of validity to c-tuples. Definition 2. (Validity of c-tuple). Let C be an r-ary constraint. A c-tuple τ c is valid onc iff x i var(c), a i τ c [x i ] such thata i dom(x i ). 3 STR2-C: STR2 on compression tuples STR2 [2], a refinement of STR, is shown to be one of the most efficient GAC algorithms for non-binary table constraints. In maintaining GAC during search, STR2 gets its efficiency by maintaining dynamically the table of valid tuples. When enforcing GAC on a table constraint, the validity of each tuple is checked. Once a tuple is found to be valid, the domains of the variables are updated with the consistent values belonging to the tuple. Otherwise, the tuple is removed from the table, thus, is not considered again as the search goes deeper. Upon backtracking, removed tuples will be added back to the table.

3 We now extend STR2 to work with table constraints on c-tuples which we call STR2-C. Like STR2, STR2-C maintains a table of valid c-tuples dynamically during search. The extension to STR2-C is straightforward, so we will describe it informally. When STR2-C identifies the validity of c-tuples, if a c-tuple is invalid, it will be removed from the table, otherwise, the values belonging to the c-tuples are used to update the domains of the variables. But unlike STR2, all the values belonging to a valid tuple are GAC-consistent, the valid c-tuples may contain inconsistent values. Thus additional value checks against the domains must be done when collecting the consistent values. For the same reason, the domain updating phase of STR2 can cause rechecking of inconsistent values. In order to save some rechecks, a cursor can be used for each variable to separate the inconsistent values with the unchecked values, then the values which are already detected to be inconsistent can be skipped and only the unchecked values will be checked against the variables domains. In STR2, one optimization is that once a variable s domain is found GAC-consistent, there is no need to seek supports for the variable. Such variables are skipped when the variables domains are updated in the second phase of STR2. This optimization can be amplified in STR2-C, as the value checks against the domains in the second phase of STR2-C can also be skipped. Compared to STR2, the potential runtime improvement of STR2-C is because the compressed table may be up to exponentially smaller than the original table. We could expect that gains in efficiency of STR2-C will depend on the size of the compression table to the original table. To illustrate this, consider the constraint: C d,r (x,x 2,...,x r ) [ r i= x i = {0,,...,d 2}] [ r i= x i = d ] The domain of each variable is 0,,...,d. The table representation of C d,r has (d ) r + tuples, while the c-tuple table has 2 c-tuples, which are {({0,,...,d 2},...,{0,,...,d 2}),({d },...,{d )})}. Enforcing GAC onc d,r using STR2 takeso(rd r ) time, while using STR2-C takeso(rd) time. However, there is also a drawback. Unlike STR2, which keeps valid tuples, STR2- C keeps the valid c-tuples that may still include invalid tuples. This will bring some rechecks of values which can slow down STR2-C compared with STR-2. 4 STR3-C: STR3 on compression tuples STR3 [3] is a fine-grained table reduction based GAC algorithm, but uses a different table representation. Conceptually, in the STR3 representation, each variable-value pair is mapped to its set of tuples. STR3 is path-optimal, as it avoids unnecessary traversal of tables. STR3-C extends STR3 to work on c-tuples. The STR3 and STR3-C representation is illustrated in Fig (see [3] for details). Fig (a) shows the original table representation and Fig (b) is the equivalent STR3 representation. Compressing Fig (a) with c-tuples gives Fig (c) and the final STR3-C representation is Fig (d). We briefly summarize some ideas from the STR3 algorithm, and refer to the details in [3]. For each constraint C, row(c,x,a) represents the set of tuples belonging to (X,a) in the equivalent table (e.g. Fig (b)). row(c,x,a) is associated with a cursor, represented by row(c,x,a).curr, to separate the untested and invalid tuples. In addition, each tuple τ is accompanied with a dependent list dep(τ) of variable-value

4 X Y Z a a a 2 a a b 3 b b c 4 b c c 5 c b c 6 c c c (a) Standard table X Y Z {a} {a} {a,b} 2 {b,c} {b,c} {c} (c) Standard compressed table X Y Z a {, 2} a {, 2} a {} b {3, 4} b {3, 5} b {2} c {5,6} c {4,6} c {3,4,5,6} (b) Equivalent table X Y Z a {} a {} a {} b {2} b {2} b {} c {2} c {2} c {2} (d) Equivalent compressed table Fig. : The table representation of STR3 and STR3-C. pairs which treat τ as a valid support. STR3 works as follows. Once a value (X,a) is removed, all the unchecked tuples in row(c, X, a) before the cursor will be checked. If a tuple is already invalid, there is no need to update its dependent list. Otherwise, the tupleτ is set to be invalid, then a new support should be found for each(y,b) dep(τ). If a supportτ 2 is found,(y,b) will be shifted todep(τ 2 ), otherwise(y,b) is inconsistent and removed. STR3-C works with c-tuples, i.e. the STR3 representation applied to the compressed c-tuple form of the original table. In STR3-C, row(c,x,a) is replaced by a set of c- tuples containing value(x, a). The dependent list is based on c-tuples, but is still composed of the variable-value pairs. The key for STR3-C is the detection of the validity of c-tuples. This is the main difference from STR3, as when(x,a) is removed, the c-tuple in row(c,x,a) may still be valid. The details of the algorithm is given in Fig 2. The inv(c) in Line is the set of invalid c-tuples of constraint C implemented as a sparse set. In theinv(c) structure,inv(c).members is the position of the last current element ininv(c) andinv(c).dense is the invalid c-tuples array. In Line 2,comprTable is the standard compressed table (e.g. Fig c) and comprtable[row(c, X, a)[k]][x] returns a set values of X appearing in the c-tuple row(c,x,a)[k]. Different from STR3, the standard compressed table is used to access the c-tuples. To check the validity of the c-tuple row(c,x,a)[k], if a consistent value belonging to the c-tuple under variable X exists, the c-tuple is valid, so no need to update the dependent list of the tuple. Otherwise the c-tuple becomes invalid, and will be added into inv(c). The save() function in Line 6 and Line 7 stores the states ofinv(c).members androw(c,x,a).curr into the stack statei and stater respectively for backtracking. From Line 5 to Line 8, which is the same as STR3, STR3-C updates the dependent list of the invalid c-tuples, and the inconsistent values will be removed. For example, consider a table constraintc(x,x 2,x 3 ) = {(0,0,0),(0,,0),(0,2,0), (2,2,2)} with domains {0,,2}. In STR3, when (x 2,0) is removed, the first tuple (0,0,0) becomes invalid. If (x,0) and (x 3,0) are in dep((0,0,0)), then (x,0) and (x 3,0) will be transferred to the second or third tuple by assuming (x 2,) and (X 2,2)

5 STR3-C(C : Constraint,X : Variables,a : Value) prevmembers inv(c).members 2 for k 0 torow(c,x,a).curr do ifrow(c,x,a)[k] / inv(c) then 3 checkval[] comprtable[row(c,x,a)[k]][x] for v 0 tocheckval[].size do if checkval[v] dom(x) then break ifv = checkval[].size then 4 add row(c,x,a)[k] toinv(c) 5 if prevmembers = inv(c).members then return true 6 save(c,prevmembers,statei ) foreach i {prevmembers +,...,inv(c).members} do k inv(c).dense[i] foreach (Y,b) dep(c)[k] such thatb D C (Y)do p row(c,y,b).curr whilep 0 androw(c,y,b)[p] inv(c) dop p if p < 0 then removevalue(y, b) ifd C (Y) = then returnfalse else ifp row(c,y,b).curr then 7 save((c,y,b),row(c,y,b).curr,stater) row(c,y,b).curr p 8 returntrue move (Y,b) from dep(c)[k] todep(c)[row(c,y,b)[p]] Fig. 2: STR3-C algorithm are consistent. However, for STR3-C, the first three tuples are compressed into one. When (x 2,0) is removed, the c-tuple ({0},{0,,2},{0}) is still valid as (x 2,) and (x 2,2) are consistent, thus the dependent list will not be checked or updated. But this c-tuple may be checked again when (x 2,) or (x 2,2) is removed. Similar to STR2-C, the rechecks may potentially slow down STR3-C. The difference between STR3 and STR3-C mainly lies in the cost of detecting the invalid tuples. STR3-C takes at most additional d value checks for each c-tuple when checking its validity. However, as the compressed table can be exponentially smaller than the original table, STR3-C can still have runtime improvement. As STR3 collects the invalid tuples incrementally, let s consider the cost for the constraint C d,r, used in previous section, along a single search path of length m. For STR3-C, one c-tuple will become invalid after at most r d times validity checks along a single path, and each validity check is accompanied by at most d value checks. Assuming O() cost at each search node, STR3-C will takeo(rd 2 +m) time, while STR3 will takeo(rd r +m) [3] time forc d,r.

6 Table : Statistics for the benchmarks. Series #tuples Cr Series #tuples Cr Series #tuples Cr rand rand-5-2-2x mdd rand rand-5-2-4x mdd rand rand-5-2-8x mdd cril ramsey-a ruler ramsey-a ruler chesscolor 78 5 Table 2: The average runtime (in seconds) for random benchmarks. Series #instances STR2 STR2-C STR3 STR3-C rand rand rand rand-5-2-2x rand-5-2-4x rand-5-2-8x MDD MDD MDD Experiments We prototype STR2-C and STR3-C in Abscon which has implementations of STR2 and STR3. Experiments were run on an Intel on 64-bit Linux. We investigate the performance of STRx algorithms under different table compression ratios with random and structured benchmarks given in Table. 2 In order to have sufficient variation in table compression, we also generate another two series of random CSPs. The first is MDD-p which generalises the mdd-half benchmark (p = 0.5) by building an MDD in a post-order manner with probability p that a previously created sub-mdd is reused [4]. Another series is modified from rand-5-2 where the constraints have high tightness. 3 We decrease the tightness by randomly adding tuples such that the table is 2X (twice), 4X and 8X the size of rand-5-2. As some tables become quite large, half the constraints are removed. The average table size and table compression ratio based on series of benchmarks are given in Table wherecr = #c tuples #tuples. We use dom/ddeg and lexico as the variable and value ordering respectively when solving the CSPs to ensure the search space is the same [2]. Table 2 shows the average CPU time to solve the instances of different groups of random CSPs with the fastest across algorithms in bold and the fastest per column underlined. The cursor optimiza- Available from lecoutre/research/tools 2 The benchmarks are available from lecoutre 3 The tightness of a table is defined as t d r, where t is the number of tuples in the table, d is the domain size of the variables and r is the arity of the constraint.

7 runtime (in seconds) of STR2-C Cr=0.05 Cr=0.050 Cr=24 Cr=3 Cr=38 Cr=0.243 Cr=0.45 Cr=0.602 Cr=0.684 x=y x=20y runtime (in seconds) of STR3-C Cr=0.05 Cr=0.050 Cr=24 Cr=3 Cr=38 Cr=0.243 Cr=0.45 Cr=0.602 Cr=0.684 x=y x=20y runtime (in seconds) of STR2 (a) runtime (in seconds) of STR3 (b) Cr=0.09 Cr=0.026 Cr=0.094 Cr=5 Cr=0.25 Cr=33 Cr=0.026 Cr=0.094 Cr=5 Cr=0.25 Cr=33 y=x 00 y=x 00 runtime (in seconds) of STR2-C 0 runtime (in seconds) of STR3-C runtime (in seconds) of STR2 runtime (in seconds) of STR3 (c) (d) Fig. 3: (a) and (b) shows the runtime of STRx and STRx-C for random CSPs; (c) and (d) shows the runtime of STRx and STRx-C for structured CSPs with a max number of search nodes. (A smaller value of Cr indicates higher compression) tion is used in the STR2-C column which we found to give a small improvement on average. However, in some instances, the added overhead makes it slightly slower. We found STRx-C, on average, is faster than the corresponding STRx algorithm. In particular, for the series MDD-0.9, STR2-C and STR3-C are up to 9 times faster than STRx respectively. For the structured CSPs, most of the problem instances take longer than the time out ( hour), thus, we give the average runtime up to a maximum number of search nodes: 00 nodes for ramsey, chessboardcolor and cril, and 0 nodes for golombruler (in Fig 3 (c) and (d)). Fig 3 details the runtime of STRx and STRx-C for each instance under different compression ratios. From Fig 3 (a) and Fig 3 (c), we see that STR2-C could be more than 20 times faster than STR2 for some instances. When the compression ratio is small enough, STR2-C becomes faster than STR2. Thus, the more the table is compressed, the faster STR2-C gets. Fig 3 (b) and Fig 3 (d) show a similar comparison between

8 STR2/STR3 STR2-C/STR3-C 0.9 STR2-C/STR2 STR3-C/STR average table size avgerage table size ratio runtime ratio runtime ratio (a) (b) Fig. 4: (a) The runtime ratio of STR2/STR3 and STR2-C/STR3-C versus the average table size during search; and (b) The runtime ratio of STR2-C/STR2 and STR3-C/STR3 versus the average table size ratio during search. STR3-C and STR3. We also find that STR3-C is faster when Cr is small. However, the slowdown or speedup of STR3-C on STR3 is less than STR2-C on STR2. STR3 was shown to be faster than STR2 when table reduction does not drastically reduce the table during search [3]. We also investigate whether this property is inherited by STR2-C and STR3-C. As Fig 4 (a) shows, STR3-C is also faster than STR2-C when the average compressed table size is large. We see that among the instances, STR2 is up to 4 times slower than STR3, while STR2-C is up to 6 times slower than STR3-C. This suggests that the difference between STR2 and STR3 is more pronounced after compression. Fig 4 (b) shows that STR2-C is fast as the average table size of the compression table is small enough, otherwise STR2-C is slower than STR2. We also observed that the average table size ratio during search of STR2-C over STR2 decreases as the compression ratio decreases. This is reasonable as when the table cannot be compressed much, the original table and the c-tuple table are close in size, so the table reduction during search becomes similar. Thus, the compression ratio becomes the basic determinant to the performance of the STRx-C algorithms and can be used to identify cases when STRx-C is beneficial. We also compared with c-tuples on GAC-schema+allowed. On average, the speedup or slowdown of c-tuples is greater with STR2 than with GACschema+allowed. To summarize, our experiments show that our STR algorithms on compressed tables are competitive when the table can be compressed enough. For random CSPs, as the table compression ratio drops to 25%, the STRx-C algorithms become more efficient. This illustrates that static and dynamic table compression can cooperate well in practice even though the use of c-tuples has drawbacks in that it reduces the amount of table reduction and has some (small) overheads. We also show that the properties of STR2 and STR3 can be inherited by their compressed version algorithms.

9 References. Ullmann, J.R.: Partition Search for Non-binary Constraint Satisfaction. Information Science 77 (2007) Lecoutre, C.: STR2: Optimized Simple Tabular Reduction for Table Constraints. Constraints 6 (20) Lecoutre, C., Likitvivatanavong, C., Yap, R.H.C.: A Path-Optimal GAC Algorithm for Table Constraints. In: Proceedings of the Twentieth European Conference on Artificial Intelligence (ECAI). (202) Cheng, K., Yap, R.: An MDD-based Generalized Arc Consistency Algorithm for Positive and Negative Table Constraints and Some Global Constraints. Constraints 5 (200) Focacci, F., Milano, M.: Global Cut Framework for Removing Symmetries. In: Proceedings of the Seventh International Conference on Principles and Practice of Constraint Programming (CP). (200) Katsirelos, G., Bacchus, F.: Generalized Nogoods in CSPs. In: Proceedings of the Twentieth National Conference on Artificial Intelligence (AAAI). (2005) Katsirelos, G., Walsh, T.: A Compression Algorithm for Large Arity Extensional Constraints. In: Proceedings of the Thirteenth International Conference on Principles and Practice of Constraint Programming (CP). (2007) Gharbi, N., Hemery, F., Lecoutre, C., Roussel, O.: STR et Compression de Contraintes Tables. In: Journées Francophones de Programmation par Contraintes (JFPC). (203) 43 46

Sliced Table Constraints: Combining Compression and Tabular Reduction

Sliced Table Constraints: Combining Compression and Tabular Reduction Sliced Table Constraints: Combining Compression and Tabular Reduction Nebras Gharbi, Fred Hemery, Christophe Lecoutre, and Olivier Roussel CRIL - CNRS UMR 8188, Université Lille Nord de France, Artois,

More information

Extending Compact-Table to Negative and Short Tables

Extending Compact-Table to Negative and Short Tables Extending Compact-Table to Negative and Short Tables Hélène Verhaeghe 1 and Christophe Lecoutre 2 and Pierre Schaus 1 1 UCLouvain, ICTEAM, Place Sainte Barbe 2, 1348 Louvain-la-Neuve, Belgium, {f irstname.lastname}@uclouvain.be

More information

Extending Simple Tabular Reduction with Short Supports

Extending Simple Tabular Reduction with Short Supports Extending Simple Tabular Reduction with Short Supports Christopher Jefferson, Peter Nightingale School of Computer Science, University of St Andrews, St Andrews, Fife KY16 9SX, UK {caj21,pwn1}@st-andrews.ac.uk

More information

A compression algorithm for large arity extensional constraints

A compression algorithm for large arity extensional constraints A compression algorithm for large arity extensional constraints George Katsirelos and Toby Walsh NICTA and UNSW [george.katsirelos, toby.walsh]@nicta.com.au Abstract. We present an algorithm for compressing

More information

STR2: optimized simple tabular reduction for table constraints

STR2: optimized simple tabular reduction for table constraints Constraints (2011) 16:341 371 DOI 10.1007/s10601-011-9107-6 STR2: optimized simple tabular reduction for table constraints Christophe Lecoutre Published online: 30 March 2011 SpringerScience+BusinessMedia,LLC2011

More information

Compact-Table: Efficiently Filtering Table Constraints with Reversible Sparse Bit-Sets

Compact-Table: Efficiently Filtering Table Constraints with Reversible Sparse Bit-Sets Compact-Table: Efficiently Filtering Table Constraints with Reversible Sparse Bit-Sets Jordan Demeulenaere 1, Renaud Hartert 1, Christophe Lecoutre 2, Guillaume Perez 3, Laurent Perron 4, Jean-Charles

More information

STR2 Optimized Simple Tabular Reduction for Table Constraints

STR2 Optimized Simple Tabular Reduction for Table Constraints STR2 Optimized Simple Tabular Reduction for Table Constraints Christophe Lecoutre CRIL-CNRS UMR 8188 Université d artois, France lecoutre@cril.fr Abstract Table constraints play an important role within

More information

A Greedy Approach to Establish Singleton Arc Consistency

A Greedy Approach to Establish Singleton Arc Consistency A Greedy Approach to Establish Singleton Arc Consistency Christophe Lecoutre and Stéphane Cardon CRIL-CNRS FRE 2499, Université d Artois Lens, France {lecoutre, cardon}@cril.univ-artois.fr Abstract In

More information

A Fast Arc Consistency Algorithm for n-ary Constraints

A Fast Arc Consistency Algorithm for n-ary Constraints A Fast Arc Consistency Algorithm for n-ary Constraints Olivier Lhomme 1 and Jean-Charles Régin 2 1 ILOG, 1681, route des Dolines, 06560 Valbonne, FRANCE 2 Computing and Information Science, Cornell University,

More information

Document type : Communication à un colloque (Conference Paper)

Document type : Communication à un colloque (Conference Paper) "Efficient Reification of Table Constraints" Khong, Minh Thanh ; Deville, Yves ; Schaus, Pierre ; Lecoutre, Christophe Abstract Reifying a constraint c consists in associating a Boolean variable b with

More information

Path Consistency by Dual Consistency

Path Consistency by Dual Consistency Path Consistency by Dual Consistency Christophe Lecoutre, Stéphane Cardon, and Julien Vion CRIL CNRS FRE 2499, rue de l université, SP 16 62307 Lens cedex, France {lecoutre, cardon, vion}@cril.univ-artois.fr

More information

Extending Simple Tabular Reduction with Short Supports. Christopher Jefferson, Peter Nightingale University of St Andrews

Extending Simple Tabular Reduction with Short Supports. Christopher Jefferson, Peter Nightingale University of St Andrews Extending Simple Tabular Reduction with Short Supports Christopher Jefferson, Peter Nightingale University of St Andrews Constraints, GAC Suppose we have finite-domain variables x 1, x 2, x 3 with domains

More information

05 - Constraints Programming

05 - Constraints Programming 05 - Constraints Programming Artificial Intelligence J. BUISINE 1 1 IT Student at ULCO Calais February 22, 2018 J. BUISINE (ULCO Calais) 05 - Constraints Programming February 22, 2018 1 / 48 Summary 1

More information

Dual Consistency for Non-binary Constraint Networks

Dual Consistency for Non-binary Constraint Networks Dual Consistency for Non-binary Constraint Networks EMN Research Report nb. 09/04/INFO Julien Vion julien.vion@emn.fr École des Mines de Nantes, LINA UMR CNRS 6241, 4, rue Alfred Kastler, FR-44307 Nantes,

More information

Maintaining Arc Consistency with Multiple Residues

Maintaining Arc Consistency with Multiple Residues Maintaining Arc Consistency with Multiple Residues Christophe Lecoutre CRIL-CNRS FRE 4, Université d Artois, Lens, France Chavalit Likitvivatanavong School of Computing, National University of Singapore,

More information

Efficient Algorithms for Functional Constraints

Efficient Algorithms for Functional Constraints Efficient Algorithms for Functional Constraints Yuanlin Zhang 1, Roland HC Yap 2, Chendong Li 1, and Satyanarayana Marisetti 1 1 Texas Tech University, USA 2 National University of Singapore, Singapore

More information

An Optimal Coarse-grained Arc Consistency Algorithm

An Optimal Coarse-grained Arc Consistency Algorithm An Optimal Coarse-grained Arc Consistency Algorithm Christian Bessiere LIRMM-CNRS (UMR 5506) 161 rue Ada, 34392 Montpellier Cedex 5, France Roland H.C. Yap School of Computing, Natl. Univ. of Singapore,

More information

Adaptive Singleton-Based Consistencies

Adaptive Singleton-Based Consistencies Proceedings of the Twenty-Eighth AAAI Conference on Artificial Intelligence Adaptive Singleton-Based Consistencies Amine Balafrej CNRS, U. Montpellier, France U. Mohammed V Agdal, Morocco Christian Bessiere

More information

Binary Encodings of Non-binary Constraint Satisfaction Problems: Algorithms and Experimental Results

Binary Encodings of Non-binary Constraint Satisfaction Problems: Algorithms and Experimental Results Journal of Artificial Intelligence Research 24 (2005) 641-684 Submitted 04/05; published 11/05 Binary Encodings of Non-binary Constraint Satisfaction Problems: Algorithms and Experimental Results Nikolaos

More information

Domain k-wise Consistency Made as Simple as Generalized Arc Consistency

Domain k-wise Consistency Made as Simple as Generalized Arc Consistency Domain k-wise Consistency Made as Simple as Generalized Arc Consistency Jean-Baptiste Mairy 1, Yves Deville 1, and Christophe Lecoutre 2 1 ICTEAM, Université catholique de Louvain, Belgium {jean-baptiste.mairy,

More information

Improving GAC-4 for Table and MDD Constraints

Improving GAC-4 for Table and MDD Constraints Improving GAC-4 for Table and MDD Constraints Guillaume Perez, Jean-Charles Régin To cite this version: Guillaume Perez, Jean-Charles Régin. Improving GAC-4 for Table and MDD Constraints. CP 2014, Sep

More information

The Smart Table Constraint

The Smart Table Constraint The Smart Table Constraint Jean-Baptiste Mairy 1, Yves Deville 1, and Christophe Lecoutre 2 1 ICTEAM, Université catholique de Louvain, Belgium {jean-baptiste.mairy, yves.deville}@uclouvain.be 2 CRIL-CNRS

More information

Un Algorithme Optimal de Filtrage pour Contraintes Table

Un Algorithme Optimal de Filtrage pour Contraintes Table Un Algorithme Optimal de Filtrage pour Contraintes Table JB Mairy Pascal Van Hentenryck Yves Deville JFPC 2013 1 Table Constraints x y z a b a b c b a a a c b b b b a c a c c b a c b c c c a c c b c c

More information

A Parameterized Local Consistency for Redundant Modeling in Weighted CSPs

A Parameterized Local Consistency for Redundant Modeling in Weighted CSPs A Parameterized Local Consistency for Redundant Modeling in Weighted CSPs Y.C. Law, J.H.M. Lee, and M.H.C. Woo Department of Computer Science and Engineering The Chinese University of Hong Kong, Shatin,

More information

Maintaining Arc Consistency with Multiple Residues

Maintaining Arc Consistency with Multiple Residues Constraint Programming Letters (00) 3 Submitted 4/007; Published /00 Maintaining Arc Consistency with Multiple Residues Christophe Lecoutre CRIL-CNRS FRE 4, Université d Artois, Lens, France Chavalit Likitvivatanavong

More information

Last Conflict based Reasoning

Last Conflict based Reasoning Last Conflict based Reasoning Christophe Lecoutre and Lakhdar Sais and Sébastien Tabary and Vincent Vidal 1 Abstract. In this paper, we propose an approach to guide search to sources of conflicts. The

More information

Crossword Puzzles as a Constraint Problem

Crossword Puzzles as a Constraint Problem Crossword Puzzles as a Constraint Problem Anbulagan and Adi Botea NICTA and Australian National University, Canberra, Australia {anbulagan,adi.botea}@nicta.com.au Abstract. We present new results in crossword

More information

Advanced Consistency Techniques

Advanced Consistency Techniques Advanced Consistency Techniques Christophe Lecoutre lecoutre@cril.fr CRIL CNRS UMR 8188 Universite d Artois Lens, France ACP Summer School 2010 1 Outline 1 Introduction 2 Instantiations and Orderings 3

More information

2-C3OP: An Improved Version of 2-Consistency

2-C3OP: An Improved Version of 2-Consistency -COP: An Improved Version of -Consistency Marlene Arangú, Miguel A. Salido, Federico Barber Instituto de Automática e Informática Industrial Universidad Politécnica de Valencia. Valencia, Spain Abstract

More information

Global Inverse Consistency for Interactive Constraint Satisfaction?

Global Inverse Consistency for Interactive Constraint Satisfaction? Global Inverse Consistency for Interactive Constraint Satisfaction? Christian Bessiere 1,Hélène Fargier 2, and Christophe Lecoutre 3 1 LIRMM-CNRS, University of Montpellier, France 2 IRIT-CNRS, University

More information

Constrained Decision Diagrams

Constrained Decision Diagrams Constrained Decision Diagrams Kenil C.K. Cheng and Roland H.C. Yap National University of Singapore 3 Science Drive 2, Singapore {chengchi,ryap}@comp.nus.edu.sg Abstract A general n-ary constraint is usually

More information

Consistency and Set Intersection

Consistency and Set Intersection Consistency and Set Intersection Yuanlin Zhang and Roland H.C. Yap National University of Singapore 3 Science Drive 2, Singapore {zhangyl,ryap}@comp.nus.edu.sg Abstract We propose a new framework to study

More information

Unifying and extending hybrid tractable classes of CSPs

Unifying and extending hybrid tractable classes of CSPs Journal of Experimental & Theoretical Artificial Intelligence Vol. 00, No. 00, Month-Month 200x, 1 16 Unifying and extending hybrid tractable classes of CSPs Wady Naanaa Faculty of sciences, University

More information

Making AC-3 an Optimal Algorithm

Making AC-3 an Optimal Algorithm Making AC-3 an Optimal Algorithm Yuanlin Zhang and Roland H.C. Yap School of Computing, National University of Singapore Lower Kent Ridge Road, 119260, Singapore {zhangyl, ryap}@comp.nus.edu.sg Abstract

More information

Unrestricted Nogood Recording in CSP search

Unrestricted Nogood Recording in CSP search Unrestricted Nogood Recording in CSP search George Katsirelos and Fahiem Bacchus Department of Computer Science, University Of Toronto, Toronto, Ontario, Canada [gkatsi,fbacchus]@cs.toronto.edu Abstract.

More information

A CSP Search Algorithm with Reduced Branching Factor

A CSP Search Algorithm with Reduced Branching Factor A CSP Search Algorithm with Reduced Branching Factor Igor Razgon and Amnon Meisels Department of Computer Science, Ben-Gurion University of the Negev, Beer-Sheva, 84-105, Israel {irazgon,am}@cs.bgu.ac.il

More information

Optimal and Suboptimal Singleton Arc Consistency Algorithms

Optimal and Suboptimal Singleton Arc Consistency Algorithms Optimal and Suboptimal Singleton Arc Consistency Algorithms Christian Bessiere LIRMM (CNRS / University of Montpellier) 161 rue Ada, Montpellier, France bessiere@lirmm.fr Romuald Debruyne École des Mines

More information

Constraint Satisfaction Problems

Constraint Satisfaction Problems Constraint Satisfaction Problems CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2013 Soleymani Course material: Artificial Intelligence: A Modern Approach, 3 rd Edition,

More information

Constraint (Logic) Programming

Constraint (Logic) Programming Constraint (Logic) Programming Roman Barták Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic bartak@ktiml.mff.cuni.cz Sudoku Combinatorial puzzle, whose goal is to enter

More information

Exploiting Short Supports for Improved Encoding of Arbitrary Constraints into SAT

Exploiting Short Supports for Improved Encoding of Arbitrary Constraints into SAT Exploiting Short Supports for Improved Encoding of Arbitrary Constraints into SAT Özgür Akgün, Ian P. Gent, Christopher Jefferson, Ian Miguel, Peter Nightingale School of Computer Science, University of

More information

Propagating separable equalities in an MDD store

Propagating separable equalities in an MDD store Propagating separable equalities in an MDD store T. Hadzic 1, J. N. Hooker 2, and P. Tiedemann 3 1 University College Cork t.hadzic@4c.ucc.ie 2 Carnegie Mellon University john@hooker.tepper.cmu.edu 3 IT

More information

A Fast and Simple Algorithm for Bounds Consistency of the AllDifferent Constraint

A Fast and Simple Algorithm for Bounds Consistency of the AllDifferent Constraint A Fast and Simple Algorithm for Bounds Consistency of the AllDifferent Constraint Alejandro Lopez-Ortiz 1, Claude-Guy Quimper 1, John Tromp 2, Peter van Beek 1 1 School of Computer Science 2 C WI University

More information

Arc Consistency for Dynamic CSPs

Arc Consistency for Dynamic CSPs Arc Consistency for Dynamic CSPs Malek Mouhoub mouhoubm@cs.uregina.ca Department of Computer Science, University of Regina 3737 Waskana Parkway, Regina SK, Canada, S4S 0A2 ABSTRACT Constraint Satisfaction

More information

Solving quantified constraint satisfaction problems

Solving quantified constraint satisfaction problems Artificial Intelligence 172 (2008) 738 771 www.elsevier.com/locate/artint Solving quantified constraint satisfaction problems Ian P. Gent a, Peter Nightingale a, Andrew Rowley a, Kostas Stergiou b, a School

More information

A Generic Scheme for Integrating Strong Local Consistencies into Constraint Solvers

A Generic Scheme for Integrating Strong Local Consistencies into Constraint Solvers A Generic Scheme for Integrating Strong Local Consistencies into Constraint Solvers Julien Vion, Thierry Petit, and Narendra Jussien École des Mines de Nantes, LINA UMR CNRS 6241, 4, rue Alfred Kastler,

More information

Asynchronous Weak-commitment Search for Solving Distributed Constraint Satisfaction Problems

Asynchronous Weak-commitment Search for Solving Distributed Constraint Satisfaction Problems International Conference on Principles and Practice of Constraint Programming 1995, pp.88 102 Asynchronous Weak-commitment Search for Solving Distributed Constraint Satisfaction Problems Makoto Yokoo NTT

More information

The Tractability of Global Constraints

The Tractability of Global Constraints The Tractability of Global Constraints Christian Bessiere ½, Emmanuel Hebrard ¾, Brahim Hnich ¾, and Toby Walsh ¾ ¾ ½ LIRMM-CNRS, Montpelier, France. bessiere@lirmm.fr Cork Constraint Computation Center,

More information

A Uniform View of Backtracking

A Uniform View of Backtracking A Uniform View of Backtracking Fahiem Bacchus 1 Department. of Computer Science, 6 Kings College Road, University Of Toronto, Toronto, Ontario, Canada, M5S 1A4, fbacchus@cs.toronto.edu? Abstract. Backtracking

More information

Decomposable Constraints

Decomposable Constraints Decomposable Constraints Ian Gent 1, Kostas Stergiou 2, and Toby Walsh 3 1 University of St Andrews, St Andrews, Scotland. ipg@dcs.st-and.ac.uk 2 University of Strathclyde, Glasgow, Scotland. ks@cs.strath.ac.uk

More information

New algorithms for max restricted path consistency

New algorithms for max restricted path consistency Constraints (2011) 16:372 406 DOI 10.1007/s10601-011-9110-y New algorithms for max restricted path consistency Thanasis Balafoutis Anastasia Paparrizou Kostas Stergiou Toby Walsh Published online: 29 June

More information

Solving Functional Constraints by Variable Substitution arxiv: v1 [cs.ai] 16 Jun 2010

Solving Functional Constraints by Variable Substitution arxiv: v1 [cs.ai] 16 Jun 2010 Under consideration for publication in Theory and Practice of Logic Programming 1 Solving Functional Constraints by Variable Substitution arxiv:10063215v1 [csai] 16 Jun 2010 YUANLIN ZHANG Department of

More information

VALCSP solver : a combination of Multi-Level Dynamic Variable Ordering with Constraint Weighting

VALCSP solver : a combination of Multi-Level Dynamic Variable Ordering with Constraint Weighting VALCS solver : a combination of Multi-Level Dynamic Variable Ordering with Constraint Weighting Assef Chmeiss, Lakdar Saïs, Vincent Krawczyk CRIL - University of Artois - IUT de Lens Rue Jean Souvraz -

More information

A generic framework for solving CSPs integrating decomposition methods

A generic framework for solving CSPs integrating decomposition methods A generic framework for solving CSPs integrating decomposition methods L. Blet 1,3, S. N. Ndiaye 1,2, and C. Solnon 1,3 1 Université de Lyon - LIRIS 2 Université Lyon 1, LIRIS, UMR5205, F-69622 France

More information

ROBUSTNESS IN DYNAMIC CONSTRAINT SATISFACTION PROBLEMS. Laura Climent, Miguel A. Salido and Federico Barber. Received January 2011; revised May 2011

ROBUSTNESS IN DYNAMIC CONSTRAINT SATISFACTION PROBLEMS. Laura Climent, Miguel A. Salido and Federico Barber. Received January 2011; revised May 2011 International Journal of Innovative Computing, Information and Control ICIC International c 2012 ISSN 1349-4198 Volume 8, Number 4, April 2012 pp. 2513 2532 ROBUSTNESS IN DYNAMIC CONSTRAINT SATISFACTION

More information

Constraint Satisfaction Problems

Constraint Satisfaction Problems Constraint Satisfaction Problems Frank C. Langbein F.C.Langbein@cs.cf.ac.uk Department of Computer Science Cardiff University 13th February 2001 Constraint Satisfaction Problems (CSPs) A CSP is a high

More information

University of the Aegean Department of Information and Communication Systems Engineering Artificial Intelligence Laboratory

University of the Aegean Department of Information and Communication Systems Engineering Artificial Intelligence Laboratory University of the Aegean Department of Information and Communication Systems Engineering Artificial Intelligence Laboratory Adaptive Strategies for Solving Constraint Satisfaction Problems Thanasis Balafoutis

More information

Relational Database: The Relational Data Model; Operations on Database Relations

Relational Database: The Relational Data Model; Operations on Database Relations Relational Database: The Relational Data Model; Operations on Database Relations Greg Plaxton Theory in Programming Practice, Spring 2005 Department of Computer Science University of Texas at Austin Overview

More information

Arc Consistency in MAC: A New Perspective

Arc Consistency in MAC: A New Perspective Arc Consistency in MAC: A New Perspective Chavalit Likitvivatanavong, Yuanlin Zhang, James Bowen, and Eugene C. Freuder Cork Constraint Computation Centre, University College Cork, Ireland {chavalit, yzhang,

More information

Constraint Satisfaction Problems. Chapter 6

Constraint Satisfaction Problems. Chapter 6 Constraint Satisfaction Problems Chapter 6 Constraint Satisfaction Problems A constraint satisfaction problem consists of three components, X, D, and C: X is a set of variables, {X 1,..., X n }. D is a

More information

On the Space-Time Trade-off in Solving Constraint Satisfaction Problems*

On the Space-Time Trade-off in Solving Constraint Satisfaction Problems* Appeared in Proc of the 14th Int l Joint Conf on Artificial Intelligence, 558-56, 1995 On the Space-Time Trade-off in Solving Constraint Satisfaction Problems* Roberto J Bayardo Jr and Daniel P Miranker

More information

Parallel Computing. Slides credit: M. Quinn book (chapter 3 slides), A Grama book (chapter 3 slides)

Parallel Computing. Slides credit: M. Quinn book (chapter 3 slides), A Grama book (chapter 3 slides) Parallel Computing 2012 Slides credit: M. Quinn book (chapter 3 slides), A Grama book (chapter 3 slides) Parallel Algorithm Design Outline Computational Model Design Methodology Partitioning Communication

More information

Programming Level A.R. Hurson Department of Computer Science Missouri University of Science & Technology Rolla, Missouri

Programming Level A.R. Hurson Department of Computer Science Missouri University of Science & Technology Rolla, Missouri Programming Level A.R. Hurson Department of Computer Science Missouri University of Science & Technology Rolla, Missouri 65409 hurson@mst.edu A.R. Hurson 1 Programming Level Computer: A computer with a

More information

PARALLEL ID3. Jeremy Dominijanni CSE633, Dr. Russ Miller

PARALLEL ID3. Jeremy Dominijanni CSE633, Dr. Russ Miller PARALLEL ID3 Jeremy Dominijanni CSE633, Dr. Russ Miller 1 ID3 and the Sequential Case 2 ID3 Decision tree classifier Works on k-ary categorical data Goal of ID3 is to maximize information gain at each

More information

Constrainedness and Redundancy by Constraint Ordering

Constrainedness and Redundancy by Constraint Ordering Constrainedness and Redundancy by Constraint Ordering Miguel A. Salido 1 and Federico Barber 2 1 Dpto. Ciencias de la Computación e Inteligencia Artificial, Universidad de Alicante Campus de San Vicente,

More information

CSPs: Search and Arc Consistency

CSPs: Search and Arc Consistency CSPs: Search and Arc Consistency CPSC 322 CSPs 2 Textbook 4.3 4.5 CSPs: Search and Arc Consistency CPSC 322 CSPs 2, Slide 1 Lecture Overview 1 Recap 2 Search 3 Consistency 4 Arc Consistency CSPs: Search

More information

Constraint Propagation: The Heart of Constraint Programming

Constraint Propagation: The Heart of Constraint Programming Constraint Propagation: The Heart of Constraint Programming Zeynep KIZILTAN Department of Computer Science University of Bologna Email: zeynep@cs.unibo.it URL: http://zeynep.web.cs.unibo.it/ What is it

More information

Handbook of Constraint Programming

Handbook of Constraint Programming Handbook of Constraint Programming Francesca Rossi, Peter van Beek, Toby Walsh Elsevier Contents Contents v I First part 1 1 Modelling 3 Barbara M. Smith 1.1 Preliminaries... 4 1.2 Representing a Problem.....

More information

Semi-Independent Partitioning: A Method for Bounding the Solution to COP s

Semi-Independent Partitioning: A Method for Bounding the Solution to COP s Semi-Independent Partitioning: A Method for Bounding the Solution to COP s David Larkin University of California, Irvine Abstract. In this paper we introduce a new method for bounding the solution to constraint

More information

Conflict based Backjumping for Constraints Optimization Problems

Conflict based Backjumping for Constraints Optimization Problems Conflict based Backjumping for Constraints Optimization Problems Roie Zivan and Amnon Meisels {zivanr,am}@cs.bgu.ac.il Department of Computer Science, Ben-Gurion University of the Negev, Beer-Sheva, 84-105,

More information

Boosting systematic search by weighting constraints

Boosting systematic search by weighting constraints Boosting systematic search by weighting constraints Frédéric Boussemart and Fred Hemery and Christophe Lecoutre and Lakhdar Sais Abstract. In this paper, we present a dynamic and adaptive variable ordering

More information

Decomposing Global Grammar Constraints

Decomposing Global Grammar Constraints Decomposing Global Grammar Constraints Claude-Guy Quimper 1 and Toby Walsh 2 1 Omega Optimisation Montréal, Canada quimper@alumni.uwaterloo.ca 2 Toby Walsh NICTA and UNSW Sydney, Australia tw@cse.unsw.edu.au

More information

Reduced branching-factor algorithms for constraint satisfaction problems

Reduced branching-factor algorithms for constraint satisfaction problems Reduced branching-factor algorithms for constraint satisfaction problems Igor Razgon and Amnon Meisels Department of Computer Science, Ben-Gurion University of the Negev, Beer-Sheva, 84-105, Israel {irazgon,am}@cs.bgu.ac.il

More information

Solving Quantified Constraint Satisfaction Problems

Solving Quantified Constraint Satisfaction Problems Solving Quantified Constraint Satisfaction Problems Ian P. Gent Peter Nightingale Andrew Rowley School of Computer Science, University of St Andrews St Andrews, Fife, KY16 9SS, UK. {ipg,pn,agdr}@dcs.st-and.ac.uk

More information

A New Algorithm for Singleton Arc Consistency

A New Algorithm for Singleton Arc Consistency A New Algorithm for Singleton Arc Consistency Roman Barták, Radek Erben Charles University, Institute for Theoretical Computer Science Malostranské nám. 2/25, 118 Praha 1, Czech Republic bartak@kti.mff.cuni.cz,

More information

Exploring Parameterized Relational Consistency

Exploring Parameterized Relational Consistency University of Nebraska - Lincoln DigitalCommons@University of Nebraska - Lincoln CSE Technical reports Computer Science and Engineering, Department of 2009 Exploring Parameterized Relational Consistency

More information

System Description of a SAT-based CSP Solver Sugar

System Description of a SAT-based CSP Solver Sugar System Description of a SAT-based CSP Solver Sugar Naoyuki Tamura 1, Tomoya Tanjo 2, and Mutsunori Banbara 1 1 Information Science and Technology Center, Kobe University, JAPAN {tamura,banbara}@kobe-u.ac.jp

More information

A strong local consistency for constraint satisfaction

A strong local consistency for constraint satisfaction A strong local consistency for constraint satisfaction Romuald Debruyne Ecole des Mines de Nantes 4, rue Alfred Kastler, La Chantrerie 4437 Nantes cedex 3 - France Email: debruyne@lirmm.fr Abstract Filtering

More information

CS 771 Artificial Intelligence. Constraint Satisfaction Problem

CS 771 Artificial Intelligence. Constraint Satisfaction Problem CS 771 Artificial Intelligence Constraint Satisfaction Problem Constraint Satisfaction Problems So far we have seen a problem can be solved by searching in space of states These states can be evaluated

More information

The All Different and Global Cardinality Constraints on Set, Multiset and Tuple Variables

The All Different and Global Cardinality Constraints on Set, Multiset and Tuple Variables The All Different and Global Cardinality Constraints on Set, Multiset and Tuple Variables Claude-Guy Quimper 1 and Toby Walsh 2 1 School of Computer Science, University of Waterloo, Canada, cquimper@math.uwaterloo.ca

More information

Constraint Satisfaction Problems

Constraint Satisfaction Problems Last update: February 25, 2010 Constraint Satisfaction Problems CMSC 421, Chapter 5 CMSC 421, Chapter 5 1 Outline CSP examples Backtracking search for CSPs Problem structure and problem decomposition Local

More information

Modelling for Constraint Programming

Modelling for Constraint Programming Modelling for Constraint Programming Barbara M. Smith Cork Constraint Computation Centre, University College Cork, Ireland September 2005 1 Introduction Constraint programming can be a successful technology

More information

Implementing Logical Connectives in Constraint Programming

Implementing Logical Connectives in Constraint Programming Implementing Logical Connectives in Constraint Programming Christopher Jefferson, Neil CA Moore, Peter Nightingale, Karen E Petrie* * School of Computing, University of Dundee, Dundee DD1 4HN, UK email:

More information

Constraint Networks. Constraint networks. Definition. Normalized. Constraint Networks. Deduction. Constraint. Networks and Graphs. Solving.

Constraint Networks. Constraint networks. Definition. Normalized. Constraint Networks. Deduction. Constraint. Networks and Graphs. Solving. 1 Satisfaction Problems Albert-Ludwigs-Universität Freiburg networks networks and Stefan Wölfl, Christian Becker-Asano, and Bernhard Nebel October 27, 2014 October 27, 2014 Wölfl, Nebel and Becker-Asano

More information

Constraint Satisfaction Problems

Constraint Satisfaction Problems Constraint Satisfaction Problems Search and Lookahead Bernhard Nebel, Julien Hué, and Stefan Wölfl Albert-Ludwigs-Universität Freiburg June 4/6, 2012 Nebel, Hué and Wölfl (Universität Freiburg) Constraint

More information

Revisiting Neighborhood Inverse Consistency on Binary CSPs

Revisiting Neighborhood Inverse Consistency on Binary CSPs Revisiting Neighborhood Inverse Consistency on Binary CSPs Robert J. Woodward 1, Shant Karakashian 1,BertheY.Choueiry 1,and Christian Bessiere 2 1 Constraint Systems Laboratory, University of Nebraska-Lincoln,

More information

The Branch & Move algorithm: Improving Global Constraints Support by Local Search

The Branch & Move algorithm: Improving Global Constraints Support by Local Search Branch and Move 1 The Branch & Move algorithm: Improving Global Constraints Support by Local Search Thierry Benoist Bouygues e-lab, 1 av. Eugène Freyssinet, 78061 St Quentin en Yvelines Cedex, France tbenoist@bouygues.com

More information

Lookahead Saturation with Restriction for SAT

Lookahead Saturation with Restriction for SAT Lookahead Saturation with Restriction for SAT Anbulagan 1 and John Slaney 1,2 1 Logic and Computation Program, National ICT Australia Ltd., Canberra, Australia 2 Computer Sciences Laboratory, Australian

More information

Constraint Satisfaction Problems: A Deeper Look

Constraint Satisfaction Problems: A Deeper Look Constraint Satisfaction Problems: A Deeper Look The last problem set covered the topic of constraint satisfaction problems. CSP search and solution algorithms are directly applicable to a number of AI

More information

Nogood-FC for Solving Partitionable Constraint Satisfaction Problems

Nogood-FC for Solving Partitionable Constraint Satisfaction Problems Nogood-FC for Solving Partitionable Constraint Satisfaction Problems Montserrat Abril, Miguel A. Salido, Federico Barber Dpt. of Information Systems and Computation, Technical University of Valencia Camino

More information

Solution Directed Backjumping for QCSP

Solution Directed Backjumping for QCSP Solution Directed Backjumping for QCSP Fahiem Bacchus 1 and Kostas Stergiou 2 1 Department of Computer Science, University of Toronto, Canada. fbacchus@cs.toronto.edu 2 Department of Information and Communication

More information

Arc Consistency and Domain Splitting in CSPs

Arc Consistency and Domain Splitting in CSPs Arc Consistency and Domain Splitting in CSPs CPSC 322 CSP 3 Textbook Poole and Mackworth: 4.5 and 4.6 Lecturer: Alan Mackworth October 3, 2012 Lecture Overview Solving Constraint Satisfaction Problems

More information

Binary vs. Non-Binary Constraints

Binary vs. Non-Binary Constraints Binary vs. Non-Binary Constraints Fahiem Bacchus Department of Computer Science University of Toronto Toronto, Canada fbacchus@cs.toronto.edu Xinguang Chen Department of Computing Science University of

More information

Disjoint Sets and the Union/Find Problem

Disjoint Sets and the Union/Find Problem Disjoint Sets and the Union/Find Problem Equivalence Relations A binary relation R on a set S is a subset of the Cartesian product S S. If (a, b) R we write arb and say a relates to b. Relations can have

More information

Rajiv Chopra, Rohini Srihari and Anthony Ralston. labeling problem. However, these are dicult to

Rajiv Chopra, Rohini Srihari and Anthony Ralston. labeling problem. However, these are dicult to Expensive Constraints and HyperArc-Consistency Rajiv Chopra, Rohini Srihari and Anthony Ralston Dept. of Computer Science, SUNY at Bualo 224 Bell Hall, Amherst NY 14214 frchopra,rohini,ralstong@cs.buffalo.edu

More information

On the Space-Time Trade-off in Solving Constraint Satisfaction Problems*

On the Space-Time Trade-off in Solving Constraint Satisfaction Problems* On the Space-Time Trade-off in Solving Constraint Satisfaction Problems* Roberto J. Bayardo Jr. and Daniel P. Miranker Department of Computer Sciences and Applied Research Laboratories The University of

More information

Data Structures for Generalised Arc Consistency for Extensional Constraints

Data Structures for Generalised Arc Consistency for Extensional Constraints Data Structures for Generalised Arc Consistency for Etensional Constraints Ian P. Gent, Chris Jefferson, Ian Miguel, and Peter Nightingale School of Computer Science, University of St Andrews, Fife, KY6

More information

Constraint Satisfaction Problems

Constraint Satisfaction Problems Constraint Satisfaction Problems Tuomas Sandholm Carnegie Mellon University Computer Science Department [Read Chapter 6 of Russell & Norvig] Constraint satisfaction problems (CSPs) Standard search problem:

More information

Neighborhood Interchangeability and Dynamic Bundling for Non-Binary Finite CSPs

Neighborhood Interchangeability and Dynamic Bundling for Non-Binary Finite CSPs Neighborhood Interchangeability and Dynamic Bundling for Non-Binary Finite CSPs Anagh Lal and Berthe Y. Choueiry Constraint Systems Laboratory University of Nebraska-Lincoln {alal choueiry}@cse.unl.edu

More information

Connecting ABT with Arc Consistency

Connecting ABT with Arc Consistency Connecting ABT with Arc Consistency Ismel Brito and Pedro Meseguer IIIA, Institut d Investigació en Intel.ligència Artificial CSIC, Consejo Superior de Investigaciones Científicas Campus UAB, 08193 Bellaterra,

More information

Implementation of backtrack search

Implementation of backtrack search Fall Semester, 2005 CSCE 421/821: Foundations of Constraint Processing B.Y. Choueiry Homework 3 Assigned: Thursday, September 22, 2005 Due: Tuesday, October 11, 2005 Total value: 100 points. Penalty of

More information