SlideShare uma empresa Scribd logo
1 de 31
G51I AI Introduction to AI Andrew Parkes Game Playing 2: Alpha-Beta Search  and  General Issues
Game Playing – Summary So Far ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
= terminal position = agent = opponent 1 MAX MIN MAX A Recap of (depth-bounded) minimax: D E F G 4 -5 -5 1 -7 2 -3 -8 4 1 2 -3 1 -3 B C
Game Playing – Beyond Minimax ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Game Playing – Improving Efficiency ,[object Object],[object Object]
Game Playing – Minimax using DFS ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
A 6 5 8 MAX MIN 6 >=8 MAX <=6 = agent = opponent On discovering util( D ) = 6 we know that  util( B ) <= 6 On discovering  util( J ) = 8 we know that  util( E ) >= 8 STOP! What else can you deduce now!? STOP! What else can  you deduce now!? Can stop expansion of E as best play will not go via E Value of K is irrelevant – prune it! STOP! What else can  you deduce now!? B C D E H I J K
Game Playing – Pruning nodes ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Game Playing – Self-Study Suggestion ,[object Object],[object Object],[object Object]
Game Playing – Improving Efficiency ,[object Object],[object Object],[object Object]
Game Playing – Node-ordering ,[object Object],[object Object],[object Object],[object Object],[object Object]
A 6 5 2 MAX MIN 6 >=2 MAX <=6 = agent = opponent On discovering util( D ) = 6 we know that  util( B ) <= 6 On discovering  util( K ) = 2 we know that  util( E ) >= 2 STOP! What else can you deduce now!? STOP! What else can  you deduce now!? Can NOT stop expansion of E as best play might still go via E Value of J is relevant – no pruning STOP! What else can  you deduce now!? 8 B C D E H I K J
Game Playing – Node-ordering ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Game Playing – Improving Efficiency ,[object Object],[object Object],[object Object]
A 6 5 8 MAX MIN 6 >=8 MAX 6 = agent = opponent 2 1 2 <=2 >=6 B C D E F G H I J K L M
Game Playing – Alpha-Beta Implementation ,[object Object],[object Object],[object Object],[object Object]
Game Playing – Alpha-Beta Implementation ,[object Object],[object Object],[object Object],[object Object]
Game Playing – Alpha-Beta Implementation ,[object Object],[object Object],[object Object],[object Object]
A 6 5 8 MAX MIN 6 α   = 8 MAX β  =  6 = agent = opponent 2 1 2 2 6 beta pruning as  α (E) >  β (B) alpha pruning as  β (C) <  α (A) Alpha-beta Pruning B C D E F G H I J K L M
Game Playing – Deficiencies of Minimax ,[object Object],[object Object],[object Object],[object Object],[object Object]
Game Playing – Non-Quiescence ,[object Object],[object Object]
= terminal position = agent = opponent 4 direct, but 1 by minimax MIN MAX A B Utility values of “terminal” positions obtained  by an evaluation function Example of non-quiescence Direct evaluation does not agree with one more expansion and then using of minimax 1 -3 B C
Game Playing – Quiescence Search ,[object Object],[object Object],[object Object]
Game Playing – Quiescence Search ,[object Object],[object Object],[object Object]
Game Playing – Horizon Effect ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Game Playing – Beyond alpha-beta ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Game Playing – Game Classification ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Game Playing – Game Classification ,[object Object],[object Object],[object Object],[object Object]
Game Playing – Game Classification ,[object Object],[object Object],[object Object],[object Object]
Game Playing – Summary ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
G5 1IAI Introduction to AI Andrew Parkes End of Game Playing Garry Kasparov and Deep Blue. © 1997, GM Gabriel Schwartzman's Chess Camera, courtesy IBM.

Mais conteúdo relacionado

Semelhante a Badiya haihn

GamePlaying.ppt
GamePlaying.pptGamePlaying.ppt
GamePlaying.pptVihaanN2
 
It is an artificial document, please. regarding Ai topics
It is an artificial document, please. regarding Ai topicsIt is an artificial document, please. regarding Ai topics
It is an artificial document, please. regarding Ai topicschougulesup79
 
ch_5 Game playing Min max and Alpha Beta pruning.ppt
ch_5 Game playing Min max and Alpha Beta pruning.pptch_5 Game playing Min max and Alpha Beta pruning.ppt
ch_5 Game playing Min max and Alpha Beta pruning.pptSanGeet25
 
Topic - 6 (Game Playing).ppt
Topic - 6 (Game Playing).pptTopic - 6 (Game Playing).ppt
Topic - 6 (Game Playing).pptSabrinaShanta2
 
AI subject - Game Theory and cps ppt pptx
AI subject  - Game Theory and cps ppt pptxAI subject  - Game Theory and cps ppt pptx
AI subject - Game Theory and cps ppt pptxnizmishaik1
 
Adversarial search
Adversarial searchAdversarial search
Adversarial searchpramod naik
 
cs-171-07-Games and Adversarila Search.ppt
cs-171-07-Games and Adversarila Search.pptcs-171-07-Games and Adversarila Search.ppt
cs-171-07-Games and Adversarila Search.pptSamiksha880257
 
