SlideShare a Scribd company logo
1 of 14
ARTIFICAL INTELLIGENCE
(R18 III(II Sem))
Department of computer science and
engineering (AI/ML)
Session 16
by
Asst.Prof.M.Gokilavani
VITS
4/25/2023 Department of CSE (AI/ML) 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.
4/25/2023 Department of CSE (AI/ML) 2
Topics covered in session 16
4/25/2023 Department of CSE (AI/ML) 3
• Adversarial Search: Games, Optimal Decisions in Games, Alpha–Beta
Pruning, Imperfect Real-Time Decisions.
• Constraint Satisfaction Problems: Defining Constraint Satisfaction
Problems, Constraint Propagation, Backtracking Search for CSPs,
Local Search for CSPs, The Structure of Problems.
• Propositional Logic: Knowledge-Based Agents, The Wumpus World,
Logic, Propositional Logic, Propositional Theorem Proving: Inference
and proofs, Proof by resolution, Horn clauses and definite clauses,
Forward and backward chaining, Effective Propositional Model
Checking, Agents Based on Propositional Logic.
Min-Max Algorithm
4/25/2023 Department of CSE (AI/ML) 4
Alpha- Beta Pruning Algorithm
4/25/2023 Department of CSE (AI/ML) 5
Imperfect Real-Time Decision
• Moves must be made in a reasonable amount of time.
• usually it is not feasible to consider the whole game tree (even with
alpha-beta)
• Programs should cut the search off at some point earlier and apply
a heuristic evaluation function to states in the search, effectively
turning nonterminal nodes into terminal leaves.
Alter min-max or alpha-beta in 2 ways:
1. Replace the utility function by a heuristic evaluation
function EVAL, which estimates the position’s utility.
2. Replace the terminal test by a cutoff test that decides when to
apply EVAL.
4/25/2023 Department of CSE (AI/ML) 6
4/25/2023 Department of CSE (AI/ML) 7
Replace using heuristic evaluation function EVAL
Evaluation function
• An evaluation function returns an estimate of the expected utility of
the game from a given position.
How do we design good evaluation functions?
1) The evaluation function should order the terminal states in the same
way as the true utility function.
2) The computation must not take too long.
3) For nonterminal states, the evaluation function should be strongly
correlated with the actual chances of winning.
4/25/2023 Department of CSE (AI/ML) 8
Two ways to design a evaluation function
a. Expected value: The evaluation function cannot know which states are which,
but it can return a single value that reflects the proportion of states with each
outcome.
Where,
• EV – the expected value
• P(X) – the probability of the event
• n – the number of the repetitions of the event
Example: How many heads would you expect if you flipped a coin twice?
Solution : X = number of heads = {0,1,2}
p(0)=1/4,
p(1)=1/2,
p(2)=1/4
Weighted average = 0*1/4 + 1*1/2 + 2*1/4 = 1
4/25/2023 Department of CSE (AI/ML) 9
b. weighted linear function : We can compute separate numerical
contributions from each feature and then combine them to find
the total value.
• EV is the probability-weighted average of all possible events.
• Therefore, the general formula to find the EV for multiple events
is:
Where,
• EVAL(s) – the expected value
• wi is a weight and each
• fi is a feature of the position
4/25/2023 Department of CSE (AI/ML) 10
• Example: Three coin tosses, the expected value for the number of
heads is 3 x (1/2) = 1.5.
4/25/2023 Department of CSE (AI/ML) 11
Cutting off search
To modify ALPHA-BETA-SEARCH:
1) Replace the two lines that mention TERMINAL-TEST with
2) Arrange for some bookkeeping so that the current depth is
incremented on each recursive call.
• The most straightforward approach: set a fixed depth limit so
that CUTOFF-TEST(state, depth) returns true for all depth
greater than some fixed depth d.
• A more robust approach: apply iterative deepening.
4/25/2023 Department of CSE (AI/ML) 12
If CUTOFF-TEST(state, depth) then return EVAL(state)
• A forward-pruning version of alpha-beta search that uses statistic
gained from prior experience to lessen the chance that the best move
will be pruned.
Search versus lookup
• Many game programs pre-compute tables of best moves in the
opening and endgame so that they can look up a move rather than
search. Eg: BFS, DFS
• For the opening (and early moves), the program use table lookup,
relying on the expertise of human and statistic from a database of
past games. Eg: Two player games, multiple player game .
4/25/2023 Department of CSE (AI/ML) 13
Topics to be covered in next session 17
• Constraint Satisfaction Problems
4/25/2023 Department of CSE (AI/ML) 14
Thank you!!!

