SlideShare a Scribd company logo
7
Most read
13
Most read
14
Most read
AI3391 ARTIFICAL INTELLIGENCE
(II YEAR (III Sem))
Department of Artificial Intelligence and Data
Science
Session 22
by
Asst.Prof.M.Gokilavani
NIET
1/24/2024 Department of AI & DS 1
TEXTBOOK:
• Artificial Intelligence A modern Approach, Third Edition,
Stuart Russell and Peter Norvig, Pearson Education.
REFERENCES:
• Artificial Intelligence, 3rd Edn, E. Rich and K.Knight
(TMH).
• Artificial Intelligence, 3rd Edn, Patrick Henny Winston,
Pearson Education.
• Artificial Intelligence, Shivani Goel, Pearson Education.
• Artificial Intelligence and Expert Systems- Patterson,
Pearson Education.
1/24/2024 Department of AI & DS 2
Topics covered in session 22
1/24/2024 Department of AI & DS 3
• Game theory
• optimal decision in games
• alpha beta Search
• Monte Carlo tree search
• stochastic games
• partially observed games
• Constraint satisfaction problem
• Constraint propagation
• Backtracking search for CSP
• Local search for CSP
• structure of CSP.
Cryptarithmetic Problem
• Cryptarithmetic Problem is a type of constraint
satisfaction problem where the game is about digits and
its unique replacement either with alphabets or other
symbols.
• In cryptarithmetic problem, the digits (0-9) get
substituted by some possible alphabets or symbols.
• The task in cryptarithmetic problem is to substitute
each digit with an alphabet to get the result
arithmetically correct.
• We can perform all the arithmetic operations on a given
cryptarithmetic problem.
1/24/2024 4
Department of AI & DS
Constraints for cryptarithmetic
problem
• Unique digit to be replaced with a unique alphabet
(no repeated digits).
• The result should satisfy the predefined arithmetic
rules, i.e., 2+2 =4
• Digits should be from 0-9 only.
• In addition operation only one carry forward.
• The problem can be solved from both sides,
i.e., lefthand side (L.H.S), or right-hand side
(R.H.S)
1/24/2024 5
Department of AI & DS
Example 1
• Given a cryptarithmetic problem, i.e., S E N D
+ M O R E = M O N E Y.
1/24/2024 6
Department of AI & DS
Step 1
1/24/2024 7
Department of AI & DS
• Starting from the left hand side (L.H.S) , the terms
are S and M. Assign a digit which could give a
satisfactory result. Let’s assign S->9 and M->1.
Hence, we get a satisfactory result by adding up the
terms and got an assignment for O as O->0 as well.
Step 2
• Now, move ahead to the next terms E and O to
get N as its output.
1/24/2024 8
Department of AI & DS
Adding E and O, which means 5+0=0, which is not
possible because we cannot assign the same digit to
two letters.
• Add carry 1 to the value E to change the
value of alphabet.
1/24/2024 9
Department of AI & DS
Step 3
1/24/2024 10
Department of AI & DS
• Further, adding the next two terms N and R we get,
But, we have already assigned E->5. Not possible with 5 to E
Again, after solving the whole problem, we will get a
carryover on this term, so our answer will be satisfied.
Step 4
• Again, on adding the last two terms, i.e., the
rightmost terms D and E, we get Y as its result.
1/24/2024 11
Department of AI & DS
• Keeping all the constraints in mind, the final resultant
is as follows:
1/24/2024 12
Department of AI & DS
Alphabets Values
S 9
E 5
N 6
D 7
M 1
O 0
R 8
Y 2
Example 2
1/24/2024 13
Department of AI & DS
Example 3
1/24/2024 14
Department of AI & DS
Topics to be covered in next session 23
• Backtracking CSP’s
Thank you!!!
1/24/2024 Department of AI & DS 15

More Related Content

