Artificial Intelligence Tutorials

Slides:



Advertisements
Similar presentations
Constraint Satisfaction Problems
Advertisements

Constraint Satisfaction Patrick Prosser. An Example, Exam Timetabling Someone timetables the exams We have a number of courses to examine how many? Dept.
Constraint Satisfaction Problems Russell and Norvig: Chapter
Constraint Satisfaction Problems
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
ICS-271:Notes 5: 1 Lecture 5: Constraint Satisfaction Problems ICS 271 Fall 2008.
Artificial Intelligence Constraint satisfaction problems Fall 2008 professor: Luigi Ceccaroni.
Constraint Satisfaction problems (CSP)
Constraint Satisfaction Problems. Constraint satisfaction problems (CSPs) Standard search problem: – State is a “black box” – any data structure that.
4 Feb 2004CS Constraint Satisfaction1 Constraint Satisfaction Problems Chapter 5 Section 1 – 3.
Constraint Satisfaction Problems
Artificial Intelligence Constraint satisfaction Chapter 5, AIMA.
Constraint Satisfaction Problems
Constraint Satisfaction Problems
Constraint Satisfaction Problem Solving Chapter 5.
Create a Crossword. You should have 24 personal vocabulary words from your reading of Chew on This. You will use at least 20 of them to make a crossword.
Constraint Satisfaction Problems
ISC 4322/6300 – GAM 4322 Artificial Intelligence Lecture 4 Constraint Satisfaction Problems Instructor: Alireza Tavakkoli September 17, 2009 University.
Relaxation and Hybrid constraint processing Different relaxation techniques Some popular hybrid techniques.
Artificial Intelligence CS482, CS682, MW 1 – 2:15, SEM 201, MS 227 Prerequisites: 302, 365 Instructor: Sushil Louis,
Slide 1 Constraint Satisfaction Problems (CSPs) Introduction Jim Little UBC CS 322 – CSP 1 September 27, 2014 Textbook §
Constraint Satisfaction Problems Chapter 6. Review Agent, Environment, State Agent as search problem Uninformed search strategies Informed (heuristic.
Constraint Satisfaction Read Chapter 5. Model Finite set of variables: X1,…Xn Variable Xi has values in domain Di. Constraints C1…Cm. A constraint specifies.
Chapter 5 Section 1 – 3 1.  Constraint Satisfaction Problems (CSP)  Backtracking search for CSPs  Local search for CSPs 2.
Constraint Satisfaction CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
CSC 8520 Spring Paula Matuszek Based on Hwee Tou Ng, aima.eecs.berkeley.edu/slides-ppt, which are based on Russell, aima.eecs.berkeley.edu/slides-pdf.
Hande ÇAKIN IES 503 TERM PROJECT CONSTRAINT SATISFACTION PROBLEMS.
Artificial Intelligence CS482, CS682, MW 1 – 2:15, SEM 201, MS 227 Prerequisites: 302, 365 Instructor: Sushil Louis,
Chapter 5: Constraint Satisfaction ICS 171 Fall 2006.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Fall 2006 Jim Martin.
CSC 423 ARTIFICIAL INTELLIGENCE Constraint Satisfaction Problems.
1 Chapter 5 Constraint Satisfaction Problems. 2 Outlines  Constraint Satisfaction Problems  Backtracking Search for CSPs  Local Search for CSP  The.
CSC 8520 Spring Paula Matuszek CS 8520: Artificial Intelligence Search 3: Constraint Satisfaction Problems Paula Matuszek Spring, 2013.
Chapter 5 Constraint Satisfaction Problems
An Introduction to Artificial Intelligence Lecture 5: Constraint Satisfaction Problems Ramin Halavati In which we see how treating.
CHAPTER 5 SECTION 1 – 3 4 Feb 2004 CS Constraint Satisfaction 1 Constraint Satisfaction Problems.
Constraint Satisfaction Problems University of Berkeley, USA
Put a different number in each circle (1 to 8) such that adjacent circles cannot take consecutive numbers.
Constraint Satisfaction Problems
1. 2 Outline of Ch 4 Best-first search Greedy best-first search A * search Heuristics Functions Local search algorithms Hill-climbing search Simulated.
Computing & Information Sciences Kansas State University Friday, 08 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 7 of 42 Friday, 08 September.
Dr. Shazzad Hosain Department of EECS North South University Lecture 01 – Part C Constraint Satisfaction Problems.
Constraint Satisfaction Problems/Programming ZUI 2012/2013.
1 Constraint Satisfaction Problems (CSP). Announcements Second Test Wednesday, April 27.
Constraint Satisfaction Problems
Artificial Intelligence Chapter 11 Alternative Search Formulations and Applications.
Alternative Search Formulations and Applications
ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information Systems.
CS 561, Session 8 1 This time: constraint satisfaction - Constraint Satisfaction Problems (CSP) - Backtracking search for CSPs - Local search for CSPs.
Constraint Satisfaction Problems (CSPs) Introduction
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Constraint Satisfaction Problems vs. Finite State Problems
Constraint Satisfaction Problems (CSPs) Introduction
Constraint Satisfaction Problem
Advanced Artificial Intelligence
CS 188: Artificial Intelligence
Biointelligence Lab School of Computer Sci. & Eng.
Line, line segment and rays.
Chapter 3: Finite Constraint Domains
Running example The 4-houses puzzle:
Constraint Satisfaction Problems
Artificial Intelligence
Biointelligence Lab School of Computer Sci. & Eng.
Constraint satisfaction problems
Constraint Satisfaction Problems
CS 8520: Artificial Intelligence
Constraint Satisfaction Problems
Constraint satisfaction problems
Constraint Satisfaction Problems (CSP)
Presentation transcript:

Artificial Intelligence Tutorials

Tutorial # 5

Q1 – Problem Formulation Variables D1, D2, D3, D4, D5, D6 Domain D1 Domain = {P, M, M, M, CS, CS} D2 Domain = {P, M, M, M, CS, CS} D3 Domain = {P, M, M, M, CS, CS} D4 Domain = {M, M, M, CS, CS} D5 Domain = {M, M, M, CS, CS} D6 Domain = {M, M, M, CS, CS} Constraints D1 <> D2 D1 <> D4 D2 <> D5 D2 <> D3 D3 <> D6 D5 <> D6 D5 <> D4 Solution M P M Cs M Cs Their might be other solutions: 1= to represent the variables with the type of the student and assign them to a desk. 2= to put the domain as Di = {P, M, M, M, CS, CS} where i={1…6}, but then you will have to add a constraint as D4<>p, D5<>p, D6<>p.

Q2 – AC3 (A,B) --- Queue A {1,2,3,4,5} B C D Added Q AB {2,3,4,5} CA BA {1,2,3,4} DB AC {2,3,4} {3,4,5} DC CD --- BD {1,2,3}

Q2 –Forward Checking (C) Forward checking with MRV heuristic…

Q3 – Definitions A constraint satisfaction problem: is a problem in which the goal is to choose a value for each of a set of variables in such a way that the values all obey a set of constraints. A constraint: is a restriction on the possible values of two or more variables. For example, a constraint might say that A = a is not allowed in conjunction with B = b. Backtracking search: is a form depth-first search in which there is a single representation of the state that gets updated for each successor, and then must be restored when a dead end is reached. Arc consistency: a directed arc from variable A to variable B ( Arc AB ) in a CSP is consistent if, for every value in the current domain of A, there is some consistent value of B.

Q4 – No. of Solutions for Map Coloring There are 18 solutions for coloring Australia with three colors. Start with SA, which can have any of three colors. Then moving clockwise, WA can have either of the other two colors, and everything else is strictly determined. That makes 6 possibilities for the mainland, times 3 for Tasmania yields 18. 3 * 2 * 1 *1 * 1 * 3 = 18

Q5 – Formulations of Crossword Puzzle General Search Problem State Any arrangement of n words on the puzzle. Initial Sate No words on puzzle. Successor Function Fill a word in the puzzle with one of the words in dictionary. Goal Fill all the words in the puzzle. Path Cost Each fill cost 1. Solution Crossword puzzle construction can be solved many ways. One simple choice is depth-first search. Each successor fills in a word in the puzzle with one of the words in dictionary. It is better to go one word at a time, to minimize the number of steps.

Q5 – Formulations of Crossword Puzzle CSP Problem : As a CSP there are even more choices. You could have… Variable: Each box in the crossword puzzle. Value of each variable: A letter. Constraints: The letters must make words.

Q5 – Formulations of Crossword Puzzle CSP Problem : As a CSP there are even more choices. Alternately, we could have… Variable: Each string of consecutive horizontal or vertical boxes. Domain of the variables: Words in the dictionary of the right length. Constraints: Two intersecting words must have the same letter in intersecting box. Solving a problem in this formulation requires fewer steps, but the domain are larger (assuming a big dictionary) but there are fewer constraints.