0% found this document useful (0 votes)
35 views22 pages

Be Computer-Engineering Semester-3 2019 May Discrete-Structures-Cbcgs

The expressions ¬(p ˅ ( ¬p ˄ q )) and ( ¬p ˄ ¬q) are logically equivalent. ¬(p ˅ ( ¬p ˄ q )) can be simplified to (¬p ˄ ¬q) using De Morgan's laws and logical equivalences for conjunction and disjunction.
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)
35 views22 pages

Be Computer-Engineering Semester-3 2019 May Discrete-Structures-Cbcgs

The expressions ¬(p ˅ ( ¬p ˄ q )) and ( ¬p ˄ ¬q) are logically equivalent. ¬(p ˅ ( ¬p ˄ q )) can be simplified to (¬p ˄ ¬q) using De Morgan's laws and logical equivalences for conjunction and disjunction.
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/ 22

DISCRETE STRUCTURES

MAY 19 (CBCS)

Q1 a) Prove using Mathematical Induction


2+5+8+….+(3n-1)=n(3n+1)/2 (5)

Solution:
Let P(n)= 2+5+8+….+(3n-1)=n(3n+1)/2

Step1: n=1
LHS=3x1-1
=2

RHS=1(3x1+1)/2
=2
LHS=RHS
P(n) is true for n=1.

Step2:
Let P(n) be true for n=k
2+5+8+….+(3k-1)=k(3k+1)/2 ……………………………(1)

Now we have to prove that P(n) is true for n=k+1

2+5+8+….(3k-1)+[3(k+1)-1]=(k+1)[3(k+1)+1]/2
LHS= 2+5+8+….(3k-1)+[3(k+1)-1]
=k(3k+1)/2+[3(k+1)-1]
=(3k2+k)/2+[3k+2]
=3k2+7k+4/2
=(k+1)(3k+4)/2

RHS=(k+1)[3(k+1)+1]/2
=(k+1)(3k+4)/2

LHS=RHS
P(n) is true for n=k+1

Hence from step1 and step2


By the principal of mathematical induction
2+5+8+….+(3n-1)=n(3n+1)/2

----------------------------------------------------------------------------------------------------------------
__________________________________________________________________________
Q1 b) Find the generating function for the following finite sequences
I) 1,2,3,4,……….
II) 2,2,2,2,2 (5)
Solution:

I) If {am}={a0,a1,a2,a3….} is a sequence of real numbers and x is a real variable then


Ordinary generating function of the sequence is infinite sum

g(x)= 
n 0
an xn =a0 + a1 x + a2 x2 + a3 x3 +……..
For sequence {an}={1,2,3,4,…….}
g(x)= 1+ 2 x + 3 x2 + 4 x3 +……..
=(1-x)-2
=1/(1-x)2
The generating function g(x) =1/(1-x)2

II) If {am}={a0,a1,a2,a3….} is a sequence of real numbers and x is a real


variable then Ordinary generating function of the sequence is infinite sum

g(x)= 
n 0
an xn =a0 + a1 x + a2 x2 + a3 x3 +……..
For sequence {an}={2,2,2,2,2}
g(x)= 2+ 2 x + 2 x2 + 2 x3 +2 x4 which id GP with first term a=2 number of terms n=5
and common ration r=x
In GP sum of series
a n
Sn = (r -1)
r -1

2
The generating function g(x) = (x5 -1)
x 1

----------------------------------------------------------------------------------------------------------------
__________________________________________________________________________

Q1 c) Let A={1,4,7,13} and R={(1,4), (4,7), (7,4),(1,13)}


Find Transitive closure using Warshall’s Algorithm.
(5)
Solution:

1 4 7 13
1 0 1 0 1
4 0 0 1 0
Relation matrix W= MR= 
7 0 1 0 0
 
13 0 0 0 0
Step1: First we copy all 1’s from W to matrix W1.

We observe W has no 1’s at first column and has 1’s at 4 and 13 in first row.
⸫ W1 is same as W

1 4 7 13
1 0 1 0 1
4 0 0 1 0
W1=
7 0 1 0 0
 
13 0 0 0 0

Step 2: We copy all 1’s from W1 to W2.


We observe that W1 has 1’s at (1,7) position in second column and at(7) position in
second row. So we add 1’s at (1,7) and (7,7) position in W2.

