Unit 2 Ai
Unit 2 Ai
In the field of Artificial Intelligence (AI), an agent is an entity that perceives its environment
through sensors and acts upon that environment through actuators. The environment in which
an agent operates provides the context for its actions, influencing the agent’s design and
behavior.
Characteristics of Agents
1. Perception: The agent gathers information from its environment using sensors.
2. Action: The agent influences the environment through its actuators.
3. Autonomy: The agent operates independently, making decisions based on its
perception and goals.
Types of Agents
The environment where agents operate can vary widely and impacts the agent's design.
Environment Types
1. Fully Observable vs. Partially Observable: Determines if the agent has complete
access to the environment’s state.
2. Deterministic vs. Stochastic: Determines if actions lead to predictable outcomes.
3. Episodic vs. Sequential: Defines if actions are independent or interdependent over
time.
4. Static vs. Dynamic: Identifies if the environment changes while the agent is
deliberating.
5. Discrete vs. Continuous: Specifies if the environment’s states and actions are distinct
or continuous.
Problem-Solving Agents
Search problems are central to problem-solving agents. They involve finding a sequence of
actions that leads to a goal state.
Formulating Problems
Key Considerations
Example Problems
Search Algorithms
1. Breadth-First Search (BFS): Explores all nodes at the current depth before going
deeper.
2. Depth-First Search (DFS): Explores as far as possible along each branch before
backtracking.
3. Uniform-Cost Search: Expands the node with the lowest path cost first.
1. Greedy Best-First Search: Uses a heuristic to estimate the distance to the goal.
2. A* Search:** Combines the actual cost to a node with the estimated cost to the goal.
Conclusion
Understanding intelligent agents and their problem-solving capabilities forms the foundation
of Artificial Intelligence. By exploring the interaction between agents and their environments,
formulating problems, and employing search algorithms, we can design systems capable of
solving complex, real-world challenges effectively.