Download
slide1 n.
Skip this Video
Loading SlideShow in 5 Seconds..
Max PowerPoint Presentation

Max

184 Views Download Presentation
Download Presentation

Max

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Max Min Max Min Starting node and labels Alpha-Beta Prune

  2. Max Min Max Min Perform a DFS

  3. Max Min Max Min Continue the DFS

  4. Max Min Max Min 2 3 Until reach the depth we want, i.e., 3-ply in this case

  5. Max Min 3 Max Min 2 3 Propagate leaf values backward

  6. Max 3 Min 3 Max Min 2 3

  7. 3 Max 3 Min 3 Max Min 2 3

  8. 3 Alpha Node Max 3 Min Beta Node 3 Max Min 2 3

  9. 3 Alpha Max 3 Min Beta 3 Max Min 5 2 3 New DFS path Ended with 5

  10. 3 Alpha Max 3 Min Beta 3 Max 5 Min 5 2 3 Propagate backward

  11. 3 Alpha Max 3 Min Beta 3 Max 5 Min 5 2 3 Because 3 < 5 The branch is pruned. Beta-Prune

  12. 3 Alpha Max 3 Min Beta 3 Max 5 Min 0 5 2 3 New 3-ply DFS Ended with 0

  13. 3 Alpha Max 3 Min Beta 3 Max 5 0 Min 0 5 2 3 Propagate backward

  14. 3 Alpha Max 3 0 Min Beta 3 Max 5 0 Min 0 5 2 3 Propagate backward

  15. 3 Alpha Max 3 0 Min Beta 3 Max 5 0 Min 0 5 2 3 The branch is cut off Because 3 > 0 Alpha Prune