Hurara Discrete Assignment
Hurara Discrete Assignment
ISLAMABAD,
ATTOCK
CAMPUS
Discrete Assignment
Submitted By:
HURARA AKRAM
Registration no:
FA18-BCS-007
Submitted To:
Khalid Iqbal
Date:
28-04-2019
Department of computer science
COMSATS UNIVERSITY OF ISLAMABD,ATTOCK CAMPUS
0 1 0
1 0 1
0 1 0
Solution:
Now
A B C
A 0 1 0
B 1 0 1
C 0 1 0
A e1 B
e2
Q#2: Determine whether the following graph has a Euler Circuit and give reasons.
Solution:
Euler circuit:
An Euler circuit is a circuit that uses every edge in a graph with no repeats.
e13
e14 e12 e3
D e8 E e9
F
e10
e7 e11 e4
G e6 H e5 I
( A,e1,B,e2,C,e3,F,e4,I,e5,H,e11,E,e9,F,e10,H,e6,G,e7,D,e8,E,e12,B,e13,D,e14,A )
This is the Euler path of the graph for being Euler graph.
In this graph we start at a vertex “a” and trace along edges to get to other vertices, we
create a walk through the graph. The starting and ending vertices are the same (so you trace
along every edge exactly once and end up where you started).
Solution:
1. There are 4 incident edges on the vertices V2 i.e.point2, point 3, point 4, point 6
5. V5 is the only isolated vertex because V5is the only vertex which is not connected
Solution:
In this word vowel letter are “au” and we consider it as a single letter.
5p
5
=5!
=5x4x3x2x1
=120
=2!
=2x1=2