Tutorial 1
Tutorial 1
Intelligence is the ability to think, learn, and solve problems. It helps us understand new things,
make good decisions, and adapt to different situations.
Example:
A student who figures out a math problem by trying different methods and learning from
mistakes is using intelligence.
AI is when computers or machines are made to act like humans by learning from data,
recognizing patterns, and making decisions. These systems can perform tasks that usually require
human thinking.
Example:
A smartphone that suggests words while typing or recognizes a person’s face in photos is using
AI.
(c) Agent
An agent is something that interacts with its surroundings and takes actions based on what it
senses. Agents can be living beings, like humans and animals, or artificial, like robots and
software.
Example:
A home-cleaning robot that moves around, detects dirt and cleans it up is an agent.
(d) Rationality
Rationality means making smart and logical decisions by considering all available information.
A rational decision is one that leads to the best possible result in a given situation.
Example:
If it’s going to rain, a rational person would take an umbrella before going outside.
(e) Logical Reasoning
Logical reasoning is the ability to think step by step to reach a conclusion. It follows clear rules
to figure out the right answer.
Example:
If all apples are fruits, and a banana is also a fruit, then we can logically say that both apples and
bananas belong to the same category—fruits.
QUESTION 2
Artificial Intelligence:
AI is about making computers act smart and solve problems like humans.
Example: A voice assistant like Siri or Alexa that understands and responds to your questions.
Machine Learning:
ML is a type of AI where computers learn from data and improve over time without needing to
be directly programmed for every task.
Example: Netflix recommends movies based on what you have watched before.
Deep Learning:
DL is a special type of ML that uses neural networks to recognize patterns in a large amount of
data.
Example: Self-driving cars use DL to recognize traffic signs, people, and other cars.
Question 3
Generative AI is a type of artificial intelligence that creates new content, such as text, images,
music, and videos, by learning patterns from existing data. Unlike traditional AI, which mainly
analyzes or classifies information, Generative AI produces original content similar to what
humans create. For example, ChatGPT can write human-like text. These AI systems use deep
learning and neural networks to recognize patterns and generate meaningful outputs.
Large Language Models are a special type of Generative AI that focus only on understanding
and generating text. They are trained on large amounts of text data and use advanced machine
learning techniques to process language, predict words, and create natural-sounding text. Some
common examples of LLMs include ChatGPT, Google Bard, and Claude, which are used for
chatbots, content writing, and summarizing information. These models have greatly improved
how computers understand and communicate using human language.
Generative AI and LLMs are closely connected. LLMs are a part of Generative AI, but while
Generative AI can create various types of content, LLMs focus only on text. All LLMs belong to
Generative AI, but not all Generative AI models are LLMs. Generative AI also includes tools
that create images, music, and videos, whereas LLMs are designed for working with written
language.
Question 4
o If the current square is clean, the agent moves (either Left or Right).
Evaluating Rationality
A rational agent is one that maximizes its performance measure. According to Section 2.2 of
AIMA, the performance measure in this scenario is:
One point is awarded for each clean square at every time step.
Under the given assumptions:
1. The environment consists of only two locations, A and B.
2. The agent always knows its current location and whether it is dirty.
3. Clean squares remain clean unless dirt reappears (which is not assumed in this case).
4. The agent can only move Left, Right, or Suck.
Since the agent correctly cleans when needed and moves when appropriate, it maximizes
cleanliness and is therefore rational. However, if all squares are already clean, the agent will
continue moving back and forth wasting steps, which could be suboptimal under different
performance measures.
Question 5
1. Rationality
Rationality refers to an agent’s ability to make decisions that maximize its performance based on
the available information and predefined performance measures. A rational agent always takes
the best possible action to achieve its goal, given what it knows.
Example:
A vacuum-cleaner agent that sucks when it detects dirt and moves only when necessary is
rational because it maximizes cleanliness while minimizing unnecessary movement.
A chess-playing AI that chooses the best move based on its evaluation function is rational
in that context.
2. Autonomy
Autonomy refers to the agent’s ability to operate without human intervention by relying on its
own observations and learning from the environment. A fully autonomous agent does not need
external instructions and can adapt over time.
Example:
A self-driving car that detects obstacles, follows traffic rules, and navigates to its
destination without human input is highly autonomous.
A robotic vacuum cleaner that adjusts its cleaning pattern based on the room layout and
avoids obstacles has some level of autonomy.
3. Reflex Agent
A reflex agent acts only based on current percepts (immediate sensor data) without considering
history or future consequences. It follows predefined rules (if-then conditions).
Example:
A thermostat that turns on the heater if the temperature drops below 20°C is a reflex
agent, it reacts instantly based on the current temperature.
A simple vacuum cleaner that sucks when it sees dirt and moves randomly otherwise is
also a reflex agent.
Limitation: Reflex agents struggle in complex environments where memory or planning is
required.
4. Model-Based Agent
A model-based agent maintains an internal model of the environment to keep track of past states
and predict future outcomes. This helps it handle partially observable environments.
Example:
A self-driving car keeps track of nearby vehicles, road conditions, and traffic signals to
make informed decisions.
A robot exploring a maze remembers previously visited locations to avoid backtracking.
Advantage: More efficient decision-making in complex environments.
5. Goal-Based Agent
A goal-based agent makes decisions by considering future consequences and choosing actions
that bring it closer to a specific goal. Instead of just reacting, it evaluates different possibilities.
Example:
A GPS navigation system finds the best route to a destination instead of just reacting to
traffic.
A warehouse robot selects the shortest path to pick up an item and deliver it efficiently.
Advantage: Can handle more complex tasks that require planning.
6. Utility-Based Agent
A utility-based agent extends goal-based agents by assigning numerical values (utilities) to
different outcomes, choosing the action that maximizes its expected benefit.
Example:
A stock trading AI selects investments based on expected returns and risk factors.
A self-driving taxi optimizes fuel efficiency, speed, and passenger comfort rather than
just reaching the destination.
Advantage: More flexible decision-making, especially when there are multiple competing
objectives.
7. Learning Agent
A learning agent improves its performance over time by learning from experiences and adjusting
its behavior accordingly. It consists of:
1. Performance element – Executes actions.
2. Learning element – Adapts based on feedback.
3. Critic – Evaluates performance.
4. Problem generator – Explores new actions.
Example:
ChatGPT improves responses by learning from user interactions.
AlphaGo (AI playing Go) improves by playing thousands of matches and adjusting its
strategies.
Advantage: Can adapt to new environments without being explicitly programmed for every
scenario.
Question 6
Example: Intelligent Medical Diagnosis System
A Medical Diagnosis Expert System (MDES) assists doctors by suggesting possible diseases
based on symptoms and patient data.
Example:
A hospital wants an AI system to help diagnose respiratory diseases based on symptoms like
cough, fever, and X-ray images.
Example:
Collect 10,000 patient records from hospitals, including symptoms, diagnoses, and lab
results.