Ai Unit I
Ai Unit I
● Understanding AI's historical journey provides context for its current state
and future potential.
2. List & explain the categories of definition of AI ?
Ans:
● There are three main categories when it comes to defining AI:
● Utility-based agents:
1. Utility-based agents make decisions based on the expected utility of
different actions.
2. They evaluate the desirability or goodness of outcomes associated
with each action.
3. Advantages: These agents are flexible and can handle situations
where the consequences of actions are uncertain.
4. Disadvantages: Determining accurate utility values can be subjective
and challenging.
5. Diagram:
4. Explain thinking rationally & acting rationally approaches of AI.
Ans:
● Thinking Rationally:
1. This approach involves developing AI systems that follow logical
reasoning and rules to reach conclusions.
2. It's about creating systems that can deduce and infer based on a
given set of rules and knowledge.
3. Characteristics:
a. Thinking rationally entails making decisions based on a
well-defined set of principles.
b. It often involves symbolic representation of knowledge and
logical operations.
4. Example: Expert systems, which use a knowledge base of rules to
draw inferences and make decisions, are an example of thinking
rationally.
● Acting Rationally:
1. Acting rationally focuses on creating AI systems that make decisions
and take actions that lead to the best possible outcomes, given their
goals and the available information.
2. Characteristics:
a. This approach is more outcome-oriented.
b. The AI system may not necessarily follow human-like
reasoning processes but aims to achieve optimal results based
on its objectives.
3. Example: A rational agent in the field of game theory that makes
decisions to maximize its expected utility is an example of acting
rationally.
5. Explain agent Structure in Detail?
Ans:
● An agent can be anything that perceives its environment through sensors
and acts upon that environment through actuators.
● An Agent runs in the cycle of perceiving, thinking, and acting. An agent can
be:
1. Human-Agent: A human agent has eyes, ears, and other organs
which work for sensors and hand, legs, vocal tract work for
actuators.
2. Robotic Agent: A robotic agent can have cameras, infrared range
finder, NLP for sensors and various motors for actuators.
3. Software Agent: Software agent can have keystrokes, file contents as
sensory input and act on those inputs and display output on the
screen.
● Structure of an AI Agent:
1. Agent = Architecture + Agent program
2. Following are the main three terms involved in the structure of an AI
agent:
a. Architecture: Architecture is machinery that an AI agent
executes on.
b. Agent Function: Agent function is used to map a percept to an
action.
c. Agent program: Agent program is an implementation of agent
function.
3. The combination of these components forms the structure of an
agent.
4 5 6
7 8
2. Goal Configuration:
1 2 3
4 5 6
7 8
a. To solve the 8-Puzzle, you can perform a sequence of moves
such as swapping tiles with the empty space.
b. For example, one possible move might be to swap the tile '1'
with the empty space, resulting in the following configuration:
1 3
4 2 5
7 8 6
c. The goal is to find a sequence of moves that transforms the
initial configuration into the goal configuration.
d. The 8-Puzzle is often used as a problem in artificial
intelligence to explore search algorithms
e. heuristic search methods like A* search, to find the most
efficient solution.