Assignment No 4 Ai
Assignment No 4 Ai
Assignment No 4 Ai
ASSIGNMENT # 04
Question # 01:
1
ARTIFICIAL INTELLIGENCE
It uses knowledge for the searching It doesn’t use knowledge for searching
process. process.
It provides the direction regarding the No suggestion is given regarding the solution
solution. in it.
Greedy Search, A* Search, Graph Search Depth First Search, Breadth First Search
2
ARTIFICIAL INTELLIGENCE
2) What is a heuristic?
Answer:
A heuristic technique, or a heuristic, is any approach to problem solving or self-discovery that
employs a practical method that is not guaranteed to be optimal, perfect, or rational, but is
nevertheless sufficient for reaching an immediate, short-term goal.
Heuristics can be mental shortcuts that ease the cognitive load of making a
decision. Examples that employ heuristics include using trial and error, a rule of thumb or an
educated guess.
3) When is a heuristic admissible?
Answer:
In computer science, specifically in algorithms related to pathfinding, a heuristic function is said
to be admissible if it never overestimates the cost of reaching the goal, i.e. the cost it estimates to
reach the goal is not higher than the lowest possible cost from the current point in the path.
4) A* can be seen as a combination of what two search strategies?
Answer:
It can be viewed as a combination of lowest-cost-first and best-first. A* is based on using
heuristic methods to achieve optimality and completeness, and is a variant of the best-first
algorithm. When a search algorithm has the property of optimality, it means it is guaranteed to
find the best possible solution, in our case the shortest path to the finish state.
Question # 02:
Consider the search problem represented in Figure 1:
where a is the start node and e is the goal node. The pair [f, h] at each node
indicates the value of the f and h functions for the path ending at that node. Given
this information, what is the cost of each path?
1. The cost < a, c > = 2 is given as a hint.
2. Is the heuristic function h admissible? Explain why or why not.
3
ARTIFICIAL INTELLIGENCE
Answer:
Part 1.
< a, b >= 1, < b, c >= 1, < a, c >= 2, < c, e >= 1, < c, f >= 1
Part 2.
Yes, it is admissible because it never overestimates the distance to the goal.
Question # 03:
Recall your knowledge of alpha beta pruning and apply to following search tree.
Identify all the unexplored nodes at the end.
Answer:
1)
4
ARTIFICIAL INTELLIGENCE
2)
3)
5
ARTIFICIAL INTELLIGENCE
4)
5)
6
ARTIFICIAL INTELLIGENCE
6)
7)
7
ARTIFICIAL INTELLIGENCE
8)
9)
8
ARTIFICIAL INTELLIGENCE
10)
11)
9
ARTIFICIAL INTELLIGENCE
12)
13)
10
ARTIFICIAL INTELLIGENCE
CONCLUSION
11
ARTIFICIAL INTELLIGENCE
It requires knowledge and experience to apply the heuristics effectively. It solves a problem
faster than classic methods, or to find an approximate solution when classic methods
cannot. Trained usability experts are sometimes hard to find and can be expensive. You should
use multiple experts and aggregate their results. The evaluation may identify more minor issues
and fewer major issues
REFERENCES
https://data-flair.training/blogs/heuristic-search-ai/
https://en.wikipedia.org/wiki/Heuristics_in_judgment_and_decision-making#:~:text=In%20their
%20initial%20research%2C%20Tversky,are%20called%20%22judgment%20heuristics%22.
12