a) List of Strongly connected components are (a, c, f) , (b, d) and e
Strongly-Connected Components are nothing but A Graph G is strongly connected if, for every u and v in V, there is some path from u to v and some path from v to u.
Adjacency Matrix Representation of given Directed graph is as follows
a | b | c | d | e | f | |
a | 1 | 0 | 1 | 0 | 1 | 0 |
b | 0 | 0 | 0 | 1 | 1 | 0 |
c | 0 | 0 | 0 | 1 | 1 | 1 |
d | 0 | 1 | 0 | 0 | 0 | 0 |
e | 0 | 0 | 0 | 0 | 1 | 0 |
f | 1 | 0 | 0 | 0 | 0 | 0 |
10. Graphs (2 points) Determine the following for the graph G: a) List the strongly connected...
Please answer question 2. Introduction to Trees Thank you 1. Graphs (11 points) (1) (3 points) How many strongly connected components are in the three graphs below? List the vertices associated with each one. 00 (2) (4 points) For the graph G5: (a) (0.5 points) Specify the set of vertices V. (b) (0.5 points) Specify the set of edges E. (c) (1 point) Give the degree for each vertex. (d) (1 point) Give the adjacency matrix representation for this graph....
Exercise 2 Given the following graph: a. Write the formal description of the graph, G=(V,E) b. Show the Adjacency Matrix representation C. Show the Adjacency List representation d. Calculate step by step the shortest paths from a e. Show the DFS tree/forest from a f. Show the BFS tree/forest from a g MST using Prim h. MST using Kruskal
Problem 3 (15 points) Consider the graph shown on the right. Find the strongly connected components of the graph. For full credit, a) (6 points) Run DFS on the reverse graph, showing the discovery and finish times of each 10 vertex. b) (6 points) Run DFS again, to discover the strongly connected components. What is the 15 order the components are discovered? 12 c) (3 points) Draw the DAG of the components. What is the minimum number of edges that...
ignore red marks. Thanks 10. (16) You will compute the strongly connected components of this graph in three steps. a. STRONGLY-CONNECTED-COMPONENTS (G) (7) Perform a depth-first search on call DFS(G) to compute finishing times w/ for each vertex the following graph. (To make 2 compute GT this easier to grade, everyone call DFS(GT), but in the main loop of DFS, consider the vertices in order of decreasing wf (as computed in line 1) please start with vertex "a" and 4...
Problem 3 (15 points). Let G (V,E) be the following directed graph. a. 1. Draw the reverse graph G of G. 2. Run DFS on G to obtain a post number for each vertex. Assume that in the adjacency list representation of G, vertices are stored alphabetically, and in the list for each vertex, its adjacent vertices are also sorted alphabetically. In other words, the DFS algorithm needs to examine all vertices alphabetically, and when it traverses the adjacent vertices...
Graphs (15 points) 14. For the following graph (8 points): a. Find all the edges that are incident of v1: b. Find all the vertices that are adjacent to v3: C. Find all the edges that are adjacent to e1: d. Find all the loops: e. Find all the parallel edges: f. Find all the isolated vertices: g. Find the degree of v3: h. Find the total degree of the graph: e3 e2 V2 VI 26 e4 e7 es 05...
Goal Design and implement an algorithm to input the data representation of two graphs, determine if the graphs are complements of each other and, if so, outputs a message that the graphs are complements then outputs the degrees of the vertices of each graph, otherwise outputs a message to the contrary and immediately terminates. Details Input to your program consists of the representation of two graphs and will be in the following format: an integer m representing the number of...
Please help me with 2 (c), thank you!!! Figure 2: 4 10 Figure 3:1 4 Problems 1. Trace BFS on the following graphs. For each vertex, record its color, parent, and distance fields, draw the resulting BFS tree, and determine the order in which vertices are added to the Queue. Process adjacency lists in ascending numerical order. a. The graph in figure 1, with 1 as the source. b. The directed graph in figure 2 with 1 as source. 2....
Help 2 2. II. Use the previous graphs to create the following: 1. Adjacency matrix for G in 1. 2. Incidence matrix for G in 1. 3. Adjacency list for G in 3. 4. Adjacency matrix for I in 5. 5. What is the degree of vertex a in 2. 6. If is a subgraph from G in 2. II-(K, L) is a complete graph, K-(b,c,d) and K C V. Draw the graph
7. Graphs u, u2, u3, u4, u5, u6} and the (a) Consider the undirected graph G (V, E), with vertex set V set of edges E ((ul,u2), (u2,u3), (u3, u4), (u4, u5), (u5, u6). (u6, ul)} i. Draw a graphical representation of G. ii. Write the adjacency matrix of the graph G ii. Is the graph G isomorphic to any member of K, C, Wn or Q? Justify your answer. a. (1 Mark) (2 Marks) (2 Marks) b. Consider an...