0% found this document useful (0 votes)
372 views4 pages

Discrete Mathematics - Assignment 3 With Solutions (Part B)

The document contains solutions to 10 questions on discrete mathematics concepts such as graphs, trees, and graph theory terminology. Key points addressed include: - A graph with exactly two vertices of odd degree must contain a path between those vertices. - The handshaking theorem states the sum of degrees of vertices in an undirected graph is twice the number of edges. - Eulerian paths/circuits and Hamiltonian paths/circuits are defined and examples given. - Properties of complete graphs, bipartite graphs, and spanning trees are explained with examples. - Proofs are provided that the number of odd degree vertices is even and that a tree with n vertices has n-1 edges.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
372 views4 pages

Discrete Mathematics - Assignment 3 With Solutions (Part B)

The document contains solutions to 10 questions on discrete mathematics concepts such as graphs, trees, and graph theory terminology. Key points addressed include: - A graph with exactly two vertices of odd degree must contain a path between those vertices. - The handshaking theorem states the sum of degrees of vertices in an undirected graph is twice the number of edges. - Eulerian paths/circuits and Hamiltonian paths/circuits are defined and examples given. - Properties of complete graphs, bipartite graphs, and spanning trees are explained with examples. - Proofs are provided that the number of odd degree vertices is even and that a tree with n vertices has n-1 edges.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

QUESTION BANK WITH SOLUTIONS

15MA302 DISCRETE MATHEMATICS

ASSIGNMENT – 3

PART B
1. If any disconnected graph has exactly two vertices of odd degree, show that there is a path joining these two vertices.
Sol:
Proof:

Case (i) : Let G be connected.


Let v1 and v2 be the only vertices of G which are of odd degree.
But we already know that the number of odd vertices is even.
Clearly there is a path connecting v1 and v2, since G is connected.

Case (ii) : Let G be disconnected.


Then the component of G are connected. Hence v1 and v2 should belong to the same component of G.
Hence, there is a path between v1 and v2.

2. State and prove handshaking theorem.


Sol:
Theorem (The Handshaking Theorem) :

If G = (V, E) is an undirected graph with ‘E’ edges and ‘V’ vertices, then ∑( deg (𝑣( ) = 2𝑒.
viz., the sum of the degrees of all the vertices of an undirected graph is twice the number of edges of the graph and
hence even.

Proof:

Let G = (V, E) be an undirected graph with ‘E’ edges and ‘V’ vertices. Since every edge contributes 2 to the sum of the
degree of the vertices.
\ All the e edges contribute (2e) to the sum of the degrees of the vertices viz., ∑( deg (𝑣( ) = 2𝑒.

3. Explain the terms with examples.

i) Eulerian Path ii) Eulerian Circuit iii)Hamiltonian Path iv) Hamiltonian Circuit

Ans:
(i) Eulerian Path :

A path of graph G is called an Eulerian Path, if it includes each edge of G exactly once. Also, a connected graph
contains an Euler Path, if and only if it has exactly two vertices of odd degree.
For example,
A B

D C
G1

As Graph G1 contains an Eulerian Path between B and D namely, B – D – C – B – A – D, since it includes each
of the edges exactly once and the vertices B and D are of degree 3 each. Hence an Eulerian Path existed between
B and D.

(ii) Eulerian Circuit :

A circuit of graph G is called an Eulerian Circuit, if it includes each edge of G exactly once. Also, a connected
graph contains an Euler Circuit, if and only if each of its vertices is of even degree.
For example,
B C

E
A D
G2

As Graph G2 contains an Eulerian Circuit, namely, A – E – C – D – E – B – A, since it includes each of the edges
exactly once and all the vertices are of even degree. Hence an Eulerian Circuit existed.

(iii) Hamiltonian Path :

A path of graph G is called a Hamiltonian Path, if it includes each vertex of G exactly once.
For example,
C D

