1 Foundations Of Artificial Intelligence

Artificial Intelligence · Unit 1

Foundations of Artificial Intelligence

Exam-focused notes for Foundations of Artificial Intelligence (Artificial Intelligence, BIT252): what the TU syllabus asks and how it has actually been tested, with 9 solved past questions from this unit.

Foundations of Artificial Intelligence in short

Artificial intelligence is the study of making machines do tasks that need human intelligence. This chapter explains what AI is, how we test it, and how intelligent agents are described and built.

Foundations of Artificial Intelligence: notes

Definition and scope of artificial intelligence

Artificial intelligence (AI) is the branch of computer science that builds machines able to think, learn, reason, and act in a useful way. The term was introduced by John McCarthy in 1956.

AI is described in four ways, depending on what we want the machine to copy:

ApproachMeaning
Thinking humanlyCopy the human thought process (cognitive science)
Acting humanlyBehave so that people cannot tell it from a human (Turing test)
Thinking rationallyReason by the laws of logic
Acting rationallyDo the best action for the goal (rational agent)

The modern view is acting rationally. A machine is intelligent if it picks the action that gives the best expected result.

The scope of AI is wide. It includes problem solving, search, knowledge representation, reasoning, planning, learning, vision, speech, language processing, and robotics.

Turing test and machine intelligence

Alan Turing proposed the Turing test in 1950. A human judge talks by text with two hidden parties, one human and one machine. If the judge cannot tell which is the machine, the machine passes.

A machine needs these abilities to pass:

  • Natural language processing to talk in English or another language.
  • Knowledge representation to store what it knows and hears.
  • Automated reasoning to answer questions and draw new conclusions.
  • Machine learning to adapt and find new patterns.

The total Turing test adds a video signal and objects to handle. So the machine also needs computer vision and robotics.

Is the test enough? Many people say no. A program can fool a judge with tricks and canned replies without understanding anything. John Searle's Chinese room argument says that following rules to manipulate symbols is not real understanding. The test also measures only human-like behaviour, not intelligence in general. A very smart machine that does not act like a human would fail.

What this unit covers

  • Definition and scope of artificial intelligence
  • Turing test and machine intelligence
  • Intelligent agents and rational agents
  • PEAS framework for agent description
  • Agent types and architectures
  • Applications of artificial intelligence

Turing test and machine intelligence

2082 · 5 marks

What is artificial intelligence? State Turing Test. [5]

Artificial Intelligence (AI) is the branch of computer science that deals with the design and development of computer systems capable of performing tasks that normally require human intelligence. These tasks include: - Reasoning and problem solving - Learning from experience - Understanding natur...

Open this answer on its own page →

2080 · 10 marks

List the properties that a machine must have to pass the Turing Test.Describe the ambiguities in each step in Natural Language Processing.[4+6]

Note: The reference notes did not contain material for this topic. The answer below is based on standard AI/NLP curriculum content as taught in BSc CSIT programs, consistent with Russell & Norvig's Artificial Intelligence: A Modern Approach, which is the standard text for this course. --- The Tur...

Open this answer on its own page →

0 · 5 marks

Does Turing test is sufficient to test the intelligence of machine? Justify your opinion. [5]

The Turing Test, proposed by Alan Turing in 1950, states that a machine can be considered intelligent if a human interrogator, communicating through text, cannot distinguish the machine's responses from those of a human. If the machine successfully fools the interrogator, it is deemed "intelligen...

Open this answer on its own page →

PEAS framework for agent description

2082 · 5 marks

What is intelligent agent? Construct PEAS framework a particle picking robot. [1+4]

Show solved answer

Intelligent Agent and PEAS Framework for a Particle Picking Robot

What is an Intelligent Agent? [1 mark]

An intelligent agent is anything that can perceive its environment through sensors and act upon that environment through actuators in order to achieve its goals. An intelligent agent takes the best possible action based on its percepts, built-in knowledge, and past experience to maximize its performance measure.


PEAS Framework [4 marks]

