Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 marks

Define quantifiers. Translate the following into logical expressions using predicates and quantifiers, and find their negations: (a) Every student in this class has studied calculus. (b) Some student in this class owns a computer.

Quantifiers

A quantifier specifies the quantity of objects in a domain for which a predicate is true.

  • Universal quantifier xP(x)\forall x\, P(x) — read "for all xx, P(x)P(x)"; true when P(x)P(x) holds for every element of the domain.
  • Existential quantifier xP(x)\exists x\, P(x) — read "there exists an xx such that P(x)P(x)"; true when P(x)P(x) holds for at least one element of the domain.

Let the domain be the students in this class. Define predicates:

  • C(x)C(x): "xx has studied calculus."
  • D(x)D(x): "xx owns a computer."

(a) Every student in this class has studied calculus.

Translation:

xC(x)\forall x\, C(x)

Negation:

¬xC(x)x¬C(x)\neg \forall x\, C(x) \equiv \exists x\, \neg C(x)

In words: "There is a student in this class who has not studied calculus."

(b) Some student in this class owns a computer.

Translation:

xD(x)\exists x\, D(x)

Negation:

¬xD(x)x¬D(x)\neg \exists x\, D(x) \equiv \forall x\, \neg D(x)

In words: "No student in this class owns a computer" (i.e., every student does not own a computer).

Note

These negations use De Morgan's laws for quantifiers: ¬xP(x)x¬P(x)\neg\forall x\,P(x)\equiv\exists x\,\neg P(x) and ¬xP(x)x¬P(x)\neg\exists x\,P(x)\equiv\forall x\,\neg P(x).

quantifierspredicate-logic
2long10 marks

State and explain the pigeonhole principle. How many cards must be selected from a standard deck of 52 cards to guarantee that at least three cards of the same suit are chosen? Also solve a generalized example.

Pigeonhole Principle

Statement: If nn objects (pigeons) are placed into kk boxes (holes) and n>kn > k, then at least one box contains two or more objects.

Generalized pigeonhole principle: If NN objects are placed into kk boxes, then at least one box contains at least Nk\left\lceil \dfrac{N}{k} \right\rceil objects.

Explanation: If every box held at most one object, the total would be at most kk, contradicting n>kn>k. The generalized form follows because if every box held fewer than N/k\lceil N/k\rceil objects, the total would be less than NN.

Cards Problem

We want to guarantee at least three cards of the same suit. There are k=4k = 4 suits (boxes). We need the smallest NN such that N43\left\lceil \dfrac{N}{4} \right\rceil \ge 3.

The worst case: we pick 2 cards of each suit =2×4=8= 2 \times 4 = 8 cards, still no suit having three. The very next (9th9^{th}) card must complete a third in some suit.

N=24+1=9N = 2 \cdot 4 + 1 = 9

Answer: 9 cards must be selected.

Check: 94=2.25=3.\left\lceil \dfrac{9}{4} \right\rceil = \lceil 2.25 \rceil = 3.

Generalized Example

How many cards must be drawn to guarantee at least five cards of the same suit?

Worst case: 4 of each suit =16= 16 cards. The next card forces a fifth in some suit:

N=44+1=17 cards.N = 4 \cdot 4 + 1 = 17 \text{ cards.}

Check: 17/4=5.\lceil 17/4 \rceil = 5.

countingpigeonhole
3long10 marks

Define relation. Explain reflexive, symmetric, antisymmetric and transitive relations with examples. What is an equivalence relation? Show that congruence modulo m is an equivalence relation.

Relation

A relation RR from a set AA to a set BB is a subset of the Cartesian product A×BA \times B. A relation on a set AA is a subset RA×AR \subseteq A \times A. We write aRba\,R\,b (or (a,b)R(a,b)\in R) when aa is related to bb.

Properties of a relation on AA

