AI Unit I-1
AI Unit I-1
UNIT-I
Chapter 1: Introduction
• Concept of AI
• History
• Problem Formulations
• Classification
• Working of an Agent
DR. S JAYANTH 1
Artificial Intelligence Unit 1 Notes
Introduction:
➢ One of the booming technologies of computer science is Artificial Intelligence
which is ready to create a new revolution in the world by making intelligent
machines.
➢ The Artificial Intelligence is now all around us. It is currently working with a
variety of subfields, ranging from general to specific, such as self-driving cars,
playing chess, proving theorems, playing music, Painting, etc.
➢ AI holds a tendency to cause a machine to work as a human.
➢ Artificial Intelligence is composed of two words Artificial and Intelligence,
where Artificial defines "man-made," and intelligence defines "thinking
power", hence AI means "a man-made thinking power."
➢ So, we can define AI as: "It is a branch of computer science by which we can create
intelligent machines which can behave like a human, think like humans, and able
to make decisions."
➢ Artificial Intelligence exists when a machine can have human-based skills such as
learning, reasoning, and solving problems
➢ With Artificial Intelligence you do not need to preprogram a machine to do some
work, despite that you can create a machine with programmed algorithms which
can work with own intelligence, and that is the awesomeness of AI.
Reason for Artificial Intelligence:
➢ Before Learning about Artificial Intelligence, we should know that what is the
importance of AI and why should we learn it. The main reasons to learn about AI:
• With the help of AI, you can create such software or devices which can solve
real-world problems very easily and with accuracy such as health issues,
marketing, traffic issues, etc.
• With the help of AI, you can create your personal virtual Assistant, such as
Cortana, Google Assistant, Siri, etc.
• With the help of AI, you can build such Robots which can work in an
environment where survival of humans can be at risk.
• AI opens a path for other new technologies, new devices, and new
Opportunities.
DR. S JAYANTH 2
Artificial Intelligence Unit 1 Notes
Concepts of AI
Artificial Intelligence (AI) operates on a core set of concepts and technologies that enable
machines to perform tasks that typically require human intelligence. Here are some
foundational concepts:
1. Machine Learning (ML): This is the backbone of AI, where algorithms learn
from data without being explicitly programmed. It involves training an algorithm
on a data set, allowing it to improve over time and make predictions or decisions
based on new data.
2. Neural Networks: Inspired by the human brain, these are networks of
algorithms that mimic the way neurons interact, allowing computers to recognize
patterns and solve common problems in the fields of AI, machine learning,
and deep learning.
3. Deep Learning: A subset of ML, deep learning uses complex neural networks
with many layers (hence “deep”) to analyze various factors of data. This is
instrumental in tasks like image and speech recognition.
4. Natural Language Processing (NLP): NLP involves programming computers
to process and analyze large amounts of natural language data, enabling
interactions between computers and humans using natural language.
5. Robotics: While often associated with AI, robotics merges AI concepts with
physical components to create machines capable of performing a variety of tasks,
from assembly lines to complex surgeries.
6. Cognitive Computing: This AI approach mimics human brain processes to solve
complex problems, often using pattern recognition, NLP, and data mining.
7. Expert Systems: These are AI systems that emulate the decision-making ability
of a human expert, applying reasoning capabilities to reach conclusions.
Each of these concepts helps to build systems that can automate, enhance, and sometimes
outperform human capabilities in specific tasks.
DR. S JAYANTH 3
Artificial Intelligence Unit 1 Notes
DR. S JAYANTH 4
Artificial Intelligence Unit 1 Notes
DR. S JAYANTH 5
Artificial Intelligence Unit 1 Notes
o Some key characteristics of strong AI include capability include the ability to think,
to reason, solve the puzzle, make judgments, plan, learn, and communicate by its
own.
o Super AI is still a hypothetical concept of Artificial Intelligence. Development of
such systems in real is still world changing task.
DR. S JAYANTH 6
Artificial Intelligence Unit 1 Notes
DR. S JAYANTH 7
Artificial Intelligence Unit 1 Notes
DR. S JAYANTH 8
Artificial Intelligence Unit 1 Notes
Challenges of AI:
Artificial Intelligence offers incredible advantages, but it also presents some challenges
that need to be addressed:
o Doing the Right Thing: AI should make the right choices, but sometimes it
doesn't. It can make mistakes or do things that aren't fair. We need to teach AI to
be better at making good choices.
o Government and AI: Sometimes, governments use AI to keep an eye on people.
This can be a problem for our freedom. We need to make sure they use AI in a good
way.
o Bias in AI: AI can sometimes be a bit unfair, especially when it comes to
recognizing people's faces. This can cause problems, especially for people who
aren't like the majority.
o AI and social media: What you see on social media is often decided by AI. But
sometimes, AI shows things that aren't true or are kind of mean. We need to make
sure AI shows the right stuff.
o Legal and Regulatory Challenges: The rapid evolution of AI has outpaced the
development of comprehensive laws and regulations, leading to uncertainty about
issues like liability and responsibility.
AI Tools and Services:
AI tools and services are advancing quickly, and this progress can be linked back to a
significant moment in 2012 when the AlexNet neural network came onto the scene. This
marked the start of a new era for high-performance AI, thanks to the use of GPUs and
massive data sets. The big shift was the ability to train neural networks using huge
amounts of data on multiple GPU cores simultaneously, making it a more scalable
process.
o Transformers: Google found a better way to train AI using lots of regular
computers with special chips called GPUs. This discovery made transformers
possible. Transformers help AI learn from data that doesn't have labels, like
teaching a computer to understand language.
o Hardware Improvements: Companies like Nvidia improved the inner
workings of these GPUs. They made them really good at handling the math AI
needs to do. This teamwork between better hardware, smarter AI software, and
DR. S JAYANTH 9
Artificial Intelligence Unit 1 Notes
computer data centers made AI a million times better! Nvidia is also working with
companies that offer cloud computing to make it easier for others to use this
powerful AI.
o GPTs: Before, if a company wanted to use AI, they had to start from scratch, which
was expensive and time-consuming. Now, companies like OpenAI, Nvidia,
Microsoft, and Google offer pre-trained AI models. These models can be fine-tuned
for specific tasks at a lower cost and with less effort. It's like buying a ready-made
cake and adding your own frosting instead of baking the whole cake from scratch.
This helps companies use AI faster and with less risk.
o AI in the Cloud: Using AI can be tricky because it needs lots of data work. Big
cloud companies like AWS, Google, Microsoft, IBM, and Oracle are making
it easier. They're offering AI services that help with the hard parts, like getting data
ready, building AI models, and putting them into apps.
o Advanced AI for Everyone: Some groups are making really smart AI models
and sharing them. OpenAI, for example, has models that are good at chatting,
understanding language, making images, and writing code. Nvidia is another, and
they're not tied to one cloud company. Many others are making special AI models
for different jobs and industries. It's like having a library of powerful tools for lots
of different tasks.
DR. S JAYANTH 10
Artificial Intelligence Unit 1 Notes
History of AI
➢ Artificial Intelligence is a technology that makes machines replicate human
intelligence.
➢ These machines can learn, make decisions, adapt, and perform tasks similar to humans.
➢ The history and evolution of AI is a journey that spans several decades.
There is an assumption that Artificial Intelligence is a recent technology in the market, but
in reality, the groundwork of AI dates back to early 1900s, while the biggest innovations
weren't made until 1950's.
Foundation of AI
The early 1900's, i.e., 1900-1950 is when there was a lot of buzz created regarding the idea of
artificial humans. This made scientists of all sorts think if it was possible to create an artificial
brain. Though most of them tried creating the simpler versions of robots. Some of the key
milestones in this period are –
DR. S JAYANTH 11
Artificial Intelligence Unit 1 Notes
Year Milestone
Czech playwright Karel Capek released a science fiction play "Rossum's Universal
1921
Robots", where he introduced artificial people and named them robots.
Warren McCulloch and Walter Pitts created the first conceptual model of a neural
1943
network.
Emergence of AI
The years from 1950-1956 marked the turning point for AI. Researchers and companies made
Some of the key milestones in this period are −
Year Milestone
Arthur Samuel is a computer scientist, who developed a program to play checkers, which
1952
improved its performance through experience.
Revolution of AI
The period from 1957-1973 was also commonly known as "Golden Age" as most researchers
showed interest and enthusiasm to achieve remarkable advancements in the field. Some of the
notable milestones in this period are −
Year Milestone
Frank Rosenblatt introduced perceptron, which was one of the early innovations
1957
for artificial neural networks.
1958 John McCarthy created LISP, the first programming language for AI research.
Arthur Samuel used the term "Machine Learning" and defined it as intellectual
1959
computers that surpass humans in any task.
DR. S JAYANTH 12
Artificial Intelligence Unit 1 Notes
Joseph Weizenbaum created ELIZA, that used natural language processing to make
1966
conversations with humans.
1972 Alain Colmerauer and Philippe Roussel developed prolog programming language.
AI Winter
The initial AI winter occurred from 1974-1980, which was quite a tough time for the
improvement of AI. During this time, there was a substantial decrease in research funding which
affected the interest on AI.
AI Boom
The time period from 1980-1987 showed a period of rapid growth and interest in AI. This
happened because of both research breakthroughs and additional government funding to support
the researchers. Some of the key milestones in this period are −
Year Milestone
1980 The first expert systems, known as XCON came into the commercial market.
The AAAI warns about the incoming AI Winter, where the funding and interest would
1984
decrease significantly effecting the research.
Ernst Dickmann and his team demonstrated the first self-driving cars, which drove up to
1986
55kmph with no obstacles and human driver.
AI Stagnation
The second AI winter took place from the years 1987-1993, where again investors and
government stopped funding due to high cost and no efficient results.
AI Agents
The years between 1993-2011, there was a significant growth in AI, especially with the
development of intelligent computer programs. In this era, professional focused on developing
software to match human intelligence for specific tasks. Some of the key milestones in this period
are −
DR. S JAYANTH 13
Artificial Intelligence Unit 1 Notes
Year Milestone
1997 Deep Blue was the first program to beat a human chess champion, Gray Kasparov.
Professor Cynthia Breazeal the first robot named Kismetthat could simulate human
2000
emotions and had facial features similar to humans.
NASA landed two rovers onto Mars, which navigated through the surface of the planet
2003
without human intervention.
Companies such as Twitter, Facebook, and Netflix started using AI as part of advertising,
2006
business analysis, and user engagement.
Year Milestone
Google researchers Jeff Dean and Andrew Ng trained a neural network to recognize cats
2012
using unlabeled images without prior information.
Hanson Robotics introduced Sophia, the first humanoid robot with realistic human
2016
features, emotion recognition, and communication abilities.
Facebook programmed two AI Chatbot to communicate and learn to negotiate, but as the
2017 conversation went on, they eventually stopped using English and started speaking their
own language entirely on their own.
A Chinese tech group Alibaba's language − processing AI won over human intellect
2018
on a Standford reading and comprehension test.
DR. S JAYANTH 14
Artificial Intelligence Unit 1 Notes
OpenAI started beta testing GPT-3, a model that uses Deep Learning to create code,
2020
content, and other creative tasks.
OpenAI developed Dall-E, which can generate images using the natural language as
2021
prompts.
Dall-E was integrated with ChatGPT, showcasing AI's capacity to generate text and
2022
relevant images.
Multimodal is another major breakthrough in AI. These models process all the data
2023
types like text, image, video, and audio simultaneously.
Devin is the first AI software engineer still under development and SORA is another
2024
innovation of OpenAI which is an text-to-video model.
DR. S JAYANTH 15
Artificial Intelligence Unit 1 Notes
AI in Business Intelligence
AI is playing an increasingly important role in business intelligence (BI). AI-powered BI
tools can help Businesses Collect, Analyze, and Visualize Data more Efficiently
and Effectively. This can lead to improved Decision-Making, Increased
Productivity, and Reduced Costs.
DR. S JAYANTH 16
Artificial Intelligence Unit 1 Notes
AI in Healthcare
AI is also playing an increasingly important role in healthcare. AI-powered tools can help
doctors diagnose diseases, develop new treatments, and provide
personalized care to patients. For example:
• Disease diagnosis: AI can be used to analyze patient data and identify patterns
that may indicate a disease. This can help doctors diagnose diseases earlier and
more accurately.
• Treatment development: By analyzing large datasets of patient data, AI can
identify new patterns and relationships that can be used to develop new drugs and
therapies.
• Personalized care: By analyzing a patient's data, AI can help doctors develop
treatment plans that are tailored to the patient's specific needs.
AI in Education
AI could be used in education to personalize learning, improve student
engagement, and automate administrative tasks for schools and other
organizations.
• Personalized learning: AI can be used to create personalized learning
experiences for students. By tracking each student's progress, AI can identify areas
where the student needs additional support and provide targeted instruction.
• Improved student engagement: AI can be used to improve student
engagement by providing interactive and engaging learning experiences. For
example, AI-powered applications can provide students with real-time feedback
and support.
• Automated administrative tasks: Administrative tasks, such as grading
papers and scheduling classes can be assisted by AI models, which will help free
up teachers' time to focus on teaching.
DR. S JAYANTH 17
Artificial Intelligence Unit 1 Notes
AI in Finance
AI can help financial services institutions in five general areas: personalize services
and products, create opportunities, manage risk and fraud, enable
transparency and compliance, and automate operations and reduce costs.
For example:
• Risk and fraud detection: Detect suspicious, potential money laundering
activity faster and more precisely with AI.
• Personalized recommendations: Deliver highly personalized
recommendations for financial products and services, such as investment advice
or banking offers, based on customer journeys, peer interactions, risk preferences,
and financial goals.
• Document processing: Extract structured and unstructured data from
documents and analyze, search and store this data for document-extensive
processes, such as loan servicing, and investment opportunity discovery.
AI in Manufacturing
Some ways that AI may be used in manufacturing include:
• Improved efficiency: Automating tasks, such as assembly and inspection
• Increased productivity: Optimizing production processes
• Improved quality: AI can be used to detect defects and improve quality control
Additional Fields
In addition to the fields listed above, AI is also being used in a variety of other industries,
including:
• Retail: AI is being used to personalize the shopping experience, recommend
products, and manage inventory
• Transportation: AI is being used to develop self-driving cars and improve
traffic management
• Energy: AI is being used to improve energy efficiency and predict energy
demand
• Government: AI is being used to improve public safety, detect crime, and
provide citizen services
DR. S JAYANTH 18
Artificial Intelligence Unit 1 Notes
DR. S JAYANTH 19
Artificial Intelligence Unit 1 Notes
2. AI in Cyber Security
➢ Cybersecurity is another field that’s benefitting from AI. As organizations are
transferring their data to IT networks and cloud, the threat of hackers is becoming
more significant.
➢ To keep their data and resources secure, organizations are making massive
investments in cybersecurity. The future scope of artificial intelligence in
cybersecurity is bright.
➢ Cognitive AI is an excellent example of this field. It detects and analyses threats,
while also providing insights to the analysts for making better-informed decisions.
➢ By using Machine Learning algorithms and Deep Learning networks, the AI gets
better and more durable over time. This makes it capable of fighting more
advanced threats that might develop with them.
➢ Another field is fraud detection. AI can help in detecting frauds and help
organizations and people in avoiding scams.
➢ For example, Recurrent Neural Networks are capable of detecting fraud in their
early stages. They can scan extensive quantities of transactions quickly and classify
them according to their trustworthiness.
DR. S JAYANTH 20
Artificial Intelligence Unit 1 Notes
3. AI in Data Analysis
➢ Data analysis can benefit largely from AI and ML.
➢ AI algorithms are capable of improving with iterations, and this way, their
accuracy, and precision increase accordingly.
➢ AI can help data analysts with handling and processing large datasets.
➢ AI can identify patterns and insights that human eyes can’t notice without putting
in a lot of effort.
➢ The scope of artificial intelligence in data analytics is rising rapidly. Another
example of AI applications in this sector is predicting outcomes from data. Such
systems use the analytics data to predict results and the appropriate course of
action to achieve those results.
4. AI in Transport
➢ The transport sector has been using AI for decades. Although the presence and
scope of artificial intelligence have been theoretically existent for some time now,
only a few people are aware that we use it on a regular basis.
➢ The scope of AI is quite advanced because it can learn automated manual tasks just
like humans. Since automation is becoming more prevalent, time-consuming tasks
are being taken over by AI.
➢ Several businesses in the transportation sector have been taken over by AI so that
they can stay ahead in the market.
➢ Many companies are developing autonomous vehicles, which will rely heavily on
AI and ML to operate optimally. Experts believe self-driving cars will bring many
long-term and short-term benefits, including lower emissions and enhanced road
safety.
➢ The scope of artificial intelligence has expanded and helped in the evolution and
innovation of the sector of transportation. AI come with several benefits like an
increase in safety of the passengers, fewer accidents, lesser traffic congestion,
lesser carbon emissions, and reduced financial expenses.
DR. S JAYANTH 21
Artificial Intelligence Unit 1 Notes
Problem Formulation:
➢ With formulating a problem correctly, AI systems can efficiently apply search
algorithms, optimization techniques, and decision-making models to
achieve their goals.
➢ The effectiveness of an AI solution largely depends on how well the
problem is defined, as improper problem formulation can lead to
inefficiencies, inaccurate results, or excessive computational
complexity.
➢ For example,
AI-based route planning, an intelligent system must define its initial state (starting
location), goal state (destination), available actions (routes to take), and
optimization criteria (shortest distance, least traffic, etc.).
➢ By structuring the problem effectively, the AI can determine the most
efficient route while adapting to real-time constraints like traffic
conditions.
➢ Problem formulation is widely used in robotics, game AI, autonomous
systems, and intelligent search algorithms,
➢ Making of Problem Formulation is an essential aspect of AI-driven decision-
making.
DR. S JAYANTH 22
Artificial Intelligence Unit 1 Notes
1. Initial State: The initial state represents the starting point of the AI system, from
where it begins its decision-making process. It provides the foundational data or
conditions that define the problem’s context.
Example: In a chess game, the initial state is the starting board configuration, where all
pieces are placed in their default positions before the game begins. The AI analyzes this
state to determine possible moves and strategies.
2. Action Set (Successor Function): The action set, also known as the successor
function, defines all possible actions that the AI can take from a given state. The
availability of actions varies based on environmental conditions and system constraints.
Example: In a self-driving car, the AI has a set of possible actions, such as:
• Accelerate to increase speed.
• Brake to slow down or stop.
• Turn left or right to navigate intersections.
• Stay in lane to maintain direction.
Each action influences the AI’s path and decision-making, contributing to achieving the
goal.
3. Transition Model: The transition model describes how the AI moves from one state
to another after performing an action. It helps in predicting the outcome of different
actions, enabling the AI to make informed decisions.
Example: In a GPS navigation system, when a user selects a route, the AI determines
state transitions as the vehicle moves from one city to another. The transition model
accounts for distance, road conditions, and traffic updates to refine its decision-making.
DR. S JAYANTH 23
Artificial Intelligence Unit 1 Notes
4. Goal State: The goal state defines the desired end state or solution that the AI aims
to achieve. Without a clearly defined goal, the AI system lacks direction and cannot
effectively evaluate its success.
Example: In a maze-solving AI, the goal state is reaching the exit. The AI processes
available paths, evaluates obstacles, and determines the most efficient way to navigate
toward the goal.
5. Path Cost Function: The path cost function measures the cost associated with
reaching the goal, ensuring the AI selects the most efficient solution. The cost could be
measured in time, distance, energy consumption, or computational complexity,
depending on the application.
Example: In Google Maps, the AI considers multiple routes and evaluates the shortest
path based on factors such as:
• Distance between start and destination.
• Traffic conditions to avoid congestion.
• Estimated travel time to find the fastest route.
By integrating these key components, AI systems can effectively formulate, analyze, and
solve problems across various domains, from autonomous navigation to strategic game
playing.
DR. S JAYANTH 24
Artificial Intelligence Unit 1 Notes
DR. S JAYANTH 25
Artificial Intelligence Unit 1 Notes
DR. S JAYANTH 26
Artificial Intelligence Unit 1 Notes
In the above figure, we can assume the company hierarchy where A represents the CEO
of the company, B, C and D represent the managers of the company, E and F represent
the team leaders, and G and H represent the team members. This type of structure has
more than one level, so it is known as a non-linear data structure.
Tree:
A tree is a non-linear data structure that represents the hierarchy. A tree is a collection of
nodes that are linked together to form a hierarchy.
Let's look at some terminologies used in a tree data structure.
o Root node: The topmost node in a tree data structure is known as a root node. A
root node is a node that does not have any parent.
o Parent of a node: The immediate predecessor of a node is known as a parent of
a node. Here predecessor means the previous node of that particular node.
o Child of a node: The immediate successor of a node is known as a child of a
node.
o Leaf node: The leaf node is a node that does not have any child node. It is also
known as an external node.
DR. S JAYANTH 27
Artificial Intelligence Unit 1 Notes
o Non-leaf node: The non-leaf node is a node that has atleast one child node. It is
also known as an internal node.
o Path: It is a sequence of the consecutive edges from a source node to the
destination node. Here edge is a link between two nodes.
o Ancestor: The predecessor nodes that occur in the path from the root to that node
is known as an ancestor.
o Descendant: The successor nodes that exist in the path from that node to the leaf
node.
o Sibling: All the children that have the same parent node are known as siblings.
o Degree: The number of children of a particular node is known as a degree.
o Depth of node: The length of the path from the root to that node is known as a
depth of a node.
o Height of a node: The number of edges that occur in the longest path from that
node to the leaf node is known as the height of a node.
o Level of node: The number of edges that exist from the root node to the given
node is known as a level of a node.
Note: If there are n number of nodes in the tree, then there would be (n-1) number of
edges.
Representation of Tree in the memory:
Each node will contain three parts, data part, address of the left subtree, and address of
the right subtree. If any node does not have the child, then both link parts will have NULL
values.
DR. S JAYANTH 28
Artificial Intelligence Unit 1 Notes
Graph:
A graph is like a tree data structure is a collection of objects or entities known as nodes
that are connected to each other through a set of edges. A tree follows some rule that
determines the relationship between the nodes, whereas graph does not follow any rule
that defines the relationship among the nodes. A graph contains a set of edges and nodes,
and edges can connect the nodes in any possible way.
Mathematically, it can be defined as an ordered pair of a set of vertices, and a set of nodes
where vertices are represented by 'V' and edges are represented by 'E'.
G= (V, E)
Here we are referring to an ordered pair because the first object must be the set of vertices,
and the second object must be a set of edges.
In Graph, each node has a different name or index to uniquely identify each node in the
graph. The graph shown below has eight vertices named as v1, v2, v3, v4, v5, v6, v7, and
v8. There is no first node, a second node, a third node and so on. There is no ordering of
the nodes. Now, we will see how can we represent the edges in a graph? An edge can be
represented by the two endpoints in the graph. We can write the name of the two
endpoints as a pair, that represents the edge in a graph.
There are two types of edges:
o Directed edge: The directed edge represents one endpoint as an origin and
another point as a destination. The directed edge is one-way. For example, there
are two vertices U and V; then directed edge would represent the link or path from
U to V, but no path exists from V to U. If we want to create a path from V to U, then
we need to have one more directed edge from V to U.
The directed edge can be represented as an ordered pair in which the first element
is the origin, whereas the second element is the destination.
o Undirected edge: The undirected edge is two-way means that there is
no origin and destination. For example, there are two vertices U and V, then
undirected would represent two paths, i.e., from U to V as well as from V to U. An
undirected edge can be represented as an unordered pair because the edge is bi-
directional.
DR. S JAYANTH 29
Artificial Intelligence Unit 1 Notes
The tree data structure contains only directed edges, whereas the graph can have both
types of edges, i.e., directed as well as undirected. But, we consider the graph in
which all the edges are either directed edges or undirected edges.
There are two types of graphs:
Directed graph: The graph with the directed edges known as a directed graph.
Undirected graph: The graph with the undirected edges known as a undirected
graph. The directed graph is a graph in which all the edges are uni-directional, whereas
the undirected graph is a graph in which all the edges are bi-directional.
DR. S JAYANTH 30
Artificial Intelligence Unit 1 Notes
DR. S JAYANTH 31
Artificial Intelligence Unit 1 Notes
Depending on the
requirements of the
Trees are usually represented by applications, graphs can be
Representation hierarchical structures, usually represented by different
parent-child relationships. methods such as adjacency
matrix, adjacency list, or edge
list.
DR. S JAYANTH 32
Artificial Intelligence Unit 1 Notes
Introduction to Agents:
An agent can be anything that perceive its environment through sensors and act upon that
environment through actuators. An Agent runs in the cycle of perceiving, thinking, and acting.
An agent can be:
• Human-Agent: A human agent has eyes, ears, and other organs which work for sensors
and hand, legs, vocal tract work for actuators.
• Robotic Agent: A robotic agent can have cameras, infrared range finder, NLP for
sensors and various motors for actuators.
• Software Agent: Software agent can have keystrokes, file contents as sensory input and
act on those inputs and display output on the screen.
Sensor: Sensor is a device which detects the change in the environment and sends the
information to other electronic devices. An agent observes its environment through sensors.
Actuators: Actuators are the component of machines that converts energy into motion. The
actuators are only responsible for moving and controlling a system. An actuator can be an electric
motor, gears, rails, etc.
Effectors: Effectors are the devices which affect the environment. Effectors can be legs, wheels,
arms, fingers, wings, fins, and display screen.
DR. S JAYANTH 33
Artificial Intelligence Unit 1 Notes
Intelligent Agents:
An intelligent agent is an autonomous entity which act upon an environment using sensors and
actuators for achieving goals. An intelligent agent may learn from the environment to achieve
their goals.
Following are the main four rules for an AI agent:
o Rule 1: An AI agent must have the ability to perceive the environment.
o Rule 2: The observation must be used to make decisions.
o Rule 3: Decision should result in an action.
o Rule 4: The action taken by an AI agent must be a rational action.
Rational Agent:
A rational agent is an agent which has clear preference, models uncertainty, and acts in a way to
maximize its performance measure with all possible actions.
A rational agent is said to perform the right things. AI is about creating rational agents to use for
game theory and decision theory for various real-world scenarios.
Note: Rational agents in AI are very similar to intelligent agents.
Rationality:
The rationality of an agent is measured by its performance measure. Rationality can be judged on
the basis of following points:
• Performance measure which defines the success criterion.
• Agent prior knowledge of its environment.
• Best possible actions that an agent can perform.
• The sequence of percepts.
Note: Rationality differs from Omniscience because an Omniscient agent knows the actual
outcome of its action and act accordingly, which is not possible in reality.
Structure of an AI Agent
The task of AI is to design an agent program which implements the agent function. The structure
of an intelligent agent is a combination of architecture and agent program. It can be viewed as:
Agent = Architecture + Agent program
Following are the main three terms involved in the structure of an AI agent:
Architecture: Architecture is machinery that an AI agent executes on.
Agent Function: Agent function is used to map a percept to an action.
f:P* → A
DR. S JAYANTH 34
Artificial Intelligence Unit 1 Notes
DR. S JAYANTH 35
Artificial Intelligence Unit 1 Notes
DR. S JAYANTH 36
Artificial Intelligence Unit 1 Notes
Types of Agents in AI
Agents can be grouped into five classes based on their degree of perceived intelligence and
capability. All these agents can improve their performance and generate better action over the
time. These are given below:
1. Simple Reflex Agent
2. Model-Based Reflex Agent
3. Goal-Based Agent
4. Utility-Based Agent
5. Learning Agent
1. Simple Reflex Agent:
• The Simple reflex agents are the simplest agents. These agents take decisions on the
basis of the current percepts 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.
• Problems for the simple reflex agent design approach:
• They have very limited intelligence
• They do not have knowledge of non-perceptual parts of the current state
• Mostly too big to generate and to store.
• Not adaptive to changes in the environment.
DR. S JAYANTH 37
Artificial Intelligence Unit 1 Notes
DR. S JAYANTH 38
Artificial Intelligence Unit 1 Notes
3. Goal-based agents
• The knowledge of the current state environment is not always sufficient to decide for
an agent to what to do.
• The agent needs to know its goal which describes desirable situations.
• Goal-based agents expand the capabilities of the model-based agent by having the
"goal" information.
• They choose an action, so that they can achieve the goal.
• These agents may have to consider a long sequence of possible actions before deciding
whether the goal is achieved or not. Such considerations of different scenario are called
searching and planning, which makes an agent proactive.
DR. S JAYANTH 39
Artificial Intelligence Unit 1 Notes
4. 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.
DR. S JAYANTH 40
Artificial Intelligence Unit 1 Notes
5. 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:
a. Learning element: It is responsible for making improvements by learning from
environment
b. Critic: Learning element takes feedback from critic which describes that how well
the agent is doing with respect to a fixed performance standard.
c. Performance element: It is responsible for selecting external action
d. Problem generator: This component is responsible for suggesting actions that will
lead to new and informative experiences.
• Hence, learning agents are able to learn, analyze performance, and look for new ways
to improve the performance.
DR. S JAYANTH 41
Artificial Intelligence Unit 1 Notes
DR. S JAYANTH 42
Artificial Intelligence Unit 1 Notes
DR. S JAYANTH 43
Artificial Intelligence Unit 1 Notes
Multi-Agent System in AI
A Multi-Agent System (MAS) is a type of computer system where multiple independent entities,
called agents, work together or compete in a shared environment to reach their goals. Unlike
single-agent systems, where one agent handles tasks alone, MAS involves several agents
interacting with each other and their surroundings. The main components of multi-Agent system
are -
• Agents: These are the individual parts of the system. Each agent has its own abilities,
knowledge, and goals. Agents can range from simple robots to advanced robots that can
learn and adapt.
• Environment: This is the space where agents operate. It can be a physical place, like a
factory, or a virtual one, like a digital platform. The environment shapes how agents act
and interact.
• Interactions: Agents interact with each other and the environment through various
methods, such as talking to each other, working together, or competing. These interactions
are crucial for the system to work and improve.
• Communication: Agents often need to communicate to share information, negotiate, or
coordinate their actions. Effective communication helps agents work together or compete
more effectively.
Types of Multi-Agent Systems
1. Cooperative MAS: Agents in these systems work together to achieve a common goal.
They share information and resources to do things that would be hard for a single agent.
2. Competitive MAS: Here, agents have conflicting goals and compete for limited
resources. For example, in competitive gaming, players (agents) compete to win.
3. Hierarchical MAS: These systems have a structured organization with agents at
different levels. Higher-level agents manage and coordinate lower-level ones.
4. Heterogeneous MAS: In these systems, agents have different skills or roles, which can
make the system more flexible and adaptable.
DR. S JAYANTH 44
Artificial Intelligence Unit 1 Notes
DR. S JAYANTH 45
Artificial Intelligence Unit 1 Notes
• It can improve video games by making non-player characters (NPCs) more intelligent and
responsive to players.
Challenges in Multi-Agent Systems
• Keeping agents working together effectively can be difficult, especially when they have
different goals.
• Ensuring clear and effective communication between agents is important to avoid
misunderstandings and conflicts.
• As more agents are added, the system can become more complex and harder to manage
while maintaining performance.
• Protecting the system from harmful agents or attacks is essential to keep it reliable and
secure.
Applications of MAS
Multi-agent systems (MAS) offer numerous applications in AI, spanning various industries and
tasks. They enable distributed decision-making, complex problem-solving, and collaborative task
execution, leading to more efficient and adaptive solutions compared to traditional AI
approaches.
Here are some key applications of MAS in AI:
1. Transportation and Logistics:
• Autonomous Vehicle Coordination: MAS can optimize traffic flow, manage
autonomous vehicle platoons, and coordinate logistics operations, improving efficiency
and safety.
• Taxi Dispatch and Ride-Sharing: MAS can intelligently manage taxi dispatch,
optimize ride-sharing routes, and handle dynamic demand variations.
• Railroad Systems and Port Management: MAS can optimize train schedules,
allocate truck assignments, and manage the movement of marine vessels in ports.
2. Manufacturing and Automation:
• Intelligent Manufacturing Systems: MAS can manage machines, inventory, logistics,
and assembly automation, leading to increased efficiency and adaptability in
manufacturing processes.
• Multi-robot Factories: MAS can coordinate multiple robots working together to
perform complex tasks in a factory environment, enhancing production efficiency and
flexibility.
DR. S JAYANTH 46
Artificial Intelligence Unit 1 Notes
3. Healthcare:
• Patient Care Coordination: MAS can integrate data from various sources, assist in
diagnosis, recommend treatment plans, and manage patient workflows, improving patient
care and resource optimization.
• Disease Prediction and Prevention: MAS can analyze genetic data and
epidemiological information to predict and prevent the spread of diseases.
• Precision Medicine: MAS can leverage specialized AI agents to personalize treatment
plans based on individual patient characteristics.
4. Smart Power Grids:
• Electricity Distribution Management: MAS can coordinate generators, storage,
utilities, and consumers to optimize electricity distribution and integrate renewable
energy sources.
• Demand Response: MAS can manage demand fluctuations and optimize energy
consumption based on real-time conditions.
5. Supply Chain Management:
• AI-based Planning and Bidding: MAS can manage production, storage, and shipping
processes in a supply chain, optimizing efficiency and minimizing costs.
• Predictive Maintenance: MAS can monitor equipment performance and predict
potential failures, enabling proactive maintenance and reducing downtime.
6. Other Applications:
• Disaster Rescue: MAS can coordinate autonomous robots to map disaster sites, locate
survivors, and provide critical supplies.
• Social Simulation: MAS can simulate social dynamics and complex systems to model
phenomena like conflict management, epidemiology, and climate change.
• Software Engineering: MAS can automate software development tasks by dividing the
lifecycle into roles such as design, testing, and documentation.
• Financial Services: MAS can be used for automated trading, risk management, and
fraud detection.
• Cybersecurity: MAS can be used to develop AI-powered agents that detect and respond
to cyber threats.
• Game Development: MAS can be used to create complex and engaging game
environments with intelligent non-player characters.
DR. S JAYANTH 47
Artificial Intelligence Unit 1 Notes
DR. S JAYANTH 48
Artificial Intelligence Unit 1 Notes
DR. S JAYANTH 49
Artificial Intelligence Unit 1 Notes
Limitations of Multi-Agent AI
• Complex Development – Requires sophisticated coordination algorithms and
communication protocols.
• Higher Computational Requirements – Needs significant processing power, making
it resource-intensive.
• Potential Communication Overhead – Agents must exchange data, which can
introduce latency in decision-making.
Real-World Applications of Multi-Agent AI
• Smart Traffic Management – AI agents coordinate traffic signals based on real-time
congestion data.
• Automated Trading Systems – Different AI agents analyze market trends and execute
trades collectively.
• Healthcare Coordination – Multi-agent AI manages hospital resources, patient
appointments, and emergency responses.
“Some people call this artificial intelligence, but the reality is this technology will enhance us. So
instead of artificial intelligence, I think we’ll augment our intelligence.”
DR. S JAYANTH 50
Artificial Intelligence Unit 1 Notes
Complex to develop,
Development Simple to design and
requiring multi-agent
Complexity maintain
strategies
DR. S JAYANTH 51
Artificial Intelligence Unit 1 Notes
Challenges in Multi-Agent AI
1. Complex Coordination Mechanisms
• Multi-agent AI systems require sophisticated communication protocols to ensure
seamless collaboration. Poor coordination can lead to inefficient workflows and
conflicts in decision-making.
2. Increased Computational Demand
• The distribution of tasks across multiple agents requires high processing power,
often making multi-agent systems resource-intensive.
3. Security and Trust Issues
• In environments where multiple AI agents interact, security risks such as data
breaches, malicious agent manipulation, or adversarial attacks become concerns.
4. Difficult Debugging and Maintenance
• Since multiple AI agents interact dynamically, identifying and fixing errors
becomes significantly more complicated compared to single-agent AI.
DR. S JAYANTH 52
Artificial Intelligence Unit 1 Notes
DR. S JAYANTH 53
Artificial Intelligence Unit 1 Notes
Important Questions
1. What is an Artificial Intelligence? Explain Current Status and Scope of the AI.
2. Explain the Classification of Artificial Intelligence.
3. Define an AI. Explain History of AI in Detail.
4. What is Problem Formulation? Explain the Key Components in Problem
Formulation with an Example.
5. Define an Intelligent Agent. Explain the Classification of Intelligent Agents in AI
with Neat Diagrams.
6. Explain Multi Agent System and its Applications.
7. Write comparison between Single Agent and Multi Agent Systems.
DR. S JAYANTH 54