arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2511.22289cs.DS
收藏

稀疏图中高效追踪频率查询

Efficient Trace Frequency Queries in Sparse Graphs

Birkbeck, University of London(伦敦大学伯贝克学院);University of Bergen(卑尔根大学)

Christine Awofeso, Pål Grønås Drange, Patrick Greaves, Oded Lachish, Felix Reidl

AI总结:

本文提出了一种基于强2-着色数的数据结构,用于高效处理稀疏图中的追踪频率查询,显著优于传统方法。

摘要:

理解顶点与一组顶点之间的关系是图分析中的基本任务。给定一个图G和一个顶点集合X⊆V(G),考虑所有形式为N(u)∩X的子集的集合,其中u遍历所有不在X中的顶点。这些交集,我们称之为X的追踪,捕捉了图G中顶点连接到X的所有方式,并且在本文中我们考虑高效列出这些追踪的问题,以及相关问题,即记录每个追踪的频率。对于给定的查询集X,这两个问题都有明显的算法,其运行时间为O(|N(X)|·|X|),但条件下限表明,在一般图中,无法期望更好的性能。然而,在某些稀疏图类中,更高效的算法是可能的:Drange等人(IPEC 2023)使用了一种数据结构,可以在d-退化图中以线性初始化时间回答追踪查询,并且查询时间仅取决于查询集X和d。然而,查询时间是|X|的指数函数,这使得这种方法不切实际。通过使用比退化更强的参数,即强2-着色数s_2,我们构造了一个数据结构,在O(d·|G|)时间内完成,能够以O((d² + s_2^{d+2})·|X|)的时间回答后续的追踪频率查询,其中|G|是图G的边数,s_2是强2-着色数,d是图合适顺序的退化数。我们证明这种数据结构确实实用,并且在几乎所有测试设置中都优于简单的替代方法,使用了217个现实世界网络,边数高达110万。作为这项工作的部分,我们证明计算具有小强2-着色数的顺序是可行的,使用了简单的启发式方法。

英文摘要:

Understanding how a vertex relates to a set of vertices is a fundamental task in graph analysis. Given a graph $G$ and a vertex set $X \subseteq V(G)$, consider the collection of subsets of the form $N(u) \cap X$ where $u$ ranges over all vertices outside $X$. These intersections, which we call the traces of $X$, capture all ways vertices in $G$ connect to $X$, and in this paper we consider the problem of listing these traces efficiently, and the related problem of recording the multiplicity (frequency) of each trace. For a given query set $X$, both problems have obvious algorithms with running time $O(|N(X)| \cdot |X|)$ and conditional lower bounds suggest that, on general graphs, one cannot expect better. However, in certain sparse graph classes, more efficient algorithms are possible: Drange \etal (IPEC 2023) used a data structure that answers trace queries in $d$-degenerate graphs with linear initialisation time and query time that only depends on the query set $X$ and $d$. However, the query time is exponential in $|X|$, which makes this approach impractical. By using a stronger parameter than degeneracy, namely the strong $2$-colouring number $s_2$, we construct a data structure in $O(d \cdot \|G\|)$ time, which answers subsequent trace frequency queries in time $O\big((d^2 + s_2^{d+2})|X|\big)$, where $\|G\|$ is the number of edges of $G$, $s_2$ is the strong $2$-colouring number and $d$ the degeneracy of a suitable ordering of $G$. We demonstrate that this data structure is indeed practical and that it beats the simple, obvious alternative in almost all tested settings, using a collection of 217 real-world networks with up to 1.1M edges. As part of this effort, we demonstrate that computing an ordering with a small strong $2$-colouring number is feasible with a simple heuristic.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