PropertyDefinitionExample on Z\mathbb{Z}
ReflexiveaA, (a,a)R\forall a \in A,\ (a,a)\in Raaa \le a (the relation \le)
Symmetrica,b, (a,b)R(b,a)R\forall a,b,\ (a,b)\in R \Rightarrow (b,a)\in Ra=ba = b (equality)
Antisymmetrica,b, (a,b)R(b,a)Ra=b\forall a,b,\ (a,b)\in R \wedge (b,a)\in R \Rightarrow a=baba \le b
Transitivea,b,c, (a,b)R(b,c)R(a,c)R\forall a,b,c,\ (a,b)\in R \wedge (b,c)\in R \Rightarrow (a,c)\in Raba \le b
  • Reflexive: every element relates to itself.
  • Symmetric: if aa relates to bb, then bb relates to aa.
  • Antisymmetric: the only way both (a,b)(a,b) and (b,a)(b,a) hold is a=ba=b.
  • Transitive: relation chains compose.

Equivalence Relation

A relation RR on AA is an equivalence relation if it is reflexive, symmetric, and transitive. It partitions AA into disjoint equivalence classes.

Congruence Modulo mm is an Equivalence Relation

Define ab(modm)a \equiv b \pmod{m} iff m(ab)m \mid (a-b), where mm is a fixed positive integer, on the set Z\mathbb{Z}.

1. Reflexive: For any aa, aa=0=m0a - a = 0 = m \cdot 0, so m(aa)m \mid (a-a). Hence aa(modm)a \equiv a \pmod m.

2. Symmetric: Suppose ab(modm)a \equiv b \pmod m, so m(ab)m \mid (a-b), i.e. ab=mka-b = mk for some integer kk. Then ba=m(k)b - a = m(-k), so m(ba)m \mid (b-a), giving ba(modm)b \equiv a \pmod m.

3. Transitive: Suppose aba \equiv b and bc(modm)b \equiv c \pmod m. Then ab=mka-b = mk and bc=mlb-c = ml for integers k,lk,l. Adding: ac=m(k+l)a - c = m(k+l), so m(ac)m \mid (a-c), giving ac(modm)a \equiv c \pmod m.

Since all three properties hold, congruence modulo mm is an equivalence relation. \blacksquare

relationsequivalence
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

State De Morgan's laws for sets and for logic.

De Morgan's Laws

For sets (with universal set UU, complement denoted by a bar):

AB=AB\overline{A \cup B} = \overline{A} \cap \overline{B} AB=AB\overline{A \cap B} = \overline{A} \cup \overline{B}

The complement of a union is the intersection of the complements, and vice versa.

For logic (propositions p,qp, q):

¬(pq)¬p¬q\neg(p \vee q) \equiv \neg p \wedge \neg q ¬(pq)¬p¬q\neg(p \wedge q) \equiv \neg p \vee \neg q

The negation of a disjunction is the conjunction of the negations, and the negation of a conjunction is the disjunction of the negations.

logicsets
5short5 marks

Define onto and one-to-one functions.

One-to-One (Injective) Function

A function f:ABf: A \to B is one-to-one (injective) if distinct elements of the domain map to distinct elements of the codomain:

f(a1)=f(a2)    a1=a2(equivalently a1a2    f(a1)f(a2)).f(a_1) = f(a_2) \implies a_1 = a_2 \quad \text{(equivalently } a_1 \ne a_2 \implies f(a_1) \ne f(a_2)\text{).}

Example: f(x)=2xf(x) = 2x on R\mathbb{R} is one-to-one.

Onto (Surjective) Function

A function f:ABf: A \to B is onto (surjective) if every element of the codomain is the image of at least one element of the domain:

bB, aA such that f(a)=b.\forall b \in B,\ \exists a \in A \text{ such that } f(a) = b.

That is, the range of ff equals the codomain BB. Example: f(x)=x3f(x) = x^3 from R\mathbb{R} to R\mathbb{R} is onto.

A function that is both one-to-one and onto is called a bijection.

functions
6short5 marks

