Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 marks

Define a set. Explain set operations with Venn diagrams. State and prove the principle of inclusion-exclusion for two and three sets.

Set

A set is a well-defined, unordered collection of distinct objects called its elements (or members). If xx is an element of set AA we write xAx \in A; otherwise xAx \notin A. Example: A={1,2,3}A = \{1, 2, 3\}.

Set Operations (with Venn diagrams)

Let AA and BB be subsets of a universal set UU. In a Venn diagram, UU is the rectangle and A,BA,B are overlapping circles inside it; the shaded region represents the result.

  • Union AB={x:xA or xB}A \cup B = \{x : x \in A \text{ or } x \in B\} — both circles shaded.
  • Intersection AB={x:xA and xB}A \cap B = \{x : x \in A \text{ and } x \in B\} — only the overlap shaded.
  • Difference AB={x:xA and xB}A - B = \{x : x \in A \text{ and } x \notin B\} — the part of circle AA outside BB.
  • Complement A=UA={x:xU and xA}A' = U - A = \{x : x \in U \text{ and } x \notin A\} — everything outside circle AA.
  • Symmetric difference AB=(AB)(BA)A \oplus B = (A-B)\cup(B-A) — both circles shaded except the overlap.

Principle of Inclusion–Exclusion

Two sets

AB=A+BAB|A \cup B| = |A| + |B| - |A \cap B|

Proof: When we add A|A| and B|B|, every element of ABA \cap B is counted twice (once in A|A|, once in B|B|), while elements in only AA or only BB are counted once. Subtracting AB|A \cap B| removes the duplicate count, so each element of ABA \cup B is counted exactly once. Hence the formula holds.

Three sets

ABC=A+B+CABBCAC+ABC|A \cup B \cup C| = |A|+|B|+|C| - |A\cap B| - |B\cap C| - |A\cap C| + |A\cap B\cap C|

Proof: Treat ABC=(AB)CA \cup B \cup C = (A\cup B)\cup C and apply the two-set rule:

ABC=AB+C(AB)C.|A\cup B\cup C| = |A\cup B| + |C| - |(A\cup B)\cap C|.

Now AB=A+BAB|A\cup B| = |A|+|B|-|A\cap B|, and since (AB)C=(AC)(BC)(A\cup B)\cap C = (A\cap C)\cup(B\cap C),

(AB)C=AC+BCABC.|(A\cup B)\cap C| = |A\cap C| + |B\cap C| - |A\cap B\cap C|.

Substituting gives

ABC=A+B+CABBCAC+ABC.|A\cup B\cup C| = |A|+|B|+|C| - |A\cap B| - |B\cap C| - |A\cap C| + |A\cap B\cap C|. \qquad \blacksquare

Intuitively: add single sets, subtract pairwise overlaps (over-subtracted the triple region), then add the triple overlap back once.

setsinclusion-exclusion
2long10 marks

What is a Boolean algebra? Explain Boolean functions. Minimize the Boolean function (F(x,y,z) = \Sigma(0,2,4,6)) using a Karnaugh map.

Boolean Algebra

