Professional Documents
Culture Documents
https://www.youtube.com/watch?v=nmWGhb9E4es
Q5 What are the performance measures used to evaluate the performance
measure of search algorithms.
Completeness: If the algorithm is able to produce the solution if one exist then its
satisfies completeness criteria.
Optimality: If the solution produce is the minimum cost solution, the algorithm is
said to be optimal.
Time complexity: It depends on the time taken to generate the solution. It is the
number of nodes generated during the search
Space complexity: Memory required to store the generated nodes while performing
the search
Q6 Define AI . What are applications of AI
Artificial Intelligence is defined as the process where a machine tries to make
decisions like a human brain. A collection of technologies known as artificial
intelligence (AI) enables computers to carry out a range of complex tasks, such as the
ability to see, hear, interpret, and translate spoken and written language, analyze data,
generate suggestions, and more.
Machine Learning and Predictive Analytics:
Applications: Predictive modeling, recommendation systems, fraud detection, and
risk assessment.
Natural Language Processing (NLP):
Applications: Chatbots, language translation, sentiment analysis, and speech
recognition.
Computer Vision:
Applications: Image and video recognition, facial recognition, object detection, and
autonomous vehicles.
Robotics:
Applications: Industrial automation, drones, surgical robots, and household robots.
Q7 Compare model based and utility based agent.
Knitting a sweater:
Performance Measure: Completing a well-knit sweater according to the design.
Environment: Crafting area with knitting materials.
Actuators: Knitting needles, hands, fingers.
Sensors: Visual perception of the knitting pattern, tactile feedback.
Q1 Draw and illustrate the architecture of learning agent / model based agent /
7 goal based agent/ simple reflex agent/ utility based agent.
Simple Reflex agent:
The Simple reflex agents are the simplest agents. These agents take decisions on the
basis of the current precepts and ignore the rest of the percept history.
These agents only succeed in the fully observable environment.
The Simple reflex agent does not consider any part of percepts history during their
decision and action process.
The Simple reflex agent works on Condition-action rule, which means it maps the
current state to action. Such as a Room Cleaner agent, it works only if there is dirt in
the room.
Utility-based agents
These agents are similar to the goal-based agent but provide an extra component of
utility measurement which makes them different by providing a measure of success
at a given state.
Utility-based agent act based not only goals but also the best way to achieve the goal.
The Utility-based agent is useful when there are multiple possible alternatives, and an
agent has to choose in order to perform the best action.
The utility function maps each state to a real number to check how efficiently each
action achieves the goals
Learning Agents
A learning agent in AI is the type of agent which can learn from its past experiences,
or it has learning capabilities.
It starts to act with basic knowledge and then able to act and adapt automatically
through learning.
A learning agent has mainly four conceptual components, which are:
Learning element: It is responsible for making improvements by learning from
environment
Critic: Learning element takes feedback from critic which describes that how well the
agent is doing with respect to a fixed performance standard.
Performance element: It is responsible for selecting external action
Problem generator: This component is responsible for suggesting actions that will lead
to new and informative experiences.
Hence, learning agents are able to learn, analyse performance, and look for new ways
to improve the performance.
Q1 Evaluate the BFS, DFS, DLS, IDFS based on performance measure such as
8 complete, optimal, time and space complexity. (5 marks)
b→branching factor
d→depth of the shallowest solution
m→ max depth of search tree
l→ depth limit
Criteria BFS DFS DLS IDFS
Complete Y N N Y
Time d
O(b ) m
O(b ) d
O(b ) O(bd)
Space d
O(b ) m
O(b ) O(b.l) O(b.d)
optimal Y N N Y
Q1 Consider the graph given below .Assume that the initial state is A and the goal
9 state is
G . Find a path from the initial state to the goal state using DFS.Also report the
final
Cost
Atomic sentences: Atomic sentences are the most basic sentences of first-order logic.
These sentences are formed from a predicate symbol followed by a parenthesis with
a sequence of terms.
Example: Ravi and Ajay are brothers: => Brothers(Ravi, Ajay).
Chinky is a cat: => cat (Chinky).
Complex Sentences:
Complex sentences are made by combining atomic sentences using connectives.
Consider the statement: "x is an integer.", it consists of two parts, the first part x is the
subject of the statement and second part "is an integer," is known as a predicate.