Sunday, May 29, 2011

Uninformed Search Strategies

This article helps the starter of AI course to learn the objective and implementation of Uninformed Search Strategies (Blind Search) which use only information available in the problem definition. Uninformed Search includes the Following Algorithms:

v      Breadth First Search (BFS)
v      Uniform Cost Search (UCS)
v      Depth First Search (DFS)
v      Depth Limited Search (DLS)
v      Iterative Deepening Search (IDS)
v      Bidirectional Search (BS)

This article covers several Search strategies that come under the heading of Uninformed Search. The term means that the strategies have no additional information about States beyond that provided in the problem definition. All they can do is generate successors and distinguish a goal state from a non-goal state. All Search Strategies are distinguished by the order in which nodes are expanded.

To go ahead in these series I will use some AI Terminologies such as the Following:

A problem can be defined by four components:
v      Initial State: that the problem starts in.
v      Goal State: that the problem ends in.
v      Finding sequences of actions that lead to Goal State.
v      A path Cost: Cost to solve problem.

Together the initial state, goal state, actions and path cost define the state space of the problem (the set of all states reachable from the initial state by any sequence of actions). The path in the state space is a sequence of states connected by a sequence of actions. A solution to the problem is an action sequence that leads from the initial state to the goal state.

The process of looking a sequence of actions that reaches the goal is called search. A search algorithm takes a problem as input and returns a solution in the form of an action sequences. The search starts from the initial state which represents the root node in the problem search space. The branches are actions and the nodes corresponding to the states in the problem state space.


Example:

A small part of the 8-puzzel problem state space


Note:
 Depth=number of steps from initial state to this state.
A collection of nodes that are generated but not yet expanded is called the fringe; each element of fringe is a leaf node (i.e. with no successors in tree)                                            
                                           
Let's start to explain the first two algorithms of blind search:
v      Breadth First Search (BFS): is a simple strategy in which the root node is expanded first, then all the successors of the root node are expanded next, then their successors, and so on. Fringe is a FIFO queue.
v      Uniform Cost Search (UCS): modifies BFS by always expanding the lowest cost node on the fringe using path cost function g(n) (i.e. the cost of the path from the initial state to the node n). Nodes maintained on queue in order of increasing path cost.
v      Depth First Search (DFS): always expands the deepest node in the current fringe of the search tree. Fringe is a LIFO queue (Stack).
v      Depth Limited Search (DLS): the embarrassing failure of DFS in infinite state spaces can be alleviated by supplying DFS with a predetermined depth limit l .that is nodes at depth l are treated as if they have no successors.
v      Iterative Deepening Depth First Search (IDS): is a general strategy often used in combination with depth first tree search that finds the best depth limit. It does this by gradually increasing limit first 0, then 1, then 2, and so on until goal is found.
v      Bidirectional Search (BS): the idea behind bidirectional search is to simultaneously search both forward from the initial state and backward from the goal state, and stop when the two searches meet in the middle. Here there are two fringes, one that maintains nodes forward and other that maintains nodes backward. Each fringe is implemented as LIFO or FIFO depends on the search strategy used in the search (i.e. Forward=BFS ,Backward=DFS)  

No comments:

Post a Comment