Source-linked AI summary
Connectivity in a New Bounded-Space Dynamic Model
Bardiya Aryanfard, Monika Henzinger, John Kuszmaul, Jakob Nogler, Virginia Vassilevska Williams
TL;DR
The paper asks how to maintain connectivity between two fixed vertices when a small-space algorithm can reread a changing graph through a read-only oracle. It analyzes list and matrix query interfaces and proves time–space bounds that differ by interface and by worst-case versus amortized guarantees.
Problem
How quickly can an algorithm with far fewer than n words of memory keep connectivity for one fixed vertex pair current when it can reread, but not store, the changing graph?
Source: §1 · p. 2Method
The paper formalizes a dynamic read-only-oracle model and analyzes randomized incremental connectivity under adjacency-list and adjacency-matrix access.
Source: §1 · p. 3Results
With lists, worst-case incremental time is eΘ(n^2/S^2) per insertion, while fully dynamic amortized lower bounds are eΩ(n/S) for lists and eΩ(n^2/S) for matrices, matched by incremental amortized upper bounds up to polylogarithmic factors.
Source: §1 · pp. 3–4Takeaways & Limitations
The bounds show that polynomial update time is necessary when workspace is at most n^(1−ε), even for incremental algorithms with amortized guarantees.
Source: §1 · pp. 3–4The graph starts empty, and the insertion sequence is fixed in advance independently of the algorithm’s randomness.
Source: Upper Bounds · p. 9, Problem and Model Definitions · p. 14
Abstract
from arXiv · showhide
We introduce a new model for dynamic algorithms in which the algorithm has read-only oracle access to a dynamically changing input and random access to its own bounded workspace. It is a dynamic analogue of the time-space tradeoffs for static inputs studied in complexity theory, where only writable memory counts as space. We study dynamic undirected $s$-$t$ connectivity: after every edge update to an $n$-vertex graph, an algorithm with $S$ words of workspace must report whether $s$ and $t$ are connected. The graph is accessed via adjacency list queries (degree, $j$-th neighbor) or adjacency matrix queries. Our algorithms are randomized; our lower bounds hold for randomized algorithms with $cn$ bits of workspace, $c>0$ a small constant ($cn/\log n$ for the worst-case matrix bound). We prove: (1) With adjacency lists, worst-case time $\tilde\Theta(n^2/S^2)$ per insertion is necessary and sufficient for incremental algorithms. (2) With an adjacency matrix, worst-case time $\tilde\Omega(n^2/S)$ per insertion is necessary for incremental algorithms, and sufficient for $S\ge\sqrt{n}$. (3) With amortization, incremental algorithms achieve $\tilde O(n/S)$ time per insertion with adjacency lists and $\tilde O(n^2/S)$ with an adjacency matrix, while $\tilde\Omega(\sqrt{n/S})$ and $\tilde\Omega(n\sqrt{n/S})$, respectively, are necessary. (4) Fully dynamic algorithms need amortized time $\tilde\Omega(n/S)$ per update with adjacency lists and $\tilde\Omega(n^2/S)$ with an adjacency matrix, even on forests, where both bounds are tight (lists: under bounded degree). Conventional dynamic connectivity admits polylogarithmic update time with $\Omega(n)$ words of space. In contrast, our lower bounds show that polynomial update time is necessary whenever $S\le n^{1-\varepsilon}$, even for a single pair of vertices and even for incremental algorithms with amortized guarantees.
1 Introduction
The section studies dynamic fixed-pair connectivity in read-only graph-oracle inputs with bounded writable workspace. It presents workspace-bounded algorithms and lower bounds, establishing time–space tradeoffs across graph-query interfaces and worst-case versus amortized guarantees.
1.1 The Dynamic Oracle Model
- The model tracks one fixed terminal pair while a read-only oracle exposes the graph through degree and indexed-neighbor queries or pairwise adjacency tests.All writable memory counts, including retained information and per-update scratch space; the algorithm inspects the old graph while processing an announced update and reports connectivity after it takes effect.Source: §1 · pp. 2–3, §1.1 · pp. 4–5
1 Introduction
- The setting combines dynamic updates with a rereadable graph and bounded workspace, avoiding the need to store the entire component partition when tracking only one pair.The paper motivates this setup with monitors of changing networks and record-link pipelines that must track whether two designated items become connected.Source: §1 · pp. 2–3
1.2 Our Results
- With S words, incremental worst-case insertion time is eΘ(n^2/S^2) in the list model, while the matrix model requires eΩ(n^2/S) and achieves that bound for S ≥ √n.The lower bounds apply within the stated workspace ranges; in the list model, the lower bound applies on sequences of Θ(n^2/B) insertions for B = Θ(S log n).Source: §1 · p. 3, §1.2 · pp. 6–7
- Incremental amortized algorithms use eO(n/S) time per insertion in the list model and eO(n^2/S) in the matrix model, matching fully dynamic amortized lower bounds up to polylogarithmic factors.The fully dynamic lower bounds hold even when the graph remains a forest.Source: §1 · p. 4, §1.2 · pp. 6–7
- The main incremental amortized algorithm searches with random walks and adds landmarks in sparse regions, achieving total time eO(mn/S) over m insertions.Its total time matches Feige’s static time bound for one query on the final graph; the framework tracks connectivity among landmarks with a disjoint-set structure.Source: §1.2 · p. 6
- For fully dynamic forests, a deterministic algorithm achieves worst-case O(n^2/S) update time in the matrix model and O((n/S)(∆ + log S)) in the list model under maximum degree ∆.These bounds match the fully dynamic lower bounds on forests, with the list-model guarantee depending on bounded degree.Source: §1.2 · p. 7
- eΩ(n²/S) amortized time per insertion in the matrix model and eΩ(n/S) in the list model is necessary for incremental algorithms on Θ(n)-insertion sequences.The lower bounds apply to randomized algorithms using B = Θ(S log n) ≤ cn bits of workspace, for a sufficiently small constant c.Source: §1.2 · p. 8
- The worst-case bounds are complete up to polylogarithmic factors within the lower-bound range, except for the matrix model when S < √n.Incremental amortized upper bounds match fully dynamic amortized lower bounds up to polylogarithmic factors in both models.Source: §1.2 · p. 8
- The novelty claim is specific to exact undirected fixed-pair connectivity in this dynamic oracle model; prior dynamic-tree structures use Θ(n) words, while succinct structures encode the whole forest.The cited closest precedent, succinct Euler-tour trees [GW21], stores micro trees; this approach instead stores only O(S) oriented edges spaced along Euler tours and recovers other parts by navigating the forest.Source: §1.2 · pp. 7–8
Upper Bounds
- eO(1 + min{n,k}/S) amortized time per insertion in the list model, and n times more in the matrix model, using eO(S) words over the first k insertions.The list-model analysis also bounds the first k insertions using the fact that there are at most 2k non-isolated vertices; each matrix-model random-walk step costs O(n) probes.Source: Upper Bounds · p. 11
Lower Bounds
- Θ(n) queries require Ω(n³/B) total probes in the amortized lower-bound construction, which hides switch locations using a permutation and switch bits.The proof partitions queries into Θ(n/B) blocks of Θ(B), treating each block’s B-bit persistent memory as advice and showing that answering a block correctly with fewer than cn² probes has only small probability.Source: Lower Bounds · p. 12
- The list-model worst-case lower bound reduces from Index [KNR99], encoding Alice’s bits in edges and using Bob’s insertion to test one bit.Alice must send both the algorithm’s state and enough information to answer probes for all possible Bob insertions, so the message accounts for workspace and time.Source: Lower Bounds · p. 13
- Each bit is encoded by two cliques that are disjoint for 0 and connected by a randomly selected pair of cross-edges for 1.The pair is chosen among Θ(n^2/B^2) candidates, so a probe reveals information about the bit only if it finds a cross-edge.Source: Lower Bounds · p. 13
- If each insertion uses at most cn^2/B^2 probes, Θ(B) simulations make O(n^2/B) probes and find cross-edges in only O(B) gadgets with high probability.The message sends the B-bit state and indices of gadgets where probes found cross-edges, keeping its size to O(B) bits with high probability.Source: Lower Bounds · p. 13
2 Preliminaries
The model tracks connectivity under updates while the graph remains read-only outside the algorithm’s S-word workspace, with access mediated by an oracle. The preliminaries define its update costs and the graph, walk, and resistance notation used in the analysis.
Problem and Model Definitions.
- The dynamic model keeps the changing input outside the algorithm’s workspace, which is its only state between updates, and requires oracle queries for input access.Updates arrive one at a time before taking effect; the algorithm sees the old graph while processing an update and reports the answer for the graph after it.Source: Problem and Model Definitions · pp. 13–14
- The list oracle returns vertex degrees and indexed neighbors, whereas the matrix oracle answers pairwise adjacency tests.A list-model query can be simulated with n matrix queries, and all incident edges of a vertex can be traversed with n matrix queries.Source: Problem and Model Definitions · p. 14
- Space counts S words, queries count oracle calls per update, and time counts word operations, including queries, with worst-case and amortized bounds defined separately.Amortized time T requires that every prefix of k updates costs at most kT in total; the graph starts empty, with no initialization time allowed.Source: Problem and Model Definitions · p. 14
Notation and Conventions.
- Graph notation uses N_G(v) for a vertex’s neighborhood, d_G(v) for its degree, C_G(x) for its component, and dist_G for shortest-path distance.Random-walk notation defines hitting and return times and counts visits before reaching a target set; effective resistance is defined through graph energy.Source: Notation and Conventions · pp. 14–15
- Random-walk properties relate expected visits before hitting a set to degree and effective resistance, while Metropolis-walk bounds include an expected hitting time of at most 8|C|^2.For the latter bound, the walk starts at x and the target is any y in the same component C other than x.Source: Notation and Conventions · p. 16
3 Fully Dynamic Amortized Lower Bound
This section establishes fully dynamic amortized probe lower bounds for randomized bounded-space s-t connectivity, even when every graph in the update stream is a forest. A reduction from Prefix Parity with Hidden Permutation and blockwise encoding arguments yield quadratic space-time product requirements for adjacency matrices and linear requirements for adjacency lists.
3 Fully Dynamic Amortized Lower Bound
- For B-bit randomized algorithms, some length-Θ(n) forest stream defeats correctness with probability at least 1/3 when BT ≤ cn² in the matrix model or BT ≤ cn in the list model.The theorem assumes B ≤ ηn; equivalently, its amortized lower bounds are Ω(n²/B) matrix probes and Ω(n/B) list probes per update.Source: §3 · pp. 16–17
3.2.1 A Few Definitions and Tools for Analysis
- The proof partitions queries into Θ(n/B) blocks of Θ(B) queries and shows that answering a block with fewer than cL d² probes succeeds with probability at most 1/4.This yields Ω(n³/B) total probes, or Ω(n²/B) amortized probes per query; only memory persisting between blocks is space-bounded.Source: §3 · p. 17, §3.2.1 · p. 19
3.1 Reduction from PPHP
- The reduction encodes PPHP in two tracks whose switches represent slot bits, with a hidden permutation determining which item fills each slot.A PPHP query is simulated by inserting and deleting one edge and testing s-t connectivity; each graph adjacency-matrix probe maps to at most one PPHP oracle probe.Source: §3.1 · p. 17, §3 · p. 17
3.1.1 Input Stream
- The stream first inserts the constructed graph, then each epoch inserts an edge from t to the queried item’s vertex, tests connectivity, and deletes that edge.The permutation and switch vector are sampled independently and uniformly at random.Source: §3.1.1 · p. 18
3.1.2 Equivalence to PPHP
- Each connectivity answer reveals whether the queried item’s prefix parity is zero, so the graph simulation answers PPHP queries.The path containing the queried vertex is determined by the XOR of switch bits through its assigned slot.Source: §3.1.2 · p. 18
3.2.2 Deterministic Algorithms
- With few hit checkpoints, a deterministic algorithm’s correct block parities occur with probability at most 2^-30 under the stated event.An encoding records the algorithm’s memory and hit-checkpoint positions and switch bits, then recovers the unhit checkpoint bits from the reported parities.Source: §3.2.2 · p. 21
- The deterministic block argument bounds the probability of being correct on all blocks while using at most cB cL d³/B total probes.The corollary’s probe threshold is obtained by aggregating across 4cB d/B blocks.Source: §3.2.2 · pp. 22–23
3.2.3 Randomized Algorithms
- The randomized theorem reduces to a Θ(n)-length update sequence, with adjacency probes simulated using at most one probe each, and yields success probability below 2/3.The reduction transfers the all-block correctness requirement to correctness at every time step.Source: §3.2.3 · p. 23
- If B ≤ ηn and BT ≤ cn², a randomized algorithm fails to answer all queries with probability at least 1/3 on some Θ(n)-update forest stream; for adjacency lists, BT ≤ cn suffices.The adjacency-list bound follows because each adjacency-list probe can be simulated with n adjacency-matrix probes.Source: §3.2.3 · p. 23
4 Worst-Case Incremental Lower Bound for Matrix Model
The matrix-model lower bound for incremental connectivity is established by reducing a many-query problem to repeated insertions and rolling back the algorithm state. It implies worst-case time eΩ(n^2/S) per insertion.
4 Worst-Case Incremental Lower Bound for Matrix Model
- Every randomized incremental matrix-model algorithm with B = Θ(S log n) ≤ cn/log n bits needs worst-case time eΩ(n^2/S) per update.The guarantee is for every update sequence, with probability at least 2/3 that all answers are correct.Source: §4 · p. 24
- Amplifying correctness to 1 − n^-3 costs O(log n) independent copies and raises both workspace and probes per insertion by O(log n).A union bound over Θ(n) executions then keeps failure below 1/3.Source: §4 · p. 24
- The reduction inserts the base graph once, then rolls the algorithm back after each query-specific edge insertion to reuse the same starting state.Each query records the connectivity answer before restoring the state.Source: §4 · p. 24
5 Worst-Case Incremental Lower Bound for List Model
The list-model lower bound encodes Index bits in graph gadgets and simulates an incremental algorithm through a compact communication protocol. The resulting theorem requires eΩ(n^2/B^2) worst-case time per update on sequences of Θ(n^2/B) insertions.
5 Worst-Case Incremental Lower Bound for List Model
- Every randomized incremental list-model algorithm with B = Θ(S log n) ≤ ηn bits needs worst-case time eΩ(n^2/B^2) per update on sequences of Θ(n^2/B) insertions.The algorithm must produce all answers correctly with probability at least 3/4 for every update sequence.Source: §5 · p. 24
5.1 The Graph Construction
- In the graph construction, inserting {s, A_i,1} connects s to t if and only if the encoded Index bit x_i equals 1.Each gadget contains two cliques; swapping a hidden edge pair creates the cross-clique connection for a 1-bit.Source: §5.1 · pp. 25–26
5.2 Bob’s Simulation
- For any fixed advice string z ∈ {0, 1}^B, when simulating A with initial state z, Bob makes successful probes in more than 2B distinct gadgets across all k possible inputs with probability at most 2^-2B.The construction randomness and simulation randomness are separate and independent.Source: §5.2 · p. 27, §5.1 · p. 27
5.3 The Communication Protocol
- Alice encodes successful probes by sending the indices of at most 2B gadgets, keeping the state-plus-probe message below k/64 bits and contradicting the Index communication lower bound.If the successful-probe tail bound fails, Alice aborts; the stated success probability remains above 2/3 for B ≥ 4.Source: §5.3 · p. 28
6 Incremental Amortized Lower Bound
The section establishes amortized probe lower bounds for incremental connectivity with bounded workspace under adjacency-matrix and adjacency-list access. Its arguments use path-parity gadgets and a block method that controls recorded-answer correctness using the algorithm’s matrix-probe count.
6 Incremental Amortized Lower Bound
- For B ≤ c0n, success probability at least 2/3 requires amortized Ω(n^3/2/B) adjacency-matrix probes per insertion.A total budget below c n^5/2/B fails with probability at least 1/3 on some fixed sequence of Θ(n) insertions; the adjacency-list lower bound is Ω(√(n/B)) probes per insertion.Source: §6 · p. 29
6.2.1 High-level Idea
- A hidden random Hamiltonian path and vertex bits determine gadget parities, so answering requires learning how the gadget endpoints relate along the paths.Earlier matching edges can help reveal that relation, but each probe finds a new random-path edge with probability O(1/N); the proof’s intuition derives the amortized lower bound from the resulting scarcity of determined rounds.Source: §6 · p. 29, §6.2.1 · p. 31
6.1 Construction
- In the construction, each sequence has Θ(n) insertions; a wrong-parity gadget connects s and t, while correct-parity gadgets leave them disconnected.In I0, s and t stay disconnected; in Ij, they first become connected in round j and remain connected thereafter.Source: §6.1 · p. 30
6.2.2 Formal Proof
- The formal proof bounds determined rounds by the cycle rank of the revealed-path-and-matching graph, since each determined round closes a cycle.When endpoints are in different revealed components, the correct answer remains a fair bit even given the transcript; the proof uses this to limit how many answers the algorithm can get right from its block advice.Source: §6.2.1 · p. 31, §6.2.2 · pp. 34–35
- The block proof limits each copied experiment to ⌊q/(2k)⌋ matrix probes and uses the block’s I0 probe count QJ to bound recorded-answer correctness.The cutoff is applied across each experiment’s two insertions; the auxiliary computation’s combined oracle-probe count is at most QJ + q/2.Source: §6.2.2 · pp. 35–36
6.3 Proof of Theorem 6.1
- Ω(n^(3/2)/B) amortized adjacency-matrix probes are necessary: with B ≤ c0n bits and total budget below c n^(5/2)/B, some fixed sequence of Θ(n) insertions has all answers correct with probability below 2/3.The theorem assumes sufficiently large n and absolute constants c, c0 > 0.Source: §6.3 · p. 36
- Ω(√(n/B)) amortized adjacency-list probes are necessary, since each adjacency-list probe can be simulated using O(n) adjacency-matrix probes.The lower bound applies to the adjacency-list model under the theorem’s bounded-workspace conditions.Source: §6.3 · p. 36
7 Upper Bounds for Incremental Algorithms
The section fixes the incremental connectivity setting: an initially empty graph receives a fixed sequence of edge insertions, and the algorithm reports whether s and t are connected. The update sequence and adjacency-list orderings may also depend on prior answers, but not on other information about the algorithm.
7 Upper Bounds for Incremental Algorithms
- The graph is initially empty, and each update inserts an edge from a sequence fixed in advance, with oracle access to the graph before that insertion.The answer reports connectivity in the graph after the insertion.Source: §7 · p. 37
- The guarantees also hold when updates and adjacency-list orderings depend on previous connectivity answers, but not on other information about the algorithm.The authors therefore assume an oblivious adversary, citing the reduction of Aamand et al. [AKŁ+23, p. 6:2, footnote 2].Source: §7 · p. 37
7.1 Proof of Theorem 1(a)
Theorem 1(a) gives a randomized landmark-based incremental algorithm with bounded workspace and model-dependent worst-case update time. A disjoint-set structure tracks connectivity among landmarks, while graph searches locate landmarks in the current components.
7.1 Proof of Theorem 1(a)
- The algorithm maintains landmarks and a disjoint-set structure, using component searches to find landmarks and joining their classes when an inserted edge connects components.Sampling updates and adding landmarks at endpoints support the update procedure; the reported answer is whether s and t have the same set representative.Source: §7.1 · pp. 37–38
- With probability at least 1 − n^-c, all answers are correct; update i uses eO(S + min{n, i}/S) words and takes eO(n(1 + min{n, i}/S)) matrix time or eO(min{n^2/S^2, 1 + i/S}) list time.The guarantee holds for every update sequence.Source: §7.1 · p. 38
Correctness Analysis
- The disjoint-set classes match the graph components restricted to current landmarks, so comparing the representatives of s and t gives the correct connectivity answer.The proof establishes this invariant by induction over updates.Source: Correctness Analysis · p. 38
Time and Space Analysis
- On a high-probability event, landmark searches examine at most r discovered vertices and min{r^2, q_i} neighbors, yielding the stated model-specific time bounds.Here r = ⌈α min{n, i} log(2n)/S⌉ and q_i = 2αi log(2n)/S; list searches charge examined neighbors, while matrix searches scan rows.Source: Time and Space Analysis · p. 39
- The landmark set and disjoint-set structure use eO(S) words, while a search stores at most r discovered vertices and O(1) additional words.The landmark-count bound holds with high probability throughout the update sequence.Source: Time and Space Analysis · pp. 38–39
7.2 Proof of Theorem 1(b)
The proof replaces breadth-first searches with Metropolis walks to locate landmarks while using eO(S) workspace. The resulting incremental list-model algorithm is correct with high probability and has worst-case update time eO(1 + min{n, i}^2/S^2).
7.2 Proof of Theorem 1(b)
- Locate replaces breadth-first searches with repeated Metropolis walks, each storing only its current vertex and running for at most 32r^2 steps.It returns a landmark found directly or among sampled neighbors, and declares LandmarkFree if no trial succeeds.Source: §7.2 · pp. 39–40
- Update i takes worst-case eO(1 + min{n, i}^2/S^2) time using eO(S) words, with all answers correct with probability at least 1 − n^−c.The guarantee holds for every update sequence.Source: §7.2 · p. 40, Time and Space Analysis · p. 42
Correctness Analysis
- With high probability, every LandmarkFree declaration is correct: the component contains no landmark in B.For components intersecting B, each trial returns a landmark with probability at least 1/4; repeated trials make false declarations unlikely.Source: Correctness Analysis · pp. 40–41
Time and Space Analysis
- The analysis bounds each Locate call by eO(r^2) time and O(1) additional words, yielding the stated update-time and eO(S)-space guarantees.Each update makes at most three Locate calls; the landmark sets and associated data use eO(S) words.Source: Time and Space Analysis · p. 42
7.3 Proof of Theorem 1(c)
This section proves bounds for a randomized incremental connectivity algorithm, including high-probability correctness and near-linear-in-prefix total time and query bounds, with a corresponding matrix-model bound obtained by simulating list queries with row scans. The analysis controls landmark budgets and promotions, internal-update costs, search scales, and cumulative resistance across inserted edges.
7.3 Proof of Theorem 1(c)
- With eO(S) words of space, the list-model algorithm is correct with probability at least 1 − n^-c and uses eO(k(1 + min{n, k}/S)) total time and queries in every first-k-update prefix.Simulating each list query by an adjacency-matrix row scan yields the matrix-model bound.Source: §7.3 · p. 43
Correctness Analysis
- With probability at least 1 − n^-c, every LandmarkFree declaration is correct, enabling union-find classes on landmarks to track graph components containing landmarks.The proof establishes this by induction over updates, using walks in the graph before each insertion and the correctness of LandmarkFree declarations.Source: Correctness Analysis · pp. 43–44
Time and Space Analysis
- On event E, simultaneously for every k∈[M], the first k updates cost eO(k(1+min{n,k}/S)), by summing the update contributions.For κ≥λ≥K(c), with probability at least 1−n−c, Ui=eO(1+iRi/S) simultaneously for every i>S with i∈I. For every 1≤k≤M, ∑_{i∈I:i≤k} Ri=O(min{n,k} log² n).Source: Time and Space Analysis · pp. 44–45
7.3.1 A foreword on the random walks’ history
- Conditioned on the history before a walk or trial batch, each walk is a simple random walk on the fixed pre-update graph, and trials in a batch are independent.The insertion sequence is fixed in advance, so prior random choices determine the graph and walk parameters, while each walk’s own random choices remain independent.Source: §7.3.1 · p. 45
7.3.2 Random walks and landmark-free declarations
- With high probability, components containing landmarks are within r = ⌈2α min{n, i} log(2n)/S⌉ of one, while landmark-free components have size below r and volume below 4αi log(2n)/S.These properties support the walk bounds: basic walks and updates take eO(min{n, i}i/S^2) operations, and LandmarkFree declarations are correct with high probability.Source: §7.3.2 · pp. 46–47
7.3.3 Landmark budget
- With probability at least 1 − n^-c, simultaneously for every k, the weight of updates in R is eO(k) and |Bk| = eO(S).The weight of update i is max{1, i/S}; the landmark bound follows by accounting for sampled and promoted updates.Source: §7.3.3 · pp. 48–49
7.3.4 Internal-update cost
- With probability at least 1 − n^-c, every i > S in I has internal-update cost Ui = eO(1 + iRi/S).The search ends by scale T* = eO(1 + iRi/S), except with a small failure probability.Source: §7.3.4 · p. 49
7.3.5 Cumulative resistance
- With probability one, simultaneously for every 1 ≤ k ≤ M, the cumulative resistance over i ∈ I with i ≤ k is O(min{n, k} log^2 n).The proof bounds the resistance contributions within each connected component using spanning-tree counts and cycle-length constraints.Source: §7.3.5 · pp. 50–51
7.4 Fully Dynamic Algorithm on Forests
The fully dynamic forest algorithm stores sparse landmarks along canonical Euler tours and repairs their spacing after each update. It uses O(S) words, with worst-case update time O(n^2/S) in the matrix model and O((n/S)(∆ + log S)) in the list model when degree is bounded by ∆.
7.4 Fully Dynamic Algorithm on Forests
- An edge update changes the canonical Euler tours locally, so the algorithm splits and rejoins the stored circular lists around a constant-size set of affected oriented edges.The update identifies these edges from the endpoint neighborhoods, then repairs landmark gaps affected by the change.Source: §7.4 · pp. 52, 54
- The algorithm stores landmarks only on long canonical Euler tours, maintaining gaps between landmarks in [ℓ, 2ℓ] for ℓ = ⌈2n/S⌉.Each tree shorter than ℓ has no landmarks; long trees have landmarks whose gaps sum to the tour length.Source: §7.4 · p. 52
- Connectivity is tested by walking from each terminal’s incident edge until the walks meet or reach landmarks whose stored circular lists can be compared.The landmark invariant bounds navigation length; matching stored-list roots identifies whether the terminals lie in the same tree.Source: §7.4 · p. 53, Correctness Analysis · p. 54
- O(S) words suffice for worst-case update time O(n^2/S) in the matrix model and O((n/S)(∆ + log S)) in the list model on forests of maximum degree ∆.The theorem applies for 1 ≤ S ≤ n; both bounds are tight in the stated forest setting.Source: §7.4 · p. 54
Correctness Analysis
- Repair restores landmark gaps to [ℓ, 2ℓ] using O(mℓ) successor evaluations and membership tests when its initial set W has m landmarks.It merges short gaps, removes a sole landmark from a short tour, and splits gaps exceeding 2ℓ.Source: Correctness Analysis · p. 54
Time and Space Analysis
- Each update uses O(ℓ) navigation steps and scans, with O(log(S + 1))-time interface operations, yielding the theorem’s time and space bounds.At most O(S) landmarks are stored, and the circular-list interface uses balanced search trees.Source: Time and Space Analysis · p. 55, §7.4.1 · p. 55
7.4.1 Implementing the circular lists
- The circular-list interface stores lists in balanced search trees and supports each operation in O(log(k + 1)) worst-case time using O(k) words for k landmarks.Operations include lookup, splitting, joining, insertion, and deletion.Source: §7.4.1 · p. 55
A Further Motivation
The model fits an independently owned graph that a memory-limited monitor can reread but cannot modify or index freely. The section illustrates this setting with network monitoring and record-linkage auditing, and identifies when the model applies to filtered views.
A Further Motivation
- A separate monitor receives graph updates and can inspect the owner-maintained graph, but cannot annotate its representation or build an unrestricted auxiliary index.The monitor’s persistent and temporary memory are both limited, and the graph is read-only to it.Source: A Further Motivation · p. 55
- Network monitoring reduces link failures and recoveries to edge deletions and insertions while tracking connectivity between two designated sites.Routing policies, directions, capacities, and latencies would require richer problems than the graph-level connectivity task.Source: A Further Motivation · pp. 55–56
- In record-linkage auditing, accepted symmetric links form equivalence classes, and an alarm is raised when an insertion connects two records known to describe different entities.The alarm remains set under insertions; allowing link withdrawals makes the task fully dynamic.Source: A Further Motivation · p. 56
- The model is most relevant when no shared index is available or analyses use different graph views; a source-data change affecting many view edges is not automatically one update.Explicitly supplied edge updates to a filtered view fit the model.Source: A Further Motivation · p. 56
- Read-only graph systems provide related settings, but the cited models give writable memory proportional to the number of vertices rather than the smaller workspace regimes considered here.The paper’s setting also concerns an externally owned graph that changes over time.Source: A Further Motivation · p. 56
B Related Work
The related work spans static small-space connectivity, dynamic data structures, streaming, and read-only input models. The paper distinguishes its fixed-pair, read-only-oracle setting and total-workspace bounds from these neighboring approaches.
B Related Work
- Static randomized algorithms trade space for time using random walks and landmarks, but their stored information refers to a single fixed graph.Feige’s static tradeoff is eO(m + n^2/W) time with eO(W) words; invoking it directly is further complicated by the list model’s lack of reverse-port access.Source: B Related Work · p. 56
- Classical deterministic results establish logarithmic-space undirected connectivity, but do not provide the fast intermediate-space tradeoffs targeted here.Reingold’s theorem gives the optimal O(log n) space bound and implies SL = L.Source: B Related Work · p. 57
- Compact connectivity indexes recover component information from small summaries and graph access, but the cited oracle addresses static input and separates persistent from temporary memory.This paper instead charges all writable memory to one bound while handling updates.Source: B Related Work · p. 57
- Lower bounds for graph automata depend on restricted navigation and memory, so they do not directly yield general word-RAM lower bounds.The cited line includes tradeoffs for undirected s–t connectivity on graph automata.Source: B Related Work · p. 57
- Conventional dynamic connectivity achieves polylogarithmic updates by maintaining substantial vertex-level state, while this paper studies much smaller workspace.Earlier dynamic lower bounds largely concern update–query tradeoffs, including logarithmic bounds.Source: B Related Work · pp. 57–58
- The paper’s lower bounds charge probes or time against the current input and constrain all writable workspace, unlike dynamic data-structure bounds; they do not resolve polynomial cell-probe lower-bound questions.The terminal pair is fixed, and an answer is required after every update.Source: B Related Work · p. 58
- Streaming and sketching impose different access or output constraints, and sensitivity oracles rely on preprocessing and bounded-change interfaces rather than online fixed-pair maintenance.Streaming lower bounds for global connectivity or spanning forests should not be read as identical bounds for fixed-pair connectivity.Source: B Related Work · p. 58
- Read-only semi-external systems and auxiliary-memory frameworks separate input from writable information, but differ in access costs, memory regimes, or whether the input changes.The paper applies this separation to exact undirected fixed-pair connectivity under online updates.Source: B Related Work · p. 59
AI Acknowledgment
The authors describe independent contributions from themselves and AI tools across the paper’s lower and upper bounds. AI tools also helped generate figures.
AI Acknowledgment
- The lower-bound ideas originated with the authors, while AI tools helped work out technical details.The tools named are Astra and Claude Opus.Source: AI Acknowledgment · p. 59
- The authors supplied the ideas for Theorems 1(a) and 5, while proofs of Theorems 1(b) and 1(c) were obtained with AI tools in interaction with the authors.AI tools were also used to generate figures.Source: AI Acknowledgment · p. 60