Alexander Felfernig and Müslüm Atas Institut für Softwaretechnologie

Slides:



Advertisements
Similar presentations
Constraint Satisfaction Problems
Advertisements

I am Patrick Prosser I am a senior lecturer at Glasgow I teach algorithms & data structures in java I am a member of the algorithms group the apes (distributed,
Non-Binary Constraint Satisfaction Toby Walsh Cork Constraint Computation Center.
Constraint Satisfaction Problems Russell and Norvig: Chapter
1 Today’s class Interleaving backtracking and consistency checking Variable-ordering heuristics Value-ordering heuristics Intelligent backtracking Marie.
Minimize Problems Produced by E. Gretchen Gascon.
Lecture 11 Last Time: Local Search, Constraint Satisfaction Problems Today: More on CSPs.
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
1 Finite Constraint Domains. 2 u Constraint satisfaction problems (CSP) u A backtracking solver u Node and arc consistency u Bounds consistency u Generalized.
ICS-271:Notes 5: 1 Lecture 5: Constraint Satisfaction Problems ICS 271 Fall 2008.
CPSC 322, Lecture 13Slide 1 CSPs: Arc Consistency & Domain Splitting Computer Science cpsc322, Lecture 13 (Textbook Chpt 4.5,4.6) February, 01, 2010.
4 Feb 2004CS Constraint Satisfaction1 Constraint Satisfaction Problems Chapter 5 Section 1 – 3.
Lecture 30 CSE 331 Nov 13, To be strictly enforced For the rest of the semester on Fridays SUBMIT your HOMEWORKS by 1:10 PM.
CPSC 322, Lecture 12Slide 1 CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12 (Textbook Chpt ) January, 29, 2010.
CPSC 322, Lecture 13Slide 1 CSPs: Arc Consistency & Domain Splitting Computer Science cpsc322, Lecture 13 (Textbook Chpt 4.5,4.8) February, 02, 2009.
Artificial Intelligence Constraint satisfaction Chapter 5, AIMA.
Constraint Satisfaction Problems
CS460 Fall 2013 Lecture 4 Constraint Satisfaction Problems.
A game of logic where the player must assign the numbers 1..9 to cells on a 9x9 grid. The placement of the numbers must be such that every number must.
Constraint Satisfaction Problem Solving Chapter 5.
Row Reduction and Echelon Forms (9/9/05) A matrix is in echelon form if: All nonzero rows are above any all-zero rows. Each leading entry of a row is in.
Constraint Satisfaction Problems
1 Constraint Satisfaction Problems Slides by Prof WELLING.
Slide 1 CSPs: Arc Consistency & Domain Splitting Jim Little UBC CS 322 – Search 7 October 1, 2014 Textbook §
Computer Science CPSC 322 Lecture 13 Arc Consistency (4.5, 4.6 ) Slide 1.
Constraint Satisfaction CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Fall 2006 Jim Martin.
CSC 423 ARTIFICIAL INTELLIGENCE Constraint Satisfaction Problems.
Chapter 5 Constraint Satisfaction Problems
Artificial Intelligence Tutorials
Maintaining Arc Consistency (MAC) MAC is the same as Back-tracking, but with calls to AC-3 interleaved... function Backtracking-Search(csp) returns.
CHAPTER 5 SECTION 1 – 3 4 Feb 2004 CS Constraint Satisfaction 1 Constraint Satisfaction Problems.
Constraint Satisfaction Problems University of Berkeley, USA
Arc Consistency CPSC 322 – CSP 3 Textbook § 4.5 February 2, 2011.
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.
Chapter 5 Team Teaching AI (created by Dewi Liliana) PTIIK Constraint Satisfaction Problems.
Constraint Satisfaction Problems/Programming ZUI 2012/2013.
1 Constraint Satisfaction Problems (CSP). Announcements Second Test Wednesday, April 27.
ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information Systems.
Cse 150, Fall 2012Gary Cottrell: Many slides borrowed from David Kriegman! Constraint Satisfaction Problems Introduction to Artificial Intelligence CSE.
Automatic Test Generation
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Monster (“Mega”) Sudoku
Computer Science cpsc322, Lecture 13
CSCI5240 Combinatorial Search and Optimization with Constraints
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Planning: Representation and Forward Search
Constraint Satisfaction Problem
Advanced Artificial Intelligence
Lecture 7 Constraint Satisfaction Problems
Klassische Themen der Computerwissenschaft -Constraint Satisfaction-
Klassische Themen der Computerwissenschaft -Constraint Satisfaction-
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Planning: Representation and Forward Search
Computer Science cpsc322, Lecture 13
Solving Linear Systems by Graphing
7.1 System of Equations Solve by graphing.
General Directions for Using this Template
Chapter 3: Finite Constraint Domains
CSP Search Techniques Backtracking Forward checking
Constraint Satisfaction Problems
Constraints and Search
Constraint Satisfaction
Constraint Satisfaction Problems
CS 8520: Artificial Intelligence
Constraint Satisfaction Problems
Constraint Graph Binary CSPs
Constraint Satisfaction Problems (CSP)
Planning: Representation and Forward Search
Presentation transcript:

Alexander Felfernig and Müslüm Atas Institut für Softwaretechnologie Klassische Themen der Computerwissenschaft - Constraint Satisfaction: Exercises - Alexander Felfernig and Müslüm Atas Institut für Softwaretechnologie Inffeldgasse 16b/2 A-8010 Graz Austria

Exercises Part 1

Exercise 1 (1 Point) Given the following CSP. V={wr,ip,rr} dom(wr)={low,medium,high}; dom(ip)={short-t, medium-t, long-t}; dom(rr)={‘1-3%’,’>3-6%’, ’>6-9%’,’>9%’} C={c1, c2, c3, c4, c5} c1: ┐(wr=medium)  ip<>short-t c2: wr=high  ip=long-t c3: ip=long-t  rr=‘>3-6%’  rr=‘>6-9%’ c4: rr=‘>9%’  wr<>medium  wr<>low c5: rr=‘>6-9%’  wr<>low  wr<>medium Show that the given CSP has a solution.

Exercise 2 (3 Points) Given the following CSP. V={v1,v2,v3} dom(v1) = dom(v2) = dom(v3) = {1..4} C={c1,c2,c3} c1:v1=v2 c2:v2>v3 c3:v3>1 Show the determination of a solution for the given CSP on the basis of backtracking and forward checking.

Exercise 3 (6 Points) Download the Java Constaint Solving Library CHOCO (ver. 4.0) (documentation is included): http://choco-solver.org/ A) Define your own CSP on the basis of CHOCO with: 20 variables 100 constraints (50 binary, 50 n-ary) B) Calculate and show all solutions.

CHOCO Version: Use 4.0.0 for the exercises General Information, JavaDoc, Tutorials and more: http://www.choco-solver.org/ How to use locally (Maven): https://github.com/chocoteam/choco-solver#dow

Summary of Exercises Part 1 Explain your solutions for all exercises in a .pdf. Send the .pdf and the CHOCO sources (as a .java-File) to: muatas@ist.tugraz.at. The relevant deadline for submitting your solutions is contained in the lecture slides.

Exercises Part 2

Exercise 4 (2 Points) Given the following CSP. V={v1,v2,v3} dom(v1) = dom(v2) = dom(v3) = {1..4} C={c1,c2,c3} c1:v1>v2 c2:v2>v1 c3:v3<>v1 Determine all minimal conflict sets in C on the basis of the Simple Conflict Detection Algorithm.

Exercise 5 (4 Points) On the basis of your CSP defined in Exercise 3, include the following aspects/functionalities in your CHOCO based implementation. A) Convert the CSP (defined in CHOCO) from Exercise 3: the “new” CSP (also defined in CHOCO) must be inconsistent (no solution exists) and contain at least 12 minimal conflict sets and at least 10 minimal diagnoses. B) Determine one minimal conflict set in the CSP with your own implementation of SimpleConflictDetection.

Exercise 6 (2 Points) Explain how QuickXPlain exploits the idea of “divide-and-conquer” on the basis of a simple example.

Exercise 7 (2 Points) Explain the concept of “arc consistency” on the basis of a simple example.

Summary of Exercises Part 2 Explain your solutions for all exercises in a .pdf. Send the .pdf and the CHOCO sources (as a .java-File) to: muatas@ist.tugraz.at. The relevant deadline for submitting your solutions is contained in the lecture slides.

Thank You!