B A
G1
The Graph G1 has a Hamiltonian Path, namely, A – B – C – D, but not a Hamiltonian Circuit.

(iv) Hamiltonian Circuit :

A circuit of a graph G is called a Hamiltonian Circuit, if it includes each vertex of G exactly once, except the
starting and end vertices( which are one and the same) which appear twice.
For example,
B C

A D
G2
As Graph G2 has a Hamiltonian Circuit namely, A – B – C – D – A. We note that in this circuit all the vertices
appear (each only once), but not all edges.

4. Give an example of a graph which contains


(i) An Eulerian Circuit but not a Hamiltonian Circuit (ii) A Hamiltonian Circuit, but not a Eulerian Circuit.

Sol:

(i) A C
B

E D
G1

(ii)
B C

G2

(i) G1 contains the Eulerian Circuit A – B – C – D – B – E – A, but this circuit is not Hamiltonian, as the
vertex B is repeated twice.

(ii) G2 contains the Hamiltonian Circuit A – B – C – D – E – A. However, it does not contain Eulerian Circuit
as there are 4 vertices each of degree three.

5. Define the terms with examples.


(i) Complete Graph (ii) Bipartite Graph

Sol:
(i) Complete Graph :

A simple graph, in which there is exactly one edge between each pair of distinct vertices, is called a
complete graph.
The complete graph on n vertices is denoted by Kn.

For example,

K3 K4

(ii) Bipartite Graph :

