CSC 494 · Introduction to Artificial Intelligence
Our notes
2 min readAgents
An agent perceives its environment through sensors and acts on it through actuators. A rational agent chooses the action expected to maximise its performance measure, given its percepts and knowledge.
Examples: a robot vacuum (sensors: bump, dirt; actuators: wheels, brush), a chess program, a spam filter.
PEAS description
| Self-driving taxi | Medical diagnosis system | |
|---|---|---|
| Performance | safe, fast, legal, comfortable | correct diagnosis, low cost |
| Environment | roads, traffic, pedestrians | patient, hospital |
| Actuators | steering, brakes, horn | questions, test orders, reports |
| Sensors | cameras, radar, GPS | symptoms entered, test results |
Environment types
Fully or partially observable; deterministic or stochastic; episodic or sequential; static or dynamic; discrete or continuous; single or multi-agent. Chess is fully observable, deterministic, sequential, static (without a clock), discrete, multi-agent. Driving is partially observable, stochastic, dynamic, continuous.
Kinds of agents
- Simple reflex: condition-action rules on the current percept.
- Model-based reflex: keeps an internal state of the world.
- Goal-based: plans actions to reach a goal (search).
- Utility-based: chooses the best among many outcomes.
- Learning agents: improve with experience.
Problem formulation
To solve a problem by search, define:
- Initial state.
- Actions available in each state.
- Transition model: the result of each action.
- Goal test.
- Path cost (sum of step costs).
The state space is all states reachable from the initial state; a solution is a path to a goal; an optimal solution has the least cost.
Worked example: the 8-puzzle
- State: positions of eight tiles and the blank on a 3 × 3 board.
- Actions: move the blank up, down, left, right.
- Goal: tiles in order.
- Path cost: 1 per move.
- Reachable states: 9!/2 = 181,440.
Worked example: water jugs
Jugs of 4 L and 3 L, no marks; get exactly 2 L in the 4 L jug.
- State (x, y) litres in each; start (0, 0).
- One solution: (0,0) → (0,3) → (3,0) → (3,3) → (4,2) → (0,2) → (2,0). Six steps.
Exams usually ask
- Define an agent and give PEAS for a given task.
- Classify environments.
- Formulate a problem (8-puzzle, route finding, water jugs) as a search problem.
Common mistake
Leaving out the path cost or goal test when formulating a problem. All five parts are needed.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Intelligent agent
(opens en.wikipedia.org in a new tab)
Wikipedia, Intelligent agent, CC BY-SA 4.0 · licence
-
State-space search
(opens en.wikipedia.org in a new tab)
Wikipedia, State-space search, CC BY-SA 4.0 · licence
-
NPTEL: Artificial Intelligence: Search Methods for Problem Solving (IIT Madras, whole course)
Prof. Deepak Khemani: state space search, DFS and BFS, heuristic search, A*, problem decomposition, game playing with minimax and alpha-beta. Video lectures, many hours in all: watch on Wi-Fi where you can.
(opens nptel.ac.in in a new tab)
NPTEL, NPTEL: Artificial Intelligence: Search Methods for Problem Solving (IIT Madras, whole course), CC BY-NC-SA 4.0 · licence
Watch
-
Best pick Problem Formulation-Artificial Intelligence-Unit-1-Problem Solving
18 min · ≈ 81 MB · about ₦45
(opens youtube.com in a new tab)
-
Agents in AI | Part-1/2 | AI | Artificial Intelligence | Lec - 04 | Bhanu Priya
12 min · ≈ 54 MB · about ₦30
(opens youtube.com in a new tab)
-
AI Agents, Clearly Explained
10 min · ≈ 45 MB · about ₦25
(opens youtube.com in a new tab)
-
Chapter 3 – Problem-Solving Agents in Artificial Intelligence | 3A
8 min · ≈ 36 MB · about ₦20
(opens youtube.com in a new tab)
-
Artificial Intelligence: Problem Solving Agent
14 min · ≈ 63 MB · about ₦35
(opens youtube.com in a new tab)
-
Lecture - 2 Intelligent Agents
56 min · ≈ 252 MB · about ₦142
(opens youtube.com in a new tab)
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.