JulyAugust 2021
JulyAugust 2021
6.a) How many solutions does 𝑥1 + 𝑥2 + 𝑥3 = 11 have, where 𝑥1 , 𝑥2 , 𝑎𝑛𝑑 𝑥3 are nonnegative
7-
integers with 𝑥1 ≤ 3, 𝑥2 ≤ 4, 𝑎𝑛𝑑 𝑥3 ≤ 6?
b) How many bits of string of length 10 contain
i) Exactly four 1‟s ii) At most four 1‟s. [7+8]
21
7. Define Graph. Graph „G‟ is represented by the following adjacency matrix.
0 1 1 1 01 0 1 0 11 1 0 0 11 0 0 0 10 1 1 1 0
a) Draw the Graph.
AM
b) Determine whether G is a tree. Justify your answer?
c) Determine whether G is Eulerian graph. Justify your answer?
d) Determine whether G is Hamiltonian graph. If it is so, provide a Hamiltonian cycle on
G. [3+4+4+4]
8. Show, step by step kruskal‟s algorithm on the following connected weighted graph and
also calculate sum of the weights of the minimal spanning tree? [15]
---ooOoo---