Equivalent Transformation by Safe Extension of Data Structures
Equivalent Transformation by Safe Extension of Data Structures
复制标题
通过数据结构的安全扩展进行等价转换
DOI:
10.1007/3-540-45575-2_15
复制
发表时间:
2001
影响因子:
--
通讯作者:
H. Mabuchi
中科院分区:
文献类型:
--
作者:
K. Akama;H. Koike;H. Mabuchi
Equivalent transformation has been proposed as a methodology for providing programs with appropriate data structures. For instance, logic programs which use lists are transformed into equivalent programs that use difference-lists. However lists and difference-lists are both usual terms and in this sense no new data structures are introduced in the transformation. Since logic programming has fixed data structure called terms, no one can develop theoretical foundations for introducing new data structures into programs as far as only logic programs are discussed. In this paper we develop a theoretical foundation of equivalent transformation that introduces new data structures. We introduce a parameter G for data structures, by which many languages with different data structures are characterized. By changing this parameter (say from G1 to G2) we can discuss data structure change for programs. We define a concept ofsaf e extension ofdata structures, and prove that the meaning ofa program on a data structure is preserved by safe extension of the data structure.