Browse papers
A

Section A: Long Answer Questions

Attempt all / any as specified.

4 questions
1long12 marks

(a) State the principle of mathematical induction. Using induction, prove that for every positive integer nn,

12+22+32++n2=n(n+1)(2n+1)6.1^2 + 2^2 + 3^2 + \cdots + n^2 = \frac{n(n+1)(2n+1)}{6}.

(6)

(b) Solve the recurrence relation an=5an16an2a_n = 5a_{n-1} - 6a_{n-2} for n2n \ge 2, with initial conditions a0=1a_0 = 1 and a1=0a_1 = 0. Show all steps including the formation and solution of the characteristic equation. (6)

mathematical-inductionproofsrecurrence-relations
2long12 marks

(a) Define a tautology, a contradiction, and a contingency. Construct a truth table for the compound proposition (pq)(qr)(p \rightarrow q) \wedge (q \rightarrow r) and determine its type. (5)

(b) Using rules of inference, show that the following argument is valid. State the rule used at each step.

Premises: pqp \rightarrow q, ¬qr\neg q \vee r, ¬r\neg r. Conclusion: ¬p\neg p. (4)

(c) Translate the statement "Every student in this class has visited either Pokhara or Lumbini" into a logical expression using quantifiers and predicates, clearly defining the universe of discourse and each predicate. (3)

propositional-logicpredicate-logicrules-of-inference
3long12 marks

(a) Define a connected graph, a Hamiltonian circuit, and an Euler circuit. State the necessary and sufficient condition for a connected graph to contain an Euler circuit. (4)

(b) Apply Dijkstra's algorithm to find the shortest path from vertex AA to all other vertices of the following weighted graph. Edges and weights: AA-BB = 4, AA-CC = 2, CC-BB = 1, BB-DD = 5, CC-DD = 8, CC-EE = 10, DD-EE = 2, DD-ZZ = 6, EE-ZZ = 3. Show the table of tentative distances at each iteration. (8)

graph-theorytreesspanning-tree
4long12 marks

(a) Let RR be a relation defined on the set of integers Z\mathbb{Z} by aRba\,R\,b if and only if aba - b is divisible by 5. Prove that RR is an equivalence relation and describe its equivalence classes. (6)

(b) State and prove the principle of inclusion-exclusion for two finite sets AA and BB. In a survey of 120 students, 70 like tea, 60 like coffee, and 30 like both. How many students like neither tea nor coffee? (6)

set-theoryrelationsequivalence-relations
B

Section B: Short Answer Questions

Attempt all / any as specified.

7 questions
5short8 marks

(a) Define injective, surjective, and bijective functions with one example of each. (4)

(b) Let f:RRf : \mathbb{R} \rightarrow \mathbb{R} be defined by f(x)=3x7f(x) = 3x - 7. Show that ff is a bijection and find its inverse function f1f^{-1}. (4)

functionsbijectioninverse-function
6short8 marks

(a) How many distinct strings can be formed by rearranging the letters of the word "ENGINEERING"? (4)

(b) In how many ways can a committee of 4 members be selected from a group of 7 men and 5 women if the committee must contain at least 2 women? (4)

countingcombinatoricspermutations
7short8 marks

(a) State the basic postulates of Boolean algebra. Prove the absorption law x+xy=xx + xy = x using the postulates. (4)

(b) Simplify the Boolean function F(x,y,z)=m(0,1,2,4,5)F(x, y, z) = \sum m(0, 1, 2, 4, 5) using a Karnaugh map and draw the resulting logic circuit. (4)

boolean-algebralogic-gatesminimization
8short8 marks

(a) Define an adjacency matrix and an incidence matrix of a graph. Write the adjacency matrix for a simple undirected graph on vertices {1,2,3,4}\{1,2,3,4\} with edges {1,2},{2,3},{3,4},{4,1},{1,3}\{1,2\}, \{2,3\}, \{3,4\}, \{4,1\}, \{1,3\}. (4)

(b) Determine whether the two given graphs are isomorphic, justifying your answer using graph invariants such as degree sequence and number of edges. (4)

graph-theorygraph-representationisomorphism
9short8 marks

(a) Define a binary search tree. Construct a binary search tree by inserting the following keys in order: 50, 30, 70, 20, 40, 60, 80. (4)

(b) Write the preorder, inorder, and postorder traversals of the binary search tree obtained in part (a). (4)

treesbinary-treetraversal
10short8 marks

(a) Set up a recurrence relation for the number of binary strings of length nn that do not contain two consecutive 0's, and give the initial conditions. (4)

(b) Using a generating function, or otherwise, find the number of ways to distribute 10 identical chocolates among 3 distinct children so that each child receives at least one chocolate. (4)

recurrence-relationsgenerating-functionscounting
11short8 marks

(a) For the sets A={1,2,3}A = \{1, 2, 3\} and B={a,b}B = \{a, b\}, list all elements of the Cartesian product A×BA \times B and determine the total number of relations from AA to BB. (4)

(b) Define a partial order relation. Draw the Hasse diagram for the divisibility relation on the set {1,2,3,6,12}\{1, 2, 3, 6, 12\} and identify the maximal and minimal elements. (4)

set-theoryfunctionspartial-order