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

带预测的增量拓扑排序与环检测

Incremental Topological Ordering and Cycle Detection with Predictions

Samuel McCauley, Benjamin Moseley, Aidin Niaparast, Shikha Singh

AI总结:

本文利用带预测的算法框架,为增量拓扑排序与环检测问题设计了一种新的学习型数据结构,在保证一致性、鲁棒性和平滑性的同时,通过小数据集训练的预测在真实数据集上实现了显著加速。

摘要:

本文利用带预测的算法框架,为两个基本的动态图问题设计数据结构:增量拓扑排序和环检测。在这些问题描述中,输入是一个包含 $n$ 个节点的有向图,$m$ 条边逐一到达。数据结构必须始终维护顶点的拓扑排序,并检测新插入的边是否产生环。这些问题的理论最佳最坏情况算法具有较高的更新成本(与 $n$ 和 $m$ 呈多项式关系)。在实践中,贪心启发式方法(每次从头重新计算解决方案)表现良好,但在最坏情况下可能具有很高的更新成本。在本文中,我们通过利用预测为这些问题设计了一种新的学习型数据结构,从而弥合了这一差距。我们的数据结构在预测方面保证了一致性、鲁棒性和平滑性——也就是说,在完美预测下它具有最佳可能运行时间,永远不会比已知的最坏情况方法表现更差,并且其运行时间随预测误差平滑下降。此外,我们通过实验证明,从非常小的训练数据集中学习到的预测足以在真实数据集上提供显著的加速。

英文摘要:

This paper leverages the framework of algorithms-with-predictions to design data structures for two fundamental dynamic graph problems: incremental topological ordering and cycle detection. In these problems, the input is a directed graph on $n$ nodes, and the $m$ edges arrive one by one. The data structure must maintain a topological ordering of the vertices at all times and detect if the newly inserted edge creates a cycle. The theoretically best worst-case algorithms for these problems have high update cost (polynomial in $n$ and $m$). In practice, greedy heuristics (that recompute the solution from scratch each time) perform well but can have high update cost in the worst case. In this paper, we bridge this gap by leveraging predictions to design a learned new data structure for the problems. Our data structure guarantees consistency, robustness, and smoothness with respect to predictions -- that is, it has the best possible running time under perfect predictions, never performs worse than the best-known worst-case methods, and its running time degrades smoothly with the prediction error. Moreover, we demonstrate empirically that predictions, learned from a very small training dataset, are sufficient to provide significant speed-ups on real datasets.

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

↑