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

数据结构的渐近实验:二分图匹配与覆盖

Asymptotic Experiments with Data Structures: Bipartite Graph Matchings and Covers

Eason Li, Franc Brglez

摘要:

我们考虑了二分图的实例和三个项目中的一些渐近性能实验:(1)顶级电影列表,给定的电影和观众数据库,(2)最大匹配,(3)最小集覆盖。实验的目的是衡量抽象数据类型(ADT)在三个程序设计语言:Java,R和C++的渐近运行时性能。这些实验的结果可能令人惊讶。在项目(1)中,R中最好的ADT始终优于公共领域Java库中的所有ADT,包括来自Google的库。最大的电影列表有$2^{20}$标题。在项目(2)中,R中的Ford-Fulkerson算法实现明显优于Java。最难的实例有88452行和729列。在项目(3)中,R中贪心算法的随机版本可以在$num\_rows \ge 300$和$num\_columns \ge 3000$的实例上显著优于C++中最先进的随机求解器。

英文摘要:

We consider instances of bipartite graphs and a number of asymptotic performance experiments in three projects: (1) top movie lists, given databases of movies and viewers, (2) maximum matchings, and (3) minimum set covers. Experiments are designed to measure the asymptotic runtime performance of abstract data types (ADTs) in three programming languages: Java, R, and C++. The outcomes of these experiments may be surprising. In project (1), the best ADT in R consistently outperforms all ADTs in public domain Java libraries, including the library from Google. The largest movie list has $2^{20}$ titles. In project (2), the Ford-Fulkerson algorithm implementation in R significantly outperforms Java. The hardest instance has 88452 rows and 729 columns. In project (3), a stochastic version of a greedy algorithm in R can significantly outperform a state-of-the-art stochastic solver in C++ on instances with $num\_rows \ge 300$ and $num\_columns \ge 3000$.

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

↑