Solve (a_n = a_{n-1} + 2n), (a_0 = 1) for (a_3).

Solving the Recurrence

Given an=an1+2na_n = a_{n-1} + 2n with a0=1a_0 = 1. Compute iteratively:

  • a1=a0+2(1)=1+2=3a_1 = a_0 + 2(1) = 1 + 2 = 3
  • a2=a1+2(2)=3+4=7a_2 = a_1 + 2(2) = 3 + 4 = 7
  • a3=a2+2(3)=7+6=13a_3 = a_2 + 2(3) = 7 + 6 = 13
a3=13\boxed{a_3 = 13}

Verification by closed form: Telescoping, an=a0+2k=1nk=1+2n(n+1)2=1+n(n+1)a_n = a_0 + 2\sum_{k=1}^{n} k = 1 + 2 \cdot \dfrac{n(n+1)}{2} = 1 + n(n+1). For n=3n=3: a3=1+34=13.a_3 = 1 + 3\cdot 4 = 13.

recurrence
7short5 marks

What is the degree of a vertex? State the handshaking theorem.

Degree of a Vertex

The degree of a vertex vv in an undirected graph, written deg(v)\deg(v), is the number of edges incident to vv, with each self-loop (an edge from vv to itself) counted twice.

For a directed graph, vv has an in-degree deg(v)\deg^-(v) (number of edges entering vv) and an out-degree deg+(v)\deg^+(v) (number of edges leaving vv).

Handshaking Theorem

For any undirected graph G=(V,E)G = (V, E), the sum of the degrees of all vertices equals twice the number of edges:

vVdeg(v)=2E.\sum_{v \in V} \deg(v) = 2|E|.

Consequence: the number of vertices of odd degree is always even. (Directed analogue: vdeg(v)=vdeg+(v)=E\sum_{v}\deg^-(v) = \sum_{v}\deg^+(v) = |E|.)

graph
8short5 marks

Define a subgroup with an example.

Subgroup

Let (G,)(G, *) be a group. A non-empty subset HGH \subseteq G is a subgroup of GG, written HGH \le G, if HH itself forms a group under the same operation *. Equivalently, HH is a subgroup iff:

  1. Closure: a,bH    abHa, b \in H \implies a * b \in H.
  2. Identity: the identity ee of GG belongs to HH.
  3. Inverses: aH    a1Ha \in H \implies a^{-1} \in H.

(One-step test: HH \ne \emptyset is a subgroup iff a,bH    ab1Ha, b \in H \implies a * b^{-1} \in H.)

Example

Consider the group of integers (Z,+)(\mathbb{Z}, +). The set of even integers

H=2Z={,4,2,0,2,4,}H = 2\mathbb{Z} = \{\dots, -4, -2, 0, 2, 4, \dots\}

is a subgroup: it is closed under addition (even + even = even), contains the identity 00, and the additive inverse of an even number is even. Hence 2ZZ2\mathbb{Z} \le \mathbb{Z}.

algebraic-structures
9short5 marks

Differentiate between a tree and a graph.

Tree vs. Graph

A graph G=(V,E)G = (V, E) is a set of vertices VV together with a set of edges EE connecting pairs of vertices. A tree is a special kind of graph: a connected, acyclic, undirected graph.

AspectGraphTree
DefinitionSet of vertices and edgesConnected acyclic graph
CyclesMay contain cyclesNo cycles (acyclic)
ConnectivityMay be connected or disconnectedAlways connected
Edges (for nn vertices)Any number (00 to (n2)\binom{n}{2})Exactly n1n - 1 edges
Path between verticesZero, one, or many pathsExactly one unique path
RootNo concept of rootMay have a designated root (rooted tree)
Loops / multiple edgesPossible (multigraph)Not allowed

In short: every tree is a graph, but not every graph is a tree. A tree on nn vertices is minimally connected and adding any edge creates a cycle, while removing any edge disconnects it.