PEAS stands for:

  • P - Performance Measure
  • E - Environment
  • A - Actuators
  • S - Sensors

PEAS is used to describe the task environment of an intelligent agent.


PEAS Framework for a Particle Picking Robot

PEAS ComponentDescription
Performance MeasureNumber of particles picked per unit time, cleanliness of the surface, energy consumed, time taken to complete the task, area covered, no damage to the surface
EnvironmentFactory floor / surface area, particles of various sizes and types scattered on the surface, obstacles (machinery, walls), lighting conditions, possibly other robots working simultaneously
ActuatorsRobotic arm / gripper to pick particles, wheels or legs for movement, suction mechanism, deposit bin/container, display panel for status
SensorsCamera / vision sensor to detect particles, infrared or proximity sensors to detect obstacles, touch/pressure sensors on gripper, position/GPS sensor to track location, dust/particle sensors

Summary Table

Agent:  Particle Picking Robot
+------------------+------------------------------------------+
| P (Performance)  | Particles picked, surface cleanliness,   |
|                  | energy efficiency, time efficiency        |
+------------------+------------------------------------------+
| E (Environment)  | Factory floor, scattered particles,       |
|                  | obstacles, varying lighting               |
+------------------+------------------------------------------+
| A (Actuators)    | Robotic arm, gripper, wheels, suction,    |
|                  | deposit container                         |
+------------------+------------------------------------------+
| S (Sensors)      | Camera, proximity sensor, touch sensor,   |
|                  | position sensor, particle detector        |
+------------------+------------------------------------------+

Key Points to Remember

  • The Performance Measure evaluates how well the agent is doing its job.
  • The Environment defines where the agent operates.
  • Actuators are the means by which the agent affects the environment.
  • Sensors are the means by which the agent perceives the environment.
Open this answer on its own page →

2080 · 10 marks

Define agent. How do you describe PEAS for an agent? Describe the different types of environment with example.[10]

Show solved answer

Agent, PEAS, and Types of Environment


1. Definition of Agent (2 marks)

An agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators.

"An agent is an entity that perceives its environment through sensors and acts upon that environment through actuators." -- Russell & Norvig

  • A human agent has eyes, ears (sensors) and hands, legs, mouth (actuators).
  • A software agent (robot, game-playing program) has file inputs, network packets (sensors) and screen output, motors (actuators).

The agent's behavior is described by an agent function that maps any given percept sequence to an action:

f : P* --> A

where P* is the set of all possible percept sequences and A is the set of actions.


2. PEAS Description (3 marks)

PEAS stands for:

LetterStands ForMeaning
PPerformance MeasureCriterion that evaluates the agent's success
EEnvironmentThe external world the agent interacts with
AActuatorsThe mechanisms the agent uses to act
SSensorsThe mechanisms the agent uses to perceive

PEAS is used to specify the task environment of an agent before designing it.

Example 1: Automated Taxi Driver

PEAS ComponentDescription
PerformanceSafe trip, fast, legal, comfortable, maximize profit
EnvironmentRoads, traffic, pedestrians, customers, weather
ActuatorsSteering wheel, accelerator, brake, horn, display
SensorsCameras, GPS, speedometer, sonar, keyboard input

Example 2: Medical Diagnosis System

PEAS ComponentDescription
PerformanceCorrect diagnosis, minimize cost, patient health
EnvironmentPatient, hospital, medical staff
ActuatorsDisplay diagnosis, order tests, prescribe treatment
SensorsKeyboard input (symptoms), lab reports

3. Types of Environment (5 marks)

The environment in which an agent operates can be classified along several dimensions:


