Categories of AI: What Is Artificial Intelligence?
Categories of AI: What Is Artificial Intelligence?
Categories of AI
1
8/31/2025
TYPES OF
ARTIFICIAL
INTELLIGENCE
2
8/31/2025
3
8/31/2025
4
8/31/2025
1960s-1970s: 1990s-2000s:
Early AI Machine
Research Learning and
Data-Driven
Approaches
10
5
8/31/2025
11
Key Techniques
• Artificial Intelligence: Example: A chatbot
that can answer customer service queries.
AI Deep Learning
Example: A facial
recognition system that
ML identifies individuals by
analyzing facial features.
Machine Learning:
Example: A spam filter that
DL learns to identify spam emails
based on user feedback and
email characteristics.
12
6
8/31/2025
Agent Definition
An agent is an entity that can perceive its environment through sensors and
act upon that environment through actuators. It can be anything from a
simple thermostat to a complex robot or a software program.
Examples of Agents
Humans: We perceive the world through our senses (sight,
hearing, touch, taste, smell) and act through our limbs and vocal
cords.
Robots: Robots use sensors like cameras and lidar to perceive
their surroundings and actuators like motors and grippers to
interact with the world.
Software Programs: Software agents, such as web crawlers or
game-playing programs, perceive input data and produce output
actions.
Environment
The environment is the world or context in which the agent
operates. It can be fully observable or partially observable,
deterministic or stochastic, static or dynamic, discrete or
continuous.
14
7
8/31/2025
Rational Agent
• A rational agent, given a specific performance measure, always
takes the action that is expected to maximize that measure, given
the agent's percept history. This means that a rational agent:
• Perceives: It accurately senses its environment.
• Thinks: It reasons about its percepts to form beliefs about the world.
• Acts: It chooses actions that are expected to maximize its performance
measure.
• It's important to note that rationality is not about always making
the correct decision. It's about making the best decision given the
available information and the agent's goals.
15
16
8
8/31/2025
agents category
Model-based Reflex
Simple Reflex Agents Goal-based Agents Utility-based Agents Learning Agents
Agents
• Definition: These agents • Definition: These agents • Definition: These agents • Definition: These agents • Definition: These agents
act solely based on the maintain an internal have explicit goals and consider the expected learn from experience
current percept. They state that represents use search and planning utility of different actions and improve their
don't consider the past their knowledge of the techniques to find and choose the action performance over time.
or future. world. They use this actions that will achieve that maximizes their • Components:
• Example: A thermostat model to predict the their goals. expected utility. • Learning Element:
that turns on the heater future and make • Example: A chess- • Example: A Responsible for making
when the temperature decisions. playing program that recommendation system improvements.
drops below a certain • Example: A self-driving uses a search algorithm that suggests products • Performance
threshold. car that uses a map to to find the best move. based on a user's Element: Selects
• Limitations: Simple navigate and avoid • Advantages: Goal-based preferences and past external actions.
reflex agents are limited obstacles. agents can plan ahead purchases.
• Critic Element:
in their ability to handle • Advantages: Model- and make strategic • Advantages: Utility- Provides feedback on
complex environments. based agents can handle decisions. based agents can handle how the agent is doing.
They can only react to dynamic environments complex environments
• Problem Generator:
immediate stimuli. and make more informed with uncertain
Suggests actions to
decisions. outcomes.
explore new parts of
the problem space.
• Example: A machine
learning model that
learns to recognize
patterns in data.
17
Types of Search
18
9
8/31/2025
19
20
10
8/31/2025
DEPTH
FIRST
SEARCH
(DFS)
21
22
11
8/31/2025
BREADTH-FIRST SEARCH
(BFS)
23
BREADTH-
FIRST
SEARCH
(BFS)
24
12
8/31/2025
25
26
13
8/31/2025
Informed Search
Algorithms
• the algorithms have
information on the goal
state, which helps in more
efficient searching. This
information is obtained by
something called a
heuristic.
1. Greedy Search
2. A*
28
14
8/31/2025
GREEDY SEARCH
29
GREEDY
SEARCH
30
15
8/31/2025
A*
31
A* Search
Definition: An informed search algorithm that uses both the cost to reach a node (g(n)) and a heuristic estimate to the goal (h(n)) to select the next
node to expand.
Evaluation Function:
• f(n)=g(n)+h(n) where
• g(n) = cost from start to node n
• h(n) = estimated cost from n to goal
Basic Steps
1. Initialize an open list (priority queue) with the start node, where f(start) = h(start).
2. While open list is not empty:
• Remove node n with lowest f(n).
• If n is the goal, reconstruct path and return.
• Otherwise, generate successors, compute g and h for each, set f = g + h, and add to open list (or update if a better path is found).
3. Maintain a closed list to avoid re-expanding nodes.
Advantages
• Optimality: Finds the least-cost path if the heuristic h(n) is admissible (never overestimates) and consistent.
• Efficiency: Explores fewer nodes than uninformed algorithms by focusing on promising paths.
• Flexibility: Heuristic can be tailored to the problem to improve performance.
Disadvantages
• Memory Intensive: Stores all generated nodes in memory (open and closed lists), which can be large.
• Heuristic Quality Dependent: Poor heuristics degrade performance toward that of Uniform-Cost Search.
• Can Be Slow
32
16