OnlineWoerterBuecher.de
Internes

Lexikon


occurs check


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 O(min(size(term1), size(term2))) with occurs check it' s O(max(size(term1), size(term2))) In theorem proving unification without the occurs check can lead to unsound inference. For example, in Prolog it is quite valid to write X = f(X). which will succeed, binding X to a cyclic structure. Clearly however, if f is taken to stand for a function rather than a constructor, then the above equality is only valid if f is the identity function. Weijland calls unification without occur check, "complete unification". The reference below describes a complete unification algorithm in terms of Colmerauer' s consistency algorithm. ["Semantics for Logic Programs without Occur Check", W.P. Weijland, Theoretical Computer Science 71 (1990) pp 155-174]. (1996-01-11)

In addition suitable contents:
[ 2 ] [ = ] [ ad ] [ ai ] [ al ] [ algorithm ] [ am ] [ an ] [ ar ] [ arc ] [ as ] [ at ] [ au ] [ av ] [ B ] [ b ] [ be ] [ bi ] [ bo ] [ bs ] [ C ] [ ca ] [ cat ] [ cc ] [ Ch ] [ ch ] [ ci ] [ ck ] [ cl ] [ co ] [ com ] [ complete ] [ complete unification ] [ complexity ] [ Computer ] [ con ] [ cons ] [ constructor ] [ cr ] [ cu ] [ cy ] [ de ] [ ding ] [ do ] [ du ] [ ec ] [ ed ] [ ee ] [ er ] [ era ] [ es ] [ et ] [ feature ] [ fi ] [ file ] [ fo ] [ for ] [ function ] [ gi ] [ gr ] [ h ] [ hat ] [ hm ] [ hr ] [ id ] [ ie ] [ il ] [ in ] [ inference ] [ int ] [ io ] [ is ] [ it ] [ ke ] [ ken ] [ la ] [ Lex ] [ li ] [ logic variable ] [ loop ] [ ls ] [ lt ] [ ly ] [ M ] [ m2 ] [ ma ] [ man ] [ mm ] [ mo ] [ mod ] [ module ] [ mp ] [ ms ] [ na ] [ nc ] [ nf ] [ ng ] [ ni ] [ nl ] [ no ] [ ns ] [ O ] [ Oc ] [ om ] [ op ] [ pa ] [ pe ] [ perf ] [ ph ] [ pl ] [ point ] [ pointer ] [ pr ] [ program ] [ programming ] [ Prolog ] [ quality ] [ query ] [ rc ] [ re ] [ reference ] [ rl ] [ ro ] [ ru ] [ S ] [ sc ] [ se ] [ si ] [ so ] [ sound ] [ st ] [ struct ] [ su ] [ T ] [ th ] [ to ] [ tr ] [ ua ] [ unification ] [ us ] [ V ] [ va ] [ var ] [ variable ] [ ve ] [ vi ] [ write ] [ X ]






Go Back ]

Free On-line Dictionary of Computing

Copyright © by OnlineWoerterBuecher.de - (5341 Reads)

All logos and trademarks in this site are property of their respective owner.

Page Generation in 0.204 Seconds, with 17 Database-Queries
Zurück zur Startseite