• edited by
1,767 views
0 0 votes

In an adjacency list representation of an undirected graph G = (V,E), for any 2 sets of vertices V1 and V2 let, distance (V1,V2) be defined as the minimum of the length of shortest distance between a vertex in V1 and V2, if V1 ∩ V2 ≠ ∅, then distance  (V1,V2) = 0. the most optimal time complexity for computing distance (V1,V2) is :

 

WHAT KIND OF SETS IT IS TALKING ABOUT .....?AND HOW IT CAN BE FORMED  PLEASE GIVE EXAMPLE .

Please log in or register to answer this question.

Position:
Show:

Related questions

0 0 votes
1 1 answer
1.4k
1.4k views
aashish1406 asked Aug 9, 2023
1,440 views
Suppose we have a directed graph G = (V,E) with V= {1, 2, ..., n} and Eis presented as an adjacency list. For each vertex u in V, out(u) is a list such that (u, v) in {1,...
0 0 votes
1 answers 1 answer
926
926 views
srestha asked May 10, 2019
926 views
Consider the following statement:$A)$ If all edge weight of a graph are positive then any subset of edges that connect all vertices and has minimum total weight is a tree...
0 0 votes
2 answers 2 answers
3.5k
3.5k views
noob_coder asked Mar 10, 2019
3,510 views
Suppose that you are running Dijkstra’s algorithm on the edge-weighted diagram below, starting from vertex A. The Table gives ‘Distance’ and ‘Parent’ entry of each verte...
0 0 votes
2 2 answers
1.5k
1.5k views
screddy1313 asked Jan 26, 2019
1,530 views
can anyone explain how dijkstras will behave as BFS whwn a graph is unweighted?