Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 841091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:44:11+00:00 2026-05-15T05:44:11+00:00

I know this is only part of a programming question, but at the moment,

  • 0

I know this is only part of a programming question, but at the moment, I’m doing a little bit of logic programming. One thing I still don’t understand correctly is Unification in First Order Logic.

I read the Wikipedia article and it is more or less clear that the purpose is searching a term that unifies two sentences… There are also examples in this article but I just don’t get the point why this should be useful. Can anyone give an example with real world objects instead of A, B, C,, etc.? I hope this will help me to understand. Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T05:44:12+00:00Added an answer on May 15, 2026 at 5:44 am

    If you are looking at real-world examples where unification is used and useful, take a look at Unification-based grammars which are used in computational linguistics, for example HPSG and LFG. On the surface, this look like another flavour of unification, but they are really the same.

    Unification-based grammar can be thought of as a CFG (context-free grammar) where the productions is extended with unification. Every term in the CGF gets an AVM (attribute value matrix), which is a directed acyclic graph of features and values. The idea here is somewhat akin to attribute grammars used in compilers.

    Imagine this toy grammar:

     S -> NP VP  
     NP -> Kim  
     NP -> The cats  
     VP -> V NP  
     V -> see  
     V -> sees
    

    We have some slight overgeneration here in the agreement:

    *The cats sees Kim
    [S [NP The cats] [VP [V sees] [NP Kim]]]

    In order to fix this we could refine the CFG to include the notion of agreement:

     S -> NP_sg VP_sg  
     S -> NP_sg VP_pl  
     NP_sg -> Kim  
     NP_pl -> The cats  
     VP_sg -> V_sg NP_sg  
     VP_sg -> V_sg NP_pl  
     V_sg -> sees  
     V_pl -> see  
     VP_pl -> V_pl NP_pl  
     VP_pl -> V_pl NP_sg
    

    Here we will reject the overgeneration from before. But this leads to combinatorial explotion very quickly. We could however augment each term with an AVM and unify these together when we parse:

     S -> NP VP , C = A unified with B.  
     NP -> kim /[ AGR sg ]. We mark Kim as being singular   
     NP -> The cats / [ AGR pl ]  
     VP[ AGR #1 ] -> V [ AGR #1 ] NP 
    

    The #1-notation are reentrancies, which means that the value of this feature must be the same, in fact they will point to the same node in the graph after unification, iff it succedes. Here in practice we say that the agreement feature of a verb phrase is the same as the agreement of the verb in the phrase.

     V -> See / [ AGR pl ]  
     V -> Sees / [ AGR sg ]
    

    With our augmented toy grammar “Kim see the cats” is rejected because the NP and the VP will not unify, having a different value for its AGR feature.
    When we are parsing we unifiy the AVMs together, and therefore gain very much in expressiveness, making it easy for grammar-engineers to write grammars. Typically a broad-coverage UBG has in the order of a hundred rules, while the equvivalent CFG , which may not exist, CFGs with unifaction are Turing complete, will have rules in the number of thousands or more.

    For more details see
    HPSG and
    LFG.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

the only thing i know about this subject is... in PHP 5, when a
I know this question was asked before, but the answer didn't work for me.
I know this is an easy one.... but I am learning PHP right now
I know this is a very simple question, but I'm having trouble finding the
I know this question is very common but the main point in my question
Alright I know this isn't 100% related to programming (the Excel book in question
I don't know how to add the this into my existing project. The only
Know this might be rather basic, but I been trying to figure out how
I know this has been asked a lot of times, but I have honestly
I know this question has been asked a couple of times. However, I can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.