1 4 7 13
1 0 1 1 1
4 0 0 1 0
W2=
7 0 1 1 0
 
13 0 0 0 0

Step 3:we copy all 1’s from W2 to W3.


We observe that W2 has 1’s at (1,4,7) position in third column and (4,7) position in third
row
So we add 1’s at (1,4), (1,7),(4,4),(4,7),(7,4)(7,7) in W3.

1 4 7 13
1 0 1 1 1
4 0 1 1 0
W3=
7 0 1 1 0
 
13 0 0 0 0

Step4: First we copy all 1’s from W3 to matrix W4.


We observe W3 has 1’s at (13) position in fourth column and has no 1’s at fouth row.
⸫ W3 is same as W4
1 4 7 13
1 0 1 1 1
4 0 1 1 0
W4=
7 0 1 1 0
 
13 0 0 0 0

Hence by Warshall’s Algorithm


Transitive closure={(1,4)(1,7)(1,13)(4,4)(4,7)(7,4)(7,7)}

----------------------------------------------------------------------------------------------------------------
__________________________________________________________________________

Q1 d) Let f: R O R, where f(x)=2x-1 and f-1(x)=(x+1)/2


Find (f O f-1)(x)
Solution: (5)

f(x)=2x-1
f-1(x)=(x+1)/2

(f O f-1)(x)= f(f-1(x))

x 1
=f( )
2

x 1
= 2( )-1
2

=x+1-1
=x

----------------------------------------------------------------------------------------------------------------
__________________________________________________________________________
Q2 a) Define lattice. Check if the following diagram is a lattice or not. (4)

Solution:
A posset (L,≤) in which every pair (a,b) of L has a LUB(least Upper Bound) and GLB
(Greatest Lower bound ) is called a lattice.
For eg.
Let R be a relation of divisibility. Consider the set of divisors of 625
i. e. D625={1,5,25,125,625}

The hasse diagram for D625 is


We observe that every pair of elements of D625 has a LUB and GLB.
Also each LUB and GLB ε D625.
The given diagram is lattice because it has LUB and GLB.

----------------------------------------------------------------------------------------------------------------
__________________________________________________________________________
Q2 b) Prove that set G={1,2,3,4,5,6} is a finite abelian group of order 6 w.r.t
multiplication module 7.
Solution: (8)

X7 1 2 3 4 5 6
1 1 2 3 4 5 6
2 2 4 6 1 3 5
3 3 6 2 5 1 4
4 4 1 5 2 6 3
5 5 3 1 6 4 2
6 6 5 4 3 2 1

G1:
Consider any three numbers from table
5 x (6 x 3)=5 x 4=6
(5 x 6) x 3=2 x 3=6
As 5 x (6 x 3)=(5 x 6) x 3
Hence x is associative.

G2:
From table we observe first row is same as header.
I Ꞓ G

Hence Identity of x exists.

G3:
Consider any two number from table
4 x 2 =1 and 2 x 4=1

Hence x is commutative.

G4:
Inverse of x exists.

----------------------------------------------------------------------------------------------------------------
__________________________________________________________________________
Q2 c) A travel company surveyed it’s travelers, to learn how much of their travel is
taken with an Airplane, a Train or a car. The following data is known; make a
complete Venn Diagram with all the data. The number of people who flew was 1307.
The number of people who both flew and used a train was 602. The people who used
all three were 398 in number. Those who flew but didn’t drive came to total 599.
Those who drove but did not use train totaled 1097. There were 610 people who
used both trains and cars. The number of people who used either a car or train or
both was 2050. Lastly, 421 people used none of these .Find out how many people
drove but used neither a train nor an airplane, and also, how many people were in
the entire survey.

Solution: (8)

Let A be the set of people who flew


Let C be the set of people who travelled by car
Let T be the set of people who travelled by train
N(AᴖTᴖC)= 398

N(A)= 1307

N(AᴖT)=602
The people who flewed and travelled by train but didn’t travelled by car
= N(AᴖT) - N(AᴖTᴖC)
= 602-398

= 204

People who flew but didn’t drive are 599.


Therefore people who only flew are 599- 204=395
N(C)= 1097
N(CᴖT)=610
The people who travelled by car and train but didn’t flew
= N(CᴖT) - N(AᴖTᴖC)
=610-398
= 212

The people who flewed and travelled by car but didn’t travelled by train are =310

