Evaluating regular path queries on compressed adjacency matrices

被引:0
|
作者
Arroyuelo, Diego [1 ,2 ]
Gomez-Brandon, Adrian [3 ,4 ]
Navarro, Gonzalo [5 ,6 ]
机构
[1] Pontificia Univ Catolica Chile, Escuela Ingn, DCC, Santiago, Chile
[2] Pontificia Univ Catolica Chile, Escuela Ingn, DCC, Santiago, Chile
[3] Univ A Coruna, ECOBAS, La Coruna, Spain
[4] Univ A Coruna, CITIC, La Coruna, Spain
[5] Univ Chile, IMFD, Santiago, Chile
[6] Univ Chile, DCC, Santiago, Chile
来源
VLDB JOURNAL | 2025年 / 34卷 / 01期
关键词
Regular path queries on graph databases; Compact data structures for adjacency matrices; Sparse matrices; Sparse Boolean matrices; EFFICIENT TRANSITIVE CLOSURE; ALGORITHM; MULTIPLICATION; ALGEBRA; WEB;
D O I
10.1007/s00778-024-00885-6
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Regular Path Queries (RPQs), which are essentially regular expressions to be matched against the labels of paths in labeled graphs, are at the core of graph database query languages like SPARQL and GQL. A way to solve RPQs is to translate them into a sequence of operations on the adjacency matrices of each label. We design and implement a Boolean algebra on sparse matrix representations and, as an application, use them to handle RPQs. Our baseline representation uses the same space and time as the previously most compact index for RPQs, outperforming it on the hardest types of queries-those where both RPQ endpoints are unspecified. Our more succinct structure, based on k2\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$k<^>2$$\end{document}-trees, is 4 times smaller than any existing representation that handles RPQs. While slower, it still solves complex RPQs in a few seconds and slightly outperforms the smallest previous structure on the hardest RPQs. Our new sparse-matrix-based solutions dominate a good portion of the space/time tradeoff map, being outperformed only by representations that use much more space. They also implement an algebra of Boolean matrices that is of independent interest beyond solving RPQs.
引用
收藏
页数:28
相关论文
共 44 条
  • [21] Towards a Fast Regular Expression Matching Method over Compressed Traffic
    Sun, Xiuwen
    Li, Hao
    Lu, Xingxing
    Zhao, Dan
    Peng, Zheng
    Hu, Chengchen
    2018 IEEE/ACM 26TH INTERNATIONAL SYMPOSIUM ON QUALITY OF SERVICE (IWQOS), 2018,
  • [22] Evaluating non-analytic functions of matrices
    Sharon, Nir
    Shkolnisky, Yoel
    JOURNAL OF MATHEMATICAL ANALYSIS AND APPLICATIONS, 2018, 462 (01) : 613 - 636
  • [23] Sentence similarity using weighted path and similarity matrices
    Javadzadeh, Reza
    Zahedi, Morteza
    Rahimi, Marzea
    TURKISH JOURNAL OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCES, 2019, 27 (05) : 3779 - 3790
  • [24] Efficient Single-Source Shortest Path and Distance Queries on Large Graphs
    Zhu, Andy Diwen
    Xiao, Xiaokui
    Wang, Sibo
    Lin, Wenqing
    19TH ACM SIGKDD INTERNATIONAL CONFERENCE ON KNOWLEDGE DISCOVERY AND DATA MINING (KDD'13), 2013, : 998 - 1006
  • [25] Path Laplacian matrices: Introduction and application to the analysis of consensus in networks
    Estrada, Ernesto
    LINEAR ALGEBRA AND ITS APPLICATIONS, 2012, 436 (09) : 3373 - 3391
  • [26] Evaluating and Approximating FIR Filters: An Approach Based on Functions of Matrices
    Michiels, Wim
    Unal, Hakki Ulas
    IEEE TRANSACTIONS ON AUTOMATIC CONTROL, 2015, 60 (02) : 463 - 468
  • [27] Improved Approximate String Matching and Regular Expression Matching on Ziv-Lempel Compressed Texts
    Bille, Philip
    Fagerberg, Rolf
    Gortz, Inge Li
    ACM TRANSACTIONS ON ALGORITHMS, 2009, 6 (01)
  • [28] Accurate Eigenvalues of Some Generalized Sign Regular Matrices via Relatively Robust Representations
    Huang, Rong
    JOURNAL OF SCIENTIFIC COMPUTING, 2020, 82 (03)
  • [29] A Generalized Eigenmode Algorithm for Reducible Regular Matrices over the Max-Plus Algebra
    Koenigsberg, Zvi Retchkiman
    CCDC 2009: 21ST CHINESE CONTROL AND DECISION CONFERENCE, VOLS 1-6, PROCEEDINGS, 2009, : 5598 - 5603
  • [30] H-Matrices Compressed Multiplicative Schwarz Preconditioner for Nonconformal FEM-BEM-DDM
    Jia, Ping-Hao
    Hu, Jun
    Chen, Yongpin
    Zhang, Rongrong
    Lei, Lin
    Nie, Zaiping
    IEEE TRANSACTIONS ON ANTENNAS AND PROPAGATION, 2018, 66 (05) : 2691 - 2696