Unification Algorithm
SRM Institute of Science and Technology
BTech Biotechnology
21CSC206T Artificial Intelligence
Shanmathi M
RA2311009020039 TEAM 16
Key terms you SHOULD know before we start:
1) Term:
Variable (eg: x,y,z)
Constant (eg: 3,hello,chocolate)
Function (eg: f(x), symptom(john,cold)
2)Substitution: replacing a variable with a term
parents(x,y)
x=John y=Emma
parents(John,Emma)
3)Unifier: It is the substitution which makes two expressions the same
For example
In our previous example:
parents(x,y)
x=John y=Emma this is the unifier
parents(John,Emma)
4)Most General Unifier: the simplest substitution that makes both the expressions
match
Example:
likes(x,music)
likes(y,music)
x=y
What is unification?
Process of making two logical expressions identical by determining a suitable
substitution of variables.
Expression 1: X + 2
Expression 2: 4 + 2
What value can you put in place of the letter so that expression 1 equals expression
2?
Expression 1: (x , 3 , y)
Expression 2: (2 , z , 5)
STEPS OF THE ALGORITHM:
1. Start with two expressions
2. Compare parts
3. Find substitutions
4. Apply substitutions
5. Repeat until both expressions match or fail
Use of Unification Algorithm:
● It is essential for automated reasoning, theorem proving, and inference
engines, enabling AI systems to derive new knowledge from existing facts
and rules.
● It is used in predicate logic to match variables with constants or other
variables, allowing AI to make logical deductions. This is widely applied in
knowledge representation, expert systems, and natural language
understanding.
How is Unification Algorithm used in AI?
Match facts with rules in logic programming (like Prolog)
Example:
fruits(apple,x)
fruits(apple,orange)
x=?
Perform reasoning and inference in expert systems
Example:
symptom(james,fever)
symptom(james,cough)
System infers flu!
Understand natural language by matching sentence structures (Natural
Language processing)
Example:
Subject + verb + object -> She eats apples.
She- subject eats- verb apple-object
Theorem proving (to match logical statements for proof)
Example:
p(y)=q(y)
p(hello)
y=hello (unification works here)
Therefore it is q(hello)
RULES FOR UNIFICATION:
1)Identical constants must match
Example:
“apple” = “apple” (valid unification)
“apple” ≠ “banana” (invalid unification)
2) Variables can be replace with other variables or constants in order to achieve
unification
Example:
If X = “red”
then color(X) equals color(“red”) making them identical
3)Function terms and the number of parts should match
f(a, X) = f(a, b)
Here X matches b (X=b)
Exp 1: f(x)
Exp 2: f(a,b)
Number of parts do not match!
Unification fails when
● f(x)
g(x)
Cannot unify f=g
● x=f(x)
infinite substitution loops fails too
Limitations
1)Handling infinite recursion:
In statements like x=f(x) unification is not possible
2)Complex expressions and Nested functions:
Unification becomes computationally intensive because the structure of the terms needs to
be matched at multiple levels.
3)Higher Order Logic Complexity:
Beyond first-order logic, unification becomes significantly more complex. Higher-order unification
involves variables that can represent functions, requiring advanced techniques that increase
computational overhead.
THANK YOU

More Related Content

PPTX
AI Unification.pptx
PPTX
Unification and Lifting
PPTX
22PCOAM11 Unit 3: Session 14 Inference and Unification.pptx
PPTX
AI_session 22 inference and unification.pptx
PDF
Ai lecture 11(unit03)
PDF
Compiler Construction | Lecture 9 | Constraint Resolution
PPT
chapter9.ppt
PDF
Unification and Anti-Unification Algorithm
AI Unification.pptx
Unification and Lifting
22PCOAM11 Unit 3: Session 14 Inference and Unification.pptx
AI_session 22 inference and unification.pptx
Ai lecture 11(unit03)
Compiler Construction | Lecture 9 | Constraint Resolution
chapter9.ppt
Unification and Anti-Unification Algorithm

Similar to Untitled presentation unification algorithm.pptx (17)

PDF
The Logical Burrito - pattern matching, term rewriting and unification
PPTX
Propositional logic(part 2)
PPTX
1004_theorem_proving_2018.pptx on the to
PPTX
AI3391 Artificial intelligence session 27 inference and unification.pptx
PDF
Declare Your Language: Constraint Resolution 1
PPT
Ch09.ppt dilfidsnpfpdsvklnvskv vdv;dlvd k;vsvdvk
PPTX
Knowledge Representation and Reasoning.pptx
PPTX
Inference in First-Order Logic
PPT
Predlogic
PDF
smtlecture.7
PPTX
Logic in Predicate and Propositional Logic
PPTX
Role of unification and realization in natural language generation
PPT
Logical Programming Paradigm for programming Languages.
PPTX
Resolution(decision)
PPT
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
PPT
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
PPTX
Jarrar: First Order Logic- Inference Methods
The Logical Burrito - pattern matching, term rewriting and unification
Propositional logic(part 2)
1004_theorem_proving_2018.pptx on the to
AI3391 Artificial intelligence session 27 inference and unification.pptx
Declare Your Language: Constraint Resolution 1
Ch09.ppt dilfidsnpfpdsvklnvskv vdv;dlvd k;vsvdvk
Knowledge Representation and Reasoning.pptx
Inference in First-Order Logic
Predlogic
smtlecture.7
Logic in Predicate and Propositional Logic
Role of unification and realization in natural language generation
Logical Programming Paradigm for programming Languages.
Resolution(decision)
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
Jarrar: First Order Logic- Inference Methods
Ad

