Adversarial Search
By: Aman Patel
Nileshwari Desai
Topics Covered
•
•
•
•
•
•

What is Adversarial Search ?
Optimal decisions in Games
Multiplayer Games
Min-Max Algorithm
α-...
What is Adversarial Search ?
• In computer science, a search algorithm is an algorithm for finding an item
with specified ...
MIN-MAX Algorithm
• MIN-MAX algorithm uses the optimal strategy to get to the desired goal state.
• Assuming that the oppo...
Example
Why Minimax algorithm is bad ?
• The problem with minimax is that it is inefficient
•
•
•
•

Search to depth d in the game...
Is there a good Min-Max ?
• Yes ! We just need to prune branches that are not required in searching

• Idea:
• Start propa...
- values
• Computing alpha-beta values
•

value is a lower-bound on the actual value of a Max node, maximum across
seen ch...
The - pruning
• Two key points:
•

value can never decrease

•

value can never increase

• Search can be discontinued at ...
Example
State-of-the-art Game Programs
• Designing game-playing programs has a dual purpose: both to better
understand how to choo...
Deterministic games in practice
• Checkers:
Chinook ended 40-year-reign of human world champion Marion Tinsley in 1994.
Us...
Deterministic games in practice
• Othello:
Human champions refuse to compete against computers, who are too good.

• Go:
H...
Adversarial search with Game Playing
Adversarial search with Game Playing
Adversarial search with Game Playing
Adversarial search with Game Playing
Adversarial search with Game Playing
Adversarial search with Game Playing
Adversarial search with Game Playing
Adversarial search with Game Playing
Adversarial search with Game Playing
Adversarial search with Game Playing
Adversarial search with Game Playing
Adversarial search with Game Playing
Adversarial search with Game Playing
Adversarial search with Game Playing
Adversarial search with Game Playing
Adversarial search with Game Playing
Adversarial search with Game Playing
Adversarial search with Game Playing
Adversarial search with Game Playing
Adversarial search with Game Playing
Upcoming SlideShare
Loading in …5
×

Adversarial search with Game Playing

1,453
-1

Published on

Artificial Intelligence

0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,453
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
108
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Adversarial search with Game Playing

  1. 1. Adversarial Search By: Aman Patel Nileshwari Desai
  2. 2. Topics Covered • • • • • • What is Adversarial Search ? Optimal decisions in Games Multiplayer Games Min-Max Algorithm α-β Pruning State of the Art Game Programs
  3. 3. What is Adversarial Search ? • In computer science, a search algorithm is an algorithm for finding an item with specified properties among a collection of items. The items may be stored individually as records in a database; or may be elements of a search space defined by a mathematical formula or procedure. • Adversarial search in Game playing : “ In which we examine the problems that arise when we try to plan ahead in a world where other agents are planning against us”
  4. 4. MIN-MAX Algorithm • MIN-MAX algorithm uses the optimal strategy to get to the desired goal state. • Assuming that the opponent is rational and always optimizes its behaviour (opposite to us) we consider the best opponent’s response. • MAX's strategy is affected by MIN's play. So MAX needs a strategy which is the best possible payoff, assuming optimal play on MIN's part. • Then the MIN-MAX algorithm determines the best move. • It is the perfect play for deterministic games.
  5. 5. Example
  6. 6. Why Minimax algorithm is bad ? • The problem with minimax is that it is inefficient • • • • Search to depth d in the game tree Suppose each node has at most b children Calculate the exact score at every node In worst case we search bd nodes – exponential • However, many nodes are useless • There are some nodes where we don’t need to know exact score because we will never take path in the future
  7. 7. Is there a good Min-Max ? • Yes ! We just need to prune branches that are not required in searching • Idea: • Start propagating scores as soon as leaf nodes are generated • Do not explore nodes which cannot affect the choice of move • The method for pruning the search tree generated by minimax is called Alpha-Beta
  8. 8. - values • Computing alpha-beta values • value is a lower-bound on the actual value of a Max node, maximum across seen children • value is an upper-bound on actual value of a Min node, minimum across seen children • Propagation • Update , values by propagating upwards values of terminal nodes • Update , values down to allow pruning
  9. 9. The - pruning • Two key points: • value can never decrease • value can never increase • Search can be discontinued at a node if: o It is a Max node and • ≥ , it is beta cutoff o It is a Min node and • ≤ , it is alpha cutoff
  10. 10. Example
  11. 11. State-of-the-art Game Programs • Designing game-playing programs has a dual purpose: both to better understand how to choose actions in complex domains with uncertain outcomes and to develop high-performance systems for the particular game studied. • In this section, we examine progress toward the latter goal.
  12. 12. Deterministic games in practice • Checkers: Chinook ended 40-year-reign of human world champion Marion Tinsley in 1994. Used a precomputed endgame database defining perfect play for all positions involving 8 or fewer pieces on the board, a total of 444 billion positions. • Chess: Deep Blue defeated human world champion Garry Kasparov in a sixgame match in 1997. Deep Blue searches 200 million positions per second, uses very sophisticated evaluation, and undisclosed methods for extending some lines of search up to 40 ply.
  13. 13. Deterministic games in practice • Othello: Human champions refuse to compete against computers, who are too good. • Go: Human champions refuse to compete against computers, who are too bad. In go, b > 300, so most programs use pattern knowledge bases to suggest plausible moves.
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×