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

Graph4J——一个计算高效的Java图算法库

Graph4J -- A computationally efficient Java library for graph algorithms

Cristian Frăsinaru, Emanuel Florentin Olariu

AI总结:

本文提出基于原始值数组而非面向对象结构的 Java 图算法库 Graph4J,降低内存与运行开销,并通过复杂度分析和对比实验证明其显著优于 JGraphT、JUNG 与 Guava Graph。

摘要:

图算法在计算机科学的许多领域中发挥着重要作用。为了解决那些可以用图建模的问题,有必要使用一种能够高效表示这些图的数据结构。在此基础上,还应构建一套基础设施,以辅助实现常用算法或开发专用算法。本文介绍了一个名为 Graph4J 的新型 Java 库;与 JGraphT、JUNG 和 Guava Graph 等现有知名 Java 库相比,它采用了不同的方法。该库没有使用面向对象的数据结构来表示图,而是采用基于原始值数组的更低层模型,从而大幅降低了所需内存以及算法实现的运行时间。文中详细介绍了该库的设计、图结构的空间复杂度以及最常见图操作的时间复杂度,并给出了一项实验研究,将其性能与其他库进行比较。重点放在与基础设施相关的方面,即图的创建、检查、修改和遍历。文中还分析了其他已实现算法所获得的改进,并表明所提出的库显著优于现有库。

英文摘要:

Graph algorithms play an important role in many computer science areas. In order to solve problems that can be modeled using graphs, it is necessary to use a data structure that can represent those graphs in an efficient manner. On top of this, an infrastructure should be build that will assist in implementing common algorithms or developing specialized ones. Here, a new Java library is introduced, called Graph4J, that uses a different approach when compared to existing, well-known Java libraries such as JGraphT, JUNG and Guava Graph. Instead of using object-oriented data structures for graph representation, a lower-level model based on arrays of primitive values is utilized, that drastically reduces the required memory and the running times of the algorithm implementations. The design of the library, the space complexity of the graph structures and the time complexity of the most common graph operations are presented in detail, along with an experimental study that evaluates its performance, when compared to the other libraries. Emphasis is given to infrastructure related aspects, that is graph creation, inspection, alteration and traversal. The improvements obtained for other implemented algorithms are also analyzed and it is shown that the proposed library significantly outperforms the existing ones.

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

↑