PPTX
Problem solving in Artificial Intelligence.pptx
PPTX
Truth management system
PPTX
daa-unit-3-greedy method
PPTX
Minmax Algorithm In Artificial Intelligence slides
PDF
I.BEST FIRST SEARCH IN AI
PPTX
Interrupts and types of interrupts
PPTX
AI3391 Artificial Intelligence Session 19 stochastics games.pptx
PPTX
Decision properties of reular languages
Problem solving in Artificial Intelligence.pptx
Truth management system
daa-unit-3-greedy method
Minmax Algorithm In Artificial Intelligence slides
I.BEST FIRST SEARCH IN AI
Interrupts and types of interrupts
AI3391 Artificial Intelligence Session 19 stochastics games.pptx
Decision properties of reular languages

What's hot (20)

PPTX
Sum of subset problem.pptx
PPTX
State space search
PPTX
AI_Session 11: searching with Non-Deterministic Actions and partial observati...
PPT
Game Playing in Artificial Intelligence
PPTX
Control Strategies in AI
PPTX
Webinar : P, NP, NP-Hard , NP - Complete problems
PPT
Heuristic Search Techniques Unit -II.ppt
PPTX
Distributed operating system
PPTX
Control Strategies in AI
PPTX
Structure of agents
PPTX
PPTX
Data Designs (Software Engg.)
PPTX
Logics for non monotonic reasoning-ai
PDF
AI3391 ARTIFICIAL INTELLIGENCE Unit I notes.pdf
PPTX
Predicate logic
PDF
I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFI...
PPTX
Artificial Intelligence- TicTacToe game
PPTX
Planning in AI(Partial order planning)
PPTX
Application Layer
PPTX
Challenges of Conventional Systems.pptx
Sum of subset problem.pptx
State space search
AI_Session 11: searching with Non-Deterministic Actions and partial observati...
Game Playing in Artificial Intelligence
Control Strategies in AI
Webinar : P, NP, NP-Hard , NP - Complete problems
Heuristic Search Techniques Unit -II.ppt
Distributed operating system
Control Strategies in AI
Structure of agents
Data Designs (Software Engg.)
Logics for non monotonic reasoning-ai
AI3391 ARTIFICIAL INTELLIGENCE Unit I notes.pdf
Predicate logic
I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFI...
Artificial Intelligence- TicTacToe game
Planning in AI(Partial order planning)
Application Layer
Challenges of Conventional Systems.pptx
Ad

Similar to AI3391 Artificial intelligence Session 22 Cryptarithmetic problem.pptx (20)

PPTX
AI_Session 18 Cryptoarithmetic problem.pptx
PPTX
CSP.pptx
PDF
Ai lecture 13(unit02)
PPTX
Constraint Satisfaction Problem (CSP) : Cryptarithmetic, Graph Coloring, 4- Q...
PDF
Computer Science Paper 1 (Theory) - 2019 (1).pdf
PDF
Computer Science Paper 1 (Theory) - 2019.pdf
PPTX
Money Manager Presentation-2.pptx
PDF
Constraint Satisfaction.pdf
PDF
Combinatorial Problems2
PPTX
Constraint satisfaction problems (csp)
PPTX
Lecture 13 Criptarithmetic problem
PPTX
AI3391 Artificial Intelligence Session 21 CSP.pptx
PPTX
Constraint Satisfaction Problems - Copy.pptx
PDF
Mathematicalfoundationofcomputerscience
PPTX
Think like a computer (Computational Thinking)
PPTX
Lecture 7.pptx
PPTX
Discrete Math IP4 - Automata Theory
PPTX
Ip 5 discrete mathematics
PPTX
AI_Session 17 CSP.pptx
PPTX
AI3391 Artificial Intelligence Session 23 Backtracking CSP's.pptx
AI_Session 18 Cryptoarithmetic problem.pptx
CSP.pptx
Ai lecture 13(unit02)
Constraint Satisfaction Problem (CSP) : Cryptarithmetic, Graph Coloring, 4- Q...
Computer Science Paper 1 (Theory) - 2019 (1).pdf
Computer Science Paper 1 (Theory) - 2019.pdf
Money Manager Presentation-2.pptx
Constraint Satisfaction.pdf
Combinatorial Problems2
Constraint satisfaction problems (csp)
Lecture 13 Criptarithmetic problem
AI3391 Artificial Intelligence Session 21 CSP.pptx
Constraint Satisfaction Problems - Copy.pptx
Mathematicalfoundationofcomputerscience
Think like a computer (Computational Thinking)
Lecture 7.pptx
Discrete Math IP4 - Automata Theory
Ip 5 discrete mathematics
AI_Session 17 CSP.pptx
AI3391 Artificial Intelligence Session 23 Backtracking CSP's.pptx
Ad

