Constraint satisfaction Problem Artificial Intelligence
naeembisma
966 views
8 slides
Feb 11, 2024
Slide 1 of 8
1
2
3
4
5
6
7
8
About This Presentation
AI based problem notes
Size: 545.46 KB
Language: en
Added: Feb 11, 2024
Slides: 8 pages
Slide Content
Constraint Satisfaction Problem Artificial Intelligence
Constraint Satisfaction Problems (CSP)
Components in CSP There are mainly three basic components in the constraint satisfaction problem: Variables : {V1, V2, V3 … Vn} Set of Domains : {D1, D2, D3, … Dn} for each variable Constraints : The guidelines that control how variables relate to one another are known as constraints. Ci = {Scope, Rel} Where scope is set of variables that participate in constraint Rel is relation that defines the values that variable can take.
Example. For instance, in a sudoku problem, the restrictions might be that each row, column, and 3×3 box can only have one instance of each number from 1 to 9.
CSP Solve using Backtracking V = {1, 2, 3, 4} D = {Red, Green, Orange} C = {1≠2, 1≠3, 1≠4, 2≠4, 3≠4} 1 2 3 4
CSP Solve using Backtracking V = {1, 2, 3, 4} D = {Red, Green, Orange} C = {1≠2, 1≠3, 1≠4, 2≠4, 3≠4} 1 2 3 4 1 2 3 4 Initial Domain R,G,O R,G,O R,G,O R,G,O 1=R R GO GO GO 2=G R G GO O 3=B R G O O
CSP Solve using Backtracking V = {1, 2, 3, 4} D = {Red, Green, Orange} C = {1≠2, 1≠3, 1≠4, 2≠4, 3≠4} 1 2 3 4 1 2 3 4 Initial Domain R,G,O R,G,O R,G,O R,G,O 1=R R GO GO GO 2=G R G GO O 3=G R G G O