SlideShare a Scribd company logo
Topic To Be Covered:
Constraint Satisfaction Problem(Approach)
In AI
Jagdamba Education Society's
SND College of Engineering & Research Centre
Department of Computer Engineering
SUBJECT: Artificial Intelligence & Robotics
Lecture No-09(UNIT-02)
Prof.Dhakane Vikas N
Constraint Satisfaction Problem In AI
What is CSP????
 In artificial intelligence and operations research, constraint satisfaction is
the process of finding a solution to a problem by satisfying set of
constraints.
 It is heuristic based Technique.
 CSP is also called as decision problem.
Constraint Satisfaction Problem In AI
What is CSP????
 Way of representation of problem in CSP is different from state space
representation
 Some popular example of Constraint satisfaction problem are like Map
(Graph) Coloring problem-N-Queens Problem & Sudoku etc.
Constraint Satisfaction Problem In AI
What is CSP????
 For Example-01(Sudoku):
 Sudoku is played on a grid of 9 x 9 spaces.
 Within the rows and columns are 9
“squares” (made up of 3 x 3 spaces).
 Each row, column and square (9 spaces
each) needs to be filled out with the
numbers 1-9, without repeating any
numbers within the row, column or
square.
 As you can see from the image below of an
actual Sudoku grid, each Sudoku grid
comes with a few spaces already filled in;
 the more spaces filled in, the easier the
game – the more difficult Sudoku puzzles
have very few spaces that are already
filled in.
Constraint Satisfaction Problem In AI
What is CSP????
Following are main Components of CSP
 CSP consist of three
Components:(V,D,C)
1)V is the set of finite variables
{V1,V2,V3…Vn }
-In given Sudoku example, available
spaces where we have to make entry of
data(value) is called as VARIABLES….
2)D is the set of Domains
{D1,D2,D3..Dn} one for each variable.
-Here in given Sudoku example
domains are values(1-9) that has to be
placed in certain variables.
Constraint Satisfaction Problem In AI
What is CSP????
Following are main Components of CSP
 CSP consist of three Components:(V,D,C)
3) C is the set of Constraints(Rules) that
specify allowable combinations of
values.(C1,C2,C3)
-Which value to place in which variable by
selecting it from its domain is based on set of
constraints.
-For given Sudoku example Constraints are as
follows:
a)Use value from 1-9
b)No repetition of values on same row,
column & square box.
Constraint Satisfaction Problem In AI
Constraint Satisfaction Problem In AI
What is CSP????
 For Example-02(GCP):Graph Coloring Problem
 For Example(GCP):Vertex coloring is the most common graph coloring
problem. The problem is, given m colors, find a way of coloring the
vertices of a graph such that no two adjacent vertices are colored using
same color. (m=3 & node=10)
Constraint Satisfaction Problem In AI
What is CSP????
 For Example-03(N-queens Problem)
 This problem is to find an arrangement of N queens on a chess board,
such that no queen can attack any other queens on the board.
 The N Queen is the problem of placing N chess queens on an N×N
chessboard so that no two queens attack each other.
 Queen can attack each other if they are in same column, row & diagonal.
 Example:-04 queen
Ai lecture  9(unit02)
Ai lecture  9(unit02)

More Related Content

PDF
Ai lecture 07(unit03)
PDF
Ai lecture 09(unit03)
PDF
Ai lecture 01(unit03)
PDF
Ai lecture 11(unit02)
PDF
COMPILER DESIGN- Syntax Directed Translation
PPTX
Adversarial search with Game Playing
PPTX
Software Engineering
PDF
Ai lecture 11(unit03)
Ai lecture 07(unit03)
Ai lecture 09(unit03)
Ai lecture 01(unit03)
Ai lecture 11(unit02)
COMPILER DESIGN- Syntax Directed Translation
Adversarial search with Game Playing
Software Engineering
Ai lecture 11(unit03)

What's hot (20)

PPTX
PPT
Java buzzwords
PPT
Heuristc Search Techniques
PDF
DAA Notes.pdf
PPTX
Local search algorithm
PDF
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
PPTX
Compiler Chapter 1
PPTX
Fundamentals of Search
PPTX
AI_ppt.pptx
PPTX
Software Engineering
PPTX
Inference engine
PPTX
Software Testing Strategy - Unit4.pptx
PPTX
Presentaion on “MiniMax Algorithm and Water Jug Problem
PPT
Hill climbing
PPT
Compiler Design
PPTX
Lecture 06 production system
PPTX
Software requirements specification
PPTX
Error Detection & Recovery
DOC
Branch and bound
PDF
Language processors
Java buzzwords
Heuristc Search Techniques
DAA Notes.pdf
Local search algorithm
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
Compiler Chapter 1
Fundamentals of Search
AI_ppt.pptx
Software Engineering
Inference engine
Software Testing Strategy - Unit4.pptx
Presentaion on “MiniMax Algorithm and Water Jug Problem
Hill climbing
Compiler Design
Lecture 06 production system
Software requirements specification
Error Detection & Recovery
Branch and bound
Language processors
Ad

