Unit 2 Question Bank Ese Updated
Unit 2 Question Bank Ese Updated
Page 2 of 12
Simplified memory-bounded A*
14. Will Breadth-First Search always find the minimal solution. Why?
Yes. If there is more than one solution then BFS can find the minimal one that
requires less number of steps
15. State the advantage of breadth first search
BFS will provide a solution if any solution exists.
If there are more than one solutions for a given problem, then BFS will provide
the minimal solution which requires the least number of steps.
Page 3 of 12
Consistent heuristics:
A heuristic is consistent if the cost from the current node to a successor node plus the
estimated cost from the successor node to the goal is less than or equal to estimated cost
from the current node to the goal.
20. Why does one go for heuristics search?/ What is the power of heuristic search?
Heuristic search uses problem specific knowledge while searching in state
space.
This helps to improve average search performance.
They use evaluation functions which denote relative desirability (goodness) of a
expanding node set. This makes the search more efficient and faster.
One should go for heuristic search because it has power to solve large, hard
problems in affordable times
21. List the advantages of heuristic function
Heuristics function ranks alternative paths in various search algorithms, at each
branching step, based on the available information, so that a better path is
chosen.
The main advantage of heuristic function is that it guides for which state to
explore now, while searching.
It makes use of problem specific knowledge like constraints to check the
goodness of a state to be explained. This drastically reduces the required
searching time.
22. State the advantages of depth first search
DFS requires very less memory as it only needs to store a stack of the nodes on
the path from root node to the current node.
It takes less time to reach to the goal node than BFS algorithm (if it traverses in
the right path).
23. State the drawbacks of depth first search
There is the possibility that many states keep re-occurring, and there is no
guarantee of finding the solution.
DFS algorithm goes for deep down searching and sometime it may go to the
infinite loop.
Page 4 of 12
As the name suggests bi-directional that is two directional searches are made in
this searching technique. One is the forward search which starts from initial state and
the other is the backward search which starts from goal state. The two searches stop
when both the searches meet in the middle.
27. State the two types of memory bounded heuristic algorithms
Recursive Best First Search(RBFS)
Memory bounded A*(MA*)
28. Define RBFS
It keeps track of the f-value of the best alternative path available from any
ancestor of the current node. RBFS remembers the f-value of the best leaf in the
forgotten sub tree and therefore decide whether its worth re expanding the sub tree
sometimes later.
29. Define A* Search
A* search evaluates nodes by combining g(n), the cost to reach the node and
h(n), the cost to get from the node to the goal.
f(n) = g(n) + h(n)
30. Write the two ways of search to use all available memory
Memory bounded A*(MA*)
Simplified Memory bounded A*(SMA*)
31. Define SMA*
SMA* expands the best leaf until memory is full and it drops the oldest worst
leaf node and expands the newest best leaf node
32. Define Branching factor b*.
Uniform tree of depth d would have to be in order to contain N+1 nodes is
called branching factor.
33. Define local search
It operates using a single current state rather than multiple paths and generally
moves only to neighbors of that state
34. Define Optimization Problems
The aim of this problem is to find the best state according to an objective
function
35. Define Hill Climbing search.
It is a loop that continually moves in a increasing value direction (i.e.) up hill
and terminates when it reaches a “peak” where no neighbor has a higher value
36. List some drawbacks of hill climbing process
Local maxima: A local maxima as opposed to a goal maximum is a peak that is
lower that the highest peak in the state space. Once a local maxima is reached
the algorithm will halt even though the solution may be far from satisfactory.
Plateaux: A plateaux is an area of the state space where the evaluation fn is
essentially flat. The search will conduct a random walk.
37. Define local maxima
A local maximum is a peak that is higher than each of its neighboring states, but
lower than the global maximum.
38. Define ridge and specify how can you overcome in the searching process
Any point on a ridge can look like a peak because movement in all possible
directions is downward. Hence the algorithm stops when it reaches this state. To
Page 5 of 12
overcome Ridge, use two or more rules before testing. It implies moving in several
directions at once
39. Define plateu
On the plateau, all neighbors have the same value. Hence, it is not possible to
select the best direction
40. How can we avoid ridge and plateau in hill climbing?
Ridge and plateau in hill climbing can be avoided using methods like
backtracking, making big jumps. Backtracking and making big jumps help to avoid
plateau
41. State the variants of hill climbing search algorithm
Stochastic hill Climbing
Steepest-Ascent hill-climbing
First Choice Hill Climbing
Random Restart Hill Climbing
Page 6 of 12
solution within a predetermined poorer answers with a
search space. predetermined probability. This
allows it to bypass local
optimum conditions.
Strategy In order to iteratively move towards Simulated annealing explores
the best answer at each stage, Hill the search space and avoids
Climbing employs a greedy local optimum by employing a
method. It only accepts solutions probabilistic method to accept a
that are superior to the ones already worse solution with a given
in place. probability. As the algorithm
advances, the likelihood of
accepting an inferior answer
diminishes.
Local vs. Hill Climbing may not locate the Simulated annealing has a
Global Optima global optimum because it is chance of escaping the local
susceptible to becoming caught in optimum and locating the
local optima. global optimum.
Stopping Hill Climbing comes to an end after When the temperature hits a
Criteria a certain number of iterations or predetermined level or the
when it achieves a local optimum. maximum number of
repetitions, simulated annealing
comes to an end.
Performance Hill climbing is quick and easy, but Simulated annealing is more
it has the potential to become efficient at locating the global
locked in local optima and miss the optimum than Hill Climbing,
overall best solution. particularly for complicated
situations with numerous local
optima. Simulated annealing is
slower than Hill Climbing.
Tuning Hill Climbing has no tuning The beginning temperature,
Parameters parameters. cooling schedule, and
acceptance probability function
are only a few of the tuning
factors for Simulated
Annealing.
Applications Many different applications, Several fields, including
including image processing, logistics, scheduling, and circuit
machine learning, and gaming, use design, use simulated annealing.
hill climbing.
46. Differentiate Greedy best first search and Hill Climbing Algorithm
Properties Greedy Best First Search Hill Climbing Algorithm
Page 7 of 12
heuristics to choose the best route a goal node using heuristics.
to a goal node.
Goal To always choose the path with the to discover the highest point in
lowest heuristic cost in order to the search space, even if it is not
reach the objective node as rapidly the global maximum, in order to
as feasible. optimize a solution.
Type informed search algorithm. Informed search algorithm.
Page 8 of 12
searching.
48. Differentiate Breadth first search, Depth first search, Depth Limited Search
Aspect Depth First Breadth First Search Depth Limit Search (DLS)
Search (DFS) (BFS)
Exploration Depth-first Breadth-first exploration Depth-limited exploration
Strategy exploration
Data Stack Queue Stack
Structure
Completene Not guaranteed Guaranteed Complete if depth limit >=
ss depth of the shallowest goal
Optimal Not guaranteed Guaranteed Not guaranteed especially with
Solution a low depth limit
Memory Less memory More memory required For the shallow depth limit, it
Usage required will be memory-efficient
Time O(b^m) O(b^d) O(b^m)
Complexity (b: branching (d: depth of solution)
factor, m:
maximum
depth)
Space O(bd) O(b^d) O(bd)
Complexity (d: depth of solution)
Number of 𝑁𝐷𝐹𝑆≈𝑏𝑑2ND 𝑁𝐵𝐹𝑆≈𝑏𝑑(𝑏+1)2(𝑏−1)NB 𝑁𝐷𝐿𝑆≈𝑏𝑙𝑖𝑚𝑖𝑡𝑑(𝑏+1)2(𝑏+1)N
nodes FS≈2bd FS≈2(b−1)bd(b+1) DLS≈2(b+1)blimitd(b+1)
inspected
Terminatio Can Continue Continues until goal state Terminate when reaching the
ns infinitely in is found or all nodes have depth limit
graphs with been explored
infinite paths
Suitable For Suitable for Optimal pathfinding, web Optimal pathfinding, web
solutions deep crawling crawling
in search space
Backtrackin Utilizes Doesn‟t backtrack Utilizes backtracking within
g backtracking depth limit
Page 9 of 12
nodes. more computational resources.
Planning for Less suited for high Excels in situations with uncertainty,
Uncertainty uncertainty or frequent quickly adjusting plans in response
environmental changes. to new information.
Search Restart Requires a complete restart of Eliminates the need for a full restart,
Requirement the search after an saving time and computational
environmental change. resources when changes occur.
Scenario Well-suited for static Particularly beneficial in dynamic
Suitability environments with consistent environments where conditions or
node costs. costs may change over time.
Robustness to May struggle in environments Handles changes seamlessly,
Changes subject to frequent alterations. ensuring that plans remain effective
even as the environment evolves.
Real-time Excels in situations with Can be employed in real-time
Applications uncertainty, quickly adjusting applications, particularly beneficial
plans in response to new in scenarios with dynamic, changing
information. elements.
Memory Usage It uses less memory due to May use more memory due to
exploring fewer nodes. adaptability, potentially needing to
remember additional information
about explored paths.
Consistency of Requires a consistent heuristic Does not strictly require a consistent
Heuristic for optimality guarantees. heuristic, allowing for more
flexibility in heuristic choice.
Page 10 of 12
use it in economics, for military options, mathematics, and in other situations. It is an
alternative approach that provides the best outcome for a situation.
PART – B
1. Discuss any 2 uninformed search methods with examples
2. Explain following uninformed search strategies. 1) IDDFS 2) Bidirectional search
3. Describe a state space in which iterative deepening search performs much worse than
depth-first search
4. Prove that the breadth first search is a special case of uniform cost search.
5. What are the five uninformed search strategies? Explain any two in detail with
example.
6. Explain the components of problem definition with an example.
7. Briefly explain the search strategies in uninformed search.
8. What is depth limited search? Give the recursive implementation of depth limited
search.
9. Discuss recursive best first search algorithm
10. Analyze the uniformed search algorithms with respect to different criteria. Explain
heuristics for constraint satisfaction problems.
11. Suppose we want to use the A* algorithm on the graph below to find the shortest path
from node S to node G. Each node is labelled by the name of the node represented in
capital letter and the value of a heuristic function. Each edge is labelled by the cost to
traverse that edge. (ESE – 2023)
Page 11 of 12
Reference Books :
1) Stuart J.Russel Peter Norvig, Artificial Intelligence A Modern Approach, Fourth
Edition, Pearson Education,2020
Page 12 of 12