Let G = (V, E) be an n-vertex undirected unweighted graph, and R ⊆ V be a random subset…
- User
Let G = (V, E) be an n-vertex undirected unweighted graph, and R ⊆ V be a random subset of size O(n ^1−a log n), where a ⩽1/2 is a fractional parameter. Let H = (V, EH) be an auxiliary directed weighted graph derived from G as follows: For each x ∈ V , compute a set B(x, n^a) of closest n^a vertices to x, and add to H an edge from x to each y ∈ B(x,n^a) of weight dist(x, y, G). For each x ∈ V , let p(x) be the vertex in R closest to x, and for L ⩾ 0, let N(x, L) denote the set of all those vertices y whose distance from x is at most L. Further, for any L > 0, let VL = {x ∈ V | N(x, L) ⊆ B(x, n^a)}.Prove that with probability 1 −1/n^2 , for each x ∈ V \ VL, dist(x, p(x), G) ⩽ L.
- Assistant
To prove the given statement, we'll use the union bound and show that for each vertex x ∈ V \ VL, the probability that dist(x, p(x), G) > L is at most 1/n^2.
Let's fix a vertex x ∈ V \ VL. We want to calculate the probability that dist(x, p(x), G) > L.
First, notice that p(x) is the vertex in R closest to x, so by definition, dist(x, p(x), G) <= dist(x, r, G) for any r ∈ R.
Now, let's consider the event A(i) that there exists a vertex r ∈ R such that dist(x, r, G) ≤ L and dist(x, p(x), G) > L. For any fixed r ∈ R, the probability of this event is given by:
- User
Let G = (V, E) be an n-vertex undirected unweighted graph, and R ⊆ V be a random subset of size O(n ^1−a log n), where a ⩽1/2 is a fractional parameter. Let H = (V, EH) be an auxiliary directed weighted graph derived from G as follows: For each x ∈ V , compute a set B(x, n^a) of closest n^a vertices to x, and add to H an edge from x to each y ∈ B(x,n^a) of weight dist(x, y, G). For each x ∈ V , let p(x) be the vertex in R closest to x, and for L ⩾ 0, let N(x, L) denote the set of all those vertices y whose distance from x is at most L. Further, for any L > 0, let VL = {x ∈ V | N(x, L) ⊆ B(x, n^a)}. Consider a pair of vertices (x, y) in G satisfying dist(x, y, G) = D, and let P be any arbitrary x to y shortest path in G. Prove that the following holds:
- If all the vertices in P lie in VϵD/2 +1, then there exists a vertex in V (P) whose hop-distance1 from x as well as y in H is at most ⌈1/ϵ⌉.
- If P contains a vertex from V\ Vϵ D/2 +1, then there exists a vertex in V (P) \ VϵD/2 +1 whose hop distance from either x or y is at most ⌈1/ϵ⌉.
- Assistant
- User
Let G = (V, E) be an n-vertex undirected unweighted graph, and R ⊆ V be a random subset of size O(n ^1−a log n), where a ⩽1/2 is a fractional parameter. Let H = (V, EH) be an auxiliary directed weighted graph derived from G as follows: For each x ∈ V , compute a set B(x, n^a) of closest n^a vertices to x, and add to H an edge from x to each y ∈ B(x,n^a) of weight dist(x, y, G). For each x ∈ V , let p(x) be the vertex in R closest to x, and for L ⩾ 0, let N(x, L) denote the set of all those vertices y whose distance from x is at most L. Further, for any L > 0, let VL = {x ∈ V | N(x, L) ⊆ B(x, n^a)}.Explain how to use above two parts to design an oracle of O(n^2−a log n) size that for any given x, y ∈ V reports a (1 + ϵ, 2)-approximation to (x,y) distance in G in O(n^a⌈1/ϵ⌉) time. (Hint: Use truncated BFS traversal in graph H from x and y).
- Assistant
To design an oracle of O(n^2-a log n) size that provides a (1 + ϵ, 2)-approximation to the distance between any given pair of vertices (x, y) in G, we can use the two parts mentioned and the truncated BFS traversal in graph H from x and y.
- User
Design an O(n^2.5 log n) time algorithm that, given an n -node graph G with non -negative edge weights, computes for all pairs of vertices u, v an estimate D(u, v), such that with high probability, for all pairs of vertices u, v for which there is a shortest path that uses at least √n nodes,D(u, v) is the distance between u and v.
- Assistant
To design an algorithm that computes an estimate D(u, v) for all pairs of vertices (u, v) in an n-node graph G, satisfying the condition that with high probability, D(u, v) is equal to the distance between u and v when the shortest path uses at least √n nodes, we can use the following approach: