TOWARDS AN ALGEBRAIC-THEORY OF RECURSION

被引:10
作者
IOANNIDIS, YE [1 ]
WONG, E [1 ]
机构
[1] UNIV CALIF BERKELEY,DEPT ELECT ENGN & COMP SCI,BERKELEY,CA 94720
关键词
LANGUAGES; THEORY; CLOSED SEMIRINGS; DEDUCTIVE DATABASES; QUERY OPTIMIZATION; RECURSION;
D O I
10.1145/103516.103521
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
An algebraic framework for the study of recursion has been developed. For immediate linear recursion, a Horn clause is represented by a relational algebra operator. It is shown that the set of all such operators forms a closed semiring. In this formalism, query answering corresponds to solving a linear equation. For the first time, the query answer is able to be expressed in an explicit algebraic form within an algebraic structure. The manipulative power thus afforded has several implications on the implementation of recursive query processing algorithms. Several possible decompositions of a given operator are presented that improve the performance of the algorithms, as well as several transformations that give the ability to take into account any selections or projections that are present in a given query. In addition, it is shown that mutual linear recursion can also be studied within a closed semiring, by using relation vectors and operator matrices. Regarding nonlinear recursion, it is first shown that Horn clauses always give rise to multilinear recursion, which can always be reduced to bilinear recursion. Bilinear recursion is then shown to form a nonassociative closed semiring. Finally, several sufficient and necessary-and-sufficient conditions for bilinear recursion to be equivalent to a linear one of a specific form are given. One of the sufficient conditions is derived by embedding bilinear recursion in an algebra.
引用
收藏
页码:329 / 381
页数:53
相关论文
共 57 条
  • [1] Agrawal R., 1989, IEEE Transactions on Knowledge and Data Engineering, V1, P424, DOI 10.1109/69.43418
  • [2] Aho A. V., 1974, DESIGN ANAL COMPUTER
  • [3] Aho Alfred V., 1979, 6TH P ACM S PRINC PR, P110
  • [4] CONTRIBUTIONS TO THE THEORY OF LOGIC PROGRAMMING
    APT, KR
    VANEMDEN, MH
    [J]. JOURNAL OF THE ACM, 1982, 29 (03) : 841 - 862
  • [5] BACKHOUSE RC, 1975, J I MATH APPL, V15, P161
  • [6] BANCILHON F, 1988, FDN DEDUCTIVE DATABA, P439
  • [7] BANCILHON F, 1986, P ACM SIGMOD INT C M, P16
  • [8] BANCILHON F, 1986, KNOWLEDGE BASE MANAG
  • [9] BEERI C, 1987, 6TH P ACM S PRINC DA, P214
  • [10] Carre B., 1979, GRAPHS NETWORKS