Similar to Ai lecture 9(unit02) (20)

PPTX
Constraint Specific Problem Problem.pptx
PPTX
Constraint satisfaction Problem Artificial Intelligence
PPTX
constraint satisfaction problems.pptx
PPTX
AI UNIT 3 PPTs AI UNIT 3 PPT AI UNIT 3 PPT AI UNIT 3 PPT.pptx
PPTX
Constraint Satisfaction Problems_ AI2025
PPTX
AI3391 Artificial Intelligence Session 21 CSP.pptx
PPTX
22PCOAM11 Unit 2: Session 10 CSP map coloring.pptx
PDF
Constraint Satisfaction.pdf
PPTX
Constraint Satisfaction Problem (CSP) : Cryptarithmetic, Graph Coloring, 4- Q...
PPT
ConstraintSatisfaction.ppt
PPTX
Constraint satisfaction problems (csp)
PPTX
AI_Session 17 CSP.pptx
PDF
Artificial Intelligence JNTUH Syllabusss
PDF
constraint-satisfaction-problems-in-artificial-intelligence-techniques-and-ap...
PPTX
Artificial Intellligence Constraint Satisfaction Problem.pptx
PPTX
Problem Formulation in Artificial Inteligence Projects
PPTX
CS415 - Lecture 11 - CSPs I.pptx
PPT
presentation related to artificial intelligence.ppt
PPT
presentation on artificial intelligence autosaved
Constraint Specific Problem Problem.pptx
Constraint satisfaction Problem Artificial Intelligence
constraint satisfaction problems.pptx
AI UNIT 3 PPTs AI UNIT 3 PPT AI UNIT 3 PPT AI UNIT 3 PPT.pptx
Constraint Satisfaction Problems_ AI2025
AI3391 Artificial Intelligence Session 21 CSP.pptx
22PCOAM11 Unit 2: Session 10 CSP map coloring.pptx
Constraint Satisfaction.pdf
Constraint Satisfaction Problem (CSP) : Cryptarithmetic, Graph Coloring, 4- Q...
ConstraintSatisfaction.ppt
Constraint satisfaction problems (csp)
AI_Session 17 CSP.pptx
Artificial Intelligence JNTUH Syllabusss
constraint-satisfaction-problems-in-artificial-intelligence-techniques-and-ap...
Artificial Intellligence Constraint Satisfaction Problem.pptx
Problem Formulation in Artificial Inteligence Projects
CS415 - Lecture 11 - CSPs I.pptx
presentation related to artificial intelligence.ppt
presentation on artificial intelligence autosaved
Ad

More from vikas dhakane (20)

PDF
Ai lecture 14(unit03)
PPTX
Ai lecture 13(unit03)
PDF
Ai lecture 13(unit03)
PPTX
Ai lecture 12(unit03)
PDF
Ai lecture 12(unit03)
PPTX
Ai lecture 11(unit03)
PPTX
Ai lecture 10(unit03)
PDF
Ai lecture 10(unit03)
PPTX
Ai lecture 05(unit03)
PDF
Ai lecture 05(unit03)
PPTX
Ai lecture 04(unit03)
PDF
Ai lecture 04(unit03)
PPTX
Ai lecture 03(unit03)
PDF
Ai lecture 03(unit03)
PPTX
Ai lecture 003(unit03)
PDF
Ai lecture 003(unit03)
PPTX
Ai lecture 02(unit03)
PPTX
Ai lecture 01(unit03)
PDF
Ai lecture 02(unit03)
PDF
Ai lecture 06(unit-02)
Ai lecture 14(unit03)
Ai lecture 13(unit03)
Ai lecture 13(unit03)
Ai lecture 12(unit03)
Ai lecture 12(unit03)
Ai lecture 11(unit03)
Ai lecture 10(unit03)
Ai lecture 10(unit03)
Ai lecture 05(unit03)
Ai lecture 05(unit03)
Ai lecture 04(unit03)
Ai lecture 04(unit03)
Ai lecture 03(unit03)
Ai lecture 03(unit03)
Ai lecture 003(unit03)
Ai lecture 003(unit03)
Ai lecture 02(unit03)
Ai lecture 01(unit03)
Ai lecture 02(unit03)
Ai lecture 06(unit-02)

