计算机应用 ›› 2017, Vol. 37 ›› Issue (2): 352-359.DOI: 10.11772/j.issn.1001-9081.2017.02.0352

• 第33届中国数据库学术会议(NDBC 2016) • 上一篇    下一篇

高效的多关键词匹配最优路径查询算法KSRG

金鹏飞, 牛保宁, 张兴忠   

  1. 太原理工大学 计算机科学与技术学院, 太原 030024
  • 收稿日期:2016-08-12 修回日期:2016-09-11 出版日期:2017-02-10 发布日期:2017-02-11
  • 通讯作者: 张兴忠,zhangxingzhong@tyut.edu.cn
  • 作者简介:金鹏飞(1992-),男,浙江杭州人,硕士研究生,主要研究方向:空间数据查询;牛保宁(1964-),男,山西太原人,教授,博士,CCF高级会员,主要研究方向:大数据、数据库系统的自主计算与性能管理;张兴忠(1964-),男,山西太原人,副教授,硕士,主要研究方向:网络与多媒体、嵌入式系统。
  • 基金资助:

    国家自然科学基金资助项目(61572345);国家科技支撑计划项目(2015BAH37F01)。

KSRG: an efficient optimal route query algorithm for multi-keyword coverage

JIN Pengfei, NIU Baoning, ZHANG Xingzhong   

  1. College of Computer Science and Technology, Taiyuan University of Technology, Taiyuan Shanxi 030024, China
  • Received:2016-08-12 Revised:2016-09-11 Online:2017-02-10 Published:2017-02-11
  • Supported by:

    This work is partially supported by the National Natural Science Foundation of China (61572345), the National Key Technology R&D Program (2015BAH37F01).

摘要:

为改进基于关键词的最优路径查询算法,在大规模图以及多查询关键词下复杂度过高与可扩展性不足的缺陷,依据查询关键词序列构建候选路径的策略提出一种高效查询算法。该算法在路径构建过程中优先满足查询关键词的全包含条件,以关键词引导下的路径拓展替代盲目的邻边拓展,从而高效地构建候选路径;通过变量缩放与无效路径裁剪,将问题求解复杂度由阶乘级转化为多项式级,进一步降低算法复杂度,提升可扩展性。通过四组图数据集下的实验,验证了算法在查询效率与可扩展性上的提升。

关键词: 基于关键词的最优路径查询, 复杂度, 可扩展性

Abstract:

To alleviate the issues of high complexity and poor scalability in the processing of keyword-aware optimal route query algorithms for large scale graph or multiple query keywords, an effective algorithm was proposed based on the scheme of keyword sequence route generating. The algorithm satisfied the coverage of query keywords first, and took a path expansion inspired by the keyword coverage property rather than aimless adjacent edge expansion to efficiently construct candidate paths. With the aid of a scaling method and ineffective route pruning, the search space was reduced into a polynomial order from an original factorial order, which further reduced the complexity and enhanced the scalability. Experiments conducted over four gragh datasets verified the accuracy and improvement in efficiency and scalability of the proposed algorithm.

Key words: keyword-aware optimal route query, complexity, scalability

中图分类号: