###
计算机系统应用英文版:2025,34(11):42-55
本文二维码信息
码上扫一扫!
时序图模式匹配的查询优化
(1.中北大学 计算机科学与技术学院, 太原 030051;2.湖南工业大学 计算机与人工智能学院, 株洲 412007)
Query Optimization of Temporal Graph Pattern Matching
(1.School of Computer Science & Technology, North University of China, Taiyuan 030051, China;2.School of Computer Science and Artificial Intelligence, Hunan University of Technology, Zhuzhou 412007, China)
摘要
图/表
参考文献
相似文献
本文已被:浏览 329次   下载 1796
Received:March 26, 2025    Revised:April 29, 2025
中文摘要: 图模拟被广泛应用于近似回答复杂的图模式匹配问题. 针对时序图模式匹配的查询效率问题, 本文提出一种基于联合图的SimAssign图模拟算法及动态规划的优化框架. 其核心思想在于: (1)将时序图的快照序列合并为联合图, 首先利用静态图模拟算法在联合图上计算初始查询结果, 然后根据时间区间将结果分发至每个快照, 从而生成相应的匹配结果; (2)为图模拟策略构建统一的代价模型, 并基于动态规划优化图模式匹配的执行策略. 本文在真实数据集和合成数据集上进行了全面实验, 实验结果表明代价模型能够准确估计静态图模拟、增量图模拟以及SimAssign等图模拟策略的执行代价, 并且优化方法能够选择出最优的执行方案. 在绝大多数情况下, SimAssign的性能显著优于静态图模拟和增量式图模拟算法, 在部分实验中SimAssign的性能达到增量法的4倍.
Abstract:Graph simulation is widely adopted to approximately solve complex graph pattern matching problems. To enhance the query efficiency for matching temporal graph patterns, this study proposes a simulation algorithm, SimAssign, which is based on a union graph model, along with a dynamic programming based query optimization framework. The proposed approach consists of two main components: (1) a sequence of temporal graph snapshots is merged into a union graph, on which initial query results are computed using a static graph simulation algorithm; these results are then partitioned according to temporal intervals to generate matching results for each snapshot; (2) a unified cost model is developed to support various graph simulation strategies, and a dynamic programming framework is introduced to identify optimal execution plans based on this model. Extensive experiments on both real and synthetic datasets demonstrate that the cost model accurately estimates the execution costs of static graph simulation, incremental graph simulation, and SimAssign. Moreover, the proposed optimization framework consistently selects optimal strategies. In most cases, SimAssign substantially outperforms both static and incremental simulation methods, with performance improvements reaching up to four times that of the incremental approach on certain datasets.
文章编号:     中图分类号:    文献标志码:
基金项目:山西省科技合作交流专项 (202204041101033); 山西省基础研究计划(202203021222075)
引用文本:
覃紫云,郭青松,马国帅,张凯涵,石琼,蔡江辉.时序图模式匹配的查询优化.计算机系统应用,2025,34(11):42-55
TAN Zi-Yun,GUO Qing-Song,MA Guo-Shuai,ZHANG Kai-Han,SHI Qiong,CAI Jiang-Hui.Query Optimization of Temporal Graph Pattern Matching.COMPUTER SYSTEMS APPLICATIONS,2025,34(11):42-55