Those who drove but did not use train totaled 1097
The people who travelled by only car = 1097-310=787
The people who travelled by only train= 139

The no of people who drove but used neither a train nor an airplane= 787
The no of people in entire survey were =2866

----------------------------------------------------------------------------------------------------------------
__________________________________________________________________________

Q3 a) Prove ¬(p ˅ ( ¬p ˄ q )) and ( ¬p ˄ ¬q) are logically equivalent by


developing a series of logical equivalences.
Solution: (4)

¬(p ˅ ( ¬p ˄ q ))

¬ p ˄ ¬( ¬p ˄ q) By Demorgan’s law
¬p ˄ ( p ˅ ¬q) By double negation
(¬p ˄ p) ˅ (¬p ˄ ¬q) By distributive law
F ˅ (¬p ˄ ¬q) (¬p ˄ p)= F
(¬p ˄ ¬q) By Identity law

Hence ¬(p ˅ ( ¬p ˄ q )) and ( ¬p ˄ ¬q) are logically equivalent.

----------------------------------------------------------------------------------------------------------------
__________________________________________________________________________

Q3 b) Consider the (3,5) group encoding function defined by (8)


e(000)=00000
e(010)=01001
e(100)=10011
e(110)=11010
e(001)=00110
e(011)=01111
e(101)=10101
e(111)=11000
Decode the following words relative to maximum likelihood decoding functions.
i)11001 ii)01010 iii)00111

Solution:
The decoding table is as follows:

00000 00110 01001 01111 10011 10101 11010 11000


00001 00111 01000 01110 10010 10100 11011 11001
00010 00100 01011 01101 10001 10111 11000 11010
00100 00010 01101 01011 10111 10001 11110 11100
01000 01110 00001 00111 11011 11101 10010 10000
10000 10110 11001 11111 00011 00101 01010 01000
10001 10111 11000 11110 00010 00100 01011 01001
10010 10100 11011 11101 00001 00111 01000 01010

1) Encoded word= 11001


Corresponding encode word belongs to the column 01001
Therefore d(11001)=010

2) Encoded word= 01010


Corresponding encode word belongs to the column 11010
Therefore d(01010)=110

3) Encoded word= 00111


Corresponding encode word belongs to the column 00110
Therefore d(00110)=001

----------------------------------------------------------------------------------------------------------------
__________________________________________________________________________

Q3c) Mention all the elements of set D36 also specify R on D36 as aRb if a|b. Mention
Domain and range of R. Explain if the relation is equivalence relation or a Partially
Ordered Relation. If it is A Partially Ordered Relation, draw its Hasse Diagram.
Solution: (8)

D36={1,2,3,4,6,9,12,18,36}

R={(1,1)(1,2)(1,3)(1,4)(1,6)(1,9)(1,12)(1,18)(1,36)(2,2)(2,3)(2,4)(2,6)(2,9)(2,12)(2,18)(2,
36)(3,3)(3,4)(3,6)(3,9)(3,12)(3,18)(3,36)(4,4)(4,6)(4,9)(4,12)(4,18)(4,36)(6,6)(6,9)(6,12)
6,18)(6,36)(9,9)(9,12)(9,18)(9,36)(12,12)(12,18)(12,36)(18,18)(18,36)(36,36)}
Domain of R ={1,2,3,4,6,9,12,18,36}
Range of R={1,2,3,4,6,9,12,18,36}

A relation R on a set A is called a partial order relation if it satisfies the following three
properties:

 Relation R is Reflexive, i.e. aRa ∀ a∈A.


 Relation R is Antisymmetric, i.e., aRb and bRa ⟹a = b.
 Relation R is transitive, i.e., aRb and bRc ⟹aRc.

For D36 Relation R is reflexive, antisymmetric and transitive


Hence it is partial order relation.

Hasse diagram of D36 is

----------------------------------------------------------------------------------------------------------------
__________________________________________________________________________
Q4a) Explain Extended pigeonhole principle. How many friends must you have to
guarantee that at least five of them should will have birthdays in the same month.
Solution: (4)
Extended pigeonhole principal
It states that if n pigeons are assigned to m pigeonholes (The number of pigeons is very
large than the number of pigeonholes), then one of the pigeonholes must contain at least
[(n-1)/m]+1 pigeons.
Here Number of pigeons = n = ?
No. of pigeonholes = m = 12 (months)
∴ [(n−1)/m]+1=5
[(n−1)/12]+1=5
n - 1 = 48

