Week 2 Search in Games Flashcards
(31 cards)
what is the search space size
still dont get this work it this out
what is a tree search ?
is a category of search
methods that uses a tree structure to
navigate through possible solutions. In Tree
Search, the root of the tree represents the
state where the search starts. Each edge
from this state is an decision (or, in a
game, an action an agent takes) that leads
to another state in the search space.
what is uninformed search or blind search
the algorithm performs the search without any information about the goal, e.g brute force algorithms.
what is BFS and what does iit do
Breadth-first search (BFS) it completes one level at a time
- Advantage: Very simple to implement.
- Disadvantage: Heavy memory requirements
what is DFS and what does iti do
depth-frist-seach , runs down each branch of the tree till terminal state (wiitch can be gaol or not )
Advantage: Not heavy memory requirements.
• Disadvantage: Non complete, can enter infinite loops
what is best first search
it is a search function it use’s knowledge about the goal to conduct search, thiis is implemented in the form of an heuristic
ex of best first search
A* is used for pathfinding(good youtube video on this ) is based off something else Dijkstra(polynomial runtime).
what is A*?
it is a best-first search aglo for find the shortest distances from A to B, but iit cant work with the geometry that makes up the game level so that we have to construct a graph that we search
how do we talk about the graph in A*
we talk about the pathfinding in terms of nodes,
talk about nodes in pathfinding ?
nodes repersent pints in 2d or 3d space
- nodes have neighbours (adjacent nodes)
- neighbouring nodes may have different (positvie) diistances/costs
- • Nodes (i.e., their locations) can be constructed manually or automatically
Dijkstra ?
Diijkstra’s algorithm is a classical pathfinding algo (efficient with polynomial runtime ) it finds the shortest discations between two poiint it is a variation of breadth first search
iits is a priiority queue
how is A* different from Dijkstra ?
a* USES A HEURIISTIC, to estitmate the utility of a node with repect to the target this
what does the heuristic have to be about to do
admissible:An admissible heuristic never
over-estimates the distance from A to B
what are the different types of heiristic?
if h = 0 (no heuristic ) then A* works just like Dijsktra
manhattan distances
euclidean distances
chebyshev distances
• Rectangular grid, 4-way connectivity: which are admissible?
if you look at the manhattan witch is linear moves, that will always be the correct disctances the euclidean distances will understerment the distances,
(i think both of them are admissible )
- Rectangular grid, 4-way connectivity: which are admissible?
- Rectangular grid, 8-way connectivity: which are admissible?
if you look at the manhattan witch is linear moves, that will always be the correct disctances the euclidean distances will understerment the distances,
(i think both of them are admissible )
- Rectangular grid, 4-way: Euclidean, Manhattan or Chebyshev.
- Rectangular grid, 8-way: Euclidean or Chebyshev (Diagonal).
- In some cases we can also use a pre-computed exact heuristic.
Some Facts about A*
• If h(n) is 0, only g(n) matters, and A* equals Dijkstra’s algorithm.
• If h(n) is never more than the actual distance, then A* is guaranteed to
find a shortest path. The lower h(n), the more node A* expands.
• If h(n) is exactly equal to the actual distances, then A* will only follow the
best path and never expand anything else.
• If h(n) is sometimes greater than the cost of moving from n to the goal,
then A* is not guaranteed to find a shortest path.
• If h(n) is very high relative to g(n), then only h(n) plays a role, and A*
turns into Best-First-Search.
what else can A* be used for
A* it can be used to search in the game tree, this is A* can be used for planning,
What is MCTS
monte Carlo Tree Search
what is a MCTS in trems of what does it do
is a highly selective best first search, MCTS builds an asymmetric tree search exploring the most promising
part of the search space.
, if the game tree is large, how does it manage to search efficiently?
it sampling randomly actions from states iit requires a forward model (FM)
What is a Forward or Predictive model
is an internal simulator of the game that the agent has access to , the agent uses this to simulate the effect of applying certain actions on a given state.
what is the notetastion for this
current state St and an Action At applied too St, the forward model will provide the next state St+1
what are the 4 steps in MCTS ?
- Selection
- Expansion
- Play-out
- Back propagation
SEPB