In this paper, we investigate space-time tradeoffs for answering conjunctive queries with access patterns (CQAPs). The goal is to create a space-efficient data structure in an initial preprocessing phase and use it for answering (multiple) queries in an online phase. Previous work has developed data structures that trades off space usage for answering time for queries of practical interest, such as the path and triangle query. However, these approaches lack a comprehensive framework and are not generalizable. Our main contribution is a general algorithmic framework for obtaining space-time tradeoffs for any CQAP. Our framework builds upon the $\PANDA$ algorithm and tree decomposition techniques. We demonstrate that our framework captures all state-of-the-art tradeoffs that were independently produced for various queries. Further, we show surprising improvements over the state-of-the-art tradeoffs known in the existing literature for reachability queries.
翻译:在本文中,我们研究了应对查询访问模式(CQAPs)进行时空权衡的方法。目标是在初始预处理阶段创建一个空间高效的数据结构,并在在线阶段使用它来回答(多个)查询。之前的工作已经开发了数据结构来为实际查询(例如路径和三角形查询)提供时间和空间的权衡。然而,这些方法缺乏一个全面的框架并且不具可泛化性。我们的主要贡献是一个通用的算法框架,用于获取任何CQAP的时空权衡。我们的框架基于$\PANDA$算法和树分解技术。我们展示了我们的框架涵盖了独立产生的各种查询的最新现有时空权衡。此外,我们展示了对现有文献中已知最优时空权衡的可达性查询的惊人改进。