More Related Content

Similar to AI_Session 16 imperfect Real time decisons .pptx

vorl1.ppt
vorl1.pptvorl1.ppt
vorl1.ppt
butest
 
Amazon EC2 is a web service provided by Amazon Web Services (AWS) that offers...
Amazon EC2 is a web service provided by Amazon Web Services (AWS) that offers...Amazon EC2 is a web service provided by Amazon Web Services (AWS) that offers...
Amazon EC2 is a web service provided by Amazon Web Services (AWS) that offers...
NoorUlHaq47
 
Computational Biology, Part 4 Protein Coding Regions
Computational Biology, Part 4 Protein Coding RegionsComputational Biology, Part 4 Protein Coding Regions
Computational Biology, Part 4 Protein Coding Regions
butest
 

Similar to AI_Session 16 imperfect Real time decisons .pptx (20)

AI_Session 5 DFS.pptx
AI_Session 5 DFS.pptxAI_Session 5 DFS.pptx
AI_Session 5 DFS.pptx
 
AI_Session 3 Problem Solving Agent and searching for solutions.pptx
AI_Session 3 Problem Solving Agent and searching for solutions.pptxAI_Session 3 Problem Solving Agent and searching for solutions.pptx
AI_Session 3 Problem Solving Agent and searching for solutions.pptx
 
AI_Session 11: searching with Non-Deterministic Actions and partial observati...
AI_Session 11: searching with Non-Deterministic Actions and partial observati...AI_Session 11: searching with Non-Deterministic Actions and partial observati...
AI_Session 11: searching with Non-Deterministic Actions and partial observati...
 
AI_Session 17 CSP.pptx
AI_Session 17 CSP.pptxAI_Session 17 CSP.pptx
AI_Session 17 CSP.pptx
 
AI3391 ARTIFICAL INTELLIGENCE Session 5 Problem Solving Agent and searching f...
AI3391 ARTIFICAL INTELLIGENCE Session 5 Problem Solving Agent and searching f...AI3391 ARTIFICAL INTELLIGENCE Session 5 Problem Solving Agent and searching f...
AI3391 ARTIFICAL INTELLIGENCE Session 5 Problem Solving Agent and searching f...
 
Mathematics online: some common algorithms
Mathematics online: some common algorithmsMathematics online: some common algorithms
Mathematics online: some common algorithms
 
Towards Accurate Multi-person Pose Estimation in the Wild (My summery)
Towards Accurate Multi-person Pose Estimation in the Wild (My summery)Towards Accurate Multi-person Pose Estimation in the Wild (My summery)
Towards Accurate Multi-person Pose Estimation in the Wild (My summery)
 
AAAI02-150-2
AAAI02-150-2AAAI02-150-2
AAAI02-150-2
 
Perspective in Informatics 3 - Assignment 2 - Answer Sheet
Perspective in Informatics 3 - Assignment 2 - Answer SheetPerspective in Informatics 3 - Assignment 2 - Answer Sheet
Perspective in Informatics 3 - Assignment 2 - Answer Sheet
 
vorl1.ppt
vorl1.pptvorl1.ppt
vorl1.ppt
 
Data Structures problems 2006
Data Structures problems 2006Data Structures problems 2006
Data Structures problems 2006
 
Neural nw k means
Neural nw k meansNeural nw k means
Neural nw k means
 
Amazon EC2 is a web service provided by Amazon Web Services (AWS) that offers...
Amazon EC2 is a web service provided by Amazon Web Services (AWS) that offers...Amazon EC2 is a web service provided by Amazon Web Services (AWS) that offers...
Amazon EC2 is a web service provided by Amazon Web Services (AWS) that offers...
 
K means report
K means reportK means report
K means report
 
Scalable Software Testing and Verification of Non-Functional Properties throu...
Scalable Software Testing and Verification of Non-Functional Properties throu...Scalable Software Testing and Verification of Non-Functional Properties throu...
Scalable Software Testing and Verification of Non-Functional Properties throu...
 
Computational Biology, Part 4 Protein Coding Regions
Computational Biology, Part 4 Protein Coding RegionsComputational Biology, Part 4 Protein Coding Regions
Computational Biology, Part 4 Protein Coding Regions
 
Instance Based Learning in Machine Learning
Instance Based Learning in Machine LearningInstance Based Learning in Machine Learning
Instance Based Learning in Machine Learning
 
