Assignment AI 3043 BSCS 6th E
Assignment AI 3043 BSCS 6th E
Name:
Ghulam Mujtaba
Roll No=3043 Class: BSCS 6th E
Assignment: Mid-Term
Submitted To:
Rationality
Rationality is:
Performance measuring success
Agents prior knowledge of environment
Actions that agent can perform
Agent’s percept sequence to date
Rational is different from omniscience
Rational Agent
For each possible percept sequence, a rational agent should select an action that is expected to
maximize its performance measure, given the evidence provided by the percept sequence and
whatever built-in knowledge the agent has.
Autonomy in Agents
The autonomy of an agent is the extent to which its behavior is determined by its own
experience, rather than knowledge of designer.
Example: baby learning to crawl
Environment types
i. Fully observable (vs. partially observable)
ii. Deterministic (vs. stochastic)
iii. Episodic (vs. sequential)
iv. Static (vs. dynamic)
v. Discrete (vs. continuous)
vi. Single agent (vs. multiagent)
Agent types
1. Simple reflex agents
2. Reflex agents with state/model
3. Goal-based agents
4. Utility-based agents
3) Goal-based agents
Focuses only on reaching the goal set
Agent takes decision based on how far it is
currently from the goal state
Every action is taken to minimize distance To
gold state
More flexible agent
4) Utility-based agents
Agents are more concern about the utility for
each state
Act based not only on goals but also the best
way to achieve goal
Useful when there are multiple possible
alternatives and goal has to choose in order to
perform best action
Uninformed Search:
While searching you have no clue whether one non-goal state is better than any other. Your
search is blind.
Breadth-first search
Expand shallowest unexpanded node
Implementation:
First-in-First-out (FIFO) queue, i.e., new successors go at end of the queue.
Uniform-cost search
Breadth-first is only optimal if step costs is
increasing with depth (e.g. constant).
Uniform-cost Search: Expand node with
smallest path cost g(n).
Properties:
Implementation: fringe = queue ordered by path cost Equivalent to breadth-first if all
step costs all equal.
Complete? Yes, if step cost ≥ ε (otherwise it can get stuck in infinite loops)
Time? # of nodes with path cost ≤ cost of optimal solution.
Space? # of nodes on paths with path cost ≤ cost of optimal solution.
Optimal? Yes, for any step cost.
Depth-first search
Expand deepest unexpanded node
Implementation:
Last In First Out (LIPO) queue, i.e., put successors at
front
Bidirectional Search
Idea
simultaneously search forward from S and
backwards from G
stop when both “meet in the middle”
need to keep track of the intersection of 2 open sets
of nodes
What does searching backwards from G mean
need a way to specify the predecessors of G
this can be difficult,
e.g., predecessors of checkmate in chess?
what if there are multiple goal states?
what if there is only a goal test, no explicit list?