广义查询的计数算法
作者:
基金项目:

河南省自然科学基金,河南省教委自然科学基金


A COUNTING ALGORITHM FOR GENERALIZED QUERIES
  • 摘要
  • | |
  • 访问统计
  • |
  • 参考文献 [1]
  • |
  • 相似文献
  • | | |
  • 文章评论
    摘要:

    计数算法是最著名的SL递归处理算法之一.对于一类称作计数线性的递归,它具有良好的性能.然而,计数算法要求查询的约束集为单值的,因此很难用作子目标的处理策略.本文提供一种新的广义查询计数算法,它能处理任意的多值约束集.从而本文提供的算法不仅能够用于查询的求值,而且也能用于子目标的处理.算法的正确性和变换后的规则的有效性也在本文简略讨论.

    Abstract:

    The Counting algorithm is one of the best -known qurey-processing algorithms for SL recursions. It performs well for a kind of recursions which are counting linear. However, since it requires that the binding set of the given query bea singleton, it is very difficult to use it as a subgoal processing strategy. In this paper, a new counting algorithm for generalized queries is presented. The algorithm presented here can handle any multi-value binding sets, so it can be used not only for query evaluating, but also for subgoal processing. The correctness of the algorithm and the efficiency of the transformed rules are also discussed briefly in this paper.

    参考文献
    1 Henschen L J,Naqvi S A.On compiling queries in first—order databases.L, ACM 1984,31(1):47—85. 2 Bancilhon F,Maier D,Sagiv Y et al.Magic sets and other strange ways to implement logic programs.In:Proc.of the 5th ACM Sympo.on Principles of Database Systems,ACM Press,1986:1—15. 3 Ullman J D.Principles of database and knowledge—base systems.Vol.II.Computer Science Press,1989. 4 Han J,Henschen L J.Handle redundancy in the processing of recursive database queries.In:Proc.of the 1987 ACM SIGMOD Intl.Conf.on Management of Data,ACM Press,1987:73—81. 5 Sacca D,Zaniolo C.Magic counting methods.In:Proc.of the 1987 ACM SIGMOD Intl.Conf.on Management ofData,ACM Press,1987:49—59. 6 Haddad R W,Haughton J F.Counting methods for cyclic relations.In:Proe.of the 7th ACM Symp.on Principles of Database Systems,ACM Press,1988:333—340 7 范明.具有多值约束的线性递归查询的有效计算.计算机学报,1992,IS(12):913—919. 8 Marchetti—Spaccamela A,Pelaggi A,Saeca D.Worst—case complexity analysis of methods for logic query implementation.In:Proc.of the ACM Sympo.on Principles of Database Systems,ACM Press,1987:294—301.
    相似文献
    引证文献
    网友评论
    网友评论
    分享到微博
    发 布
引用本文

范明,李连友.广义查询的计数算法.软件学报,1994,5(10):44-49

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:1992-02-09
  • 最后修改日期:1992-07-24
文章二维码
您是第19819546位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京市海淀区中关村南四街4号,邮政编码:100190
电话:010-62562563 传真:010-62562533 Email:jos@iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号