AI3391 Session 9 Greedy Best first search algorithm.pptx
AI3391 Session 9 Greedy Best first search algorithm.pptxAI3391 Session 9 Greedy Best first search algorithm.pptx
AI3391 Session 9 Greedy Best first search algorithm.pptx
 
AI_Session 10 Local search in continious space.pptx
AI_Session 10 Local search in continious space.pptxAI_Session 10 Local search in continious space.pptx
AI_Session 10 Local search in continious space.pptx
 
Introduction to data mining and machine learning
Introduction to data mining and machine learningIntroduction to data mining and machine learning
Introduction to data mining and machine learning
 

More from Asst.prof M.Gokilavani

More from Asst.prof M.Gokilavani (20)

CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
IT8073_Information Security_UNIT I _.pdf
IT8073_Information Security_UNIT I _.pdfIT8073_Information Security_UNIT I _.pdf
IT8073_Information Security_UNIT I _.pdf
 
IT8073 _Information Security _UNIT I Full notes
IT8073 _Information Security _UNIT I Full notesIT8073 _Information Security _UNIT I Full notes
IT8073 _Information Security _UNIT I Full notes
 
GE3151 PSPP UNIT IV QUESTION BANK.docx.pdf
GE3151 PSPP UNIT IV QUESTION BANK.docx.pdfGE3151 PSPP UNIT IV QUESTION BANK.docx.pdf
GE3151 PSPP UNIT IV QUESTION BANK.docx.pdf
 
GE3151 PSPP UNIT III QUESTION BANK.docx.pdf
GE3151 PSPP UNIT III QUESTION BANK.docx.pdfGE3151 PSPP UNIT III QUESTION BANK.docx.pdf
GE3151 PSPP UNIT III QUESTION BANK.docx.pdf
 
GE3151 UNIT II Study material .pdf
GE3151 UNIT II Study material .pdfGE3151 UNIT II Study material .pdf
GE3151 UNIT II Study material .pdf
 
GE3151 PSPP All unit question bank.pdf
GE3151 PSPP All unit question bank.pdfGE3151 PSPP All unit question bank.pdf
GE3151 PSPP All unit question bank.pdf
 
GE3151_PSPP_All unit _Notes
GE3151_PSPP_All unit _NotesGE3151_PSPP_All unit _Notes
GE3151_PSPP_All unit _Notes
 
GE3151_PSPP_UNIT_5_Notes
GE3151_PSPP_UNIT_5_NotesGE3151_PSPP_UNIT_5_Notes
GE3151_PSPP_UNIT_5_Notes
 
GE3151_PSPP_UNIT_4_Notes
GE3151_PSPP_UNIT_4_NotesGE3151_PSPP_UNIT_4_Notes
GE3151_PSPP_UNIT_4_Notes
 
GE3151_PSPP_UNIT_3_Notes
GE3151_PSPP_UNIT_3_NotesGE3151_PSPP_UNIT_3_Notes
GE3151_PSPP_UNIT_3_Notes
 
GE3151_PSPP_UNIT_2_Notes
GE3151_PSPP_UNIT_2_NotesGE3151_PSPP_UNIT_2_Notes
GE3151_PSPP_UNIT_2_Notes
 
AI3391 Artificial intelligence Unit IV Notes _ merged.pdf
AI3391 Artificial intelligence Unit IV Notes _ merged.pdfAI3391 Artificial intelligence Unit IV Notes _ merged.pdf
AI3391 Artificial intelligence Unit IV Notes _ merged.pdf
 
AI3391 Artificial intelligence Session 29 Forward and backward chaining.pdf
AI3391 Artificial intelligence Session 29 Forward and backward chaining.pdfAI3391 Artificial intelligence Session 29 Forward and backward chaining.pdf
AI3391 Artificial intelligence Session 29 Forward and backward chaining.pdf
 
AI3391 Artificial intelligence Session 28 Resolution.pptx
AI3391 Artificial intelligence Session 28 Resolution.pptxAI3391 Artificial intelligence Session 28 Resolution.pptx
AI3391 Artificial intelligence Session 28 Resolution.pptx
 
AI3391 Artificial intelligence session 27 inference and unification.pptx
AI3391 Artificial intelligence session 27 inference and unification.pptxAI3391 Artificial intelligence session 27 inference and unification.pptx
AI3391 Artificial intelligence session 27 inference and unification.pptx
 
AI3391 Artificial Intelligence Session 26 First order logic.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptxAI3391 Artificial Intelligence Session 26 First order logic.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptx
 

Recently uploaded

DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
pritamlangde
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 

Recently uploaded (20)

Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Ground Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth ReinforcementGround Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth Reinforcement
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdf
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
fitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptfitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .ppt
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 

