CSC165 · TU past paper
Discrete Structures 2079 question paper
The complete TU 2079 exam paper for Discrete Structures (CSC165), all 12 questions with solved model answers written to the mark scheme.
Tap a question to open its answer.
- Q1.10 marksNumericalInjective and Bijective FunctionsHideAnswer
How do you plot the function on graph? Determine whether the function $f(x) = x^2$ is injective, surjective or bijective with reasons. Solve the recurrence relation $a_n = 6a_{n-1} + 9a_{n-2}$ with initial conditions $a_0 = 1, a_1 = 6$. [10]
- Q2.10 marksNumericalmathematical InductionHideAnswer
A group of 8 scientist is composed of 5 chemist and 3 biologist. In how many ways can a committee of 5 be formed that has 3 chemist and 2 biologist? Using mathematical induction prove that $1^3 + 2^3 + 3^3 + ... + n^3 = (n^2(n+1)^2/4)$ for $n \geq 1$. [10]
Answer
Part 1: Committee Formation
Given Data
- Total scientists = 8 (5 chemists + 3 biologists)
- Committee required = 5 members: exactly 3 chemists and 2 biologists
Solution
Select 3 chemists from 5: $$C(5,3) = \frac{5!}{3!,2!} = \frac{5\times 4}{2\times 1} = 10$$
Select 2 biologists from 3: $$C(3,2) = \frac{3!}{2!,1!} = 3$$
By the multiplication principle: $$\text{Total} = C(5,3)\times C(3,2) = 10 \times 3 = \boxed{30 \text{ ways}}$$
Part 2: Proof by Mathematical Induction
Claim: $$1^3 + 2^3 + \cdots + n^3 = \frac{n^2(n+1)^2}{4}, \quad n \geq 1$$
Base Case (n = 1)
- LHS $= 1^3 = 1$
- RHS $= \dfrac{1^2 \cdot 2^2}{4} = \dfrac{4}{4} = 1$
LHS = RHS, so the statement holds for $n = 1$. ✓
Inductive Hypothesis
Assume true for $n = k$: $$1^3 + 2^3 + \cdots + k^3 = \frac{k^2(k+1)^2}{4}$$
Inductive Step
Show true for $n = k+1$: $$1^3 + \cdots + k^3 + (k+1)^3 = \frac{k^2(k+1)^2}{4} + (k+1)^3$$
$$= \frac{k^2(k+1)^2 + 4(k+1)^3}{4} = \frac{(k+1)^2\left[k^2 + 4(k+1)\right]}{4}$$
$$= \frac{(k+1)^2(k^2 + 4k + 4)}{4} = \frac{(k+1)^2(k+2)^2}{4}$$
This matches the formula with $n = k+1$. ✓
Conclusion
By the Principle of Mathematical Induction, the formula holds for all integers $n \geq 1$: $$1^3 + 2^3 + \cdots + n^3 = \frac{n^2(n+1)^2}{4}$$
- Q3.10 marksNumericalEquivalence RelationsHideAnswer
Show that the relation R = {(a, b): |a-b| is even} is an equivalence relation in the set of integers. Given the following transport network with the edges called with their capacities find all S-D cuts and their capacities and what the minimum capacity?[10]
- Q4.5 marksPredicates and QuantifiersHideAnswer
List any one example of tautology. Represent the following sentences into predicate logic. a. Not all employees are loyal. b. All students having good attitude are lovable. [5]
- Q5.5 marksProof MethodsHideAnswer
Prove that 'If the product of two integers a and b is even then either a is even or b is even' using condition method. [5]
- Q6.5 marksNumericalApplications of Number TheoryHideAnswer
Use Chinese remainder Theorem to find the value of x such that x = 0 (MOD 2), x = 2 (MOD 3), x = 3 (MOD 5). [5]
- Q7.5 marksGraph TypesHideAnswer
Define bipartite graph with an example. State the necessary conditions for the graphs to be isomorphic. [5]
- Q8.5 marksNumericalMinimum Spanning TreesHideAnswer
State Generalized Pigeonhole principle. Find the MST from following graph using Kruskal Algorithm. [5]
- Q9.5 marksRules of InferencesHideAnswer
Give the premise 'If it rains or strike holds then the exam will be cancelled. If it doesn't rain then it will be sunny day. The exam was not cancelled. Show that it was sunny day'. [5]
- Q10.5 marksNumericalIntegers and DivisionHideAnswer
Find the value of $-2 \bmod 3$ and $3153^{15} \bmod 5$. Illustrate an example to show the join operation between any two Boolean matrices. [5]
- Q11.5 marksEuler and Hamiltonian Path and CircuitsHideAnswer
Give an example of fallacy. State the necessary and sufficient conditions for a graph to have Euler path and Euler circuit. [5]
- Q12.5 marksNumericalExtended Euclidean AlgorithmHideAnswer
Find the GCD of 24 and 32 using Extended Euclidean algorithm. [5]
GCD of 24 and 32 Using the Extended Euclidean Algorithm
Given
- $a = 32$, $b = 24$ (arrange larger first)
- Goal: find $\gcd(24, 32)$ and Bezout coefficients $s, t$ such that $\gcd = s \cdot a + t \cdot b$.
Solution
Euclidean Algorithm (successive division)
Step Equation Quotient Remainder 1 $32 = 1 \cdot 24 + 8$ 1 8 2 $24 = 3 \cdot 8 + 0$ 3 0 The last non-zero remainder is $8$.
$$\gcd(24, 32) = 8$$
Back-Substitution (Extended part)
From Step 1:
$$32 = 1 \cdot 24 + 8$$
Solve for the remainder $8$:
$$8 = 32 - 1 \cdot 24$$
Written as a linear combination:
$$\boxed{8 = (1)\cdot 32 + (-1)\cdot 24}$$
So the Bezout coefficients are $s = 1$ (for 32) and $t = -1$ (for 24).
Verification
$$(1)\cdot 32 + (-1)\cdot 24 = 32 - 24 = 8 \checkmark$$
Final Result
$$\gcd(24, 32) = 8 = (1)\cdot 32 + (-1)\cdot 24$$
Labelling the coefficients by which number they multiply gives $s = -1$ for 24 and $t = 1$ for 32, the same combination: $8 = 32 - 24$. The GCD result of $8$ is unchanged.