BIT152 · TU past paper
Discrete Structure 2078 question paper
The complete TU 2078 exam paper for Discrete Structure (BIT152), all 12 questions with solved model answers written to the mark scheme.
Tap a question to open its answer.
- Q1.10 marksDirect proofHideAnswer
Explain direct proof, indirect proof, and proof by contradiction. Use direct proof to show that 'If n is an odd integer, then n' is an odd integer'. Also use indirect proof to show that 'If n is an integer and n' then n is odd'.[10]
Proof Methods: Direct Proof, Indirect Proof, and Proof by Contradiction
A. Definitions of Proof Methods
i. Direct Proof
A direct proof is a method in which we assume the hypothesis p is true and then use logical steps, definitions, axioms, and previously proven theorems to directly establish that the conclusion q is true.
Structure:
Assume p → logical reasoning → conclude qWe move in a straight forward path from hypothesis to conclusion.
ii. Indirect Proof (Proof by Contrapositive)
An indirect proof proves a statement p → q by instead proving its contrapositive, which is:
$$\neg q \rightarrow \neg p$$
Since p → q is logically equivalent to ¬q → ¬p, proving the contrapositive is sufficient to prove the original statement.
Structure:
Assume ¬q → logical reasoning → conclude ¬p
iii. Proof by Contradiction
In proof by contradiction (also called Reductio ad Absurdum), we assume the negation of the entire statement we want to prove, i.e., we assume p ∧ ¬q, and then show that this assumption leads to a logical contradiction.
Structure:
Assume p ∧ ¬q → derive a contradiction → conclude p → q must be true
B. Direct Proof: "If n is an odd integer, then n² is an odd integer"
Statement: If n is odd, then n² is odd.
Proof:
Step 1: Assume n is an odd integer.
Step 2: By the definition of an odd integer: $$n = 2k + 1 \quad \text{for some integer } k$$
Step 3: Compute n²: $$n^2 = (2k + 1)^2 = 4k^2 + 4k + 1$$
Step 4: Factor out 2: $$n^2 = 2(2k^2 + 2k) + 1$$
Step 5: Let m = 2k² + 2k. Since k is an integer, m is also an integer.
Step 6: Therefore: $$n^2 = 2m + 1$$
This is exactly the form of an odd integer (an integer of the form 2m + 1).
Conclusion: Therefore, if n is an odd integer, then n² is an odd integer. $\blacksquare$
C. Indirect Proof: "If n is an integer and n² is odd, then n is odd"
Statement: If n² is odd, then n is odd.
Proof (by Contrapositive):
Step 1: Write the contrapositive of the statement:
Original: If n² is odd, then n is odd.
Contrapositive: If n is not odd (i.e., n is even), then n² is not odd (i.e., n² is even).
Step 2: Assume n is even.
Step 3: By the definition of an even integer: $$n = 2k \quad \text{for some integer } k$$
Step 4: Compute n²: $$n^2 = (2k)^2 = 4k^2 = 2(2k^2)$$
Step 5: Let m = 2k². Since k is an integer, m is also an integer.
Step 6: Therefore: $$n^2 = 2m$$
This is exactly the form of an even integer.
Step 7: So n² is even, which means n² is not odd.
Conclusion: The contrapositive is proven. Since p → q ≡ ¬q → ¬p, the original statement "If n² is odd, then n is odd" is also true. $\blacksquare$
D. Summary Table
Method What We Assume What We Show Basis Direct Proof p is true q is true p → q directly Indirect Proof ¬q is true ¬p is true ¬q → ¬p (contrapositive) Proof by Contradiction p ∧ ¬q is true A contradiction arises Negation leads to absurdity - Q2.10 marksNumericalLinear nonhomogeneous recurrence relationsHideAnswer
What is linear nonhomogeneous recurrence relation of degree k with constant coefficients? Find all the solutions of the recurrence relation a, 4a+n. Also find the solution of the relation with initial condition a, 1.[10]
- Q3.10 marksNumericalMinimum spanning treesHideAnswer
Define spanning tree and minimum spanning tree with suitable example. Use Kruskal's algorithms to find minimum spanning tree in the given graph[10]
- Q4.5 marksTautology and contradictionHideAnswer
What is tautology? Show $(p \land q) \rightarrow (p \lor q)$ is a tautology. [5]
- Q5.5 marksNumericalCartesian productHideAnswer
Define cartesian product. Find A3 for the set A = (a, b, c). [5]
- Q6.5 marksNumericalRelation matricesHideAnswer
How can you represent relations using matrices? Suppose that $A = {1, 2, 3}$ and $B = {1, 2}$. Let $R$ be the relation from $A$ to $B$ containing $(a, b)$ if $a \in A$, $b \in B$, and $a > b$. What matrix representing $R$ if $a_1 = 1$, $a_2 = 2$, $a_3 = 3$, and $b_1 = 1$ and $b_2 = 2$? [5]
- Q7.5 marksMathematical inductionHideAnswer
Use mathematical induction to show that the sum of first n positive integers is n(n+1)/2. [5]
- Q8.5 marksNumericalCongruence moduloHideAnswer
What is congruent modulo? Determine whether 20 is congruent to 8 modulo 6 and 25 is congruent to 17 modulo 5. [5]
- Q9.5 marksNumericalPrime numbers and trial divisionHideAnswer
Explain trial division with example? Using trial division, show that 101 is prime. [5]
- Q10.5 marksNumericalProduct ruleHideAnswer
Explain product rule. How many strings are there of four lowercase letters that have the letter x in them? [5]
- Q11.5 marksGraph definition and typesHideAnswer
What is graph? Explain simple graph and pseudograph with example. [5]
- Q12.5 marksEuler paths and circuitsHideAnswer
What is Euler path? Compare it with Hamilton path. [5]