Question

Suppose that we generate a random graph G = (V, E) on the vertex set V...

Suppose that we generate a random graph G = (V, E) on the vertex set V = {1, 2, . . . , n} in the following way.

For each pair of vertices i, j ∈ V with i < j, we flip a fair coin, and we include the edge i−j in E if and only if the coin comes up heads.

How many edges should we expect G to contain?

How many cycles of length 3 should we expect G to contain?

Homework Answers

Answer #1

The number of edges in G depend on the flip of the coin.

Since the coin is fair, the probability to include any edge is 1/2.

Since the number of vertices is n, there are n(n-1) pair of vertices in a random graph.

So each of edges get added with probability p=1/2 and any two edges in the graph are added with probability .

Thus, there are edges in the graph.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
# Problem Description Given a directed graph G = (V,E) with edge length l(e) > 0...
# Problem Description Given a directed graph G = (V,E) with edge length l(e) > 0 for any e in E, and a source vertex s. Use Dijkstra’s algorithm to calculate distance(s,v) for all of the vertices v in V. (You can implement your own priority queue or use the build-in function for C++/Python) # Input The graph has `n` vertices and `m` edges. There are m + 1 lines, the first line gives three numbers `n`,`m` and `s`(1 <=...
You are given a directed acyclic graph G(V,E), where each vertex v that has in-degree 0...
You are given a directed acyclic graph G(V,E), where each vertex v that has in-degree 0 has a value value(v) associated with it. For every other vertex u in V, define Pred(u) to be the set of vertices that have incoming edges to u. We now define value(u) = ?v∈P red(u) value(v). Design an O(n + m) time algorithm to compute value(u) for all vertices u where n denotes the number of vertices and m denotes the number of edges...
Let G = (V,E) be a graph with n vertices and e edges. Show that the...
Let G = (V,E) be a graph with n vertices and e edges. Show that the following statements are equivalent: 1. G is a tree 2. G is connected and n = e + 1 3. G has no cycles and n = e + 1 4. If u and v are vertices in G, then there exists a unique path connecting u and v.
Prove that if deg(v) ≤ 4 for all vertices in an (undirected) graph G = (V,...
Prove that if deg(v) ≤ 4 for all vertices in an (undirected) graph G = (V, E), then we can orient all edges in E such that the in-degree of every vertex is at most 2.
A spanning tree of connected graph G = (V, E) is an acyclic connected subgraph (V,...
A spanning tree of connected graph G = (V, E) is an acyclic connected subgraph (V, E0 ) with the same vertices as G. Show that every connected graph G = (V, E) contains a spanning tree. (It is the connected subgraph (V, E0 ) with the smallest number of edges.)
Problem 2. Consider a graph G = (V,E) where |V|=n. 2(a) What is the total number...
Problem 2. Consider a graph G = (V,E) where |V|=n. 2(a) What is the total number of possible paths of length k ≥ 0 in G from a given starting vertex s and ending vertex t? Hint: a path of length k is a sequence of k + 1 vertices without duplicates. 2(b) What is the total number of possible paths of any length in G from a given starting vertex s and ending vertex t? 2(c) What is the...
Suppose that G is a graph and a and b are vertices in G such that...
Suppose that G is a graph and a and b are vertices in G such that a does not =b. Prove that if there is a walk from a to b, then there is a path from a to b. A walk in the graph is a sequence of vertices where there is an edge between each pair a_i and a_(i+1). The length of a walk is n. If a_0=a_n, ie if the walk begins and ends at the same...
30. a) Show if G is a connected planar simple graph with v vertices and e...
30. a) Show if G is a connected planar simple graph with v vertices and e edges with v ≥ 3 then e ≤ 3v−6. b) Further show if G has no circuits of length 3 then e ≤ 2v−4.
we consider a graph G= (V, E), with n=|V| and m=|E|. Describe an O(n+m) time algorithm...
we consider a graph G= (V, E), with n=|V| and m=|E|. Describe an O(n+m) time algorithm to find such a vertex w. Hint: a depth-first search from u might be helpful.
Let n be a positive integer, and let Hn denote the graph whose vertex set is...
Let n be a positive integer, and let Hn denote the graph whose vertex set is the set of all n-tuples with coordinates in {0, 1}, such that vertices u and v are adjacent if and only if they differ in one position. For example, if n = 3, then (0, 0, 1) and (0, 1, 1) are adjacent, but (0, 0, 0) and (0, 1, 1) are not. Answer the following with brief justification (formal proofs not necessary): a....
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT