DocumentCode :
3169177
Title :
Implementing cyclic structures by term object sharing
Author :
Li, Xining ; Fan, Wei
Author_Institution :
Dept. of Math. Sci., Lakehead Univ., Thunder Bay, Ont., Canada
fYear :
1994
fDate :
25-28 Sep 1994
Firstpage :
599
Abstract :
Unification algorithms used in most Prolog implementations are based on Robinson´s definition (1979) but differ in not implementing the so-called “occur check”-a time-consuming operation which tries to avoid unifying a variable with a term in which it occurs. Elimination of “occur check” could result in logically unsound solutions or an infinite loop at execution. On the other hand, Colmerauer (1982) claimed that the unification overhead for handling cyclic structures is less than that required by “occur-check”, and more importantly, cyclic structures may become very useful in representing static inter-linked data structures. This paper presents an efficient algorithm for handling cyclic structures. The algorithm is embedded in an object-oriented term representation method-Term Object Sharing which has been implemented in LU-Prolog and is running under the UNIX and C++ environment
Keywords :
data handling; data structures; object-oriented programming; Prolog; cyclic structures; inter-linked data structures; object-oriented term representation; term object sharing; Data structures; Object oriented programming;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Electrical and Computer Engineering, 1994. Conference Proceedings. 1994 Canadian Conference on
Conference_Location :
Halifax, NS
Print_ISBN :
0-7803-2416-1
Type :
conf
DOI :
10.1109/CCECE.1994.405823
Filename :
405823
Link To Document :
بازگشت