AI_Session 16 imperfect Real time decisons .pptx

  • 1. ARTIFICAL INTELLIGENCE (R18 III(II Sem)) Department of computer science and engineering (AI/ML) Session 16 by Asst.Prof.M.Gokilavani VITS 4/25/2023 Department of CSE (AI/ML) 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. 4/25/2023 Department of CSE (AI/ML) 2
  • 3. Topics covered in session 16 4/25/2023 Department of CSE (AI/ML) 3 • Adversarial Search: Games, Optimal Decisions in Games, Alpha–Beta Pruning, Imperfect Real-Time Decisions. • Constraint Satisfaction Problems: Defining Constraint Satisfaction Problems, Constraint Propagation, Backtracking Search for CSPs, Local Search for CSPs, The Structure of Problems. • Propositional Logic: Knowledge-Based Agents, The Wumpus World, Logic, Propositional Logic, Propositional Theorem Proving: Inference and proofs, Proof by resolution, Horn clauses and definite clauses, Forward and backward chaining, Effective Propositional Model Checking, Agents Based on Propositional Logic.
  • 5. Alpha- Beta Pruning Algorithm 4/25/2023 Department of CSE (AI/ML) 5
  • 6. Imperfect Real-Time Decision • Moves must be made in a reasonable amount of time. • usually it is not feasible to consider the whole game tree (even with alpha-beta) • Programs should cut the search off at some point earlier and apply a heuristic evaluation function to states in the search, effectively turning nonterminal nodes into terminal leaves. Alter min-max or alpha-beta in 2 ways: 1. Replace the utility function by a heuristic evaluation function EVAL, which estimates the position’s utility. 2. Replace the terminal test by a cutoff test that decides when to apply EVAL. 4/25/2023 Department of CSE (AI/ML) 6
  • 7. 4/25/2023 Department of CSE (AI/ML) 7 Replace using heuristic evaluation function EVAL
  • 8. Evaluation function • An evaluation function returns an estimate of the expected utility of the game from a given position. How do we design good evaluation functions? 1) The evaluation function should order the terminal states in the same way as the true utility function. 2) The computation must not take too long. 3) For nonterminal states, the evaluation function should be strongly correlated with the actual chances of winning. 4/25/2023 Department of CSE (AI/ML) 8
  • 9. Two ways to design a evaluation function a. Expected value: The evaluation function cannot know which states are which, but it can return a single value that reflects the proportion of states with each outcome. Where, • EV – the expected value • P(X) – the probability of the event • n – the number of the repetitions of the event Example: How many heads would you expect if you flipped a coin twice? Solution : X = number of heads = {0,1,2} p(0)=1/4, p(1)=1/2, p(2)=1/4 Weighted average = 0*1/4 + 1*1/2 + 2*1/4 = 1 4/25/2023 Department of CSE (AI/ML) 9
  • 10. b. weighted linear function : We can compute separate numerical contributions from each feature and then combine them to find the total value. • EV is the probability-weighted average of all possible events. • Therefore, the general formula to find the EV for multiple events is: Where, • EVAL(s) – the expected value • wi is a weight and each • fi is a feature of the position 4/25/2023 Department of CSE (AI/ML) 10
  • 11. • Example: Three coin tosses, the expected value for the number of heads is 3 x (1/2) = 1.5. 4/25/2023 Department of CSE (AI/ML) 11
  • 12. Cutting off search To modify ALPHA-BETA-SEARCH: 1) Replace the two lines that mention TERMINAL-TEST with 2) Arrange for some bookkeeping so that the current depth is incremented on each recursive call. • The most straightforward approach: set a fixed depth limit so that CUTOFF-TEST(state, depth) returns true for all depth greater than some fixed depth d. • A more robust approach: apply iterative deepening. 4/25/2023 Department of CSE (AI/ML) 12 If CUTOFF-TEST(state, depth) then return EVAL(state)
  • 13. • A forward-pruning version of alpha-beta search that uses statistic gained from prior experience to lessen the chance that the best move will be pruned. Search versus lookup • Many game programs pre-compute tables of best moves in the opening and endgame so that they can look up a move rather than search. Eg: BFS, DFS • For the opening (and early moves), the program use table lookup, relying on the expertise of human and statistic from a database of past games. Eg: Two player games, multiple player game . 4/25/2023 Department of CSE (AI/ML) 13
  • 14. Topics to be covered in next session 17 • Constraint Satisfaction Problems 4/25/2023 Department of CSE (AI/ML) 14 Thank you!!!