n = 49 [ No. of pigeons]

∴ 49 friends should be their to guarantee that at-least five of them must have birthday in
a same month of year.

----------------------------------------------------------------------------------------------------------------
__________________________________________________________________________

Q4b) Define Euler path and Hamilton path.


I) Determine Euler cycle and path in graph shown in (a)
II) Determine Hamiltonian cycle and path in graph shown in (b) (8)
Solution:

Euler path: An Euler path is a path that uses every edge of a graph exactly once.
Euler circuit: An Euler circuit is a circuit that yses edges of a graph exactly once and
which starts and ends with same vertex.
Criteria for Euler cycle:
If a connected graph G has a Euler circuit,then all vertices Of G must have a even degree
In fig(a)
Since vertices B and D have odd degree.
Therefore there is no Euler cycle for fig(a).

Criteria for Euler path:


If a connected graph G has a Euler path then it must have exactly two vertices with odd
degree. The two endpoits of Euler path must be the vertices with odd degree.

The Euler path- BACDBED

Hamilton path: Hamiltonian path is a graph that visits each vertex exactly once.
Hamiltonian circuit: Hamiltonian circuit is a path that visitsevery vertex exactly once
and which starts and ends on the same vertex.

Criteria for Hamiltonian circuit:


The given condition are necessary but not sufficient
A) A simple graph with n vertices (n>=3) is Hamiltonian if every vertex has degree
n/2 or greater.
B) A graph with n vertices (n>=3) is hamiltonian if for every pair of non-adjacent , the
sum of their degrees is n or greater.
For graph (b)
Hamiltonian path= abcdb
There is no hamiltonian cycle.

----------------------------------------------------------------------------------------------------------------
__________________________________________________________________________
Q4c) In a group of 6 boys and 4 girls, four children are to be selected. In how many
different ways can they be selected such that at least one boy should be there?
Solution: (8)
In a group of 6 boys and 4 girls, four children are to be selected such that
at least one boy should be there.
So we can have

(four boys) or (three boys and one girl) or (two boys and two girls) or (one boy and three
girls)

This combination question can be solved as


=(6C4)+(6C3∗ 4C1)+(6C2∗ 4C2)+(6C1∗ 4C3)
=[6×5/2×1]+[(6×5×4/3×2×1)×4]+[(6×5/2×1)(4×3/2×1)]+[6×4]
=15+80+90+24
=209
----------------------------------------------------------------------------------------------------------------
__________________________________________________________________________

Q5a) Let G be a group. Prove that the identity element e is unique.


Solution: (4)
As the identity element e∈G is defined such that ae=a ∀a∈G.
While the inverse does exist in the group and multiplication by the inverse element gives
us the identity element, which assumes that the identity element is unique.
A more standard way to show this is suppose that e,f are both the identity elements of a
group GG.
Then, e= e o f since f is the identity element.
=f since e is the identity element.
This shows that the identity element is indeed unique.

----------------------------------------------------------------------------------------------------------------
__________________________________________________________________________
Q5b) A pack contains 4 blue, 2 red and 3 black pens. If 2 pens are drawn at random
from the pack, Not replaced and then another pen is drawn. What is the probability
of drawing 2 blue pens and 1 black pen?
(8)
Solution:
Total blue pens: 4
Total red pens: 2
Total black pens: 3
Total pens: 4+2+3= 9
Probability of drawing 2 blue pens= 4C2 / 9C2 =4 x 3/ 9 x 8= 1/6
After these the pens are not replaced. Therefore there are only 7 pens left.

Probability of drawing 1 black pen from 7 pens= 3C1 / 7C1 = 3/7


Probability of drawing 2 blue pen and 1 black pen= 1/6 x 3/7 = 1/14

----------------------------------------------------------------------------------------------------------------
__________________________________________________________________________

Q5c) Let A be a set of integers, let R be a relation on AxA defined by (a,b) R (c,d) if
and only if a+d=b+c.
Prove that R is an equivalent relation.
Solution: (8)
Relation R is defined by (a,b) R (c,d) if and only if a+d=b+c.
I) Put a=c and b=d in a+d=b+c
∴ c+d=d+c, which is true

∴ (c,d) R (c,d)
Therefore R is reflexive.