Recently uploaded (20)

PDF
Introduction to MCP and A2A Protocols: Enabling Agent Communication
PDF
Data Virtualization in Action: Scaling APIs and Apps with FME
PDF
giants, standing on the shoulders of - by Daniel Stenberg
PDF
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
PDF
NewMind AI Weekly Chronicles – August ’25 Week IV
PDF
Co-training pseudo-labeling for text classification with support vector machi...
PDF
Connector Corner: Transform Unstructured Documents with Agentic Automation
PDF
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
PDF
Auditboard EB SOX Playbook 2023 edition.
PDF
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
PDF
EIS-Webinar-Regulated-Industries-2025-08.pdf
PDF
The AI Revolution in Customer Service - 2025
PDF
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
PPTX
MuleSoft-Compete-Deck for midddleware integrations
PDF
Rapid Prototyping: A lecture on prototyping techniques for interface design
PDF
Ensemble model-based arrhythmia classification with local interpretable model...
PPTX
Training Program for knowledge in solar cell and solar industry
PDF
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
PDF
Aug23rd - Mulesoft Community Workshop - Hyd, India.pdf
PDF
A hybrid framework for wild animal classification using fine-tuned DenseNet12...
Introduction to MCP and A2A Protocols: Enabling Agent Communication
Data Virtualization in Action: Scaling APIs and Apps with FME
giants, standing on the shoulders of - by Daniel Stenberg
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
NewMind AI Weekly Chronicles – August ’25 Week IV
Co-training pseudo-labeling for text classification with support vector machi...
Connector Corner: Transform Unstructured Documents with Agentic Automation
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
Auditboard EB SOX Playbook 2023 edition.
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
EIS-Webinar-Regulated-Industries-2025-08.pdf
The AI Revolution in Customer Service - 2025
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
MuleSoft-Compete-Deck for midddleware integrations
Rapid Prototyping: A lecture on prototyping techniques for interface design
Ensemble model-based arrhythmia classification with local interpretable model...
Training Program for knowledge in solar cell and solar industry
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
Aug23rd - Mulesoft Community Workshop - Hyd, India.pdf
A hybrid framework for wild animal classification using fine-tuned DenseNet12...
Ad

Untitled presentation unification algorithm.pptx

  • 1. Unification Algorithm SRM Institute of Science and Technology BTech Biotechnology 21CSC206T Artificial Intelligence Shanmathi M RA2311009020039 TEAM 16
  • 2. Key terms you SHOULD know before we start: 1) Term: Variable (eg: x,y,z) Constant (eg: 3,hello,chocolate) Function (eg: f(x), symptom(john,cold) 2)Substitution: replacing a variable with a term parents(x,y) x=John y=Emma parents(John,Emma)
  • 3. 3)Unifier: It is the substitution which makes two expressions the same For example In our previous example: parents(x,y) x=John y=Emma this is the unifier parents(John,Emma)
  • 4. 4)Most General Unifier: the simplest substitution that makes both the expressions match Example: likes(x,music) likes(y,music) x=y
  • 5. What is unification? Process of making two logical expressions identical by determining a suitable substitution of variables. Expression 1: X + 2 Expression 2: 4 + 2 What value can you put in place of the letter so that expression 1 equals expression 2? Expression 1: (x , 3 , y) Expression 2: (2 , z , 5)
  • 6. STEPS OF THE ALGORITHM: 1. Start with two expressions 2. Compare parts 3. Find substitutions 4. Apply substitutions 5. Repeat until both expressions match or fail
  • 7. Use of Unification Algorithm: ● It is essential for automated reasoning, theorem proving, and inference engines, enabling AI systems to derive new knowledge from existing facts and rules. ● It is used in predicate logic to match variables with constants or other variables, allowing AI to make logical deductions. This is widely applied in knowledge representation, expert systems, and natural language understanding.
  • 8. How is Unification Algorithm used in AI? Match facts with rules in logic programming (like Prolog) Example: fruits(apple,x) fruits(apple,orange) x=?
  • 9. Perform reasoning and inference in expert systems Example: symptom(james,fever) symptom(james,cough) System infers flu!
  • 10. Understand natural language by matching sentence structures (Natural Language processing) Example: Subject + verb + object -> She eats apples. She- subject eats- verb apple-object
  • 11. Theorem proving (to match logical statements for proof) Example: p(y)=q(y) p(hello) y=hello (unification works here) Therefore it is q(hello)
  • 12. RULES FOR UNIFICATION: 1)Identical constants must match Example: “apple” = “apple” (valid unification) “apple” ≠ “banana” (invalid unification)
  • 13. 2) Variables can be replace with other variables or constants in order to achieve unification Example: If X = “red” then color(X) equals color(“red”) making them identical
  • 14. 3)Function terms and the number of parts should match f(a, X) = f(a, b) Here X matches b (X=b) Exp 1: f(x) Exp 2: f(a,b) Number of parts do not match!
  • 15. Unification fails when ● f(x) g(x) Cannot unify f=g ● x=f(x) infinite substitution loops fails too
  • 16. Limitations 1)Handling infinite recursion: In statements like x=f(x) unification is not possible 2)Complex expressions and Nested functions: Unification becomes computationally intensive because the structure of the terms needs to be matched at multiple levels. 3)Higher Order Logic Complexity: Beyond first-order logic, unification becomes significantly more complex. Higher-order unification involves variables that can represent functions, requiring advanced techniques that increase computational overhead.