retagged by
1,242 views
0 0 votes

An undirected graph G has 300 edges. The degree of a vertex v, deg(v), is the number of edges connected to v. Suppose V = {v1,v2,...,v30}.

What is the value of deg(v1)+ deg(v2) + · · · + deg(v30)?

 

  1. 300
  2. 600
  3. 900
  4. None of these

2 Answers

1 1 vote

According to Handshaking lemma,

Sum of degree of all vertices= 2*|E| 

ie, 2*total number of edges

So here, we have number of edges as 300 and we need to find sum of degrees of all vertices.

Hence. 2*300=600

Option (B)

0 0 votes

Correct Answer: (B)

Let n = number of vertices in the graph and |E| = number of edges in graph.

Given |E| = 300.

By Handshaking Lemma, 

For i = 1 to n                ∑ deg(Vi) = 2 × |E|

i.e. Sum of degree of all the vertices is twice the number of Edges

Let’s understand what is the logic of above formula. Let’s consider a simple graph with only two vertices u and v and a single edge between them. The degree of vertex u = 1 and degree of vertex v = 1 and total number of edges in the graph is 1. Basically this single edge contributes degree of 1 to vertex u and degree of 1 to v. So, sum of their degrees turn out to be 2 which is equal to 2 |E|. 

We can generalize this idea and say that for any edge (u,v), this edge contributes degree 1 to both vertices of the edge (u, v). This generalization is basically Handshaking Lemma as mentioned above.

So, for the given problem, we can have

for i = 1, 2, 3, ….., 30

deg(V1) + deg(V2) + deg(V3) + ……. deg(V30) = 2 × 300 = 600

Hence answer is (B) 600

Position:
Show:

Related questions

0 0 votes
1 answers 1 answer
1.1k
1.1k views
rsansiya111 asked Dec 8, 2021
1,091 views
Consider the following algorithm on a graph with edge weights.Sort the edges as [e1,e2,...,em] in decreasing order of cost.Start with the original graph. Consider each ed...
0 0 votes
1 answers 1 answer
2.0k
2.0k views
rsansiya111 asked Dec 8, 2021
1,957 views
Consider the following strategy to solve the single source shortest path problem with edge weights from source s.1. Replace each edge with weight w by w edges of weight 1...
0 0 votes
1 1 answer
1.1k
1.1k views
rsansiya111 asked Dec 7, 2021
1,085 views
Let G be a weighted connected undirected graph with distinct positive edge weights.If every edge weight is increased by the same value, then which of the following statem...
0 0 votes
1 1 answer
712
712 views