Informed Search Problems Flashcards
What is Uniform cost graph search?
If the action costs between varios states vary we can use this alorithm to find the minimum cost path to the goal
How is uniform cost implamented?
> By arranging the fringe in order of cost from cheapest to the most expensive.
Then the cheapest node is tested first
In uniform cost search what happens if there are 2 of the same states in the fringe?
> If we find there are 2 nodes that represent the same state, the one with the lower cost replaces the more expensive one
In uniform cost search what happens if all the costs are the same?
> If the cost of all actions are the same then it is simply breadth first search
What is the general procedure for uniform cost search with loop checking?
[FUNCTION UC_GRAPH SEARCH] fringe[] += initial_state explored[] = 0 [LOOP] > IF fringe IS empy RETURN failure > node_test = fringe[LOWEST COST] > IF node_test == goal_state RETURN node_test > explored[] += node_test > add_fringe = Unexplored(node_test.children) > fringe[] += add_fringe > fringe[] = orderbycheapest(fringe)
What is heuristic search?
> These are search algorithms that use information that is beyond the definition of the problem
Generally a heuristic search can tell how close it is to the goal state
What is the cost function?
> g(n)
> This is the cost of node n from the start
How is the cost function used in uniform search?
> In uniform cost, the node with the lowest g(n) is removed and tested first from the fringe
What is the heuristic cost function?
> h(n)
> This is an estimate of the cost to go from the node n to the goal
What is the greedy best-first algorithm?
The fringe queue is ordered based on the node with the lowest h(n)
What is the A* alorithm?
The fringe queue is ordered based on the node with the lowest h(n) + g(n)
What is the issue with using greedy best-first alorithm with this map when the goal is D?
[Picture 3]
Greedy best would say that the most optimal route would be A⇒B⇒D when in fact we see that the cost of B⇒D is large so the better route would be A⇒C⇒D.
A* would fix this issue
What are the assumed conditions for A*?
> Each state in the search space has finitely many successors
All actions have a cost > 0
Admissibility: The heuristic function never overestimates the cost to a goal node
- Underestimating is fine
- If h(n) = 0 then it simply becomes uniform cost
A* will terminate with a minimal cost path to a goal (as long as everything above is correct)
«»
sdfsdf