Artificial Intelligence_Notes
Artificial Intelligence_Notes
Problem-solving agents:
Problem-solving agents in AI are entities that aim to find solutions to specific problems by
considering possible actions and their consequences. These agents typically have a set of states
representing the problem space and a set of actions that can transition between these states. The
goal of the agent is to reach a state that satisfies predefined criteria, often referred to as the goal
state.
Well-defined problems & solutions:
Well-defined problems in AI have clear initial states, goal states, and a set of allowable actions
or operators that can transition the agent from one state to another. The solutions to these
problems are sequences of actions that transform the initial state into a goal state.
Formulating problems:
Formulating a problem involves defining the initial state, goal state, and allowable actions in a
way that allows the problem-solving agent to search for solutions effectively. This step often
requires abstracting real-world problems into a formal problem space with well-defined states
and actions.
Searching for solution:
Searching for a solution involves systematically exploring the problem space to find a sequence
of actions that lead from the initial state to the goal state. This process typically involves
generating and evaluating potential solutions based on their feasibility and optimality.
Uninformed search strategies:
Uninformed search strategies are search algorithms that do not utilize domain-specific
knowledge about the problem space and instead rely on exploring the search space
systematically. Some common uninformed search strategies include:
Breadth-First Search (BFS): Expands the shallowest unexpanded node in the search tree,
ensuring that nodes closer to the root are explored first.
Depth-First Search (DFS): Expands the deepest unexpanded node in the search tree, exploring
as far as possible along each branch before backtracking.
Depth-Limited Search (DLS): Similar to DFS but limits the depth of exploration to prevent
infinite loops or excessive memory usage.
Iterative Deepening Depth-First Search (IDDFS): Repeatedly performs DFS with increasing
depth limits until the goal is found, combining the advantages of DFS with the completeness
of BFS.
Bidirectional Search: Simultaneously explores the search space from both the initial and goal
states, aiming to meet in the middle to find a solution more efficiently.
These uninformed search strategies provide different trade-offs in terms of time complexity,
space complexity, completeness, and optimality, allowing problem-solving agents to adapt to
various problem domains and constraints.
Knowledge-based agents:
Knowledge-based agents in AI operate by reasoning about a base of knowledge to make
decisions or take actions. These agents typically consist of:
Knowledge Base: A repository of declarative knowledge about the world, often represented
using formal logic.
Inference Mechanism: Algorithms or reasoning procedures that derive new knowledge or make
deductions from the existing knowledge base.
Action Selection: A mechanism for selecting actions based on the conclusions derived from the
knowledge base and inference process.
Knowledge-based agents are commonly used in domains where explicit, structured knowledge
about the environment is available, such as expert systems and certain types of planning
problems.
The Wumpus World as an example world:
The Wumpus World is a classic example problem used in AI to illustrate logical reasoning and
decision-making in uncertain and dynamic environments. In the Wumpus World:
The agent navigates through a grid-based environment with pits, a Wumpus (a dangerous
creature), and gold.
The agent's objective is to find the gold and return to the starting point while avoiding falling
into pits or encountering the Wumpus.
The agent can sense nearby hazards and make deductions based on these sensory inputs to infer
the presence of dangers or rewards in adjacent cells.
Logical reasoning is essential for the agent to make decisions about which actions to take based
on its current knowledge and sensory inputs.
Logic: Propositional logic:
Propositional logic, also known as sentential logic, is a formal system for representing and
reasoning about propositions or statements. In propositional logic:
Propositions are atomic statements that can be either true or false.
Logical operators such as AND, OR, NOT, IMPLICATION, and BICONDITIONAL are used
to combine propositions and form compound statements.
Inference rules and reasoning patterns are used to derive conclusions from given premises using
logical deduction.
Reasoning patterns in propositional logic:
Reasoning in propositional logic involves various patterns or forms of inference, including:
Modus Ponens: If P implies Q and P is true, then Q must be true.