Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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!
image text in transcribed

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

Step: 3

blur-text-image

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

Formal SQL Tuning For Oracle Databases Practical Efficiency Efficient Practice

Authors: Leonid Nossov ,Hanno Ernst ,Victor Chupis

1st Edition

3662570564, 978-3662570562

More Books

Students also viewed these Databases questions

Question

Describe the appropriate use of supplementary parts of a letter.

Answered: 1 week ago