Recently uploaded (20)

PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
86236642-Electric-Loco-Shed.pdf jfkduklg
PDF
Visual Aids for Exploratory Data Analysis.pdf
PDF
III.4.1.2_The_Space_Environment.p pdffdf
PPTX
communication and presentation skills 01
PPTX
Current and future trends in Computer Vision.pptx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
Exploratory_Data_Analysis_Fundamentals.pdf
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
Categorization of Factors Affecting Classification Algorithms Selection
PPTX
Safety Seminar civil to be ensured for safe working.
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PDF
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
PPTX
Nature of X-rays, X- Ray Equipment, Fluoroscopy
PPT
Total quality management ppt for engineering students
PDF
R24 SURVEYING LAB MANUAL for civil enggi
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
86236642-Electric-Loco-Shed.pdf jfkduklg
Visual Aids for Exploratory Data Analysis.pdf
III.4.1.2_The_Space_Environment.p pdffdf
communication and presentation skills 01
Current and future trends in Computer Vision.pptx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Exploratory_Data_Analysis_Fundamentals.pdf
Automation-in-Manufacturing-Chapter-Introduction.pdf
Categorization of Factors Affecting Classification Algorithms Selection
Safety Seminar civil to be ensured for safe working.
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
Nature of X-rays, X- Ray Equipment, Fluoroscopy
Total quality management ppt for engineering students
R24 SURVEYING LAB MANUAL for civil enggi

Ai lecture 9(unit02)

  • 1. Topic To Be Covered: Constraint Satisfaction Problem(Approach) In AI Jagdamba Education Society's SND College of Engineering & Research Centre Department of Computer Engineering SUBJECT: Artificial Intelligence & Robotics Lecture No-09(UNIT-02) Prof.Dhakane Vikas N
  • 2. Constraint Satisfaction Problem In AI What is CSP????  In artificial intelligence and operations research, constraint satisfaction is the process of finding a solution to a problem by satisfying set of constraints.  It is heuristic based Technique.  CSP is also called as decision problem.
  • 3. Constraint Satisfaction Problem In AI What is CSP????  Way of representation of problem in CSP is different from state space representation  Some popular example of Constraint satisfaction problem are like Map (Graph) Coloring problem-N-Queens Problem & Sudoku etc.
  • 4. Constraint Satisfaction Problem In AI What is CSP????  For Example-01(Sudoku):  Sudoku is played on a grid of 9 x 9 spaces.  Within the rows and columns are 9 “squares” (made up of 3 x 3 spaces).  Each row, column and square (9 spaces each) needs to be filled out with the numbers 1-9, without repeating any numbers within the row, column or square.  As you can see from the image below of an actual Sudoku grid, each Sudoku grid comes with a few spaces already filled in;  the more spaces filled in, the easier the game – the more difficult Sudoku puzzles have very few spaces that are already filled in.
  • 5. Constraint Satisfaction Problem In AI What is CSP???? Following are main Components of CSP  CSP consist of three Components:(V,D,C) 1)V is the set of finite variables {V1,V2,V3…Vn } -In given Sudoku example, available spaces where we have to make entry of data(value) is called as VARIABLES…. 2)D is the set of Domains {D1,D2,D3..Dn} one for each variable. -Here in given Sudoku example domains are values(1-9) that has to be placed in certain variables.
  • 6. Constraint Satisfaction Problem In AI What is CSP???? Following are main Components of CSP  CSP consist of three Components:(V,D,C) 3) C is the set of Constraints(Rules) that specify allowable combinations of values.(C1,C2,C3) -Which value to place in which variable by selecting it from its domain is based on set of constraints. -For given Sudoku example Constraints are as follows: a)Use value from 1-9 b)No repetition of values on same row, column & square box.
  • 8. Constraint Satisfaction Problem In AI What is CSP????  For Example-02(GCP):Graph Coloring Problem  For Example(GCP):Vertex coloring is the most common graph coloring problem. The problem is, given m colors, find a way of coloring the vertices of a graph such that no two adjacent vertices are colored using same color. (m=3 & node=10)
  • 9. Constraint Satisfaction Problem In AI What is CSP????  For Example-03(N-queens Problem)  This problem is to find an arrangement of N queens on a chess board, such that no queen can attack any other queens on the board.  The N Queen is the problem of placing N chess queens on an N×N chessboard so that no two queens attack each other.  Queen can attack each other if they are in same column, row & diagonal.  Example:-04 queen