A Boolean algebra is an algebraic structure (B,+,,,0,1)(B, +, \cdot, ', 0, 1) on a set BB with two binary operations ++ (OR) and \cdot (AND), a unary operation ' (complement/NOT), and two distinct elements 00 and 11, satisfying for all a,b,cBa,b,c \in B:

  • Commutative: a+b=b+aa+b=b+a, ab=baa\cdot b=b\cdot a
  • Associative: (a+b)+c=a+(b+c)(a+b)+c=a+(b+c), similarly for \cdot
  • Distributive: a(b+c)=ab+aca\cdot(b+c)=a\cdot b + a\cdot c and a+(bc)=(a+b)(a+c)a+(b\cdot c)=(a+b)\cdot(a+c)
  • Identity: a+0=aa+0=a, a1=aa\cdot 1 = a
  • Complement: a+a=1a + a' = 1, aa=0a\cdot a' = 0

The two-element set B={0,1}B=\{0,1\} with these rules is the switching algebra used in digital logic.

Boolean Functions

A Boolean function of nn variables is a mapping f:{0,1}n{0,1}f:\{0,1\}^n \to \{0,1\}. It can be written using AND, OR, NOT and represented as a truth table, as a sum-of-minterms (SOP), or as a product-of-maxterms (POS). For example, F(x,y,z)=Σ(0,2,4,6)F(x,y,z)=\Sigma(0,2,4,6) means F=1F=1 exactly for the minterms numbered 0, 2, 4 and 6.

Minimizing F(x,y,z)=Σ(0,2,4,6)F(x,y,z) = \Sigma(0,2,4,6) with a K-map

Minterms and their values: 0=xyz0=x'y'z', 2=xyz2=x'yz', 4=xyz4=xy'z', 6=xyz6=xyz'. The K-map (rows xx, columns yzyz in Gray order 00,01,11,1000,01,11,10):

x\yzx \backslash yz00011110
01 (m0)0 (m1)0 (m3)1 (m2)
11 (m4)0 (m5)0 (m7)1 (m6)

All four 1s lie in the columns where z=0z=0 (columns 0000 and 1010). They form one group of four cells. In this group xx takes both values and yy takes both values, so only zz' is common.

F=z\boxed{F = z'}

Verification: F=1F=1 whenever z=0z=0 regardless of x,yx,y, i.e. minterms 0, 2, 4, 6 — matching the given function.

boolean-algebrakmap
3long10 marks

Define permutation and combination. In how many ways can the letters of the word 'COMPUTER' be arranged? How many of these arrangements begin with a vowel?

Permutation

A permutation is an arrangement of objects in which order matters. The number of ways to arrange rr objects out of nn distinct objects is

P(n,r)=n!(nr)!.P(n,r) = \frac{n!}{(n-r)!}.

Combination

A combination is a selection of objects in which order does not matter. The number of ways to choose rr objects out of nn distinct objects is

C(n,r)=(nr)=n!r!(nr)!.C(n,r) = \binom{n}{r} = \frac{n!}{r!\,(n-r)!}.

Arrangements of 'COMPUTER'

The word COMPUTER has 8 letters, all distinct (C, O, M, P, U, T, E, R). Total arrangements:

8!=40320.8! = 40320.

Arrangements beginning with a vowel

The vowels in COMPUTER are O, U, E — that is 3 vowels.

  • Fix one vowel in the first position: 3 choices.
  • Arrange the remaining 7 distinct letters in the other 7 positions: 7!=50407! = 5040 ways.
Total=3×7!=3×5040=15120.\text{Total} = 3 \times 7! = 3 \times 5040 = 15120.

Results: Total arrangements =40320= 40320; arrangements beginning with a vowel =15120= 15120.

countingpermutation
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

Construct the truth table for (p \oplus q) (exclusive or).

The exclusive or pqp \oplus q is true when exactly one of p,qp, q is true (i.e. when they differ).

ppqqpqp \oplus q
TTF
TFT
FTT
FFF

Equivalently, pq(p¬q)(¬pq)p \oplus q \equiv (p \land \lnot q) \lor (\lnot p \land q).

logic
5short5 marks

Define floor and ceiling functions with examples.

Floor function x\lfloor x \rfloor gives the greatest integer less than or equal to xx. Examples: 3.7=3\lfloor 3.7 \rfloor = 3, 5=5\lfloor 5 \rfloor = 5, 2.3=3\lfloor -2.3 \rfloor = -3.

Ceiling function x\lceil x \rceil gives the least integer greater than or equal to xx. Examples: 3.2=4\lceil 3.2 \rceil = 4, 5=5\lceil 5 \rceil = 5, 2.3=2\lceil -2.3 \rceil = -2.

Both map RZ\mathbb{R} \to \mathbb{Z}, and for any non-integer xx, x=x+1\lceil x \rceil = \lfloor x \rfloor + 1.

functions
6short5 marks

What is a multiset? Give an example.

A multiset (or bag) is a collection of elements in which an element may appear more than once; that is, the multiplicity (number of occurrences) of each element matters, although order still does not. It generalizes an ordinary set, where every element has multiplicity 1.

Example: M={a,a,b,c,c,c}M = \{a, a, b, c, c, c\}, written compactly as {2a, 1b, 3c}\{2\cdot a,\ 1\cdot b,\ 3\cdot c\}. Here aa has multiplicity 2, bb multiplicity 1 and cc multiplicity 3, and the cardinality is M=6|M| = 6.

sets
7short5 marks

Find the gcd of 252 and 198 using the Euclidean algorithm.

Apply the Euclidean algorithm: gcd(a,b)=gcd(b, amodb)\gcd(a,b) = \gcd(b,\ a \bmod b) until the remainder is 0.

252=1×198+54252 = 1 \times 198 + 54 198=3×54+36198 = 3 \times 54 + 36 54=1×36+1854 = 1 \times 36 + 18 36=2×18+036 = 2 \times 18 + 0

The last non-zero remainder is 18.

gcd(252,198)=18\boxed{\gcd(252, 198) = 18}
number-theory
8short5 marks

Define weighted graph and give a real-life application.

A weighted graph is a graph G=(V,E)G=(V,E) in which each edge eEe \in E is assigned a numerical value w(e)w(e) called its weight (or cost, length, capacity). It can be directed or undirected and is often stored as a weighted adjacency matrix.

Real-life application: A road/transport network where vertices are cities and edge weights are distances or travel times. Algorithms such as Dijkstra's shortest-path algorithm then compute the cheapest route between two cities (e.g. GPS navigation, or finding minimum-cost network links).

graph
9short5 marks

What is a spanning tree? How many spanning trees does (K_3) have?

A spanning tree of a connected graph G=(V,E)G=(V,E) is a subgraph that is a tree (connected and acyclic) and includes all the vertices of GG. For a graph with nn vertices, every spanning tree has exactly n1n-1 edges.

Number of spanning trees of K3K_3: By Cayley's formula, the complete graph KnK_n has nn2n^{\,n-2} spanning trees. For K3K_3:

332=31=3.3^{\,3-2} = 3^1 = 3.

So K3K_3 (a triangle) has 3 spanning trees — each obtained by deleting one of its three edges.

tree
10short5 marks

State the conditions for a graph to be Eulerian.

Let GG be a connected graph (with all non-zero-degree vertices in one component).

  • Euler circuit (closed Euler trail): GG has an Euler circuit iff it is connected and every vertex has even degree.
  • Euler path (open Euler trail): GG has an Euler path but no circuit iff it is connected and has exactly two vertices of odd degree (the path starts at one and ends at the other).

The reason is that, except at the start/end, each visit to a vertex uses one edge to enter and one to leave, requiring an even degree.

graph
11short5 marks

Define a Boolean expression and simplify (x + x'y).

A Boolean expression is a finite combination of Boolean variables (each {0,1}\in \{0,1\}), constants 00 and 11, and the operators ++ (OR), \cdot (AND) and ' (NOT), formed according to Boolean algebra rules; it evaluates to either 00 or 11.

Simplify x+xyx + x'y:

Using the distributive law x+xy=(x+x)(x+y)x + x'y = (x + x')(x + y):

x+xy=(x+x)(x+y)=1(x+y)=x+y.x + x'y = (x + x')(x + y) = 1 \cdot (x + y) = x + y. x+xy=x+y\boxed{x + x'y = x + y}
boolean-algebra
12short5 marks

How many ways can 5 people be seated around a circular table?

Seating nn people around a circular table counts arrangements that differ only by rotation as the same. Fixing one person's seat to remove rotational symmetry, the remaining n1n-1 people are arranged in (n1)!(n-1)! ways.

For n=5n = 5:

(51)!=4!=24.(5-1)! = 4! = 24.

So there are 24 distinct circular seating arrangements.

counting

Frequently asked questions

Where can I find the BSc CSIT (TU) Discrete Structure (BSc CSIT, CSC160) question paper 2079?
The full BSc CSIT (TU) Discrete Structure (BSc CSIT, CSC160) 2079 (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) 2079 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) 2079 paper?
The BSc CSIT (TU) Discrete Structure (BSc CSIT, CSC160) 2079 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.