🤖 AI Summary
Dynamic connectivity on large dense graphs poses a fundamental challenge: existing systems fail to simultaneously achieve low query latency, high update throughput, and small memory footprint. This paper presents the first dynamic connectivity algorithm provably optimal in all three dimensions—space complexity, query time, and parallel update efficiency. Leveraging graph sketching techniques and compact parallel data structures, we design CUPCaKE, a system that supports microsecond-scale connectivity queries, sustains over one million updates per second, and reduces memory consumption by an order of magnitude. Experimental evaluation demonstrates that CUPCaKE consistently outperforms state-of-the-art systems on dense graphs, achieving, for the first time, joint optimization across these three critical performance metrics.
📝 Abstract
We study the dynamic connectivity problem for massive, dense graphs. Our goal is to build a system for dense graphs that simultaneously answers connectivity queries quickly, maintains a fast update throughput, and a uses a small amount of memory. Existing systems at best achieve two of these three performance goals at once.
We present a parallel dynamic connectivity algorithm using graph sketching techniques that has space complexity $O(V log^3 V)$ and query complexity $O(log V/loglog V)$. Its updates are fast and parallel: in the worst case, it performs updates in $O(log^2 V)$ depth and $O(log^4 V)$ work. For updates which don't change the spanning forests maintained by our data structure, the update complexity is $O(log V)$ depth and $O(log^2 V)$ work.
We also present CUPCaKE (Compact Updating Parallel Connectivity and Sketching Engine), a dynamic connectivity system based on our parallel algorithm. It uses an order of magnitude less memory than the best lossless systems on dense graph inputs, answers queries with microsecond latency, and ingests millions of updates per second on dense graphs.