![]() |
![]() |
|
![]() |
![]() |
Encyclopedia :
O :
OC :
OCC :
Occurs check |
|
|
Occurs checkIn computer science, an occurs check is a feature of some implementations of unification, which causes unification of a logic variable V and a structure S to fail if S contains V.Binding a variable to a structure containing that variable results in a cyclic structure which may subsequently cause unification to loop forever. Some implementations use extra pointer comparisons to avoid this. Most implementations of Prolog do not perform the occurs check for reasons of efficiency. Without occurs check the complexity of unification is
Weijland calls unification without occur check, "complete unification". The reference below describes a complete unification algorithm in terms of Colmerauer's consistency algorithm. Reference"Semantics for Logic Programs without Occur Check", W.P. Weijland, Theoretical Computer Science 71 (1990) pp 155-174
|
|
|
This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License. |
|
| © 2008 Chamas Enterprises Inc. |