Show that if an undirected graph with n vertices has k connected components, then it has at least n - k edges.

Short Answer

Expert verified

The undirected graph with n vertices has k connected components with least n - k edges.

Step by step solution

01

Two sub graph of main graph  

If there is no edge between two sub-graphs of a given graph, they are said to have linked components.

That is, no edge E ( u,v) exists in which u corresponds towards the set of vertices of the very first sub-graph plus v belongs to that same vertex set of the second sub-graph, or vice versa..

02

Step 2: Evidence via Induction

Proof for the Most Basic Case:

When k = 1, there is only one linked component in a network with n vertices. All of the vertices in the network are linked since there is only one connected component.

There are at least n - 1 edges in an undirected network with n linked vertices.

As a result, the number of edges in the graph is n - 1.

Since k=1, the value of n - k = n - 1 can be calculated.

As a result, the assertion is correct for k = 0.

03

Assumption

The assumption is,

Suppose that for n = v and k = c, the assertion is correct.

As a result, there are at least v - c edges in the undirected graph G with v vertices and linked components.

Demonstrate that the assertion is correct for n = v and k = c + 1.

The proof is,

• There are at least v - c edges in a graph G with vvertices and clinked components. (based on the assumption from Step 2)

• Split one of the linked components of the graph G into two to make a graph G1 with c + 1 connected components.

• Because there must be no edge between two linked components, one of the edges must be eliminated to make a new connected component.

• Inside the graphs G1, overall number of edges is at least v - c -1 or v - (c + 1) (Since the graph G had v - cedges).

• Inside the graph G1 , the number of linked elements has become equal to c + 1, and the number of edges is at least v- ( c+ 1 ).

Assuming n = vvertices as well as k = c + 1 linked elements, the following holds true.

As a result, it has been established.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Under a Huffman encoding of symbols with frequenciesf1,f2,.....,fn , what is the longest a codeword could possibly be? Give an example set of frequencies that would produce this case.

Prove the following two properties of the Huffman encoding scheme.

(a) If some character occurs with frequency more than 25, then there is guaranteed to be a codeword of length 1 .

(b) If all characters occur with frequency less than13 , then there is guaranteed to be no codeword of length 1 .

Give You are given a graphG=(V,E)with positive edge weights, and a minimum spanning tree T=(V,E)with respect to these weights; you may assume GandTare given as adjacency lists. Now suppose the weight of a particular edge eE'is modified fromw(e)to a new value w'(e). You wish to quickly update the minimum spanning tree T to reflect this change, without recomputing the entire tree from scratch. There are four cases. In each case give a linear-time algorithm for updating the tree.

(a) eE'and w'(e)>w(e) .

(b) role="math" localid="1658907878059" eE'and w'(e)>w(e) .

(c) role="math" localid="1658907882667" eE'and w'(e)>w(e) .

(d) role="math" localid="1658907887400" eE'and w'(e)>w(e) .

The following table gives the frequencies of the letters of the English language (including the blank for separating words) in a particular corpus.

blank

18.3%

r

4.8%

y

1.6%

e

10.2%

d

3.5%

p

1.6%

t

7.7%

l

3.4%

b

1.3%

a

6.8%

c

2.6%

v

0.9%

o

5.9%

u

2.4%

k

0.6%

i

5.8%

m

2.1%

j

0.2%

n

5.5%

w

1.9%

x

0.2%

s

5.1%

f

1.8%

q

0.1%

h

4.9%

g

1.7%

z

0.1%

  1. What is the optimum Huffman encoding of this alphabet?
  2. What is the expected number of bits per letter?
  3. Suppose now that we calculate the entropy of these frequencies

H=t=026ptlog1pt

(see the box in page 143). Would you expect it to be larger or smaller than your answer above? Explain.

d. Do you think that this is the limit of how much English text can be compressed? What features of the English language, besides letters and their frequencies, should a better compression scheme take into account?

A long string consists of the four characters A,C,G,T ; they appear with frequency 31%,20%,9%and40% respectively. What is the Huffman encoding of these four characters?

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free