Docsity

Agent types in artificial intelligence, Lecture notes of Artificial Intelligence

Partial preview of the text

Download Agent types in artificial intelligence and more Lecture notes Artificial Intelligence in PDF only on Docsity!

CS 401

Artificial Intelligence

Lecture # 03 31 January 2019 Spring 2019 FAST – NUCES, Faisalabad Campus

Zain Iqbal

[email protected]

Today’sTopics  Environment types

  • Agent Types ◦Table-Lookup agents ◦Simple reflex agents ◦Model-based reflex agents ◦Goal-based agents ◦Utility-based agents ◦Learning agents

Environment types Fully observable vs. partially observable:

  • An environment is fully observable if an agent's sensors give it access to the complete state of the environment at each point in time. Fully observable environments are convenient, because the agent need not maintain any internal state to keep track of the world An environment might be partially observable because of noisy and inaccurate sensors or because parts of the state are simply missing from the sensor data Examples: vacuum cleaner with local dirt sensor, taxi driver

Environment types Deterministic vs. stochastic:

  • The environment is deterministic if the next state of the environment is completely determined by the current state and the action executed by the agent. In principle, an agent need not worry about uncertainty in a fully observable, deterministic environment If the environment is partially observable then it could appear to be stochastic Examples: Vacuum world is deterministic while taxi driver is not If the environment is deterministic except for the actions of other agents, then the environment is strategic

Environment types Static vs. dynamic:

  • The environment is unchanged while an agent is deliberating. Static environments are easy to deal with because the agent need not keep looking at the world while it is deciding on the action or need it worry about the passage of time Dynamic environments continuously ask the agent what it wants to do The environment is semi-dynamic if the environment itself does not change with the passage of time but the agent's performance score does Examples: taxi driving is dynamic, chess when played with a clock is semi-dynamic, crossword puzzles are static

Environment types Discrete vs. continuous:

A limited number of distinct, clearly defined states, percepts and actions. Examples: Chess has finite number of discrete states, and has discrete set of percepts and actions. Taxi driving has continuous states, and actions Can we make chess continuous?

Environment types The distinction between known and unknown environment is not the same as between fully and partially observable environment It is quite possible for a know environment to partially observable e.g.: solitaire card game Conversely , an unknown environment can be fully observable e.g.: A new video game. Known vs. unknown:

Properties of task environment

Chess with a

clock

Chess without

a clock

Taxi

driving

Fully

observable

Yes Yes No

Deterministic Strategic Strategic No

Episodic No No No

Dynamic Semi No Yes

Single agent No No No

The environment type largely determines the agent design.

Agent Types

Table-lookup Agent

 Simplest possible agent function:

◦ All possible states and their optimal actions

specified by the designers in advance

This approach is doomed to failure

Agent types  Four basic kind of agent programs will be discussed: ◦ Simple reflex agents ◦ Model-based reflex agents ◦ Goal-based agents ◦ Utility-based agents  All these can be turned into learning agents.

Simple reflex agent

 Select action on the

basis of only the current

percept

 Large reduction in

possible percept/actions

situations

 Implemented through

condition-action rules e.g.if

dirty then suck,etc.

function REFLEX-VACUUM-AGENT([ location,status ]) returns an action if status = Dirty then return Suck else if location = A then return Right else if location = B then return Left Condition-action-rule

Model-based reflex agent

 To tackle partially

observable environments

(by maintaining internal

state)

 Over time update state

using world knowledge

◦ How world evolves? ◦ How do actions affect world?

Reflex + State

Model-based reflex agent