More from Guru Nanak Technical Institutions (20)

PPTX
22PCOAM21 Data Quality Session 3 Data Quality.pptx
PPTX
22PCOAM21 Session 1 Data Management.pptx
PPTX
22PCOAM21 Session 2 Understanding Data Source.pptx
PDF
III Year II Sem 22PCOAM21 Data Analytics Syllabus.pdf
PDF
22PCOAM16 _ML_Unit 3 Notes & Question bank
PDF
22PCOAM16 Machine Learning Unit V Full notes & QB
PDF
22PCOAM16_MACHINE_LEARNING_UNIT_IV_NOTES_with_QB
PDF
22PCOAM16 ML Unit 3 Full notes PDF & QB.pdf
PPTX
22PCOAM16 Unit 3 Session 23 Different ways to Combine Classifiers.pptx
PPTX
22PCOAM16 Unit 3 Session 22 Ensemble Learning .pptx
PPTX
22PCOAM16 Unit 3 Session 24 K means Algorithms.pptx
PPTX
22PCOAM16 ML Unit 3 Session 18 Learning with tree.pptx
PPTX
22PCOAM16 ML Unit 3 Session 21 Classification and Regression Trees .pptx
PPTX
22PCOAM16 ML Unit 3 Session 20 ID3 Algorithm and working.pptx
PPTX
22PCOAM16 ML Unit 3 Session 19 Constructing Decision Trees.pptx
PDF
22PCOAM16 ML UNIT 2 NOTES & QB QUESTION WITH ANSWERS
PDF
22PCOAM16 _ML_ Unit 2 Full unit notes.pdf
PDF
22PCOAM16_ML_Unit 1 notes & Question Bank with answers.pdf
PDF
22PCOAM16_MACHINE_LEARNING_UNIT_I_NOTES.pdf
PPTX
22PCOAM16 Unit 2 Session 17 Support vector Machine.pptx
22PCOAM21 Data Quality Session 3 Data Quality.pptx
22PCOAM21 Session 1 Data Management.pptx
22PCOAM21 Session 2 Understanding Data Source.pptx
III Year II Sem 22PCOAM21 Data Analytics Syllabus.pdf
22PCOAM16 _ML_Unit 3 Notes & Question bank
22PCOAM16 Machine Learning Unit V Full notes & QB
22PCOAM16_MACHINE_LEARNING_UNIT_IV_NOTES_with_QB
22PCOAM16 ML Unit 3 Full notes PDF & QB.pdf
22PCOAM16 Unit 3 Session 23 Different ways to Combine Classifiers.pptx
22PCOAM16 Unit 3 Session 22 Ensemble Learning .pptx
22PCOAM16 Unit 3 Session 24 K means Algorithms.pptx
22PCOAM16 ML Unit 3 Session 18 Learning with tree.pptx
22PCOAM16 ML Unit 3 Session 21 Classification and Regression Trees .pptx
22PCOAM16 ML Unit 3 Session 20 ID3 Algorithm and working.pptx
22PCOAM16 ML Unit 3 Session 19 Constructing Decision Trees.pptx
22PCOAM16 ML UNIT 2 NOTES & QB QUESTION WITH ANSWERS
22PCOAM16 _ML_ Unit 2 Full unit notes.pdf
22PCOAM16_ML_Unit 1 notes & Question Bank with answers.pdf
22PCOAM16_MACHINE_LEARNING_UNIT_I_NOTES.pdf
22PCOAM16 Unit 2 Session 17 Support vector Machine.pptx

Recently uploaded (20)

PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
Construction Project Organization Group 2.pptx
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
web development for engineering and engineering
PPTX
Welding lecture in detail for understanding
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Geodesy 1.pptx...............................................
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
Digital Logic Computer Design lecture notes
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Lecture Notes Electrical Wiring System Components
PPT
Mechanical Engineering MATERIALS Selection
Model Code of Practice - Construction Work - 21102022 .pdf
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Construction Project Organization Group 2.pptx
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Operating System & Kernel Study Guide-1 - converted.pdf
Arduino robotics embedded978-1-4302-3184-4.pdf
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
web development for engineering and engineering
Welding lecture in detail for understanding
CYBER-CRIMES AND SECURITY A guide to understanding
Geodesy 1.pptx...............................................
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Digital Logic Computer Design lecture notes
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Lesson 3_Tessellation.pptx finite Mathematics
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Lecture Notes Electrical Wiring System Components
Mechanical Engineering MATERIALS Selection

AI3391 Artificial intelligence Session 22 Cryptarithmetic problem.pptx

  • 1. AI3391 ARTIFICAL INTELLIGENCE (II YEAR (III Sem)) Department of Artificial Intelligence and Data Science Session 22 by Asst.Prof.M.Gokilavani NIET 1/24/2024 Department of AI & DS 1
  • 2. TEXTBOOK: • Artificial Intelligence A modern Approach, Third Edition, Stuart Russell and Peter Norvig, Pearson Education. REFERENCES: • Artificial Intelligence, 3rd Edn, E. Rich and K.Knight (TMH). • Artificial Intelligence, 3rd Edn, Patrick Henny Winston, Pearson Education. • Artificial Intelligence, Shivani Goel, Pearson Education. • Artificial Intelligence and Expert Systems- Patterson, Pearson Education. 1/24/2024 Department of AI & DS 2
  • 3. Topics covered in session 22 1/24/2024 Department of AI & DS 3 • Game theory • optimal decision in games • alpha beta Search • Monte Carlo tree search • stochastic games • partially observed games • Constraint satisfaction problem • Constraint propagation • Backtracking search for CSP • Local search for CSP • structure of CSP.
  • 4. Cryptarithmetic Problem • Cryptarithmetic Problem is a type of constraint satisfaction problem where the game is about digits and its unique replacement either with alphabets or other symbols. • In cryptarithmetic problem, the digits (0-9) get substituted by some possible alphabets or symbols. • The task in cryptarithmetic problem is to substitute each digit with an alphabet to get the result arithmetically correct. • We can perform all the arithmetic operations on a given cryptarithmetic problem. 1/24/2024 4 Department of AI & DS
  • 5. Constraints for cryptarithmetic problem • Unique digit to be replaced with a unique alphabet (no repeated digits). • The result should satisfy the predefined arithmetic rules, i.e., 2+2 =4 • Digits should be from 0-9 only. • In addition operation only one carry forward. • The problem can be solved from both sides, i.e., lefthand side (L.H.S), or right-hand side (R.H.S) 1/24/2024 5 Department of AI & DS
  • 6. Example 1 • Given a cryptarithmetic problem, i.e., S E N D + M O R E = M O N E Y. 1/24/2024 6 Department of AI & DS
  • 7. Step 1 1/24/2024 7 Department of AI & DS • Starting from the left hand side (L.H.S) , the terms are S and M. Assign a digit which could give a satisfactory result. Let’s assign S->9 and M->1. Hence, we get a satisfactory result by adding up the terms and got an assignment for O as O->0 as well.
  • 8. Step 2 • Now, move ahead to the next terms E and O to get N as its output. 1/24/2024 8 Department of AI & DS Adding E and O, which means 5+0=0, which is not possible because we cannot assign the same digit to two letters.
  • 9. • Add carry 1 to the value E to change the value of alphabet. 1/24/2024 9 Department of AI & DS
  • 10. Step 3 1/24/2024 10 Department of AI & DS • Further, adding the next two terms N and R we get, But, we have already assigned E->5. Not possible with 5 to E Again, after solving the whole problem, we will get a carryover on this term, so our answer will be satisfied.
  • 11. Step 4 • Again, on adding the last two terms, i.e., the rightmost terms D and E, we get Y as its result. 1/24/2024 11 Department of AI & DS
  • 12. • Keeping all the constraints in mind, the final resultant is as follows: 1/24/2024 12 Department of AI & DS Alphabets Values S 9 E 5 N 6 D 7 M 1 O 0 R 8 Y 2
  • 15. Topics to be covered in next session 23 • Backtracking CSP’s Thank you!!! 1/24/2024 Department of AI & DS 15