AI Chap1 J2 J3
AI Chap1 J2 J3
AI Chap1 J2 J3
• Aristotle was one of the first to attempt to codify "right thinking," that is,
irrefutable reasoning processes
– correct conclusions given correct premises
• For example,
Socrates is a man;
philosophy
– materialism, which holds that all the world (including the brain
and mind) operate according to physical law
– Other argue that the mind has a physical basis, but denies that it
can be explained by a reduction to ordinary physical processes
• Mathematics
• Psychology
• linguistic
• Computer science
• Software agents:
– also called a softbot (software robot) which operates within the
confines of the computer system or network.
– It is an agent that interacts with a software environment by
issuing commands and interpreting the environments feedback.
– Softbots effectors are commands (e.g. mv or compress in
UNIX shell) to change the external environments state.
– E.g. mail handling agent, information filtering agent
• Physical agents
– are robots that have the ability to move and act in the
physical world
– can perceive and manipulate objects in that world, possibly
for responding to new perceptions.
– A human agent has eyes, ears, and other organs for sensors, and
hands, legs, mouth, and other body parts for effectors.
Rational Agent
– The right action is the one that will cause the agent to be most
successful.
sonar.
Architecture
– makes the percepts from the sensors available to the program,
– runs the program
– and feeds the program's action choices to the effectors as they are
generated.
• The design of an agent is complex because of
3. Goal-based agents
4. Utility-based agents
5. Learning agents
• A drone that has a goal and also considers the costs and benefits
of its actions
• A tourist that wants to enjoy the journey and the destination2.
• A learning agent in AI is the type of agent which can learn from its
• It starts to act with basic knowledge and then able to act and adapt
2. Static vs Dynamic
3. Discrete vs Continuous
4. Deterministic vs Stochastic
5. Single-agent vs Multi-agent
6. Episodic vs sequential
7. Known vs Unknown
8. Accessible vs Inaccessible
11/20/2024 Tariku Birhanu 60
Fully observable vs Partially Observable
Example:
• Problem-solving agent
• A kind of goal-based agent
• It solves problem by
• finding sequences of actions that lead to desirable states (goals)
• To solve a problem,
• the first step is the goal formulation, based on the current situation
• Defined as
• taking a problem
• and returns a solution
• Design of an agent
• “Formulate, search, execute”
11/20/2024 Tariku Birhanu 82
Well-defined problems and solutions
• Optimal solution
• the solution with lowest path cost among all solutions
11/20/2024 Tariku Birhanu 87
Formulating problems
• Besides the four components for problem formulation
• anything else?
• Abstraction
• the process to take out the irrelevant information
• leave the most essential parts to the description of the states
• problem formulation
• what are the possible states of the world relevant for solving
the problem
• what information is accessible to the agent
• how can the agent progress from state to state
• Formulate goal:
• be in Bucharest
• Formulate problem:
• states: various cities
• actions: drive between cities
• Find solution:
• sequence of cities, e.g., Arad, Sibiu, Fagaras, Bucharest
• States:
• a state description specifies the location of each of the eight tiles
and blank in one of the nine squares
• Initial State:
• Any state in state space
• Successor function:
• the blank moves Left, Right, Up, or Down
• Goal test:
• current state matches the goal configuration
• Path cost:
• each step costs 1, so the path cost is just the length of the path
11/20/2024 Tariku Birhanu 99
The 8-queens
• Initial state
• The root of the search tree is a search node
• Expanding
• applying successor function to the current state
• thereby generating a new set of states
• leaf nodes
• the states having no successors
Fringe : Set of search nodes that have not been expanded yet.
• Important:
• state space ≠ search tree
• State space
• has unique states {A, B}
• while a search tree may have cyclic paths: A-B-A-B-A-B- …
• Tradeoff:
• (long time, optimal solution with least g)
• vs. (shorter time, solution with slightly larger path cost g)
• Uninformed search
C E E B B F
11
D F B F C E A C G
14 17 15 15 13
G C G F
19 19 17
G 25
11/20/2024 Tariku Birhanu 129
Iterative deepening search
B D A E
C E E B B F
11
D F B F C E A C G
14 17 15 15 13
G C G F
19 19 17
G 25
11/20/2024 Tariku Birhanu 135
11/20/2024 Tariku Birhanu 136