Unit 3
Unit 3
INTELLIGENCE
UNIT - 3
[email protected]
Knowledge Representation and Reasoning
• Expressiveness:
• While powerful, FOL may struggle with expressing certain types of
knowledge, such as uncertainty or default reasoning.
• 1. Resolution:
• Definition:
• Resolution is a fundamental inference rule in logic, commonly used in automated theorem
proving and knowledge representation.
• It is specifically associated with first-order logic (FOL).
• Objective:
• The primary goal of resolution is to derive new clauses by resolving two clauses that contain
complementary literals (one positive and one negative).
• The process continues iteratively until a contradiction is reached or no more resolutions are
possible.
• Process:
• Convert the knowledge base into Conjunctive Normal Form (CNF), a standard form suitable
for resolution.
• Apply the resolution rule iteratively, eliminating complementary literals and combining the
remaining literals from two clauses.
• The goal is often resolution refutation, where a contradiction implies the falsehood of the
original statement.
• Use Case:
• Resolution is commonly used in automated reasoning systems, theorem provers, and logic
programming languages like Prolog.
• 2. Chaining:
• Definition:
• Chaining, or rule chaining, is a method of reasoning that involves applying a
sequence of rules to draw conclusions or make inferences.
• It is often associated with rule-based systems and forward/backward chaining.
• Objective:
• The goal of chaining is to start with a set of initial facts and use a set of rules to infer
new facts or conclusions.
• Process:
• Forward Chaining:
• Start with known facts and apply rules to derive new facts.
• Continue this process until the desired conclusion is reached or no more rules
can be applied.
• Backward Chaining:
• Start with a goal or desired conclusion.
• Work backward by applying rules in reverse to find the supporting facts needed
to satisfy the goal.
• Use Case:
• Chaining is often used in rule-based expert systems where knowledge is represented
as a set of rules with conditions and actions.
• Comparison:
• Nature:
• Resolution is a mechanism for logical deduction, often used to prove theorems or
refute statements.
• Chaining is a reasoning strategy that involves applying rules sequentially to reach
a goal.
• Application:
• Resolution is commonly used in theorem proving and logic programming.
• Chaining is prevalent in rule-based expert systems and knowledge-based systems.
• Direction:
• Resolution can be applied in any direction (forward or backward) depending on
the specific context.
• Chaining is explicitly associated with both forward chaining and backward
chaining.
• Termination:
• Resolution may terminate when a contradiction is reached or no more resolutions
are possible.
• Chaining terminates when the desired goal is achieved or no more rules can be
applied.
forward chaining and backward chaining
• 1. Forward Chaining:
• Forward chaining, also known as data-driven or goal-driven reasoning, starts
with the available data and uses rules to infer new conclusions.
• The process is driven by the data and continues until a goal is reached.
• Process:
• Initialization:
• Begin with the available facts or data.
• Rule Application:
• Apply rules to the known facts to infer new facts.
• Continue this process iteratively.
• Goal Checking:
• Check if the desired goal or conclusion has been reached.
• If the goal is not achieved, continue applying rules.
• Example:
• Consider an expert system for medical diagnosis. Start with
the patient's symptoms, apply rules based on medical
knowledge, and iteratively infer possible diseases until a
diagnosis is reached.
• Advantages:
• Well-suited for problems where the initial data is available,
and the system needs to work towards a goal.
• Can be more efficient for problems with a large number of
possible conclusions.
• Disadvantages:
• May generate a large number of intermediate conclusions.
• May not be efficient if the goal is not reachable from the
available data.
• 2. Backward Chaining:
• Definition:
• Backward chaining, also known as goal-driven or query-driven
reasoning, starts with a goal or query and works backward to find the
supporting evidence or facts.
• The process is driven by the goal, and it aims to find the conditions
under which the goal can be satisfied.
• Process:
• Goal Specification:
• Start with the goal or conclusion that needs to be satisfied.
• Rule Application:
• Apply rules in reverse to find the evidence or facts needed to satisfy
the goal.
• Continue this process iteratively until reaching known facts.
• Example:
• In the same medical diagnosis system, start with the goal of
identifying the disease. Apply rules backward to find the
symptoms that lead to the diagnosis.
• Advantages:
• Well-suited for problems where the desired goal is known,
and the system needs to determine the supporting evidence.
• More focused and can be efficient for problems with a clear
goal.
• Disadvantages:
• May explore unnecessary paths if the goal is not achievable.
• May not be optimal for problems with a large number of
potential goals.
• Comparison:
• Direction:
• Forward chaining starts with data and moves toward goals.
• Backward chaining starts with goals and works backward to
data.
• Efficiency:
• Forward chaining may be more efficient when the initial data
is abundant.
• Backward chaining may be more efficient when the goal is
known, and the system needs to find the evidence.
• Application:
• Forward chaining is used when the system needs to discover
consequences or outcomes.
• Backward chaining is used when the system needs to find the
causes or evidence.
Utility theory and Probabilistic reasonin
• Utility Theory:
• Definition: Utility theory is a framework used
in decision theory to model and quantify
individuals' preferences over different
outcomes or states of the world. It provides a
systematic way of making decisions under
uncertainty by assigning numerical values,
called utilities, to different possible outcomes.
• Key Concepts:
• Utility Function:
• A utility function is a mathematical function that assigns a numerical value
(utility) to each possible outcome or state of the world.
• The utility function reflects an individual's preferences and measures the
desirability of different outcomes.
• Decision Making:
• Decision makers aim to maximize expected utility when facing uncertainty.
• Expected utility is computed by weighing the utility of each possible outcome by
its probability.
• Risk Aversion and Risk Seeking:
• Individuals may exhibit different attitudes toward risk. Risk-averse individuals
prefer a certain outcome with a lower utility over a risky outcome with a higher
expected utility.
• Risk-seeking individuals may prefer a risky outcome with a higher expected
utility.
• Trade-offs:
• Utility theory allows decision makers to make trade-offs between risks and
rewards, helping them make rational decisions based on their preferences.
• Probabilistic Reasoning: