ANNA UNIVERSITY · REGULATION 2021
Important Questions
MA 3354 — DISCRETE MATHEMATICS
Third Semester · Computer Science and Engineering
Prepared from 5 previous year question papers (Nov/Dec 2024, Apr/May 2024, Nov/Dec 2023, Apr/May 2023, Nov/Dec 2022). Every question was compared with the others of its unit; the ones asked more than once come first. "Most asked topics" shows in how many different exams a syllabus topic had a question.
UNIT 1Logic and Proofs
Most asked topics: Predicates and quantifiers (1/5) · Nested quantifiers (1/5)
Part A · 2 marks
- 1.Write the converse, inverse and contra positive of the proposition "It snows whenever the wind blows from the northeast".(2)
Asked in Nov/Dec 2024
- 2.Comment on the proof strategy : In a conditional statement when the premise is false, irrespective of the truth value of the consequence, the truth value of the conditional statement is true.(2)
Asked in Nov/Dec 2024
- 3.Show that p -> q and ~p v q are equivalent.(2)
Asked in Apr/May 2024
- 4.Translate the statement 'Every real number expect zero has a multiplicative inverse' into the statement involving nested quantifiers.(2)
Asked in Apr/May 2024
- 5.Write the symbolic form of the statement "The automated reply cannot be sent when the file system is full".(2)
Asked in Nov/Dec 2023
- 6.Check whether the conclusion C : q follows logically from the premises H1 : p -> q and H2 : q using truth table technique.(2)
Asked in Nov/Dec 2023
Part B · 16 marks
- 1.(i) Find the principle disjunctive normal form of (P -> Q) ^ (P <-> R). (ii) Show that (~P ^ (~Q ^ R)) v (Q ^ R) v (P ^ R) <=> R.(16)
Asked 2 times: Apr/May 2024, Apr/May 2023
Free sample · model answer from the exam kit
(i) PDNF of (P → Q) ∧ (P ↔ R)
The principal disjunctive normal form (PDNF) is the disjunction of the minterms for which the formula is true.
Method 1: Algebraic
- P → Q ≡ ¬P ∨ Q and P ↔ R ≡ (P ∧ R) ∨ (¬P ∧ ¬R).
- S ≡ (¬P ∨ Q) ∧ [(P ∧ R) ∨ (¬P ∧ ¬R)]
- Distributive law: S ≡ (¬P ∧ P ∧ R) ∨ (¬P ∧ ¬P ∧ ¬R) ∨ (Q ∧ P ∧ R) ∨ (Q ∧ ¬P ∧ ¬R)
- ¬P ∧ P ≡ F, so the first term vanishes, and ¬P ∧ ¬P ≡ ¬P (idempotent). So S ≡ (¬P ∧ ¬R) ∨ (P ∧ Q ∧ R) ∨ (¬P ∧ Q ∧ ¬R).
- The term ¬P ∧ ¬R lacks Q. Multiply by (Q ∨ ¬Q) ≡ T: ¬P ∧ ¬R ≡ (¬P ∧ Q ∧ ¬R) ∨ (¬P ∧ ¬Q ∧ ¬R).
- Substitute and drop the repeated minterm (¬P ∧ Q ∧ ¬R):
PDNF: (¬P ∧ ¬Q ∧ ¬R) ∨ (¬P ∧ Q ∧ ¬R) ∨ (P ∧ Q ∧ R)
Method 2: Truth table check (P, Q, R → P → Q, P ↔ R, S)
- F F F: T, T, T (minterm ¬P ∧ ¬Q ∧ ¬R)
- F F T: T, F, F
- F T F: T, T, T (minterm ¬P ∧ Q ∧ ¬R)
- F T T: T, F, F
- T F F: F, F, F
- T F T: F, T, F
- T T F: T, F, F
- T T T: T, T, T (minterm P ∧ Q ∧ R)
S is true in exactly three rows, which gives the same three minterms. Hence the PDNF is confirmed.
(The remaining five minterms give the PCNF: the conjunction of the maxterms (P ∨ Q ∨ ¬R) ∧ (P ∨ ¬Q ∨ ¬R) ∧ (¬P ∨ Q ∨ R) ∧ (¬P ∨ Q ∨ ¬R) ∧ (¬P ∨ ¬Q ∨ R).)
(ii) Show (¬P ∧ (¬Q ∧ R)) ∨ (Q ∧ R) ∨ (P ∧ R) ⇔ R
- LHS ≡ (¬P ∧ ¬Q ∧ R) ∨ (Q ∧ R) ∨ (P ∧ R) [associative law]
- ≡ (¬P ∧ ¬Q ∧ R) ∨ [(Q ∨ P) ∧ R] [distributive law on the last two terms]
- ≡ [(¬P ∧ ¬Q) ∧ R] ∨ [(P ∨ Q) ∧ R] [commutative law]
- ≡ [(¬P ∧ ¬Q) ∨ (P ∨ Q)] ∧ R [distributive law]
- ≡ [¬(P ∨ Q) ∨ (P ∨ Q)] ∧ R [De Morgan's law]
- ≡ T ∧ R [negation law: ¬A ∨ A ≡ T]
- ≡ R [identity law]
Hence (¬P ∧ (¬Q ∧ R)) ∨ (Q ∧ R) ∨ (P ∧ R) ⇔ R.
Check by truth table: when R = F every bracket contains R, so the LHS is F; when R = T the LHS becomes ¬P ∧ ¬Q ∨ Q ∨ P, which is T for every P, Q. So LHS and R agree in all 8 rows.
The MA3354 exam kit has model answers like this for 30 of these questions.
- 2.(i) Show that ~(p v (~p ^ q)) and ~p ^ ~q are logically equivalent by developing a series of logical equivalences. (ii) Show that the premises "It is not sunny this afternoon and it is colder than yesterday," "We will go swimming only if it is sunny," "If we do not go swimming, then we will take a canoe trip," and "If we take a canoe trip, then we will be home by sunset" lead to the conclusion "We will be home by sunset".(16)
Asked in Nov/Dec 2024
- 3.(i) Express the statement "If a person is female and is a parent, then this person is someone's mother" as a logical expression involving predicates, quantifiers with a domain consisting of all people, and logical connectives. In addition express the same statement as a logical expression using the null quantification rule. (ii) Explain proof by contraposition, hence prove that if n is an integer and 3n + 2 is odd, then n is odd.(16)
Asked in Nov/Dec 2024
- 4.(i) Prove that if n = ab, where a and b are positive integers, then a <= sqrt(n) or b <= sqrt(n). (ii) Show that (for all x)[P(x) v Q(x)] => (for all x)P(x) v (there exists x)Q(x).(16)
Asked in Apr/May 2024
UNIT 2Combinatorics
Most asked topics: Mathematical induction (4/5) · Recurrence relations (4/5) · Generating functions (4/5) · The pigeonhole principle (2/5) · Inclusion and exclusion principle and its applications (1/5)
Part A · 2 marks
- 1.State the pigeonhole principle.(2)
Asked 2 times: Apr/May 2024, Apr/May 2023
- 2.Write the product rule in counting techniques.(2)
Asked in Nov/Dec 2024
- 3.Give a formula for the number of elements in the union of three sets. Name the principle that is useful in determining the number of elements in the union of sets.(2)
Asked in Nov/Dec 2024
- 4.The chairs of an auditorium are to be labeled with an uppercase English letter followed by a positive integer not exceeding 100. What is the largest number of chairs that can be labeled differently?(2)
Asked in Apr/May 2024
- 5.How many different bit strings are there of length 9?(2)
Asked in Nov/Dec 2023
- 6.Determine n if P(n, 2) = 72.(2)
Asked in Nov/Dec 2023
Part B · 16 marks
- 1.(i) Why is mathematical induction a valid proof technique? Use mathematical induction to show that 1 + 2 + 2^2 + ... + 2^n = 2^(n+1) - 1 for all nonnegative integers n. (ii) Find the solution to the recurrence relation a_n = 6a_(n-1) - 11a_(n-2) + 6a_(n-3) with the initial conditions a_0 = 2, a_1 = 5, and a_2 = 15.(16)
Asked in Nov/Dec 2024
- 2.(i) How many permutations of the letters ABCDEFGH contain the string ABC? (ii) It is given that a_n = 8a_(n-1) + 10^(n-1) and the initial condition a_1 = 9. Use generating functions to find an explicit formula for a_n.(16)
Asked in Nov/Dec 2024
- 3.(i) Show that if n is an integer greater than 1, then n can be written as the product of primes. (ii) During a month with 30 days, a baseball team plays at least one game a day, but no more than 45 games. Show that there must be a period of some number of consecutive days during which the team must play exactly 14 games.(16)
Asked in Apr/May 2024
- 4.(i) Find the number of 2-permutations with unlimited repetitions of {a, b, c, d}. (ii) Solve s(n + 2) - 5s(n + 1) + 6s(n) = 0 for n >= 0 with s(0) = 1, s(1) = 1.(16)
Asked in Apr/May 2024
UNIT 3Graphs
Most asked topics: Matrix representation of graphs and graph isomorphism (1/5) · Euler and Hamilton paths (1/5)
Part A · 2 marks
- 1.Define graph. What is a loop in graph?(2)
Asked 2 times: Nov/Dec 2024, Nov/Dec 2023
- 2.Draw a graph with the adjacency matrix [[0, 1, 1, 0], [1, 0, 0, 1], [1, 0, 0, 1], [0, 1, 1, 0]].(2)
Asked 2 times: Apr/May 2023, Nov/Dec 2022
- 3.Determine the degree and neighborhood of the vertex b in the given graph. [Figure: graph on vertices a, b, c, d, e, f, g with edges a-b, a-f, b-c, b-f, b-e, c-f, c-e, c-d, f-e; g is an isolated vertex](2)
Asked in Nov/Dec 2024
- 4.Define degree of a vertex in an undirected graph.(2)
Asked in Apr/May 2024
- 5.Define path.(2)
Asked in Apr/May 2024
- 6.When is a graph called an Eulerian graph?(2)
Asked in Nov/Dec 2023
Part B · 16 marks
- 1.(i) Prove that there is a simple path between every pair of distinct vertices of a connected undirected graph. (ii) Find an Euler path or an Euler circuit, if it exists in each of the following three graphs. If it does not exist, explain why? [Figure: G1 with edges a-b, d-c, a-e, b-e, d-e, c-e; G2 is the square a-b-c-d with both diagonals meeting at centre vertex e; G3 with edges a-b, b-d, a-c, c-d, d-e](16)
Asked 2 times: Apr/May 2023, Nov/Dec 2022
- 2.Define graph isomorphism. What are graph invariant conditions for isomorphism? Construct the adjacency matrix for the given graphs. Determine whether the graphs G and H displayed in Figure 13(a) are isomorphic. [Figure 13(a): graph G on u1, ..., u6 with edges u1-u2, u1-u4, u2-u3, u3-u4, u4-u5, u5-u6, u6-u2; graph H on v1, ..., v6 with edges v1-v2, v2-v3, v1-v5, v3-v4, v4-v5, v3-v6, v6-v5](16)
Asked in Nov/Dec 2024
- 3.Define the following : (i) connected graph (ii) connected component of a graph (iii) Euler circuit (iv) Euler path (v) Hamilton path (vi) Hamilton circuit. Determine whether the given graph Figure 13(b) has Euler path? If so, name the path, if not, give the reason. [Figure 13(b): square with vertices a, b, c, d and edges a-b, b-c, c-d, d-a and the diagonal b-d](16)
Asked in Nov/Dec 2024
- 4.(i) Prove that a simple connected graph is bipartite if and only if it contains no odd cycle. (ii) Draw the graph with the adjacency matrix [[0, 1, 1, 0], [1, 0, 0, 1], [1, 0, 0, 1], [0, 1, 1, 0]] with respect to the ordering of a, b, c, d.(16)
Asked in Apr/May 2024
UNIT 4Algebraic Structures
Most asked topics: Groups (5/5) · Subgroups (5/5) · Homomorphism's (3/5) · Lagrange's theorem (3/5) · Normal subgroup and cosets (1/5)
Part A · 2 marks
- 1.Let G = (Z_6, +). Determine whether H = {0, 2, 4} is a subgroup of G?(2)
Asked in Nov/Dec 2024
- 2.Prove or disprove : The additive identity or zero element of a ring (R, +, .) is unique.(2)
Asked in Nov/Dec 2024
- 3.Is the set of integers under ordinary multiplication a group?(2)
Asked in Apr/May 2024
- 4.Prove that for each element a in a group G, there is a unique element b in G such that ab = ba = e.(2)
Asked in Apr/May 2024
- 5.Identify the left cosets of {[0], [3]} in the group (Z_6, +_6).(2)
Asked in Nov/Dec 2023
- 6.Given G = {1, -1, i, -i} be a group and H = {-1, 1} be a subgroup of G. Find the index of H in G.(2)
Asked in Nov/Dec 2023
Part B · 16 marks
- 1.(i) State and prove Lagrange's theorem. (ii) Prove that the Kernal of a homomorphism f from the group <G, *> to a group <H, Delta> is a normal subgroup of the group <G, *>.(16)
Asked 2 times: Apr/May 2024, Apr/May 2023
- 2.(i) Let G be any group and a in G. Define phi_a : G -> G by phi_a(x) = a * x * a^(-1) then prove that phi_a is a homomorphism. (ii) Let N be a normal subgroup of a group G. Prove that the mapping phi : G -> G/N defined by phi(a) = a * N is a homomorphism from G to G/N.(16)
Asked in Nov/Dec 2024
- 3.Prove that, "If G is a finite group and H is a subgroup of G then O(H) divides O(G)".(16)
Asked in Nov/Dec 2024
- 4.(i) Prove that the subgroup of a cyclic group must be cyclic subgroup. (ii) Prove that a subgroup H of G is normal in G if and only if xHx^(-1) ⊆ H for all x in G.(16)
Asked in Apr/May 2024
UNIT 5Lattices and Boolean Algebra
Most asked topics: Boolean algebra (5/5) · Partial ordering (3/5) · Posets (2/5) · Lattices as posets (1/5)
Part A · 2 marks
- 1.Define partial ordering and partial ordered set.(2)
Asked in Nov/Dec 2024
- 2.Find the values of the Boolean function represented by F(x, y) = xy'.(2)
Asked in Nov/Dec 2024
- 3.Show that the 'greater than or equal' relation (>=) is a partial ordering on the set of integers.(2)
Asked in Apr/May 2024
- 4.Is the poset (Z^+, |) a lattice?(2)
Asked in Apr/May 2024
- 5.Draw the Hasse diagram of (S_24, /) where S_24 is the set of all positive divisors of 24 and / is division.(2)
Asked in Nov/Dec 2023
- 6.Prove that (a')' = a, for all a in B where B is a Boolean Algebra.(2)
Asked in Nov/Dec 2023
Part B · 16 marks
- 1.(i) If L is a distributive lattice, prove (a v b) ^ (b v c) ^ (c v a) = (a ^ b) v (b ^ c) v (c ^ a). (ii) In a Boolean algebra, prove (1) b <= c => a.b <= a.c and (2) b <= c => a + b <= a + c.(16)
Asked 2 times: Apr/May 2023, Nov/Dec 2022
- 2.State and prove Absorption law and isotonicity property on Lattice.(16)
Asked in Nov/Dec 2024
- 3.Let (B, +, ., ') be a Boolean algebra. Show that the following (i) (a + b)(a' + c) = ac + a'b + bc (ii) ab' + bc' + ca' = a'b + b'c + c'a.(16)
Asked in Nov/Dec 2024
- 4.(i) Draw the Hasse diagram representing the partial ordering {(a, b) | a divides b} on {1, 2, 3, 4, 6, 8, 12}. (ii) Prove that every chain is a distributive lattice.(16)
Asked in Apr/May 2024