II) Let (a,b ) R(c,d)


∴ a+d=b+c
∴ b+c=a+d

∴ c+b=d+a

∴ (c,d)R(a,b)

∴ R is symmetric.

III) Let (a,b)R(c,d) and (c,d)R(e,f)


∴ a+d=b+c …………………………………(1)
And c+f=d+c ………………………………….(2)
Adding (1) and (2)
(a+d)+(c+f)=(b+c)+(d+c)
∴ a+f=b+e

∴ (a,b)R(e,f)
Hence R is an equivalence relation.
----------------------------------------------------------------------------------------------------------------
__________________________________________________________________________

Q6a) Define reflexive closure and symmetric closure of a relation. Also find
reflexive and symmetric closure of R.
A={1,2,3,4}
B={(1,1),(1,2),(1,4),(2,4),(3,1),(3,2),(4,2),(4,3),(4,4)}
Solution: (4)
Reflexive closure: A relation R' is the reflexive closure of a relation R if and only if
(1) R' is reflexive,
(2) R ⸦ R', and
(3) for any relation R'', if R ⸦ R'' and R'' is reflexive, then R' ⸦ R'' , that is, R' is the
smallest relation that satisfies (1) and (2).

Symmetric closure:A relation R' is the symmetric closure of a relation R if and only if
(1) R' is symmetric,
(2) R ⸦ R', and
(3) for any relation R'', if R ⸦ R'', and R'' is symmetric, then R' ⸦ R'' , that is, R' is the
smallest relation that satisfies (1) and (2).
A={1,2,3,4}
B={(1,1),(1,2),(1,4),(2,4),(3,1),(3,2),(4,2),(4,3),(4,4)}
If ∆ is euality relation then Reflexive closure R1 = ∆ ᴜ R ……….(1)
Symmetric closure R2 = R U R-1 …………..(2)

Reflexive closure:
∆={(1,1),(2,2),(3,3),(4,4)}
From (1)
Reflexive closure R1=∆ ᴜ R=
{(1,1),(1,2),(1,4),(2,2),(2,4),(3,1),(3,2),(3,3),(4,2),(4,3),(4,4)}

Symmetric closure:

R-1= {(1,1),(2,1),(4,1),(4,2),(1,3),(2,3),(2,4),(3,4)}
R2=R U R-1= {(1,1),(1,2),(1,3),(1,4),(2,1),(2,3),(2,4),(3,1),(3,2),(3,4),(4,1),(4,2),(4,3)}

----------------------------------------------------------------------------------------------------------------
__________________________________________________________________________

1 0 0
0 1 1
1 1 1
Q6b) let H=
1 0 0
0 1 0
0 0 1

Be a parity matrix. Determine the group code B3 ---> B6


Solution: (8)
Let eH: Bm --->Bn be encoding function.
If b=b1b2b3……bm then
eH(b)=b1b2b3……bm x1x2x3……xr…………….(1)
Where r=n-m and
Xr=b1.h1r+ b2.h2r+b3.h3r…bm.hmr……………….(2)
Let B={0,1}
∴B3={000,001,010,011,100,101,110,111}
1 0 0
0 1 1
1 1 1
Given B3 ---> B6 and H=
1 0 0
0 1 0
0 0 1

Here m=3, n=6

h11=1, h12 =0, h13=0, h21=0, h22=1,h23=1,h31=1,h32=1,h33=1

∴r=n-m=6-3=3

 For b=000, b1=0,b2=0,b3=0

∴From (1), eH(000)=b1b2b3x1x2x3

=000x1x2x3

∴From (2), xr=b1.h1r+ b2.h2r+b3.h3r

=0.h1r+ 0.h2r+0.h3r=0

∴ x1=0, x2=0,x3=o

∴eH(000)=000000

 For b=001, b1=0,b2=0,b3=1

∴From (1), eH(001)=b1b2b3x1x2x3

=001x1x2x3

∴From (2), xr=b1.h1r+ b2.h2r+b3.h3r


=0.h1r+ 0.h2r+1.h3r=h3r

∴ x1=h31=1 ,x2=h32=1, x3=h33=1

∴eH(001)=000111

 For b=010, b1=0,b2=1,b3=0

∴From (1), eH(010)=b1b2b3x1x2x3

=010x1x2x3

∴From (2), xr=b1.h1r+ b2.h2r+b3.h3r

