arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.02477cs.DS
收藏

通过聚类划分加速图算法

Speeding-up Graph Algorithms via Clique Partitioning

The Ohio State University(俄亥俄州立大学);Wayne State University(韦恩州立大学)

Akshar Chavan, Sanaz Rabinia, Daniel Grosu, Marco Brocanelli

AI总结:

本文提出一种图重构算法,通过识别双分图团并替换为三部分图,减少边数同时保留完整路径信息,从而提升匹配和最短路径算法的运行效率。

摘要:

减少大规模图算法的运行时间对于解决最短路径和匹配等实际问题至关重要。为此,本文提出了一种图重构算法,通过识别双分图团并替换为三部分图,减少边数同时保留完整路径信息,从而提升匹配和最短路径算法的运行效率。所提出算法的运行时间对于图$G(V,E)$,其中$|V| = n$和$|E| = m$为$O(mn^δ)$,优于现有最佳算法(Feder-Motwani(FM)算法)的$O(mn^δ\log^2 n)$。FM算法和所提算法最初针对双分图设计,但也可应用于一般有向或无向图。实验分析表明,所提算法在边数减少方面最高可达21.26%,在大型合成图上运行速度最高可达105.18倍,边数减少最高可达74.36%。在实际图上,边数减少最高可达46.8%。此外,当作为预处理步骤时,该方法在大型合成图上匹配算法的运行速度最高可达2.07倍,在实际图上All-Pairs Shortest Path算法的运行速度最高可达1.74倍。

英文摘要:

Reducing the running time of graph algorithms is vital for tackling real-world problems such as shortest paths and matching in large-scale graphs, where path information plays a crucial role. To address this critical challenge, this paper introduces a graph restructuring algorithm that identifies bipartite cliques and replaces them with tripartite graphs. This restructuring leads to fewer edges while preserving complete graph path information, enabling the direct application of algorithms like matching and all-pairs shortest paths to achieve significant runtime reductions, especially for large, dense graphs. The running time of the proposed algorithm for a graph $G(V,E)$, with $|V| = n$ and $|E| = m$ is~$O(mn^δ)$, which is better than $O(mn^δ\log^2 n)$, the running time of the best existing algorithm for speeding-up other graph algorithms (the Feder-Motwani (\textsf{FM}) algorithm), where $0 \leq δ\leq 1$. Both the \textsf{FM} algorithm and the proposed algorithm are originally formulated for bipartite graphs, but can also be applied to general directed or undirected graphs. Our extensive experimental analysis demonstrates that the proposed algorithm achieves up to 21.26\% higher reduction in the number of edges and runs up to 105.18$\times$ faster than the \textsf{FM} algorithm. On large synthetic graphs with up to 1.05 billion edges, it attains a reduction in the number of edges of up to 74.36\%. On real-world graphs, it achieves a reduction in the number of edges by up to 46.8\%. Furthermore, when used as a preprocessing step, our approach yields up to a 2.07$\times$ speedup for the matching algorithms on large synthetic graphs, and up to a 1.74$\times$ speedup for the All-Pairs Shortest Path algorithms on real-world graphs, when compared to using the given graph as input.

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

↑