Question: Given an undirected graph G G G G , the problem is to determine whether or not G G G G is connected. Use an

Given an undirected graph GG, the problem is to determine whether or not GG is connected. Use an adversary argument to prove that it is necessary to look at all (n2n)/2(n2n)/2 potential edges in the worst case.

Graph G:

A graph G=(V,E) consists of a set of vertices V and a set of edges E, such that each edge in E is a connection between a pair of vertices in V.1 The number of vertices is written |V|, and the number of edges is written |E|.|E| can range from zero to a maximum of |V|2|V|. A graph with relatively few edges is called sparse, while a graph with many edges is called dense. A graph containing all possible edges is said to be complete.

 A graph whose edges are not directed is called an undirected graph (as illustrated by Figure 11.1(a)).

Figure 11.1 (a):

Given an undirected graph GGGG, the problem is to determine whether or

Step by Step Solution

3.44 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Yes it is necessary to look at all n n 1 2 fracnn12 2nn1 potential edges in the worst case to determ... View full answer

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 Practical Introduction To Data Structures Questions!