Professional Documents
Culture Documents
: 21BCP148
Internal Assessment: 1: Unit 1 AI Semester: 6 Division: 3
1. Complete the following table with relevant analysis of the systems mentioned in first column.
4. Quality of
feedback from the
users.
5. Accuracy and
quality of content
delivered.
Water Jug 1. Whether the If in real life: If in real life: 2 Water level
Problem Solution goal state is Source of water, buckets (jugs) to sensor in the jugs.
reached or not i.e. a place (sink) to fill water in, a
if we are able to dump water in. person/robotic
achieve the arm to lift and fill
required quantity the jugs.
of water.
2. Number of If in a simulation: If in a simulation: If in a simulation:
states we had to the system itself the rules we apply the states in the
explore before (incl. the – that we can only state space search
reaching the goal. processors, fill the jugs we will explore to
3. Time taken to memory etc. in completely (not reach the goal
reach the goal the computer/ partially) and state of achieving
state. device). when empting the required
4. Percentage of them into the sink quantity of water
problems solved then have to if possible.
with given empty completely
constraints within and other rules.
a set time limit.
Tic tac toe 1. Percentage of The system itself The rules we The states that
(assuming it to be games that the (incl. the apply: the grid, X are possible to
a simulation – computer wins processors, and O, way to win reach in the game
computer against the human. memory etc. in etc. constraints. (state space).
application) 2. Average number the computer/
of steps before the device).
computer
wins/loses/reaches
a draw.
Grass trimming 1. Accuracy of the Grass, ground, Cutter, motor, Keyboard, touch
robot cutting. i.e. user. wheels (or screen, mic,
percentage of the whatever object proximity sensor,
grass that has been used to move), camera, IR sensor,
cut to its required shovel to move something to
height. the cut grass sense the quality
2. Time taken to do aside, of the land that
the task. screen/monitor, the robot has to
3. Percentage of speaker. move over i.e.
faults done i.e. if it whether it will be
cut something that able to hold the
Name: Reha Shah Roll No.: 21BCP148
Internal Assessment: 1: Unit 1 AI Semester: 6 Division: 3
2. Considering the generic search algorithm mentioned below complete the given table.
0. Initialize
agenda = [ [start] ]
extended_list = []
Fail!
4. Comment on the requirement of Heuristic search techniques. Mention its benefits and
drawbacks as compared to blind search techniques.
Analyzing the requirement of heuristic (informed) search techniques by using proof by contradiction:
in the uninformed (blind) search techniques we have no information to compare all the immediately
available moves therefore we either do FCFS or choose at random or choose based on the cost
incurred so far and thus there is a very real possibility of these algorithms running huge time
complexities and becoming the same as brute force or even worse with very high space complexities
also to store all the possible paths that were explored in this manner. Thus, the uninformed
techniques inherently have many problems and limitations that can be at least partially solved by
having some information about the nodes and their relation to the goal. And therefore we can
conclude that heuristic search techniques are required.
Another way to comment on the requirement of heuristic search techniques: seeing all their
advantages and how they improve search techniques. They use heuristic functions to estimate the
cost of the path to the goal node from the current node and then based on this value they decide the
next node to explore. With a good estimating function, this method reduces the number of states to
explore by a very good amount. They are also focused on finding the most optimal path, not just the
first available path like uninformed techniques and thus are better performing in optimizing problems.
The time complexity of these methods is also less due to the reduced number of nodes that are
explored and the space complexity is also low because even though there is added space requirement
to store the heuristic value (the “information” that separates these methods from blind search
techniques) the reduced number of states traversed reduces the memory needed to store all the
paths and this is much more significant than the heuristic values. Thus, heuristic search techniques
are required whenever we want any of the properties discussed in this paragraph.
But these techniques are much more complex and difficult to implement and understand and need
more computational power to implement thus if our problem is relatively easy and can be solved by
Name: Reha Shah Roll No.: 21BCP148
Internal Assessment: 1: Unit 1 AI Semester: 6 Division: 3
uniformed search and there is no constraint of time or space and any available path to goal will be
acceptable then heuristic search is not required and it would be easier to just implement blind search
techniques. We need to analyze the following before we choose the search technique that will be the
best:
E. is a large amount of knowledge needed to solve the problem or is it only required to constrain the
search
Mentioning the benefits and drawbacks as compared to blind search techniques: already covered in
the above paragraphs, thus I won’t be writing the same thing again.
5. Give the details to complete the following heuristic search comparison table:
Uses:
G(x): cost to reach
current node from
source using
current path
H(x): estimated
cost to reach goal
from current node
F(x): g(x) + (h(x)
Simulated 1. Based on a 1. Heuristic 1. Whether a Calculate the
Annealing mechanical function viable path was heuristic
process called 2. Quantity for generated within probability
annealing where the value of finite time or not. function value for
we gradually heat delta(e) 2. Cost of that each node and if a
up and cool down 3. annealing path. node found where
metal to make its schedule. 3. Time and space the probability is
internal energy 4. Increment/ complexity. more then
minimum. decrement value 4. Number of recursively call it.
2. Very after each states explored
dependent on the iteration before reaching
heuristic function 5. Quantity to goal.
and the constants take as the 5. Number of
we choose. temperature iterations done.
3. Not complete 6. Source and goal 6. Average
but if allowed to node number of times
run long enough 7. Value for the states were
will mostly give a Boltzmann revisited.
solution. constant