Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Random Graph Algorithm 1: 1. Start with node set V with V| >1 2. E= {f} 3. Choose a random pair of nodes x e
Random Graph Algorithm 1: 1. Start with node set V with V| >1 2. E= {f} 3. Choose a random pair of nodes x e V and y E V that are non-adjacent 4. Add element {x,y} to set E 5. If E = M V*(VI-1) then we're done 6. Go to step 3 2 (a) (5 points) Please write another random graph algorithm (Random Graph Algo- rithm 2), in the same format, for directed graphs, when [V] = 8. Moreover, your algorithm needs to terminate after the input graph G has two-thirds of the maximum possible edges. (b) (5 points) Please draw an example of a graph obtained from your algorithm. (c) (5 points) Please draw an estimate of the evolution of the largest connected com- ponent in your graph as your algorithm (Random Graph Algorithm 2) proceeds. NOTE: This should not be similar to part (b). Random Graph Algorithm 1: 1. Start with node set V with V| >1 2. E= {f} 3. Choose a random pair of nodes x e V and y E V that are non-adjacent 4. Add element {x,y} to set E 5. If E = M V*(VI-1) then we're done 6. Go to step 3 2 (a) (5 points) Please write another random graph algorithm (Random Graph Algo- rithm 2), in the same format, for directed graphs, when [V] = 8. Moreover, your algorithm needs to terminate after the input graph G has two-thirds of the maximum possible edges. (b) (5 points) Please draw an example of a graph obtained from your algorithm. (c) (5 points) Please draw an estimate of the evolution of the largest connected com- ponent in your graph as your algorithm (Random Graph Algorithm 2) proceeds. NOTE: This should not be similar to part (b)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started