Article View: comp.lang.prolog
Article #3544Unification Question
From: Naim Abdullah
Date: Fri, 05 Aug 1988 06:45
Date: Fri, 05 Aug 1988 06:45
30 lines
1354 bytes
1354 bytes
I am writing a unification algorithm that will be used in a
logic programming system (not prolog).
The input of the unification algorithm will be two character strings
which will be the two terms that need to be unified and the output
is to be the MGU as a character string.
Currently, I am thinking about what should be done if the unification
algorithm is passed these two strings:
some_term_name([a|X])
some_term_name([a, b, Y])
/* "X" and "Y" are variables while "a" and "b" are constants */
Clearly, X/[b, Y] is to be a part of the MGU but I am wondering what
(if anything) I should indicate as the substitution for Y.
The context of all this is that each term is part of a clause and
the MGU will be used to substitute for the variables in the clause,
in other parts of the system.
Any suggestions would be very welcome.
Naim Abdullah
Dept. of EECS,
Northwestern University
Internet: naim@eecs.nwu.edu
Uucp: {oddjob, chinet, laidbak, att}!nucsrl!naim
Technical Details
Message-ID:
<4030005@eecs.nwu.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!husc6!mailrus!ncar!oddjob!kaon!nucsrl!naimShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!husc6!mailrus!ncar!oddjob!kaon!nucsrl!naim From: naim@eecs.nwu.edu (Naim Abdullah) Newsgroups: comp.lang.prolog Subject: Unification Question Message-ID: <4030005@eecs.nwu.edu> Date: 5 Aug 88 06:45:47 GMT Organization: Northwestern U, Evanston IL, USA Lines: 30