Juegos minimax AlfaBeta
Juegos minimax AlfaBetaJuegos minimax AlfaBeta
Juegos minimax AlfaBetanelsonbc20
 
Artificial intelligence games
Artificial intelligence gamesArtificial intelligence games
Artificial intelligence gamesSujithmlamthadam
 

Semelhante a Badiya haihn (20)

cai
caicai
cai
 
GamePlaying.ppt
GamePlaying.pptGamePlaying.ppt
GamePlaying.ppt
 
AI_unit3.pptx
AI_unit3.pptxAI_unit3.pptx
AI_unit3.pptx
 
Game playing.ppt
Game playing.pptGame playing.ppt
Game playing.ppt
 
It is an artificial document, please. regarding Ai topics
It is an artificial document, please. regarding Ai topicsIt is an artificial document, please. regarding Ai topics
It is an artificial document, please. regarding Ai topics
 
Games.4
Games.4Games.4
Games.4
 
ch_5 Game playing Min max and Alpha Beta pruning.ppt
ch_5 Game playing Min max and Alpha Beta pruning.pptch_5 Game playing Min max and Alpha Beta pruning.ppt
ch_5 Game playing Min max and Alpha Beta pruning.ppt
 
Two player games
Two player gamesTwo player games
Two player games
 
Game playing
Game playingGame playing
Game playing
 
Understanding AlphaGo
Understanding AlphaGoUnderstanding AlphaGo
Understanding AlphaGo
 
AI Lesson 08
AI Lesson 08AI Lesson 08
AI Lesson 08
 
Topic - 6 (Game Playing).ppt
Topic - 6 (Game Playing).pptTopic - 6 (Game Playing).ppt
Topic - 6 (Game Playing).ppt
 
AI subject - Game Theory and cps ppt pptx
AI subject  - Game Theory and cps ppt pptxAI subject  - Game Theory and cps ppt pptx
AI subject - Game Theory and cps ppt pptx
 
Game playing
Game playingGame playing
Game playing
 
Adversarial search
Adversarial searchAdversarial search
Adversarial search
 
Adversarial search
Adversarial searchAdversarial search
Adversarial search
 
cs-171-07-Games and Adversarila Search.ppt
cs-171-07-Games and Adversarila Search.pptcs-171-07-Games and Adversarila Search.ppt
cs-171-07-Games and Adversarila Search.ppt
 
AI-08 Game Playing.pptx
AI-08 Game Playing.pptxAI-08 Game Playing.pptx
AI-08 Game Playing.pptx
 
Juegos minimax AlfaBeta
Juegos minimax AlfaBetaJuegos minimax AlfaBeta
Juegos minimax AlfaBeta
 
Artificial intelligence games
Artificial intelligence gamesArtificial intelligence games
Artificial intelligence games
 

Último

Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 

Último (20)

Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 

Badiya haihn

  • 1. G51I AI Introduction to AI Andrew Parkes Game Playing 2: Alpha-Beta Search and General Issues
  • 2.
  • 3. = terminal position = agent = opponent 1 MAX MIN MAX A Recap of (depth-bounded) minimax: D E F G 4 -5 -5 1 -7 2 -3 -8 4 1 2 -3 1 -3 B C
  • 4.
  • 5.
  • 6.
  • 7. A 6 5 8 MAX MIN 6 >=8 MAX <=6 = agent = opponent On discovering util( D ) = 6 we know that util( B ) <= 6 On discovering util( J ) = 8 we know that util( E ) >= 8 STOP! What else can you deduce now!? STOP! What else can you deduce now!? Can stop expansion of E as best play will not go via E Value of K is irrelevant – prune it! STOP! What else can you deduce now!? B C D E H I J K
  • 8.
  • 9.
  • 10.
  • 11.
  • 12. A 6 5 2 MAX MIN 6 >=2 MAX <=6 = agent = opponent On discovering util( D ) = 6 we know that util( B ) <= 6 On discovering util( K ) = 2 we know that util( E ) >= 2 STOP! What else can you deduce now!? STOP! What else can you deduce now!? Can NOT stop expansion of E as best play might still go via E Value of J is relevant – no pruning STOP! What else can you deduce now!? 8 B C D E H I K J
  • 13.
  • 14.
  • 15. A 6 5 8 MAX MIN 6 >=8 MAX 6 = agent = opponent 2 1 2 <=2 >=6 B C D E F G H I J K L M
  • 16.
  • 17.
  • 18.
  • 19. A 6 5 8 MAX MIN 6 α = 8 MAX β = 6 = agent = opponent 2 1 2 2 6 beta pruning as α (E) > β (B) alpha pruning as β (C) < α (A) Alpha-beta Pruning B C D E F G H I J K L M
  • 20.
  • 21.
  • 22. = terminal position = agent = opponent 4 direct, but 1 by minimax MIN MAX A B Utility values of “terminal” positions obtained by an evaluation function Example of non-quiescence Direct evaluation does not agree with one more expansion and then using of minimax 1 -3 B C
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31. G5 1IAI Introduction to AI Andrew Parkes End of Game Playing Garry Kasparov and Deep Blue. © 1997, GM Gabriel Schwartzman's Chess Camera, courtesy IBM.