SlideShare a Scribd company logo
Constraint
Satisfaction
Problem
• Artificial Intelligence
Constraint Satisfaction Problems (CSP)
Finding a solution that meets a set of constraints is the goal
of constraint satisfaction problems (CSPs), a type of AI
issue.
For tasks including resource allocation, planning, scheduling,
and decision-making, CSPs are frequently employed in AI.
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

More Related Content

PDF
Ai lecture 9(unit02)
PPTX
Constraint Satisfaction Problems_ AI2025
PPTX
constraint satisfaction problems.pptx
PDF
constraint-satisfaction-problems-in-artificial-intelligence-techniques-and-ap...
PPTX
22PCOAM11 Unit 2: Session 10 CSP map coloring.pptx
PDF
Constraint Satisfaction.pdf
PPTX
AI3391 Artificial Intelligence Session 21 CSP.pptx
PPTX
AI UNIT 3 PPTs AI UNIT 3 PPT AI UNIT 3 PPT AI UNIT 3 PPT.pptx
Ai lecture 9(unit02)
Constraint Satisfaction Problems_ AI2025
constraint satisfaction problems.pptx
constraint-satisfaction-problems-in-artificial-intelligence-techniques-and-ap...
22PCOAM11 Unit 2: Session 10 CSP map coloring.pptx
Constraint Satisfaction.pdf
AI3391 Artificial Intelligence Session 21 CSP.pptx
AI UNIT 3 PPTs AI UNIT 3 PPT AI UNIT 3 PPT AI UNIT 3 PPT.pptx

Similar to Constraint Specific Problem Problem.pptx (20)

PPTX
Constraint satisfaction problems (csp)
PPT
presentation related to artificial intelligence.ppt
PPT
presentation on artificial intelligence autosaved
PPT
constrain satisfaction problem in artificial intelligence
PPTX
Artificial Intellligence Constraint Satisfaction Problem.pptx
PPT
ConstraintSatisfaction.ppt
PDF
Artificial Intelligence JNTUH Syllabusss
PDF
Ch5_Constraint Satisfaction Problems_Lecture 1.pdf
PPTX
CH6,7.pptx
PPT
Constraint Satisfaction problem00456.ppt
PPTX
CS415 - Lecture 11 - CSPs I.pptx
PPTX
AI_Session 17 CSP.pptx
PPT
modeling.ppt
PPT
constraintSat.ppt
PPT
Constraint Satisfaction in Artifical intelligennce.ppt
PDF
AI 7 | Constraint Satisfaction Problem
PPTX
Constraint Satisfaction Problem (CSP) : Cryptarithmetic, Graph Coloring, 4- Q...
PPTX
lecture9 constraint problem and path finding
PPTX
Problem Formulation in Artificial Inteligence Projects
Constraint satisfaction problems (csp)
presentation related to artificial intelligence.ppt
presentation on artificial intelligence autosaved
constrain satisfaction problem in artificial intelligence
Artificial Intellligence Constraint Satisfaction Problem.pptx
ConstraintSatisfaction.ppt
Artificial Intelligence JNTUH Syllabusss
Ch5_Constraint Satisfaction Problems_Lecture 1.pdf
CH6,7.pptx
Constraint Satisfaction problem00456.ppt
CS415 - Lecture 11 - CSPs I.pptx
AI_Session 17 CSP.pptx
modeling.ppt
constraintSat.ppt
Constraint Satisfaction in Artifical intelligennce.ppt
AI 7 | Constraint Satisfaction Problem
Constraint Satisfaction Problem (CSP) : Cryptarithmetic, Graph Coloring, 4- Q...
lecture9 constraint problem and path finding
Problem Formulation in Artificial Inteligence Projects
Ad

More from usmanahmadawan (11)

PPT
Introduction to C Language chapter 01.ppt
PPTX
Casecading Style Sheets for Hyper Text Transfer Protocol.pptx
PPTX
Genetic Algorithm in Artificial Intelegence.pptx
PPTX
weak and strong ai in artifitial inteligence.pptx
PPT
Agents and its types in Arificial Intelgent.ppt
PPTX
07_JMS_Enterprice Java Beens Technology.pptx
PPTX
Chapter_2 Computer Networks Basics....pptx
PPTX
Chapter_1 Computer Networks Basics....pptx
PPT
Paging technique in memory menagement.ppt
PDF
Computer Crime & Security about computer
PDF
Chap01 (ics12)
Introduction to C Language chapter 01.ppt
Casecading Style Sheets for Hyper Text Transfer Protocol.pptx
Genetic Algorithm in Artificial Intelegence.pptx
weak and strong ai in artifitial inteligence.pptx
Agents and its types in Arificial Intelgent.ppt
07_JMS_Enterprice Java Beens Technology.pptx
Chapter_2 Computer Networks Basics....pptx
Chapter_1 Computer Networks Basics....pptx
Paging technique in memory menagement.ppt
Computer Crime & Security about computer
Chap01 (ics12)
Ad

Recently uploaded (20)

PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
SOIL: Factor, Horizon, Process, Classification, Degradation, Conservation
PPTX
Digestion and Absorption of Carbohydrates, Proteina and Fats
PDF
Trump Administration's workforce development strategy
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PPTX
Cell Types and Its function , kingdom of life
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
Classroom Observation Tools for Teachers
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PDF
advance database management system book.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
IGGE1 Understanding the Self1234567891011
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
Indian roads congress 037 - 2012 Flexible pavement
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
1_English_Language_Set_2.pdf probationary
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
Final Presentation General Medicine 03-08-2024.pptx
SOIL: Factor, Horizon, Process, Classification, Degradation, Conservation
Digestion and Absorption of Carbohydrates, Proteina and Fats
Trump Administration's workforce development strategy
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
A systematic review of self-coping strategies used by university students to ...
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
Cell Types and Its function , kingdom of life
History, Philosophy and sociology of education (1).pptx
Classroom Observation Tools for Teachers
Orientation - ARALprogram of Deped to the Parents.pptx
advance database management system book.pdf
Final Presentation General Medicine 03-08-2024.pptx
IGGE1 Understanding the Self1234567891011
A powerpoint presentation on the Revised K-10 Science Shaping Paper
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Indian roads congress 037 - 2012 Flexible pavement
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
1_English_Language_Set_2.pdf probationary
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...

Constraint Specific Problem Problem.pptx

  • 2. Constraint Satisfaction Problems (CSP) Finding a solution that meets a set of constraints is the goal of constraint satisfaction problems (CSPs), a type of AI issue. For tasks including resource allocation, planning, scheduling, and decision-making, CSPs are frequently employed in AI.
  • 3. 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.
  • 4. 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. 
  • 5. 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
  • 6. 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
  • 7. 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