3.1 Fully Observable vs. Partially Observable

  • Fully Observable: The agent's sensors give access to the complete state of the environment at each point in time.
    • Example: Chess game (entire board is visible)
  • Partially Observable: The agent cannot observe the full state due to noisy or limited sensors.
    • Example: Poker game (opponent's cards are hidden), self-driving car (blind spots)

3.2 Single Agent vs. Multi-Agent

  • Single Agent: Only one agent operates in the environment.
    • Example: Crossword puzzle solver
  • Multi-Agent: Multiple agents interact in the same environment.
    • Competitive: Agents compete (e.g., Chess -- one agent wins, other loses)
    • Cooperative: Agents work together (e.g., multi-robot warehouse system)

3.3 Deterministic vs. Stochastic

  • Deterministic: The next state of the environment is completely determined by the current state and the agent's action. No uncertainty.
    • Example: Chess
  • Stochastic: The next state is not fully determined; there is uncertainty.
    • Example: Taxi driving (uncertain traffic), card games

Note: If the environment is deterministic except for the actions of other agents, it is called strategic.


3.4 Episodic vs. Sequential

  • Episodic: The agent's experience is divided into independent episodes. Each episode consists of perceiving and acting; the next episode does not depend on previous ones.
    • Example: Spam email classifier (each email is independent)
  • Sequential: The current decision affects future decisions. Past actions matter.
    • Example: Chess, taxi driving

3.5 Static vs. Dynamic

  • Static: The environment does not change while the agent is deliberating.
    • Example: Crossword puzzle
  • Dynamic: The environment can change while the agent is thinking.
    • Example: Taxi driving, stock market
  • Semi-dynamic: The environment does not change but the agent's performance score changes with time.
    • Example: Chess with a clock

3.6 Discrete vs. Continuous

  • Discrete: A finite number of distinct states, percepts, and actions.
    • Example: Chess (finite board positions)
  • Continuous: States, time, and actions are continuous.
    • Example: Self-driving car (continuous speed, position)

3.7 Known vs. Unknown

  • Known: The agent knows the rules/outcomes of all actions.
    • Example: Chess (rules are known)
  • Unknown: The agent does not know how the environment works and must learn.
    • Example: A new video game with unknown rules

Summary Table

DimensionType 1Type 2Example
ObservabilityFully ObservablePartially ObservableChess vs. Poker
AgentsSingle AgentMulti-AgentPuzzle vs. Chess
OutcomeDeterministicStochasticChess vs. Taxi
TimeEpisodicSequentialSpam filter vs. Chess
ChangeStaticDynamicCrossword vs. Taxi
StateDiscreteContinuousChess vs. Self-driving car
KnowledgeKnownUnknownChess vs. New game

Note: The real world is generally partially observable, stochastic, sequential, dynamic, continuous, and multi-agent -- making it the most challenging type of environment for an AI agent.

Open this answer on its own page →

0 · 10 marks

List the PEAS description for autonomous taxi driving system. Describe the different types of environments for agent with example.[10]

--- PEAS stands for Performance Measure, Environment, Actuators, and Sensors. It is a framework used to describe the task environment of an intelligent agent. Component Description ------------------------ P - Performance Measure Safe driving, reaching destination on time, obeying traffic rules, ...

Open this answer on its own page →

Agent types and architectures

2079 · 5 marks

Differentiate between goal based agent and utility based agent. [5]

--- A goal-based agent is an agent that acts to achieve a specific goal state. It uses information about its current state and a defined goal to decide which actions to take. - The agent knows what goal to achieve - Actions are evaluated as either achieving the goal or not (binary: success or fai...

Open this answer on its own page →

2080.2 · 5 marks

Distinguish between simple reflex agent and model based agent. [5]

--- A simple reflex agent selects actions based only on the current percept, ignoring the entire percept history. It works on a simple condition-action rule: If condition then action - It has no memory of past states. - It assumes the environment is fully observable. - It cannot handle partially ...

Open this answer on its own page →

Intelligent agents and rational agents

2080.2 · 5 marks

What is rational agent? List some applications of AI. [5]

A rational agent is an entity that perceives its environment through sensors and acts upon that environment through actuators in order to maximize its expected performance measure. In other words, a rational agent always selects an action that is expected to maximize its performance, based on: - ...

Open this answer on its own page →