2023 Pyq
2023 Pyq
aAa A -> Sb | bCC | DaA C> abb | DD E > aC D> aDA 6) 8. State and prove Arden’s theorem that is generally taken into consideration for computing the regular expression. Further Construct a regular expression corresponding to the state diagram described as under :CSE204 a 25 SECTION ~ c 16 Mag, i) (Compulsory) 9% (a) Let x and y be two positive inte Bers "Presenieg in wnary notation. Construct a turing ma, Ching that will halt in final state qy if x s. Y and that will halt for non-final state qn if x < a More Precisely, the machine is to Perform the computation: gOw(x)Ow(y) if X>=y qOw(x)Ow(y) x IW (x)Ow(y) . * qnw(x)Ow(y): if x(q > =a (vr) (i) ~POD=OVQOA~Pag= (a) Write an algorithm by Welch and Powell for a coloring of a graph G, Apply that algorithm on the given graph to fi nd how many colours are needed, (a) A (ii) Find the ato (b) Find the type o set of all intege SE5 218 Tet R be a relation defined on set of integers iguch that aRb iff a = b (mod m) where m is an integer. Prove that R is an equivalence relation Also, find equivalence classes of relation R @) a) Set D,, of divisors of m is a bounded, distributive lattice with a + b = av b = cm (a, b) and sa*b = anb = ged(a, b). Q) @ Show that D, is a Boolean algebra if m is ‘square free, i.e., if m is a product of distinct @) SECTION - C (16 Marks) (Compulsory){ CSE208 6 red | S and 10, a wo. of aa 06 Gii) Find glb of 5 and 10, core en) si / Gv) Determine the greatest and AS clement exp seme ¥ , ¥) Find the complement of G mplement of each clement inb,,. ee. 3 Hrs. (vi) Is De, Distributed? Justify your answer. es Attempt (0) im (©) Explain the Warshall Algorithm to compute the: Attemp transitive closure. And, apply it to find the oma i | transitive closure of Relation R={(1,1), (1,3), (2,2), (3,1), (3,2)} on the set A={1,2,3}. 6) 1. State and 2 Prove th k compe edges, Prove th (0-1) ed Let (A, and p iEND SEMESTER BXAMINAT DISCRETE MATHEMATICS FOR IT Hrs Maximum Marks : 60 Attempt questions from all sections as directed. SECTION - 4 (24 Marks) Attempt any four questions out of five. Each question carries 06 marks. State and prove De Morgan’s Law. Prove that a simple graph with n vertices and k components can have at most % (n-k) (n-k+1) edges Prove that if G is connected graph with n vertices & (n-1) edges then G is a tree, Let (A, *) be a semi group, further more for every a and b in A, if a#b, then a*b#b*a,Jf the flood destroy my house my house, Statement, SECTION ~ 5 (20 Marks) Attempt any two questions out of tl bree, Each question carries 10 marks, wish between Function and Relation with itable example. Let A = {1,2,3}, B= {p, q) and a {a,b}. Let f: A > B is f = {(1, p), (2, p), G, a)} and g: B — C is given by {(p, b), (q, b)}. Find gof and show it pictorially. isin} stra’s Algorithm, find the shortest distance 7. Using Dijkstra’s Algorithm, find th hortest di: fr source vertex ‘S’ to remaining vertices 1" 9 rom h following graph —2 Also, write the order in which the vertices are visited Explain the role of Prefix codes and optimal prefix codes. Also explain Invertible funetions and Pigeonhole principle. Let A = {1, 2, 3, 4}, and R is a relation fined by “a divides b”. Write R as a set of ordered ir, draw directed graph. Also find R'. SECTION — C (16 Marks) (Compulsory) (a) Describe steps of Prim’s algorithm for finding Minimum spanning tree of a graph. Apply the algorithm to find the MST of the graph, details of edges as under. SA=2, SF=4, AF=1, AB=5, BC=3, BD=2, BF=1, CD=3, CT=1, DE=3, DT=2, BF=%. 4 CSIT206 241 ary borate Homomorphism and Isomorphism with suitable example. Write oq fe applica of each in real world, () (€) Using Laws of Boolean Algebra, simplity the statement S: (1(P VQ) V ((PAQ)A Q). (3) pnp SE pyNaM Dime? 3 wore: