SlideShare a Scribd company logo
1 of 8
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
Constraint satisfaction Problem Artificial Intelligence

More Related Content

What's hot

Propositional logic
Propositional logicPropositional logic
Propositional logic
Rushdi Shams
 
Assembler design options
Assembler design optionsAssembler design options
Assembler design options
Mohd Arif
 

What's hot (20)

Parallel sorting algorithm
Parallel sorting algorithmParallel sorting algorithm
Parallel sorting algorithm
 
Truth management system
Truth  management systemTruth  management system
Truth management system
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Chapter 5 Syntax Directed Translation
Chapter 5   Syntax Directed TranslationChapter 5   Syntax Directed Translation
Chapter 5 Syntax Directed Translation
 
Assembler design options
Assembler design optionsAssembler design options
Assembler design options
 
POST’s CORRESPONDENCE PROBLEM
POST’s CORRESPONDENCE PROBLEMPOST’s CORRESPONDENCE PROBLEM
POST’s CORRESPONDENCE PROBLEM
 
Computer Network - Network Layer
Computer Network - Network LayerComputer Network - Network Layer
Computer Network - Network Layer
 
Code generation
Code generationCode generation
Code generation
 
Introduction to transaction processing concepts and theory
Introduction to transaction processing concepts and theoryIntroduction to transaction processing concepts and theory
Introduction to transaction processing concepts and theory
 
Lecture 14 run time environment
Lecture 14 run time environmentLecture 14 run time environment
Lecture 14 run time environment
 
Translation of an assignment statement
Translation of an assignment statementTranslation of an assignment statement
Translation of an assignment statement
 
CRYPTOGRAPHY & NETWORK SECURITY
CRYPTOGRAPHY & NETWORK SECURITYCRYPTOGRAPHY & NETWORK SECURITY
CRYPTOGRAPHY & NETWORK SECURITY
 
Addressing in Computer Networks
Addressing in Computer NetworksAddressing in Computer Networks
Addressing in Computer Networks
 
Packet tracer
Packet tracerPacket tracer
Packet tracer
 
Three Address code
Three Address code Three Address code
Three Address code
 
Unit iv(simple code generator)
Unit iv(simple code generator)Unit iv(simple code generator)
Unit iv(simple code generator)
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
 
Data Representation of Strings
Data Representation of StringsData Representation of Strings
Data Representation of Strings
 
Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
 
Network Layer,Computer Networks
Network Layer,Computer NetworksNetwork Layer,Computer Networks
Network Layer,Computer Networks
 

Similar to Constraint satisfaction Problem Artificial Intelligence

Combinatorial Problems2
Combinatorial Problems2Combinatorial Problems2
Combinatorial Problems2
3ashmawy
 
Declarative data analysis
Declarative data analysisDeclarative data analysis
Declarative data analysis
South West Data Meetup
 
RESPONDING to (2) CLASSMATES MAT222 Intermediate AlgebraY.docx
RESPONDING to (2) CLASSMATES MAT222 Intermediate AlgebraY.docxRESPONDING to (2) CLASSMATES MAT222 Intermediate AlgebraY.docx
RESPONDING to (2) CLASSMATES MAT222 Intermediate AlgebraY.docx
ronak56
 
law of large number and central limit theorem
 law of large number and central limit theorem law of large number and central limit theorem
law of large number and central limit theorem
lovemucheca
 
MachineLearning.ppt
MachineLearning.pptMachineLearning.ppt
MachineLearning.ppt
butest
 

Similar to Constraint satisfaction Problem Artificial Intelligence (20)

Solving Scheduling Problems as the Puzzle Games Using Constraint Programming
Solving Scheduling Problems as the Puzzle Games Using Constraint ProgrammingSolving Scheduling Problems as the Puzzle Games Using Constraint Programming
Solving Scheduling Problems as the Puzzle Games Using Constraint Programming
 
Using Grid Puzzle to Solve Constraint-Based Scheduling Problem
Using Grid Puzzle to Solve Constraint-Based Scheduling ProblemUsing Grid Puzzle to Solve Constraint-Based Scheduling Problem
Using Grid Puzzle to Solve Constraint-Based Scheduling Problem
 
Combinatorial Problems2
Combinatorial Problems2Combinatorial Problems2
Combinatorial Problems2
 
theory of computation lecture 01
theory of computation lecture 01theory of computation lecture 01
theory of computation lecture 01
 
Lect4
Lect4Lect4
Lect4
 
Lecture 3 & 4 Measure of Central Tendency.pdf
Lecture 3 & 4 Measure of Central Tendency.pdfLecture 3 & 4 Measure of Central Tendency.pdf
Lecture 3 & 4 Measure of Central Tendency.pdf
 
AI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction ProblemAI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction Problem
 
PR07.pdf
PR07.pdfPR07.pdf
PR07.pdf
 
Les5e ppt 06
Les5e ppt 06Les5e ppt 06
Les5e ppt 06
 
Visual Techniques
Visual TechniquesVisual Techniques
Visual Techniques
 
Amelioration of Modeling and Solving the Weighted Constraint Satisfaction Pro...
Amelioration of Modeling and Solving the Weighted Constraint Satisfaction Pro...Amelioration of Modeling and Solving the Weighted Constraint Satisfaction Pro...
Amelioration of Modeling and Solving the Weighted Constraint Satisfaction Pro...
 
Estimation and confidence interval
Estimation and confidence intervalEstimation and confidence interval
Estimation and confidence interval
 
modeling.ppt
modeling.pptmodeling.ppt
modeling.ppt
 
Ai lecture 9(unit02)
Ai lecture  9(unit02)Ai lecture  9(unit02)
Ai lecture 9(unit02)
 
Declarative data analysis
Declarative data analysisDeclarative data analysis
Declarative data analysis
 
RESPONDING to (2) CLASSMATES MAT222 Intermediate AlgebraY.docx
RESPONDING to (2) CLASSMATES MAT222 Intermediate AlgebraY.docxRESPONDING to (2) CLASSMATES MAT222 Intermediate AlgebraY.docx
RESPONDING to (2) CLASSMATES MAT222 Intermediate AlgebraY.docx
 
law of large number and central limit theorem
 law of large number and central limit theorem law of large number and central limit theorem
law of large number and central limit theorem
 
Application of combined support vector machines in process fault diagnosis
Application of combined support vector machines in process fault diagnosisApplication of combined support vector machines in process fault diagnosis
Application of combined support vector machines in process fault diagnosis
 
constraint satisfaction problems.pptx
constraint satisfaction problems.pptxconstraint satisfaction problems.pptx
constraint satisfaction problems.pptx
 
MachineLearning.ppt
MachineLearning.pptMachineLearning.ppt
MachineLearning.ppt
 

Recently uploaded

Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
CaitlinCummins3
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 

Recently uploaded (20)

How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
Climbers and Creepers used in landscaping
Climbers and Creepers used in landscapingClimbers and Creepers used in landscaping
Climbers and Creepers used in landscaping
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
demyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxdemyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptx
 

Constraint satisfaction Problem Artificial Intelligence

  • 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