Question: Consider the digraph G = ( V , E ) at the left figure composed of six internally fully connected subgraphs G i , i

Consider the digraph G=(V,E) at the left figure composed of six internally fully connected
subgraphs Gi,i=1,dots,6 with |V|=6n vertices! Each Gi 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 vimax of Gi to lowest indexed vertex vjmin of Gj
(e.g., the edge from G5 to G2 goes from v5n to vn+1). The edges are weighted such that all
edges of each Gi,i=1,dots,6(both within Gi and interconnecting) have a weight of i(e.g., each
edge within G1 and any edge going out of vn has a weight of 1 while each edge within G2 and
any edge going out of v2n has a weight of 2).
Hint for 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 v1 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 MSTi of the underlying graph of G that minimizes the
average distance pavei=1|V|2uinV?vinV?pi(u,v), between all pairs of vertices where pi(u,v) is the shortest path between
vertices u and v in MSTi. 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 v1! 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!
 Consider the digraph G=(V,E) at the left figure composed of six

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!