treegraph
10short5 marks

Write the contrapositive, converse and inverse of 'If it rains then the ground is wet'.

Conditional and its Variants

Let pp: "it rains" and qq: "the ground is wet". The original statement is the conditional pqp \rightarrow q: "If it rains then the ground is wet."

  • Converse (qp)(q \rightarrow p): "If the ground is wet then it rains."
  • Inverse (¬p¬q)(\neg p \rightarrow \neg q): "If it does not rain then the ground is not wet."
  • Contrapositive (¬q¬p)(\neg q \rightarrow \neg p): "If the ground is not wet then it does not rain."

Note: A conditional is logically equivalent to its contrapositive (pq¬q¬pp\to q \equiv \neg q \to \neg p), and the converse is equivalent to the inverse. The conditional is not equivalent to its converse or inverse.

logic
11short5 marks

How many bit strings of length 8 contain exactly three 1's?

Bit Strings of Length 8 with Exactly Three 1's

A bit string of length 8 has 8 positions. Choosing which three positions hold a 11 (the rest are 00) is a combination problem — we count the number of ways to choose 3 positions out of 8:

(83)=8!3!5!=876321=3366=56.\binom{8}{3} = \frac{8!}{3!\,5!} = \frac{8 \cdot 7 \cdot 6}{3 \cdot 2 \cdot 1} = \frac{336}{6} = 56. 56 bit strings\boxed{56 \text{ bit strings}}
counting
12short5 marks

Define adjacency matrix of a directed graph with an example.

Adjacency Matrix of a Directed Graph

For a directed graph G=(V,E)G = (V, E) with nn vertices ordered v1,v2,,vnv_1, v_2, \dots, v_n, the adjacency matrix is the n×nn \times n matrix A=[aij]A = [a_{ij}] where

aij={1if there is a directed edge from vi to vj,0otherwise.a_{ij} = \begin{cases} 1 & \text{if there is a directed edge from } v_i \text{ to } v_j,\\ 0 & \text{otherwise.} \end{cases}

Unlike the undirected case, this matrix is generally not symmetric, because edge direction matters: aij=1a_{ij}=1 does not imply aji=1a_{ji}=1.

Example

Let V={1,2,3}V = \{1, 2, 3\} with directed edges E={(1,2), (2,3), (3,1), (1,3)}E = \{(1,2),\ (2,3),\ (3,1),\ (1,3)\}.

The adjacency matrix (rows = from, columns = to) is:

A=(011001100)A = \begin{pmatrix} 0 & 1 & 1 \\ 0 & 0 & 1 \\ 1 & 0 & 0 \end{pmatrix}

For instance, row 1 has a12=1a_{12}=1 and a13=1a_{13}=1 because vertex 1 has directed edges to vertices 2 and 3. The row sum gives the out-degree of each vertex and the column sum gives its in-degree.

graph

Frequently asked questions

Where can I find the BSc CSIT (TU) Discrete Structure (BSc CSIT, CSC160) question paper 2077?
The full BSc CSIT (TU) Discrete Structure (BSc CSIT, CSC160) 2077 (regular) question paper is available free on Kekkei. You can read every question online and attempt the paper under timed exam conditions.
Does the Discrete Structure (BSc CSIT, CSC160) 2077 paper come with solutions?
Yes. Every question on this Discrete Structure (BSc CSIT, CSC160) past paper includes a step-by-step solution, plus instant AI feedback when you attempt it on Kekkei.
How many marks is the BSc CSIT (TU) Discrete Structure (BSc CSIT, CSC160) 2077 paper?
The BSc CSIT (TU) Discrete Structure (BSc CSIT, CSC160) 2077 paper carries 60 full marks and is meant to be completed in 180 minutes, across 12 questions.
Is practising this Discrete Structure (BSc CSIT, CSC160) past paper free?
Yes — reading and attempting this Discrete Structure (BSc CSIT, CSC160) past paper on Kekkei is completely free.