=0.h1r+ 1.h2r+0.h3r=h2r

∴ x1=h21=0 ,x2=h22=1, x3=h23=1

∴eH(010)=010011

 For b=011, b1=0,b2=1,b3=1

∴From (1), eH(011)=b1b2b3x1x2x3

=011x1x2x3

∴From (2), xr=b1.h1r+ b2.h2r+b3.h3r

=0.h1r+ 1.h2r+1.h3r=h2r+h3r

∴ x1=h21+h31=0+1=1 ,x2=h22+h32=1+1=0, x3=h32+h33=1+1=0

∴eH(011)=011100

 For b=100, b1=1,b2=1,b3=0

∴From (1), eH(100)=b1b2b3x1x2x3

=100x1x2x3

∴From (2), xr=b1.h1r+ b2.h2r+b3.h3r


=1.h1r+ 0.h2r+0.h3r=h1r

∴ x1=h11=1 ,x2=h12=0, x3=h13=0

∴eH(100)=100100

 For b=101, b1=1,b2=0,b3=1

∴From (1), eH(101)=b1b2b3x1x2x3

=101x1x2x3

∴From (2), xr=b1.h1r+ b2.h2r+b3.h3r

=1.h1r+ 0.h2r+1.h3r=h1r+h3r

∴ x1=h11+h31=1+1=0 ,x2=h12+h32=0+1=1, x3=h13+h33=0+1=1

∴eH(101)=101011

 For b=110, b1=1,b2=1,b3=0

∴From (1), eH(110)=b1b2b3x1x2x3

=110x1x2x3

∴From (2), xr=b1.h1r+ b2.h2r+b3.h3r

=1.h1r+ 1.h2r+0.h3r=h1r+h2r

∴ x1=h11+h21=1+0=1 ,x2=h12+h22=0+1=1, x3=h13+h23=0+1=1

∴eH(110)=110111

 For b=111, b1=1,b2=1,b3=1

∴From (1), eH(111)=b1b2b3x1x2x3

=111x1x2x3

∴From (2), xr=b1.h1r+ b2.h2r+b3.h3r


=1.h1r+ 1.h2r+1.h3r=h1r+h2r+h3r

∴ x1=h11+h21+h31=1+0+1=0 ,

x2=h12+h22+h32=0+1+1=0,

x3=h13+h23+h33=0+1+1=0

∴eH(111)=111000

Hence the(3,6) encoding function eH:B3 ---> B6 is defined as:

e(000)=000000,e(001)=001111,e(010)=010011,e(011)=010011,e(100)=100100,e(101)=1
01011,e(110)=110111,e(111)=111000.

----------------------------------------------------------------------------------------------------------------
__________________________________________________________________________

Q6c) Determine if following graphs G1 and G2 are isomorphic or not. (8)

Solution:

Two graphs G(V,E) and H(V’,E’) isomorphic if

1) There is one to one correspondence f from V to V’ such that f(V1)=V1’ and


f(V2)=V2’ for every (v1, v2)Ꞓ V and (v1’, v2’)Ꞓ V’
2) G and H should have equal no. Of edges.
3) G and H should have equal no. Of vertices.
4) G and H should have same degree of vertices
5) Adjacency property is observed in each vertex.
From the above two graphs:

Graph G1
Number of vertices 6
Number of Edges 6

Vertex Degree of vertex Adjacent vertices


A 1 B(3)
B 3 A(1), C(3), E(2)
C 3 B(3), D(1), F(2)
D 1 C(3)
E 2 B(3), F(2)
F 2 E(3),C(2)

Graph G2
Number of vertices 6
Number of Edges 6

Vertex Degree of vertex Adjacent vertices


Y 1 V(2)
V 2 Y(1), U(3)
X 2 Z(2), U(3)
Z 2 X(2),W(2)
U 3 V(2), X(2),W(2)
W 2 U(3),Z(2)

We observe that,

There are equal no of edges and vertices for both graph.

Graph G1 has 2 vertices with degree 1, two vertices with degree 2 and two vertices with

degree 2.
Graph G2 has one vertices with degree 1, four vertices with degree 2 and one vertex with

degree 3.

Therefore, the degree in two graphs are not equal.

Hence the two graphs are not isomorphic.

----------------------------------------------------------------------------------------------------------------
__________________________________________________________________________

You might also like