If the vertex set V of a simple graph G = (V, E) can be partitioned into two subsets V1 and V2 such that
every edge of G connects a vertex in V1 and a vertex in V2 (so that no edge in G connects either two vertices in
V1 and a vertex in V2 (so that no edge in G connects either two vertices in V1 or two vertices in V2), then G is
called a bipartite graph.

If each vertex of V1 is connected with every vertex of V2 by an edge, then G is called a completely
bipartite graph. If V1 contains m vertices and V2 contains n vertices, the completely bipartite graph is denoted by
Km, n.

For example,
A1 A2

Bipartite

B1 B2 B3
A1 A2 A3 A4

Completely
Bipartite
B1 B2 B3 B4

6. Prove that in a graph, the number of odd degree vertices are always even.
Sol:

Let G = (V, E) be the undirected graph.


Let V1 and V2 be the sets of vertices of G of even and odd degrees respectively.
Then, by the Handshaking Theorem,

2e = ∑01∈35 deg (𝑣( ) + ∑01∈34 deg (𝑣/ ) (1)

Since each degree (vi) is even, ∑𝑣𝑖∈𝑉1 deg (𝑣( ) is even.

As the L.H.S. of (1) is even, we get

∑𝑣𝑖∈𝑉2 deg (𝑣/ ) is even.

Since each deg(vj) is odd, the number of terms contained in ∑𝑣𝑖∈𝑉1 deg (𝑣/ ) or in V2 is even, i.e., the
number of vertices of odd degree is even.

7. Which of the following graph is a Hamiltonian graph? Give reason.


D C A D

A (G1) B B (G2) C
Ans:
By Defn. A graph containing a Hamiltonian Circuit is called a Hamiltonian Graph.
Since, graph G1 has a Hamiltonian Circuit namely, A – B – C – D – A and thus is a Hamiltonian Graph.
Since, graph G2 has a Hamiltonian Path, namely, C – B – A – D, but not a Hamiltonian Circuit and thus it’s not a
Hamiltonian Circuit.

8. Define spanning tree.


Ans:

If the subgraph T of a connected graph G is a tree containing all the vertices of G, then T is called a spanning
tree of G.
For example, Let’s consider the graph G shown in the below figure. Since G has 4 vertices, any spanning tree of
G will also have 4 vertices and hence, 3 edges. [by property (2) i.e., A tree with n vertices has (n-1) edges.]
Since G has 5 edges, removal of 2 edges may result in spanning tree. This can be done in 5C2 = 10 ways,
but 2 of these 10 ways result in disconnected graphs. All the possible spanning trees are shown below.

9. Draw all the spanning trees for the following graph.


A B

C D
Sol:
A B A B A B A B

D C D C D C D
C

A B A B A B A B

D C D C D C D
C

10. Prove that a tree with n vertices has n – 1 edges


Sol:

The property is true for n =1, 2, 3 as seen from the below figure.

Let us now use mathematical induction to prove the property completely. Accordingly, let the property be
true for all trees with less than n vertices.

Let us now consider a tree T with n vertices.


Let ek be the edge connecting the vertices vi and vj of T.
Then, by property (1), ek is the only path between vi and vj.
If we delete the edge ek from T, T becomes disconnected and (T – ek) consists of exactly two components,
say, T1 and T2 which are connected.
Since, T did not contain any circuit, T1 and T2 are trees, each having less than n vertices, say r and n – r
respectively.

\ By the induction assumption, T1 has (r – 1) edges and T2 has (n – r – 1) edges.

\ T has (r – 1) + (n – r – 1) + 1 = n – 1 edges.

Thus, a tree with n vertices has (n – 1) edges.

11. Represent the following graph by adjacency matrix

A B C

E D

Sol:
By Defn. When G is a simple graph with n vertices v1, v2, … vn, the matrix A (or AG) º [aij],
1, if 𝑣= v? is an edge of G
where, aij = 9 is called the adjacency matrix of G.
0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
0 1 0 0 1
⎡1 0 0 1 1⎤
⎢ ⎥
The adjacency matrix for the given graph is, G = ⎢0 0 0 1 1⎥
⎢0 1 1 0 0⎥
⎣1 1 1 0 0⎦
1 1 1 0
1 0 0 1
12. Draw the graph represented by the adjacency matrix R S
0 0 1 0
0 1 0 1
Sol:

A B

D C

13. In any Boolean algebra show that (x + y) (x'+z) = xz + x' y + yz = x z + x' y

Sol:

Given,
(x + y) (x' + z)
=> xx' + xz + x’y + yz
=> xz + x’y + yz (Since, xx’ = 0)

Now, xz + x’y + yz
=> xz + x’y + yz(x + x’) (Since, x + x’ = 1)
=> xz + x’y + xyz + x’yz
=> (xz + xzy) + (x’y + x’yz)
=> xz + x’y

14. Prove that in a lattice if a ≤ b and c ≤ d, then a Ù c ≤ b Ù d

Sol:

//TODO

15. In a Boolean algebra B, show that a+1=1, a.0 = 0, a Î B.

Sol:

(i) L.H.S. = a + 1 = a + (a + a’) Complement Law


=> (a + a) + a’ Associative Law
=> a + a’ Idempotent Law
= 1 = R.H.S. Complement Law

(ii) L.H.S. = a.0 = a.0 + 0


=> a.0 + a.a’
=> a (0 + a’)
=> a.a’
=> 0

16. Define distributive lattice.

Ans:

By Defn.

A lattice {L, Ù, Ú} is called a distributive lattice, if for any element a, b, c Î L,

a Ù (b Ú c) = (a Ù b) Ú (a Ù c) and
a Ú (b Ù c) = (a Ú b) Ù (a Ú c).
In other words if the operations Ú and Ù distribute over each other in a lattice, it is said to be distributive.
Otherwise it is said to be non distributive.

17. Determine whether the posets represented by each of the following Hasse Diagrams are lattices.

(i) f (ii) f

e e
d
c d

b b c

a
a

Sol:

(i) The poset represented by the Hasse Diagram is a lattice, since every pair of elements of this poset has both an
LUB and GLB
(ii) Though the pair of elements {b, c} has 3 upper bounds d, e, f, none of these precedes the other two i.e.,
{b, c} does not have an LUB. Hence the poset is not a lattice.

You might also like