SET-1 - Key
SET-1 - Key
So, we have 5 remaining letters (DEFGH) and 1 entity (ABC) for a total of
6 "elements." The number of permutations of these 6 elements is 6!6!
(6 factorial), which is the product of all positive integers up to 6.
6!=6×5×4×3×2×1=7206!=6×5×4×3×2×1=720
b There are 10 people at a party who shakes hands with each other. If each two 2M
of them shake hands with each other, how many handshakes happen at the
party?
H=2n×(n−1)
H=210×(10−1)=210×9=290=45
c 2M
Write the Pigeonhole principle.
"If n objects are placed into m pigeonholes and n>m, then at least one
pigeonhole must contain more than one object."
d 2M
Write the degree of each vertex of a graph:
V1 V2 V3
V5
V4
Vertices V1 V2 V3 V4 V5
Degree 5 3 5 4 1
e Write the in-degrees of each vertex in the directed graph G? 2M
Vertices A B C D E f
Indegree 2 2 3 2 3 0
f 2M
Draw a regular graph of degree 3.
d Apply Dijkstra’s Algorithm to find the length of a shortest path between a and 4M
z in the given weighted graph:
Step 1: First, we will mark the source node A with a current distance of 0
and set the rest of the nodes to INFINITY.
Step 2: visit A-B and replace infinity by lesser value to that node path
value A-B by 4
Step:3 We will then set the unvisited node C as A-B-C (6) since it ois more
than A-C (3)
Step 5: We will repeat the process from 'Step 2' if there is any node
unvisited left in the graph.
3a 1. Suppose that a valid code word is an n-digit number in decimal notation containing an 5M
even number of 0s. Let an denote the number of valid code words of length n. Then,
the corresponding recurrence relation is 𝑎𝑛 = 8𝑎𝑛−1 + 10n-1 for n =
1,2, 3, 4----with initial condition a0 = 1. Use generating functions to find an explicit
formula for an .
b Solve the recurrence relation 𝑎𝑛 = −5𝑎𝑛−1 − 6𝑎𝑛−2 + 42 . 7𝑛 , wherer 𝑎1 = 56w 6M
and 𝑎2 = 278.
4 a 2. Use the method of generating function to solve the recurrence relation 𝑎𝑛 − 2𝑎𝑛−1 − 5M
3𝑎𝑛−2 = 0 , 𝑛 ≥ 2 𝑤𝑖𝑡ℎ 𝑎0 = 3 , 𝑎1 = 1
For the given problem the number of rabbits existed in each month as follows
1, 1, 2, 3, -----
b Obtain all spanning trees of the graph G shown in the following figure: 6M
6a Determine whether the following graphs G and H are isomorphic or not. 5M
Graph G Graph H
No Of Vertices 8 8
No of Edges 10 10
Degree sequence 2,2,2,2,3,3,3,3 2,2,2,2,3,3,3,3
Closed circuits of 4,4,6,6 4,4,4,6
length
Since they are not having equal length of circuits G and H are not
Isomorphic
b Construct the minimum spanning tree (MST) for the given graph using 6M
Kruskal’s Algorithm:
No of Vertices=7
No Of edges in MST is 7-1=6
Connect as follows
Step Edge Waight
1 6-1 10
2 3-4 12
3 2-7 14
4 2-3 16
5 4-5 22
6 5-6 24
Total value 99
Step by step gph is needed.
Final graph