Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

G2 GI G3 Vimax G4 G5 =(VE) Consider the digraph G=(V,E) at the left figure composed of six internally fully connected 1 subgraphs G, i=1,...,6

image text in transcribed

G2 GI G3 Vimax G4 G5 =(VE) Consider the digraph G=(V,E) at the left figure composed of six internally fully connected 1 subgraphs G, i=1,...,6 with |V=6n vertices! Each G, has n vertices (with indices ranging from (i-1)*n+1 to i*n, vertices of G3: [2n+1, 3n]). The interconnections between subgraphs are always from the highest indexed vertex of G; to lowest indexed vertex Vi min of G, (e.g., the edge from Gs to G, goes from Vsn to Vn+1). The edges are weighted such that all edges of each G, i=1,...,6 (both within G, and interconnecting) have a weight of i (e.g., each G6 edge within G, and any edge going out of v, has a weight of 1 while each edge within G, and any edge going out of v2n has a weight of 2). Hint for (a and b): You may apply the algorithms from our online discussions to solve the following problems; but it may be easier to figure out the graph and solve it directly without using the algorithm. a) Find the shortest path to each vertex in G from v, and draw a graph that shows only these paths with the weights for each edge on that graph. b) Find (i.e. draw) one of the minimum spanning trees MST, of the underlying graph of G that minimizes the average distance pave p.(u,v), between all pairs of vertices where p,(u, v) is the shortest path between vertices u and y in MST: Show each vertex of G and the connecting edges & weights in your MST. c) Apply depth first search (DFS) to the graph above starting at v,! Disregard the weights of edges for this part of question! Perform your search regarding the vertices'ascending numerical order! Show the final output (order of processed vertices along with the time stamps) of the algorithm! wel ve G2 GI G3 Vimax G4 G5 =(VE) Consider the digraph G=(V,E) at the left figure composed of six internally fully connected 1 subgraphs G, i=1,...,6 with |V=6n vertices! Each G, has n vertices (with indices ranging from (i-1)*n+1 to i*n, vertices of G3: [2n+1, 3n]). The interconnections between subgraphs are always from the highest indexed vertex of G; to lowest indexed vertex Vi min of G, (e.g., the edge from Gs to G, goes from Vsn to Vn+1). The edges are weighted such that all edges of each G, i=1,...,6 (both within G, and interconnecting) have a weight of i (e.g., each G6 edge within G, and any edge going out of v, has a weight of 1 while each edge within G, and any edge going out of v2n has a weight of 2). Hint for (a and b): You may apply the algorithms from our online discussions to solve the following problems; but it may be easier to figure out the graph and solve it directly without using the algorithm. a) Find the shortest path to each vertex in G from v, and draw a graph that shows only these paths with the weights for each edge on that graph. b) Find (i.e. draw) one of the minimum spanning trees MST, of the underlying graph of G that minimizes the average distance pave p.(u,v), between all pairs of vertices where p,(u, v) is the shortest path between vertices u and y in MST: Show each vertex of G and the connecting edges & weights in your MST. c) Apply depth first search (DFS) to the graph above starting at v,! Disregard the weights of edges for this part of question! Perform your search regarding the vertices'ascending numerical order! Show the final output (order of processed vertices along with the time stamps) of the algorithm! wel ve

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Programming Languages 12th International Symposium Dbpl 2009 Lyon France August 2009 Proceedings Lncs 5708

Authors: Philippa Gardner ,Floris Geerts

2009th Edition

3642037925, 978-3642037924

More Books

Students also viewed these Databases questions

Question

When is it appropriate to use a root cause analysis

Answered: 1 week ago