Unit - II (Part - I) - 250123 - 233656
Unit - II (Part - I) - 250123 - 233656
searches.
The informed search algorithm is more useful for large search space.
Informed search algorithm uses the idea of heuristic, so it is also
called Heuristic search.
The heuristic method, however, might not always give the best
solution, but it guaranteed to find a good solution in reasonable time.
Heuristic function estimates how close a state is to the goal. It is
represented by h(n), and it calculates the cost of an optimal path
between the pair of states. The value of the heuristic function is
always positive.
o Step 3: Remove the node n, from the OPEN list which has the
lowest value of h(n), and places it in the CLOSED list.
o Step 4: Expand the node n, and generate the successors of node
n.
Advantages:
o Best first search can switch between BFS and DFS by gaining
the advantages of both the algorithms.
o This algorithm is more efficient than BFS and DFS algorithms.
Disadvantages:
Example:
Iteration2: Open[E,F,A],Closed[S,B]
: Open [E, A], Closed [S, B, F]
Iteration3: Open[I,G,E,A],Closed[S,B,F]
: Open [I, E, A], Closed [S, B, F, G]
Time Complexity: The worst case time complexity of Greedy best first
search is O(bm).
Hence we can combine both costs as following, and this sum is called
as a fitness number.
Algorithm of A* search:
Step 2: Check if the OPEN list is empty or not, if the list is empty
then return failure and stops.
Step 3: Select the node from the OPEN list which has the smallest
value of evaluation function (g+h), if node n is goal node then return
success and stop, otherwise
Step 4: Expand node n and generate all of its successors, and put n
into the closed list. For each successor n', check whether n' is
already in the OPEN or CLOSED list, if not then compute evaluation
function for n' and place into Open list.
Advantages:
o A* search algorithm is the best algorithm than other search
algorithms.
o A* search algorithm is optimal and complete.
o This algorithm can solve very complex problems.
Disadvantages:
o It does not always produce the shortest path as it mostly based
on heuristics and approximation.
o A* search algorithm has some complexity issues.
o The main drawback of A* is memory requirement as it keeps all
generated nodes in the memory, so it is not practical for various
large-scale problems.
Example:
Solution :
Initialization: {(S, 5)}
Points to remember:
o A* algorithm returns the path which occurred first, and it does
not search for all remaining paths.
o The efficiency of A* algorithm depends on the quality of
heuristic.
o A* algorithm expands all nodes which satisfy the condition
f(n)<="" li="">
Stochastic hill climbing does not examine for all its neighbor before
moving. Rather, this search algorithm selects one neighbor node at
random and decides whether to choose it as a current state or
examine another state.
Solution: The solution for the plateau is to take big steps or very little
steps while searching, to solve the problem. Randomly select a state
which is far away from the current state so it is possible that the
algorithm could find non-plateau region.
a. Simple agent
b. Reflex agent
c. Rational agent
d. Goal based agent
a) Search space
b) Start state
c) Search tree
d) Goal test
a) Optimal solution
b) Path cost
c) Transition model
d) None of the above
a) Uninformed search
b) Informed search
c) Blind search
d) Both A and C
a) Contingency problem
b) Conformant problem
c) Sensorless problems
d) All the above
a) h(n)
b) g(n)
c) h(n) * g(n)
d) h(n) + g(n)
a) Location
b) Elevation
c) Both
d) None of the Above
a) Informed search
b) Uninformed search
c) Both
d) None of the above
a) State components
b) Value components
c) Both
d) None of the above