Skip to main content

Chapter 10

Discrete Structure (2013 AD onward)

TU BIM past exam questions

Past questions and answers

208 questions set from this chapter, 2 of them more than once; 15 are most repeated (set, or a close variant set, in 3 or more exams). Most repeated first.

  • Most repeated · 4 of 21 exams
  • 2014 AD · 4 marks

Define shortest path problem. Find the shortest path from AA to each of the vertices by using Dijkstra's algorithm. (Weighted graph G=(V,E)G=(V,E) on vertices A-F is given in a figure in the original paper.)

Similar questions: Using Dijkstra's algorithm, find the shortest path (2017 AD) · Define weighted graph. Find the shortest path (2021 AD) · Apply Dijkstra's Algorithm to find the shortest (2019 AD)

Answer

Shortest path problem. Given a weighted graph and two vertices, find a path between them whose total edge weight is minimum. Dijkstra's algorithm solves it from a source vertex to all other vertices when all weights are non-negative.

Dijkstra's algorithm (source AA).

  1. Set d(A)=0d(A)=0 and d(v)=∞d(v)=\infty for all other vv; mark all vertices unvisited.
  2. Choose the unvisited vertex uu with the smallest d(u)d(u) and mark it visited (permanent).
  3. For each unvisited neighbour vv of uu, if d(u)+w(u,v)<d(v)d(u)+w(u,v)<d(v), set d(v)=d(u)+w(u,v)d(v)=d(u)+w(u,v) and record uu as the predecessor of vv.
  4. Repeat steps 2 and 3 until all vertices are visited.

The final labels d(v)d(v) are the shortest distances from AA, and following the predecessors back from vv to AA gives the shortest path. In the table of iterations, each row shows the labels after one vertex is made permanent, and the vertex chosen in each row is the one with the least tentative label, so the distances are fixed in increasing order.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Most repeated · 4 of 21 exams
  • 2017 AD · 4 marks

Using Dijkstra's algorithm, find the shortest path from vertex A to F. (Weighted graph G=(V,E)G=(V,E) on vertices A-F is given in a figure in the original paper.)

Similar questions: Define weighted graph. Find the shortest path (2021 AD) · Define shortest path problem. Find the shortest (2014 AD) · Apply Dijkstra's Algorithm to find the shortest (2019 AD)

Answer

Dijkstra's algorithm finds the shortest paths from a source in a weighted graph with non-negative weights.

Procedure for source AA and target FF

  1. Set d(A)=0d(A)=0 and d(v)=∞d(v)=\infty for all other vertices; all vertices are unmarked (temporary).
  2. Pick the unmarked vertex uu with the smallest d(u)d(u) and mark it permanent.
  3. For every neighbour vv of uu, relax: if d(u)+w(u,v)<d(v)d(u)+w(u,v)<d(v), set d(v)=d(u)+w(u,v)d(v)=d(u)+w(u,v) and record uu as the predecessor of vv.
  4. Repeat steps 2 and 3 until FF is marked permanent.
  5. The shortest distance is d(F)d(F); the path is found by following predecessors from FF back to AA.

Working table. Each round fixes one vertex (the one with the smallest label in the current row) and updates the labels of its neighbours. Carrying out the rounds on the weights in the figure fixes the vertices in the order of increasing distance from AA, and the label of FF when it is fixed gives the shortest distance from AA to FF, with the predecessor chain giving the path.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Most repeated · 4 of 21 exams
  • 2019 AD · 4 marks

Apply Dijkstra's Algorithm to find the shortest path from aa to dd of the remaining vertices. (Weighted graph on vertices a-f is given in a figure in the original paper.)

Similar questions: Using Dijkstra's algorithm, find the shortest path (2017 AD) · Define weighted graph. Find the shortest path (2021 AD) · Define shortest path problem. Find the shortest (2014 AD)

Answer

Dijkstra's algorithm (source aa):

  1. Set d(a)=0d(a)=0 and d(v)=∞d(v)=\infty for every other vertex; mark all vertices unvisited.
  2. Choose the unvisited vertex uu with the smallest d(u)d(u) and mark it visited (permanent).
  3. For every unvisited neighbour vv of uu with edge weight w(u,v)w(u,v): if d(u)+w(u,v)<d(v)d(u)+w(u,v)<d(v), set d(v)=d(u)+w(u,v)d(v)=d(u)+w(u,v) and record uu as the predecessor of vv.
  4. Repeat steps 2 and 3 until every vertex (or the target) is visited.

Starting from aa, the first vertex made permanent is aa with label 0, its neighbours are labelled by the weights of their edges from aa, and the process continues with the least labelled vertex each time, updating labels of its neighbours whenever a shorter route is found. When dd is made permanent, the label of dd is the length of the shortest path from aa to dd, and the path itself is obtained by following the predecessors back from dd to aa. The same final labels give the shortest distances from aa to all the remaining vertices.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Most repeated · 4 of 21 exams
  • 2021 AD · 4 marks

Define weighted graph. Find the shortest path from vertex aa to zz in the given graph using Dijkstra's algorithm. (Weighted graph on vertices a, b, c, d, z is given in a figure in the original paper.)

Similar questions: Using Dijkstra's algorithm, find the shortest path (2017 AD) · Define shortest path problem. Find the shortest (2014 AD) · Apply Dijkstra's Algorithm to find the shortest (2019 AD)

Answer

A weighted graph is a graph in which each edge ee is assigned a non-negative number w(e)w(e) (its weight, e.g. distance or cost). The length of a path is the sum of the weights of its edges.

Dijkstra's algorithm (shortest path from aa to zz):

  1. Set d(a)=0d(a)=0 and d(v)=∞d(v)=\infty for all other vertices; all vertices are unvisited.
  2. Pick the unvisited vertex uu with the smallest d(u)d(u) and mark it visited.
  3. For each unvisited neighbour vv of uu, if d(u)+w(u,v)<d(v)d(u)+w(u,v)<d(v) set d(v)=d(u)+w(u,v)d(v)=d(u)+w(u,v) and record uu as its predecessor.
  4. Repeat steps 2-3 until zz is visited; d(z)d(z) is the shortest distance and the predecessors give the path.

Illustration with edges ab=2, ac=4, bc=1, bd=7, cd=3, cz=8, dz=2ab=2,\ ac=4,\ bc=1,\ bd=7,\ cd=3,\ cz=8,\ dz=2:

StepVisitd(b)d(b)d(c)d(c)d(d)d(d)d(z)d(z)
0aa24∞\infty∞\infty
1bb239∞\infty
2cc23611
3dd2368
4zz8

Shortest path: a→b→c→d→za\to b\to c\to d\to z with length 2+1+3+2=82+1+3+2=8. The same steps applied to the weights in the given figure yield its shortest path.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Most repeated · 3 of 21 exams
  • Asked 2 times
  • 2016 AD · 2 marks
  • 2018 AD · 2 marks

A tree has 2 vertices of degree 2, 1 vertex of degree 3 and 3 vertices of degree 4. How many pendant vertices does it have?

Similar questions: A tree has 3 vertices of degree (2021 AD)

Answer

Let pp be the number of pendant vertices (degree 1). Then

n=2+1+3+p=6+p,∣E∣=n−1=5+p.n=2+1+3+p=6+p,\qquad |E|=n-1=5+p.

By the handshaking lemma:

2(5+p)=2⋅2+1⋅3+3⋅4+p⋅1=19+p  ⇒  10+2p=19+p  ⇒  p=9.2(5+p)=2\cdot2+1\cdot3+3\cdot4+p\cdot1=19+p\;\Rightarrow\;10+2p=19+p\;\Rightarrow\;p=9.

The tree has 9 pendant vertices.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Most repeated · 3 of 21 exams
  • 2014 AD · 4 marks

Define forest with example. Prove that a forest with nn vertices has n−kn-k edges, where kk is number of component of forest.

Similar questions: What is forest? Prove that a forest (2017 AD) · Prove that a forest with n vertices (2021 AD)

Answer

Definition. A forest is an acyclic graph, that is, a graph with no cycles. Equivalently, it is a disjoint union of trees; each connected component of a forest is a tree.

Example: the graph with edges ab, bcab,\ bc and dede on vertices a,b,c,d,ea,b,c,d,e is a forest with two components (the path a−b−ca-b-c and the edge d−ed-e).

Theorem. A forest with nn vertices and kk components has n−kn-k edges.

Proof. Let the components be trees T1,…,TkT_1,\dots,T_k with n1,…,nkn_1,\dots,n_k vertices, so n1+⋯+nk=nn_1+\dots+n_k=n. A tree with nin_i vertices has exactly ni−1n_i-1 edges. Therefore the total number of edges is

∑i=1k(ni−1)=∑i=1kni−k=n−k.■\sum_{i=1}^{k}(n_i-1)=\sum_{i=1}^{k}n_i-k=n-k.\qquad\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Most repeated · 3 of 21 exams
  • 2016 AD · 4 marks

State Binomial theorem for positive index nn. Find the middle term (s) in the expansion of (2x+13x)15\left(2x+\dfrac{1}{3x}\right)^{15}

Similar questions: State binomial theorem for positive index n (2018 AD) · State binomial theorem for positive index n (2021 AD)

Answer

Binomial theorem. For a positive integer nn,

(a+b)n=∑r=0n(nr)an−rbr.(a+b)^n=\sum_{r=0}^{n}\binom{n}{r}a^{n-r}b^{r}.

Middle terms of (2x+13x)15\left(2x+\dfrac{1}{3x}\right)^{15}. There are 16 terms, so the middle terms are the 8th and 9th. The general term is

Tr+1=(15r)(2x)15−r(13x)rT_{r+1}=\binom{15}{r}(2x)^{15-r}\left(\frac1{3x}\right)^{r}

For r=7r=7:

T8=(157)2837x8−7=6435⋅2562187 x=183040243 xT_8=\binom{15}{7}\frac{2^{8}}{3^{7}}x^{8-7}=\frac{6435\cdot256}{2187}\,x=\frac{183040}{243}\,x

For r=8r=8:

T9=(158)2738x7−8=6435⋅1286561 1x=91520729xT_9=\binom{15}{8}\frac{2^{7}}{3^{8}}x^{7-8}=\frac{6435\cdot128}{6561}\,\frac1x=\frac{91520}{729x}

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Most repeated · 3 of 21 exams
  • 2017 AD · 4 marks

What is forest? Prove that a forest with nn vertices has n−kn-k edges, where kk is number of components of forest.

Similar questions: Prove that a forest with n vertices (2021 AD) · Define forest with example. Prove that a (2014 AD)

Answer

A forest is an acyclic graph (not necessarily connected); each of its components is a tree.

Theorem. A forest with nn vertices and kk components has n−kn-k edges.

Proof. Let the components be trees T1,…,TkT_1,\dots,T_k with n1,…,nkn_1,\dots,n_k vertices, so n1+⋯+nk=nn_1+\dots+n_k=n. A tree with nin_i vertices has ni−1n_i-1 edges. Hence the total number of edges is

∑i=1k(ni−1)=∑i=1kni−k=n−k.■\sum_{i=1}^k (n_i-1)=\sum_{i=1}^k n_i-k=n-k. \qquad\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Most repeated · 3 of 21 exams
  • 2018 AD · 4 marks

State binomial theorem for positive index nn. Find the middle term(s) in the binomial expansion of (2x2−13x)7\left(2x^2-\dfrac{1}{3x}\right)^7.

Similar questions: State Binomial theorem for positive index n (2016 AD) · State binomial theorem for positive index n (2021 AD)

Answer

Binomial theorem: for a positive integer nn,

(a+b)n=∑r=0nC(n,r) an−rbr.(a+b)^n=\sum_{r=0}^{n}C(n,r)\,a^{n-r}b^{r}.

The general term is Tr+1=C(n,r)an−rbrT_{r+1}=C(n,r)a^{n-r}b^r.

Middle terms of (2x2−13x)7\left(2x^2-\dfrac1{3x}\right)^7:

Here n=7n=7 (odd), so there are 8 terms and two middle terms: T4T_4 and T5T_5.

Tr+1=C(7,r)(2x2)7−r(−13x)r.T_{r+1}=C(7,r)(2x^2)^{7-r}\left(-\frac1{3x}\right)^r.

For r=3r=3:

T4=C(7,3)(2x2)4(−13x)3=35⋅16x8⋅(−127x3)=−56027x5.T_4=C(7,3)(2x^2)^4\left(-\frac{1}{3x}\right)^3=35\cdot16x^8\cdot\left(-\frac{1}{27x^3}\right)=-\frac{560}{27}x^5.

For r=4r=4:

T5=C(7,4)(2x2)3(−13x)4=35⋅8x6⋅181x4=28081x2.T_5=C(7,4)(2x^2)^3\left(-\frac{1}{3x}\right)^4=35\cdot8x^6\cdot\frac{1}{81x^4}=\frac{280}{81}x^2.

Middle terms: −56027x5-\dfrac{560}{27}x^5 and 28081x2\dfrac{280}{81}x^2.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Most repeated · 3 of 21 exams
  • 2018 AD · 2 marks

Using mathematical induction, Prove that n3+2nn^3+2n is divisible by 3, n≥1n\ge 1.

Similar questions: Induction n^3+2n divisible by 3 (2023 AD Model) · Using mathematical induction prove that n^3+2n is (2019 AD)

Answer

Let P(n)P(n): n3+2nn^3+2n is divisible by 3.

Basis: n=1n=1: 1+2=31+2=3, divisible by 3.

Inductive step: assume k3+2k=3mk^3+2k=3m for some integer mm. Then

(k+1)3+2(k+1)=k3+3k2+3k+1+2k+2=(k3+2k)+3(k2+k+1)=3m+3(k2+k+1),(k+1)^3+2(k+1)=k^3+3k^2+3k+1+2k+2=(k^3+2k)+3(k^2+k+1)=3m+3(k^2+k+1),

which is divisible by 3. So P(k)⇒P(k+1)P(k)\Rightarrow P(k+1), and by induction n3+2nn^3+2n is divisible by 3 for all n≥1n\ge1. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Most repeated · 3 of 21 exams
  • 2019 AD · 4 marks

Using mathematical induction prove that n3+2nn^3+2n is divisible by 3, where n≥1n\ge 1.

Similar questions: Using mathematical induction, Prove that n^3+2n is (2018 AD) · Induction n^3+2n divisible by 3 (2023 AD Model)

Answer

Let P(n)P(n): n3+2nn^3+2n is divisible by 3.

Basis step: P(1)P(1): 13+2⋅1=3=3⋅11^3+2\cdot1=3=3\cdot1, divisible by 3.

Inductive hypothesis: assume P(k)P(k) is true for some k≥1k\ge1, i.e. k3+2k=3mk^3+2k=3m for some integer mm.

Inductive step: consider n=k+1n=k+1:

(k+1)3+2(k+1)=k3+3k2+3k+1+2k+2=(k3+2k)+3k2+3k+3(k+1)^3+2(k+1)=k^3+3k^2+3k+1+2k+2=(k^3+2k)+3k^2+3k+3 =3m+3(k2+k+1)=3 (m+k2+k+1).=3m+3(k^2+k+1)=3\,(m+k^2+k+1).

This is divisible by 3, so P(k+1)P(k+1) holds. By the principle of mathematical induction, n3+2nn^3+2n is divisible by 3 for every integer n≥1n\ge1. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Most repeated · 3 of 21 exams
  • 2021 AD · 4 marks

State binomial theorem for positive index nn. Find the coefficient of x2x^2 in the expansion of (2x2−13x)7\left(2x^2-\dfrac{1}{3x}\right)^7.

Similar questions: State Binomial theorem for positive index n (2016 AD) · State binomial theorem for positive index n (2018 AD)

Answer

Binomial theorem: for any positive integer nn,

(a+b)n=∑r=0n(nr)a n−rb r.(a+b)^n=\sum_{r=0}^{n}\binom{n}{r}a^{\,n-r}b^{\,r}.

Coefficient of x2x^2 in (2x2−13x)7\left(2x^2-\dfrac{1}{3x}\right)^7: the general term is

Tr+1=(7r)(2x2)7−r(−13x)r=(7r)27−r(−13)rx14−3r.T_{r+1}=\binom7r(2x^2)^{7-r}\left(-\frac1{3x}\right)^r=\binom7r2^{7-r}\left(-\frac13\right)^r x^{14-3r}.

Setting 14−3r=214-3r=2 gives r=4r=4. Then

T5=(74) 23(13)4=35⋅8⋅181=28081.T_5=\binom74\,2^{3}\left(\frac13\right)^4=35\cdot8\cdot\frac1{81}=\frac{280}{81}.

The coefficient of x2x^2 is 28081\dfrac{280}{81}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Most repeated · 3 of 21 exams
  • 2021 AD · 4 marks

Prove that a forest with nn vertices has n−kn-k edges where kk is number of components of forest.

Similar questions: What is forest? Prove that a forest (2017 AD) · Define forest with example. Prove that a (2014 AD)

Answer

A forest is a graph with no cycles; each of its kk components is a tree.

Let the components be T1,…,TkT_1,\dots,T_k with n1,…,nkn_1,\dots,n_k vertices, so n1+⋯+nk=nn_1+\cdots+n_k=n. A tree with nin_i vertices has exactly ni−1n_i-1 edges. Hence the number of edges is

∑i=1k(ni−1)=∑i=1kni−k=n−k.■\sum_{i=1}^{k}(n_i-1)=\sum_{i=1}^k n_i-k=n-k. \qquad\blacksquare

(For k=1k=1 the forest is a tree with n−1n-1 edges.)

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Most repeated · 3 of 21 exams
  • 2021 AD · 2 marks

A tree has 3 vertices of degree 2, and 4 vertices of degree 3. How many pendant vertices does it have?

Similar questions: A tree has 2 vertices of degree (2018 AD)

Answer

Let pp be the number of pendant vertices (degree 1). Then n=3+4+p=7+pn=3+4+p=7+p and the tree has n−1=6+pn-1=6+p edges.

Handshaking lemma: 3(2)+4(3)+p(1)=2(6+p)3(2)+4(3)+p(1)=2(6+p), i.e. 18+p=12+2p18+p=12+2p, so p=6p=\mathbf{6}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Most repeated · 3 of 21 exams
  • 2023 AD Model · 3 marks

Prove that n3+2nn^3+2n is divisible by 3, using mathematical induction.

Similar questions: Using mathematical induction, Prove that n^3+2n is (2018 AD) · Using mathematical induction prove that n^3+2n is (2019 AD)

Answer

Let P(n)P(n): n3+2nn^3+2n is divisible by 3, for n≥1n\ge1.

Basis step. For n=1n=1: 1+2=31+2=3, which is divisible by 3. So P(1)P(1) is true.

Inductive step. Assume P(k)P(k), that is, k3+2k=3mk^3+2k=3m for some integer mm. Then

(k+1)3+2(k+1)=k3+3k2+3k+1+2k+2=(k3+2k)+3(k2+k+1)(k+1)^3+2(k+1)=k^3+3k^2+3k+1+2k+2=(k^3+2k)+3(k^2+k+1)

=3m+3(k2+k+1)=3 (m+k2+k+1)=3m+3(k^2+k+1)=3\,(m+k^2+k+1)

which is divisible by 3. So P(k)→P(k+1)P(k)\to P(k+1).

By mathematical induction, n3+2nn^3+2n is divisible by 3 for all positive integers nn. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Asked 2 times
  • 2016 AD · 1 mark
  • 2017 AD · 1 mark

Define strongly connected digraph with example.

Answer

A directed graph is strongly connected if for every ordered pair of vertices u,vu,v there is a directed path from uu to vv (and hence, applying this to both orders, also from vv to uu).

Example: the digraph with vertices a,b,ca,b,c and arcs a→b, b→c, c→aa\to b,\ b\to c,\ c\to a is strongly connected, since going around the directed cycle reaches any vertex from any other.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 2 marks

Use mathematical induction to prove n<2nn<2^n for all n≥0n\ge 0.

Similar questions: Use mathematical induction to prove that 2+4+6+dots+2n=n(n+1 (2017 AD)

Answer

Let P(n)P(n) be the statement n<2nn<2^n.

Basis. P(0)P(0): 0<20=10<2^0=1, true.

Inductive step. Assume P(k)P(k) for some k≥0k\ge0, i.e. k<2kk<2^k. Then k+1<2k+1≤2k+2k=2k+1,k+1<2^k+1\le 2^k+2^k=2^{k+1}, using 1≤2k1\le2^k for k≥0k\ge0. So P(k+1)P(k+1) holds.

By induction, n<2nn<2^n for all n≥0n\ge0.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 1 mark

Show that condition statement is logically equivalent to its contrapositive.

Similar questions: Show that the conditional statement is logically (2018 AD)

Answer

Let the conditional be p→qp\to q, with contrapositive ¬q→¬p\neg q\to\neg p.

¬q→¬p≡¬(¬q)∨¬p≡q∨¬p≡¬p∨q≡p→q\neg q\to\neg p\equiv \neg(\neg q)\vee\neg p\equiv q\vee\neg p\equiv\neg p\vee q\equiv p\to q

Truth table:

ppqqp→qp\to q¬q→¬p\neg q\to\neg p
TTTT
TFFF
FTTT
FFTT

The columns are identical, so a conditional statement is logically equivalent to its contrapositive.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 1 mark

In how many ways the numbers on a clock face be arranged?

Similar questions: How many ways the numbers on a (2017 AD)

Answer

The 12 numbers are placed in the 12 distinct positions of the clock face, which can be done in

12!=479,001,600 ways.12!=479{,}001{,}600\text{ ways.}

(If arrangements differing only by rotation were counted as the same, the count would be 11!=39,916,80011!=39{,}916{,}800.)

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 1 mark

Find the minimum possible height of full binary tree with 63 vertices.

Similar questions: Find the minimum and maximum possible height (2019 AD)

Answer

A binary tree of height hh has at most 2h+1−12^{h+1}-1 vertices. For 63 vertices we need 2h+1−1≥632^{h+1}-1\ge63, so 2h+1≥642^{h+1}\ge64 and h≥5h\ge5.

The minimum possible height is 5 (the complete binary tree with 26−1=632^6-1=63 vertices has exactly this height).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 1 mark

How many relations are possible from set AA with mm elements to set BB with nn elements?

Similar questions: How many relations are possible on set (2021 AD)

Answer

A relation from AA to BB is any subset of A×BA\times B. Since ∣A×B∣=mn|A\times B|=mn, the number of subsets is

2mn.2^{mn}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 1 mark

How many ways the numbers on a clock face be arranged?

Similar questions: In how many ways the numbers on (2016 AD)

Answer

The 12 numbers are placed around a circle, where only the relative order matters (rotations give the same arrangement). The number of circular arrangements of 12 distinct objects is

(12−1)!=11!=39,916,800.(12-1)!=11!=39{,}916{,}800.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 1 mark

How many spanning trees are possible from a complete graph K5K_5?

Similar questions: What is spanning tree? How many spanning (2018 AD)

Answer

By Cayley's formula, the number of spanning trees of KnK_n is nn−2n^{n-2}. For K5K_5:

53=125.5^{3}=125.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 2 marks

Use mathematical induction to prove that 2+4+6+⋯+2n=n(n+1)2+4+6+\dots+2n=n(n+1)

Similar questions: Use mathematical induction to prove n<2^n for (2013 AD)

Answer

Let P(n): 2+4+6+⋯+2n=n(n+1)P(n):\ 2+4+6+\dots+2n=n(n+1).

Basis. n=1n=1: LHS =2=2, RHS =1⋅2=2=1\cdot2=2. True.

Step. Assume P(k)P(k): 2+4+⋯+2k=k(k+1)2+4+\dots+2k=k(k+1). Then

2+4+⋯+2k+2(k+1)=k(k+1)+2(k+1)=(k+1)(k+2),2+4+\dots+2k+2(k+1)=k(k+1)+2(k+1)=(k+1)(k+2),

which is P(k+1)P(k+1). By induction, P(n)P(n) is true for all n≥1n\ge1. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 2 marks

Find the expansion of (1+2x)6(1+2x)^6 using Pascal's triangle.

Similar questions: Find the expansion of (1-2x)^6 using Pascal's (2021 AD)

Answer

Row 6 of Pascal's triangle is 1, 6, 15, 20, 15, 6, 11,\ 6,\ 15,\ 20,\ 15,\ 6,\ 1. Taking a=1, b=2xa=1,\ b=2x:

(1+2x)6=1+6(2x)+15(2x)2+20(2x)3+15(2x)4+6(2x)5+(2x)6(1+2x)^6=1+6(2x)+15(2x)^2+20(2x)^3+15(2x)^4+6(2x)^5+(2x)^6

=1+12x+60x2+160x3+240x4+192x5+64x6.=1+12x+60x^2+160x^3+240x^4+192x^5+64x^6.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 2 marks

What is equivalence class? Find the equivalence relation from the partition P={{2,5},{1,3}}P=\{\{2,5\},\{1,3\}\}.

Similar questions: Find the equivalence relation from partition P=1,4,2,3,5 (2019 AD)

Answer

Equivalence class. For an equivalence relation RR on a set AA and a∈Aa\in A, the equivalence class of aa is [a]={x∈A:xRa}[a]=\{x\in A: xRa\}, the set of all elements related to aa. The classes form a partition of AA, and conversely every partition defines an equivalence relation.

From the partition P={{2,5},{1,3}}P=\{\{2,5\},\{1,3\}\} of A={1,2,3,5}A=\{1,2,3,5\}, two elements are related when they lie in the same block:

R={(2,2),(2,5),(5,2),(5,5),(1,1),(1,3),(3,1),(3,3)}.R=\{(2,2),(2,5),(5,2),(5,5),(1,1),(1,3),(3,1),(3,3)\}.

This relation is reflexive, symmetric and transitive, and its classes are [2]=[5]={2,5}[2]=[5]=\{2,5\} and [1]=[3]={1,3}[1]=[3]=\{1,3\}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 1 mark

Show that the conditional statement is logically equivalent to its contrapositive.

Similar questions: Show that condition statement is logically equivalent (2016 AD)

Answer

Let the conditional statement be p→qp\to q and its contrapositive ¬q→¬p\neg q\to\neg p.

ppqqp→qp\to q¬q\neg q¬p\neg p¬q→¬p\neg q\to\neg p
TTTFFT
TFFTFF
FTTFTT
FFTTTT

The columns for p→qp\to q and ¬q→¬p\neg q\to\neg p are identical, so p→q≡¬q→¬pp\to q\equiv\neg q\to\neg p.

Algebraically: ¬q→¬p≡¬(¬q)∨¬p≡q∨¬p≡¬p∨q≡p→q\neg q\to\neg p\equiv \neg(\neg q)\vee\neg p\equiv q\vee\neg p\equiv\neg p\vee q\equiv p\to q. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 1 mark

Find the number of bit strings of length 8 that begin with 1?

Similar questions: Find the number of bit strings of (2019 AD)

Answer

The first bit is fixed as 1 and each of the other 7 bits can be 0 or 1, so the number is 27=1282^7=128.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 4 marks

Prove that a tree with n≥2n\ge 2 vertices has at least two pendant vertices.

Similar questions: Prove that number of pendant vertices in (2019 AD)

Answer

Claim: a tree TT with n≥2n\ge2 vertices has at least two pendant vertices (vertices of degree 1).

Proof 1 (degree sum). A tree with nn vertices has n−1n-1 edges, so ∑deg⁡(v)=2(n−1)=2n−2\sum\deg(v)=2(n-1)=2n-2. Since TT is connected and n≥2n\ge2, every vertex has degree ≥1\ge1. Suppose at most one vertex has degree 1. Then the other n−1n-1 vertices have degree ≥2\ge2, and

∑deg⁡(v)≥1+2(n−1)=2n−1>2n−2,\sum\deg(v)\ge 1+2(n-1)=2n-1>2n-2,

a contradiction. Hence at least two vertices have degree 1.

Proof 2 (longest path). Take a longest path v0v1⋯vkv_0v_1\cdots v_k in TT (k≥1k\ge1). If v0v_0 had another neighbour, it would either be on the path (forming a cycle, impossible in a tree) or off the path (giving a longer path). So deg⁡v0=1\deg v_0=1; similarly deg⁡vk=1\deg v_k=1. These are two distinct pendant vertices. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 2 marks

What is spanning tree? How many spanning tree are possible from complete graph KnK_n?

Similar questions: How many spanning trees are possible from (2017 AD)

Answer

A spanning tree of a connected graph GG is a subgraph that is a tree and contains all the vertices of GG (it has n−1n-1 edges).

By Cayley's formula, the complete graph KnK_n has n n−2n^{\,n-2} spanning trees.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 2 marks

How many cards must be selected from a deck of 52 cards to ensure that at least 3 cards of the same suite are chosen?

Similar questions: How many cards must be selected from (2021 AD)

Answer

There are 4 suits. In the worst case we pick 2 cards from each suit, i.e. 4×2=84\times2=8 cards, without having 3 of one suit. The next card must give 3 of some suit. By the pigeonhole principle, 8+1=98+1=9 cards must be selected.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 1 mark

Find the number of bit strings of length 5 begin with 0 and end with 1.

Similar questions: Find the number of bit strings of (2018 AD)

Answer

The first bit is 0 and the last bit is 1, so the 3 middle bits are free: 23=82^3=8 strings.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 1 mark

Find the minimum and maximum possible height of full binary tree with 15 vertices.

Similar questions: Find the minimum possible height of full (2016 AD)

Answer

In a full binary tree every internal vertex has 2 children. With n=15n=15 vertices, the number of internal vertices is i=n−12=7i=\dfrac{n-1}{2}=7 and leaves =8=8.

  • Minimum height: the tree is as bushy as possible (a complete binary tree): 2h+1−1=15⇒h=32^{h+1}-1=15\Rightarrow h=3.
  • Maximum height: a chain where each internal vertex has one leaf child: n=2h+1⇒h=7n=2h+1\Rightarrow h=7.

Minimum height =3=3, maximum height =7=7.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 4 marks

Prove that number of pendant vertices in a tree with n>2n>2 vertices is at least two.

Similar questions: Prove that a tree with nge 2 (2018 AD)

Answer

Proof. Let TT be a tree with n>2n>2 vertices. Since TT is connected and has at least one edge, take a longest path P=v0v1⋯vkP=v_0v_1\cdots v_k in TT (k≥2k\ge 2 because n>2n>2).

Suppose v0v_0 has a neighbour ww other than v1v_1.

  • If ww is on PP, then ww together with the part of PP up to ww forms a cycle, impossible in a tree.
  • If ww is not on PP, then wv0v1⋯vkwv_0v_1\cdots v_k is a longer path, contradicting the choice of PP.

So deg⁡(v0)=1\deg(v_0)=1. By the same argument deg⁡(vk)=1\deg(v_k)=1. Since v0≠vkv_0\neq v_k, the tree has at least two pendant vertices. ■\blacksquare

(Alternative: if at most one vertex had degree 1, then ∑deg⁡≥1+2(n−1)=2n−1>2(n−1)\sum\deg\ge 1+2(n-1)=2n-1>2(n-1), contradicting ∑deg⁡=2(n−1)\sum\deg=2(n-1).)

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 2 marks

Find the equivalence relation from partition P={{1,4},{2,3},{5}}P=\{\{1,4\},\{2,3\},\{5\}\}.

Similar questions: What is equivalence class? Find the equivalence (2017 AD)

Answer

The relation is "a R ba\,R\,b iff aa and bb lie in the same block". Each block SS contributes S×SS\times S:

R={(1,1),(1,4),(4,1),(4,4)}∪{(2,2),(2,3),(3,2),(3,3)}∪{(5,5)}R=\{(1,1),(1,4),(4,1),(4,4)\}\cup\{(2,2),(2,3),(3,2),(3,3)\}\cup\{(5,5)\}

So R={(1,1),(1,4),(4,1),(4,4),(2,2),(2,3),(3,2),(3,3),(5,5)}R=\{(1,1),(1,4),(4,1),(4,4),(2,2),(2,3),(3,2),(3,3),(5,5)\}, which is reflexive, symmetric and transitive.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 AD · 1 mark

How many relations are possible on set with NN elements?

Similar questions: How many relations are possible from set (2017 AD)

Answer

A relation on a set with NN elements is a subset of A×AA\times A, which has N2N^2 elements. Each ordered pair is either in or out of the relation, so the number of relations is 2N2\mathbf{2^{N^2}}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 AD · 2 marks

How many cards must be selected from deck of 52 cards to ensure that at least 3 cards of the diamond are chosen?

Similar questions: How many cards must be selected from (2018 AD)

Answer

The deck has 13 diamonds and 39 non-diamonds. In the worst case all 39 non-diamonds are chosen first, and then 3 diamonds are needed:

39+3=4239+3=\mathbf{42}

cards must be selected (generalised pigeonhole principle).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 AD · 2 marks

Find the expansion of (1−2x)6(1-2x)^6 using Pascal's triangle.

Similar questions: Find the expansion of (1+2x)^6 using Pascal's (2017 AD)

Answer

Row 6 of Pascal's triangle is 1,6,15,20,15,6,11,6,15,20,15,6,1. With a=1a=1, b=−2xb=-2x:

(1−2x)6=1−6(2x)+15(2x)2−20(2x)3+15(2x)4−6(2x)5+(2x)6(1-2x)^6=1-6(2x)+15(2x)^2-20(2x)^3+15(2x)^4-6(2x)^5+(2x)^6

=1−12x+60x2−160x3+240x4−192x5+64x6.=1-12x+60x^2-160x^3+240x^4-192x^5+64x^6 .

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 1 mark

When is a relation RR on a set AA not antisymmetric?

Answer

A relation RR on AA is not antisymmetric when there exist distinct elements a≠ba\neq b in AA such that both (a,b)∈R(a,b)\in R and (b,a)∈R(b,a)\in R.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 1 mark

For which real numbers xx is true that ⌊x⌋−1=⌈x⌉\lfloor x\rfloor-1=\lceil x\rceil?

Answer

For every real xx, ⌊x⌋≤x≤⌈x⌉\lfloor x\rfloor\le x\le\lceil x\rceil, so ⌊x⌋−1<⌈x⌉\lfloor x\rfloor-1<\lceil x\rceil always. The two sides can never be equal.

Hence there is no real number xx for which ⌊x⌋−1=⌈x⌉\lfloor x\rfloor-1=\lceil x\rceil.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 1 mark

What is an rr-permutation of a set of nn distinct objectives?

Answer

An rr-permutation of a set of nn distinct objects is an ordered arrangement of rr of the objects. Their number is P(n,r)=n!(n−r)!P(n,r)=\dfrac{n!}{(n-r)!}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 1 mark

What is meant by a loop in a graph?

Answer

A loop is an edge that joins a vertex to itself, i.e. an edge whose two end points are the same vertex.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 1 mark

When is graph GG said to be connected?

Answer

A graph GG is connected if there is a path between every pair of distinct vertices of GG. Otherwise it is disconnected.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 1 mark

When is a connected multi-graph said to be traversal graph?

Answer

A connected multigraph is traversable if it has a path (trail) that uses every edge exactly once.

By Euler's theorem this holds exactly when the graph has either no odd-degree vertices (the trail can be closed, an Euler circuit) or exactly two odd-degree vertices (an Euler trail from one to the other).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 1 mark

How many different spanning trees does a cycle graph of order 5 have?

Answer

A spanning tree of the cycle C5C_5 is obtained by deleting exactly one of its 55 edges. Hence it has 5 different spanning trees.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 1 mark

How many edges does tree with nn vertices have?

Answer

A tree with nn vertices has n−1n-1 edges.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 1 mark

How can you quickly determine whether a binary relation RR is reflexive by examining the diagraph of RR?

Answer

RR is reflexive exactly when every vertex of the digraph has a loop (an arrow from the vertex to itself), because reflexivity needs (a,a)∈R(a,a)\in R for every a∈Aa\in A.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 4 marks

Define binary relation from a set AA to a set BB. Let R={(a,b),(a,c),(a,d),(b,D),(c,d)}R=\{(a,b),(a,c),(a,d),(b,D),(c,d)\} be relation on a set A={a,b,c,d}A=\{a,b,c,d\}. Then determine whether the relation is reflexive, irreflexive, symmetric, asymmetric, antisymmetric or transitive.

Answer

A binary relation from a set AA to a set BB is a subset RR of the Cartesian product A×BA\times B; (a,b)∈R(a,b)\in R is written aRbaRb.

Take R={(a,b),(a,c),(a,d),(b,d),(c,d)}R=\{(a,b),(a,c),(a,d),(b,d),(c,d)\} on A={a,b,c,d}A=\{a,b,c,d\}.

  • Reflexive: No, since (a,a)∉R(a,a)\notin R.
  • Irreflexive: Yes, no pair (x,x)(x,x) is in RR.
  • Symmetric: No, (a,b)∈R(a,b)\in R but (b,a)∉R(b,a)\notin R.
  • Asymmetric: Yes, whenever (x,y)∈R(x,y)\in R we have (y,x)∉R(y,x)\notin R.
  • Antisymmetric: Yes, there is no pair of distinct elements related both ways.
  • Transitive: Yes. The only chains are (a,b),(b,d)(a,b),(b,d) and (a,c),(c,d)(a,c),(c,d), both requiring (a,d)(a,d), which is in RR.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 4 marks

What is a bijection? Let f:A→Bf:A\to B be a function defined by: f(a)=a+1f(a)=\sqrt{a+1} for all a∈Aa\in A, where A={a:aA=\{a: a is real and x≥−1}x\ge -1\}, B={x:xB=\{x: x is real and x≥0}x\ge 0\}. Is ff invertible? If so find f−1f^{-1}.

Answer

A bijection is a function that is both one-to-one (injective) and onto (surjective).

Here f(a)=a+1f(a)=\sqrt{a+1} with A={a∈R:a≥−1}A=\{a\in\mathbb R: a\ge-1\} and B={x∈R:x≥0}B=\{x\in\mathbb R: x\ge0\}.

One-to-one. If a1+1=a2+1\sqrt{a_1+1}=\sqrt{a_2+1}, squaring gives a1=a2a_1=a_2.

Onto. For any y≥0y\ge0 take a=y2−1≥−1a=y^2-1\ge-1; then f(a)=y2=yf(a)=\sqrt{y^2}=y.

So ff is a bijection and therefore invertible. From y=a+1y=\sqrt{a+1} we get a=y2−1a=y^2-1, so f−1(y)=y2−1,y≥0.f^{-1}(y)=y^2-1,\qquad y\ge 0 .

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 4 marks

Define sequence. What is the difference between sequence and string? How the length of a finite string is measured? Show that the set of infinite sequence of positive even integers denumerable.

Answer

A sequence is an ordered list of terms a1,a2,a3,…a_1,a_2,a_3,\dots, formally a function from a set of consecutive integers (usually Z+\mathbb Z^+) to a set.

Difference. A string is a finite sequence of symbols taken from an alphabet. A sequence may be finite or infinite, whereas a string is always finite.

Length of a finite string is the number of symbols (terms) it contains, counted with repetition; e.g. abbaabba has length 44.

Denumerability. The infinite sequence of positive even integers is 2,4,6,…2,4,6,\dots. Define f:Z+→Ef:\mathbb Z^+\to E (where EE is the set of positive even integers) by f(n)=2nf(n)=2n.

  • One-to-one: 2n1=2n2⇒n1=n22n_1=2n_2\Rightarrow n_1=n_2.
  • Onto: each even m=2km=2k equals f(k)f(k).

So ff is a bijection from Z+\mathbb Z^+ onto EE, and EE is denumerable.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 4 marks

(a) Find the number of distinguishable permutations of the letters in the word DIRECTOR so that the vowels are always together? (b) How many committees of five with a chairperson can be selected from 12 persons?

Answer

(a) DIRECTOR has 88 letters, with R repeated twice. The vowels are I, E, O (three of them).

Treat the vowels as one block. The units to arrange are the block and D, R, C, T, R: that is 66 units with R repeated twice, giving 6!2!=360\dfrac{6!}{2!}=360 arrangements. The vowels can be ordered inside the block in 3!=63!=6 ways.

360×6=2160.360\times 6=2160 .

(b) Choose the committee of five in C(12,5)=792C(12,5)=792 ways, then pick the chairperson from its members in 55 ways: 792×5=3960.792\times 5=3960 . (Check: choose the chairperson first, 12⋅C(11,4)=12×330=396012\cdot C(11,4)=12\times330=3960.)

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 4 marks

Define odd degree vertex and even degree vertex in a graph. State the Handshaking Theorem for an undirected graph G(V,E)G(V,E). Show that the numbers of odd vertices in any graph is always even.

Answer

An odd vertex is a vertex whose degree is odd; an even vertex has even degree.

Handshaking Theorem. For an undirected graph G(V,E)G(V,E), ∑v∈Vdeg⁡(v)=2∣E∣.\sum_{v\in V}\deg(v)=2|E| . (Each edge contributes 11 to the degree of each of its two ends.)

The number of odd vertices is even. Let VeV_e and VoV_o be the sets of even and odd vertices. Then 2∣E∣=∑v∈Vedeg⁡(v)+∑v∈Vodeg⁡(v).2|E|=\sum_{v\in V_e}\deg(v)+\sum_{v\in V_o}\deg(v). The left side and the first sum on the right are even, so ∑v∈Vodeg⁡(v)\sum_{v\in V_o}\deg(v) is even. It is a sum of odd numbers, which is even only if the number of terms is even. Hence ∣Vo∣|V_o| is even. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 4 marks

Define bipartite graph. Show that a nontrivial simple graph with odd cycle is not bipartite.

Answer

A graph is bipartite if its vertices can be divided into two disjoint sets V1,V2V_1,V_2 such that every edge joins a vertex in V1V_1 to one in V2V_2.

Claim. A simple graph containing an odd cycle is not bipartite.

Proof. Suppose the graph is bipartite with parts V1,V2V_1,V_2, and let v1,v2,…,v2k+1v_1,v_2,\dots,v_{2k+1} be an odd cycle, with v2k+1v1v_{2k+1}v_1 an edge. Say v1∈V1v_1\in V_1. Consecutive vertices lie in different sets, so v2∈V2v_2\in V_2, v3∈V1v_3\in V_1, and in general vi∈V1v_i\in V_1 for odd ii. Thus v2k+1∈V1v_{2k+1}\in V_1. But v2k+1v_{2k+1} is adjacent to v1∈V1v_1\in V_1, so an edge has both ends in V1V_1, a contradiction. Hence the graph is not bipartite. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 4 marks

When are two graphs G1(V1,E1)G_1(V_1,E_1) and G2(V2,E2)G_2(V_2,E_2) said to be isomorphic? Determine whether the pair of graphs given in the figure of the original paper (two graphs on vertices a-h and 1-8) is isomorphic.

Answer

Two graphs G1(V1,E1)G_1(V_1,E_1) and G2(V2,E2)G_2(V_2,E_2) are isomorphic if there is a bijection φ:V1→V2\varphi:V_1\to V_2 such that u,vu,v are adjacent in G1G_1 if and only if φ(u),φ(v)\varphi(u),\varphi(v) are adjacent in G2G_2 (adjacency is preserved in both directions).

Test for the given pair. Check these invariants first; if any fails, the graphs are not isomorphic.

  1. Both have 88 vertices.
  2. Both have the same number of edges.
  3. The degree sequences (sorted) agree.
  4. The same cycle lengths, and the same adjacency pattern of vertices of equal degree.

If all agree, build a map φ\varphi from {a,…,h}\{a,\dots,h\} to {1,…,8}\{1,\dots,8\} by matching vertices of equal degree and then neighbour by neighbour, and verify that every edge of the first graph maps to an edge of the second. If the degree sequences or the neighbourhood structure differ, the graphs are not isomorphic; otherwise the map found proves isomorphism.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 4 marks

Apply Dijkstra's algorithm to find the shortest path from the node 'r' to each of the other nodes of the weighted network given in the figure of the original paper (nodes r, b, c, d, e, f).

Answer

Dijkstra's algorithm (source rr, weights w(u,v)≥0w(u,v)\ge 0):

  1. Set d(r)=0d(r)=0 and d(v)=∞d(v)=\infty for all other nodes; all nodes are temporary.
  2. Make permanent the temporary node uu with the smallest d(u)d(u).
  3. For each temporary neighbour vv of uu, if d(u)+w(u,v)<d(v)d(u)+w(u,v)<d(v) set d(v)=d(u)+w(u,v)d(v)=d(u)+w(u,v) and record uu as the predecessor of vv.
  4. Repeat until all of b,c,d,e,fb,c,d,e,f are permanent.

For the given network, tabulate the labels of r,b,c,d,e,fr,b,c,d,e,f at each step. Start with 0,∞,∞,∞,∞,∞0,\infty,\infty,\infty,\infty,\infty, fix rr, label its neighbours with the edge weights, then keep fixing the smallest temporary label and relaxing its neighbours. The final labels are the shortest distances from rr to each node, and following predecessors back to rr gives each shortest path.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 4 marks

Show that a graph (without loop) is connected if and only if GG contains a spanning tree.

Answer

Claim. A loop-free graph GG is connected if and only if it has a spanning tree.

(⇐\Leftarrow) If GG has a spanning tree TT, then TT contains all vertices of GG and is connected, so any two vertices are joined by a path in TT, which is also a path in GG. Hence GG is connected.

(⇒\Rightarrow) Let GG be connected. If GG has no cycle it is itself a tree, hence its own spanning tree. Otherwise pick a cycle and delete one of its edges. Removing a cycle edge does not disconnect the graph, since any path through that edge can use the rest of the cycle instead. Repeat while cycles remain. The process stops because the number of edges is finite, and it ends with a connected, acyclic subgraph containing all the vertices, that is a spanning tree of GG. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 4 marks

Prove that every tree of order two or more has at least two pendant vertices.

Answer

A pendant vertex is a vertex of degree 11.

Proof. Let TT be a tree with n≥2n\ge2 vertices. It is connected, so it has at least one edge. Take a longest path P:v0,v1,…,vmP: v_0,v_1,\dots,v_m in TT (with m≥1m\ge1).

Suppose v0v_0 had a neighbour ww other than v1v_1. If ww is on PP, then ww together with the part of PP up to ww forms a cycle, impossible in a tree. If ww is not on PP, then w,v0,…,vmw,v_0,\dots,v_m is a longer path, contradicting the choice of PP. So v0v_0 has only v1v_1 as neighbour, i.e. deg⁡v0=1\deg v_0=1. By the same argument deg⁡vm=1\deg v_m=1.

Since m≥1m\ge1, v0≠vmv_0\ne v_m. So TT has at least two pendant vertices. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 4 marks

From the following successor list of a directed graph D(V,E)D(V,E):
Vertexabcde
Successor listb,c∅\emptysetd,ea,b,e∅\emptyset
a. Construct the adjacency matrix of the diagraph. b. Find in-degree and out-degree of each vertex from the adjacency matrix. c. Find the number of directed edges and verify that ∑od(Vi)=∑id(Vi)=∣E∣\sum od(V_i)=\sum id(V_i)=|E| d. Determine whether DD is unilaterally connected or/and strongly connected.

Answer

The arcs are a→b, a→c, c→d, c→e, d→a, d→b, d→ea\to b,\ a\to c,\ c\to d,\ c\to e,\ d\to a,\ d\to b,\ d\to e.

(a) Adjacency matrix (rows and columns in the order a,b,c,d,ea,b,c,d,e): M=(0110000000000111100100000)M=\begin{pmatrix}0&1&1&0&0\\0&0&0&0&0\\0&0&0&1&1\\1&1&0&0&1\\0&0&0&0&0\end{pmatrix}

(b) Degrees. Out-degree is the row sum and in-degree is the column sum.

Vertexabcde
out-degree20230
in-degree12112

(c) The number of directed edges is the sum of all entries of MM, so ∣E∣=7|E|=7. Then ∑od(vi)=2+0+2+3+0=7,∑id(vi)=1+2+1+1+2=7,\sum od(v_i)=2+0+2+3+0=7,\qquad \sum id(v_i)=1+2+1+1+2=7, so ∑od=∑id=∣E∣=7\sum od=\sum id=|E|=7.

(d) Vertices bb and ee have out-degree 00, so there is no directed path from bb to ee or from ee to bb. Hence DD is not unilaterally connected (some pair has no path in either direction), and since every strongly connected digraph is unilaterally connected, it is not strongly connected either.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 4 marks

Show that the maximum number of vertices possible in an kk-level full binary tree with nn vertices is 20+21+22+⋯+2k≥n2^0+2^1+2^2+\dots+2^k\ge n and hence show that min⁡lmax=⌈log⁡2(n+1)−1⌉\min l_{max}=\lceil\log_2(n+1)-1\rceil.

Answer

In a binary tree, level ii (root at level 00) contains at most 2i2^i vertices, since each vertex has at most two children. For a tree whose levels run 0,1,…,k0,1,\dots,k, the number of vertices is at most 20+21+⋯+2k=2k+1−1.2^0+2^1+\cdots+2^k=2^{k+1}-1 . A full binary tree with kk levels attains this maximum, so for a tree with nn vertices n≤20+21+⋯+2k.n\le 2^0+2^1+\cdots+2^k .

Minimum height. From n≤2k+1−1n\le2^{k+1}-1 we get 2k+1≥n+12^{k+1}\ge n+1, so k+1≥log⁡2(n+1)k+1\ge\log_2(n+1), i.e. k≥log⁡2(n+1)−1k\ge\log_2(n+1)-1. Since the number of levels is an integer, the smallest possible maximum level is min⁡lmax⁡=⌈log⁡2(n+1)−1⌉.■\min l_{\max}=\lceil\log_2(n+1)-1\rceil. \qquad\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 2 marks

Show that the relation of divisibility is a partial order on the set of positive integers.

Answer

A partial order is reflexive, antisymmetric and transitive. For positive integers a,b,ca,b,c, let a∣ba\mid b mean b=kab=ka for some integer kk.

  • Reflexive: a=1⋅aa=1\cdot a, so a∣aa\mid a.
  • Antisymmetric: If a∣ba\mid b and b∣ab\mid a, then b=kab=ka and a=lba=lb with positive k,lk,l, so a=lkaa=lka and lk=1lk=1. Thus k=l=1k=l=1 and a=ba=b.
  • Transitive: If a∣ba\mid b and b∣cb\mid c, then b=kab=ka, c=lb=lkac=lb=lka, so a∣ca\mid c.

Hence divisibility is a partial order on the positive integers.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 2 marks

Let f,gf,g, and hh be all functions on integers define by f(n)=n2f(n)=n^2, g(n)=n+1g(n)=n+1, and h(n)=n−1h(n)=n-1. Then find the compositions of functions h∘f∘gh\circ f\circ g, g∘f∘hg\circ f\circ h and f∘g∘hf\circ g\circ h.

Answer

With f(n)=n2f(n)=n^2, g(n)=n+1g(n)=n+1, h(n)=n−1h(n)=n-1:

(h∘f∘g)(n)=h(f(n+1))=(n+1)2−1=n2+2n,(h\circ f\circ g)(n)=h\big(f(n+1)\big)=(n+1)^2-1=n^2+2n, (g∘f∘h)(n)=g(f(n−1))=(n−1)2+1=n2−2n+2,(g\circ f\circ h)(n)=g\big(f(n-1)\big)=(n-1)^2+1=n^2-2n+2, (f∘g∘h)(n)=f(g(n−1))=f(n)=n2.(f\circ g\circ h)(n)=f\big(g(n-1)\big)=f(n)=n^2 .

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 2 marks

Use the Binomial Theorem to show that ∑r=0nC(n,r)2r=3n\sum_{r=0}^{n}C(n,r)2^r=3^n.

Answer

The Binomial Theorem gives (x+y)n=∑r=0nC(n,r) xn−ryr.(x+y)^n=\sum_{r=0}^{n}C(n,r)\,x^{n-r}y^{r}. Put x=1x=1 and y=2y=2: (1+2)n=∑r=0nC(n,r) 1n−r2r=∑r=0nC(n,r)2r.(1+2)^n=\sum_{r=0}^{n}C(n,r)\,1^{n-r}2^{r}=\sum_{r=0}^{n}C(n,r)2^r . Hence ∑r=0nC(n,r)2r=3n\sum_{r=0}^{n}C(n,r)2^r=3^n.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 2 marks

Use the Pigeonholes Principle to find the minimum number of integers to be selected from the set S={1,2,3,…,8,9}S=\{1,2,3,\dots,8,9\} so that the sum of two of integers is even.

Answer

The sum of two integers is even exactly when they have the same parity. Take two pigeonholes: the odd numbers {1,3,5,7,9}\{1,3,5,7,9\} and the even numbers {2,4,6,8}\{2,4,6,8\}.

If 33 integers are selected, by the pigeonhole principle at least two lie in the same hole, so they have the same parity and their sum is even. With only 22 integers, one odd and one even, the sum can be odd.

Hence the minimum number to be selected is 3.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 2 marks

Give an example of a graph that is (a) Hamiltonian and Eulerian, and (b) Eulerian but not Hamiltonian.

Answer

(a) Hamiltonian and Eulerian. The cycle C4C_4 (a square) or the triangle K3K_3. Every vertex has even degree and the graph is connected, so it has an Euler circuit, and the cycle itself passes through every vertex once, so it is Hamiltonian.

(b) Eulerian but not Hamiltonian. The "bow-tie": two triangles sharing one common vertex. All degrees are even (4,2,2,2,24,2,2,2,2) and it is connected, so it has an Euler circuit. It has no Hamiltonian cycle, because the common vertex is a cut vertex and any cycle through all vertices would have to pass through it twice.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 2 marks

Find a minimum spanning tree for the weighted network in the question No. 7.

Answer

Use Kruskal's algorithm:

  1. List the edges in increasing order of weight.
  2. Take the edges in that order, adding an edge to the tree only if it does not form a cycle with the edges already chosen.
  3. Stop when n−1n-1 edges have been chosen, where nn is the number of vertices.

Applying this to the weighted network of Question 7 (vertices r,b,c,d,e,fr,b,c,d,e,f, so 55 edges are needed) gives the minimum spanning tree. Its weight is the sum of the 55 chosen edge weights. Prim's algorithm, growing the tree from any vertex by repeatedly adding the cheapest edge leaving it, gives a tree of the same total weight.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 2 marks

Determine which of the following graphs with degree sequence is a tree:
a. 4, 3, 3, 3, 1, 1, 1, 1, 1, 1. b. 7, 3, 2, 1, 1, 1, 1, 1, 1.

Answer

A tree with nn vertices has n−1n-1 edges, so the degree sum must be 2(n−1)2(n-1).

a. 4,3,3,3,1,1,1,1,1,14,3,3,3,1,1,1,1,1,1: there are n=10n=10 vertices and the degree sum is 13+6=1913+6=19. This is odd, so no graph has this sequence, and it is not a tree (a tree would need sum 1818).

b. 7,3,2,1,1,1,1,1,17,3,2,1,1,1,1,1,1: there are n=9n=9 vertices and the degree sum is 12+6=1812+6=18, which would mean 99 edges. A tree on 99 vertices has only 88 edges (sum 1616), so this is not a tree.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2013 AD · 2 marks

Construct the binary tree of the algebraic expression (2x+(3−4x)2)+(x−3×11)(2x+(3-4x)^2)+(x-3\times 11). Also write the expression in polish form.

Answer

Expression: (2x+(3−4x)2)+(x−3×11)(2x+(3-4x)^2)+(x-3\times 11).

The root is the main ++. Its left subtree is 2x+(3−4x)22x+(3-4x)^2 and its right subtree is x−3×11x-3\times11.

                +
          /           \
        +               -
      /    \          /   \
     *      ^        x     *
    / \    / \            / \
   2   x  -   2          3   11
         / \
        3   *
           / \
          4   x

Polish (prefix) form, reading the tree root, left, right: +  +  ×  2  x  ↑  −  3  ×  4  x  2  −  x  ×  3  11+\;+\;\times\;2\;x\;\uparrow\;-\;3\;\times\;4\;x\;2\;-\;x\;\times\;3\;11

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 1 mark

Define tautology, contradiction and contingency in logic.

Answer

  • A tautology is a compound proposition that is true for every assignment of truth values to its variables, e.g. p∨¬pp\lor\neg p.
  • A contradiction is a compound proposition that is false for every assignment, e.g. p∧¬pp\land\neg p.
  • A contingency is a compound proposition that is neither a tautology nor a contradiction, i.e. it is true for some assignments and false for others, e.g. p∧qp\land q.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 1 mark

Find the value of summation: ∑y=15(3y+1)\sum_{y=1}^{5}(3y+1)

Answer

∑y=15(3y+1)=3(1+2+3+4+5)+5=3(15)+5=50\sum_{y=1}^{5}(3y+1)=3(1+2+3+4+5)+5=3(15)+5=50

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 1 mark

What is prime number? Find prime factorization of 875.

Answer

A prime number is an integer greater than 1 whose only positive divisors are 1 and itself.

875=5×175=5×5×35=5×5×5×7=53×7875=5\times175=5\times5\times35=5\times5\times5\times7=5^3\times 7

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 1 mark

Under what condition (a) ⌊x⌋−⌈x⌉=0\lfloor x\rfloor-\lceil x\rceil=0 and (b) ⌈x⌉−⌊x⌋=1\lceil x\rceil-\lfloor x\rfloor=1.

Answer

(a) ⌊x⌋−⌈x⌉=0\lfloor x\rfloor-\lceil x\rceil=0 exactly when xx is an integer, because then ⌊x⌋=⌈x⌉=x\lfloor x\rfloor=\lceil x\rceil=x.

(b) ⌈x⌉−⌊x⌋=1\lceil x\rceil-\lfloor x\rfloor=1 exactly when xx is not an integer, because then the ceiling is the next integer above the floor.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 1 mark

Write the recursive definition for finding nthn^{th} Fibonacci number.

Answer

The Fibonacci numbers are defined recursively by

F0=0,F1=1,Fn=Fn−1+Fn−2  (n≥2)F_0=0,\quad F_1=1,\qquad F_n=F_{n-1}+F_{n-2}\ \ (n\ge 2)

giving 0,1,1,2,3,5,8,13,…0,1,1,2,3,5,8,13,\dots

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 1 mark

List any two applications of graph in the field of computer science.

Answer

  1. Computer networks: computers and routers are vertices and links are edges, used for routing and shortest-path computation.
  2. Web and social networks: pages (or people) are vertices and hyperlinks (or friendships) are edges, used in search ranking and analysis.

Other uses include compiler flow graphs and scheduling or resource allocation by graph colouring.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 1 mark

Find the number of faces, edges and vertices of regular 'Octahedron'.

Answer

A regular octahedron has 8 faces (equilateral triangles), 12 edges and 6 vertices.

Check with Euler's formula: V−E+F=6−12+8=2V-E+F=6-12+8=2.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 1 mark

State Ore's theorem in graph.

Answer

Ore's theorem: Let GG be a simple graph with n≥3n\ge 3 vertices. If deg⁡(u)+deg⁡(v)≥n\deg(u)+\deg(v)\ge n for every pair of non-adjacent vertices u,vu,v, then GG has a Hamiltonian cycle.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 1 mark

Define unilaterally connected directed graph with an example.

Answer

A directed graph is unilaterally connected if for every pair of vertices u,vu,v there is a directed path from uu to vv or a directed path from vv to uu (not necessarily both).

Example: the digraph with vertices a,b,ca,b,c and arcs a→b, b→ca\to b,\ b\to c is unilaterally connected (a path a→b→ca\to b\to c covers every pair in one direction), but it is not strongly connected since there is no path back from cc to aa.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 1 mark

Define minimal spanning trees with example.

Answer

A spanning tree of a connected graph GG is a subgraph that is a tree containing all vertices of GG. In a weighted connected graph, a minimal spanning tree is a spanning tree whose total edge weight is the smallest among all spanning trees.

Example: take vertices A,B,CA,B,C with edges AB=1, BC=2, AC=3AB=1,\ BC=2,\ AC=3. The spanning trees are {AB,BC}\{AB,BC\} (weight 3), {AB,AC}\{AB,AC\} (weight 4) and {BC,AC}\{BC,AC\} (weight 5), so the minimal spanning tree is {AB,BC}\{AB,BC\} with weight 3. It can be found by Kruskal's or Prim's algorithm.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 4 marks

Change the following proposition into if ............... then form and then write its converse, inverse and contrapositive.
a) All the glitter is not gold.\nb) All hexagon are regular polygon.

Answer

For p→qp\to q: converse is q→pq\to p, inverse is ¬p→¬q\neg p\to\neg q, contrapositive is ¬q→¬p\neg q\to\neg p.

(a) "All the glitter is not gold."

  • If-then form: If something glitters, then it is not gold.
  • Converse: If something is not gold, then it glitters.
  • Inverse: If something does not glitter, then it is gold.
  • Contrapositive: If something is gold, then it does not glitter.

(b) "All hexagons are regular polygons."

  • If-then form: If a polygon is a hexagon, then it is a regular polygon.
  • Converse: If a polygon is a regular polygon, then it is a hexagon.
  • Inverse: If a polygon is not a hexagon, then it is not a regular polygon.
  • Contrapositive: If a polygon is not a regular polygon, then it is not a hexagon.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 4 marks

Define insertion sort. Sort the list of the elements 6, 2, 3, 1, 5, 4 in increasing order using insertion sort.

Answer

Insertion sort builds the sorted list one element at a time: starting from the second element, each element is compared with the elements before it and inserted into its correct place in the already sorted part, shifting larger elements one position to the right.

Sorting 6,2,3,1,5,46,2,3,1,5,4 (sorted part before the bar):

PassElement insertedList
start6 | 2, 3, 1, 5, 4
122, 6 | 3, 1, 5, 4
232, 3, 6 | 1, 5, 4
311, 2, 3, 6 | 5, 4
451, 2, 3, 5, 6 | 4
541, 2, 3, 4, 5, 6

Sorted list: 1,2,3,4,5,61,2,3,4,5,6.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 4 marks

Define equivalence class. If A={1,2,3,…,20}A=\{1,2,3,\dots,20\} and RR is a relation on AA such that R={(a,b):5∣a−b}R=\{(a,b): 5|a-b\}. Prove RR is equivalence relation and also find the equivalence classes determined by RR.

Answer

Definition. If RR is an equivalence relation on AA, the equivalence class of a∈Aa\in A is [a]={x∈A:(a,x)∈R}[a]=\{x\in A:(a,x)\in R\}. The classes partition AA.

Proof that RR is an equivalence relation (a R ba\,R\,b iff 5∣(a−b)5\mid(a-b)):

  • Reflexive: a−a=0a-a=0 is divisible by 5, so (a,a)∈R(a,a)\in R.
  • Symmetric: if 5∣(a−b)5\mid(a-b) then 5∣(b−a)=−(a−b)5\mid(b-a)=-(a-b), so (b,a)∈R(b,a)\in R.
  • Transitive: if 5∣(a−b)5\mid(a-b) and 5∣(b−c)5\mid(b-c) then 5∣(a−b)+(b−c)=a−c5\mid(a-b)+(b-c)=a-c, so (a,c)∈R(a,c)\in R.

Hence RR is an equivalence relation.

Equivalence classes. Two numbers are related iff they leave the same remainder on division by 5:

  • [1]={1,6,11,16}[1]=\{1,6,11,16\}
  • [2]={2,7,12,17}[2]=\{2,7,12,17\}
  • [3]={3,8,13,18}[3]=\{3,8,13,18\}
  • [4]={4,9,14,19}[4]=\{4,9,14,19\}
  • [5]={5,10,15,20}[5]=\{5,10,15,20\}

There are 5 distinct classes, and their union is AA.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 4 marks

Define isomorphic graph and isomorphism. Prove that following set of graphs are isomorphic. (Two graphs G1G_1 on vertices u1,…,u6u_1,\dots,u_6 and G2G_2 on vertices v1,…,v6v_1,\dots,v_6 are given in a figure in the original paper.)

Answer

Definition. Two simple graphs G1=(V1,E1)G_1=(V_1,E_1) and G2=(V2,E2)G_2=(V_2,E_2) are isomorphic if there is a bijection f:V1→V2f:V_1\to V_2 such that u,vu,v are adjacent in G1G_1 if and only if f(u),f(v)f(u),f(v) are adjacent in G2G_2. The bijection ff is called an isomorphism.

Method of proof.

  1. Check the invariants: same number of vertices, same number of edges, and the same degree sequence.
  2. Define the mapping f(ui)=vjf(u_i)=v_{j} by matching vertices of equal degree and equal neighbourhood structure (for example, a vertex of degree 3 whose neighbours have degrees 2,2,32,2,3 must map to a vertex with the same property).
  3. List every edge uiuku_iu_k of G1G_1 and verify that f(ui)f(uk)f(u_i)f(u_k) is an edge of G2G_2. Since both graphs have the same number of edges and ff is a bijection, edges are preserved in both directions.

When every edge of G1G_1 is mapped onto an edge of G2G_2 by such a bijection, the graphs are isomorphic. (Equivalently, the adjacency matrix of G2G_2 is obtained from that of G1G_1 by relabelling the vertices.)

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 4 marks

Define inverse function. Prove that a function f:R→Rf:R\to R defined by f(x)=x+1x+2f(x)=\dfrac{x+1}{x+2} is invertible and also find its inverse.

Answer

Definition. If f:A→Bf:A\to B is a bijection (one-to-one and onto), its inverse f−1:B→Af^{-1}:B\to A is the function with f−1(y)=xf^{-1}(y)=x exactly when f(x)=yf(x)=y. A function is invertible iff it is a bijection.

For f(x)=x+1x+2f(x)=\dfrac{x+1}{x+2}. The formula is undefined at x=−2x=-2, so it is taken on the domain R∖{−2}\mathbb R\setminus\{-2\}, and it never takes the value 1 (since x+1=x+2x+1=x+2 is impossible), so the codomain is R∖{1}\mathbb R\setminus\{1\}.

One-to-one: if f(x1)=f(x2)f(x_1)=f(x_2) then (x1+1)(x2+2)=(x2+1)(x1+2)(x_1+1)(x_2+2)=(x_2+1)(x_1+2), which gives x1x2+2x1+x2+2=x1x2+2x2+x1+2x_1x_2+2x_1+x_2+2=x_1x_2+2x_2+x_1+2, so x1=x2x_1=x_2.

Onto: let y≠1y\neq1. Solving y=x+1x+2y=\dfrac{x+1}{x+2}:

y(x+2)=x+1 ⇒ x(y−1)=1−2y ⇒ x=1−2yy−1=2y−11−yy(x+2)=x+1\ \Rightarrow\ x(y-1)=1-2y\ \Rightarrow\ x=\frac{1-2y}{y-1}=\frac{2y-1}{1-y}

This is defined for every y≠1y\ne 1 and is not −2-2 (that would need 2y−1=−2+2y2y-1=-2+2y, which is false). So every yy has a preimage.

Hence ff is a bijection, so it is invertible, and

f−1(x)=1−2xx−1=2x−11−x,x≠1.f^{-1}(x)=\frac{1-2x}{x-1}=\frac{2x-1}{1-x},\quad x\neq 1.

Check: f(f−1(0))=f(−1)=01=0f(f^{-1}(0))=f(-1)=\frac{0}{1}=0.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 4 marks

What do you mean by binomial theorem for positive index nn? What are the binomial coefficients? Find the middle terms of (2x2−a2x)15\left(2x^2-\dfrac{a^2}{x}\right)^{15}.

Answer

Binomial theorem. For a positive integer nn,

(a+b)n=∑r=0n(nr)an−rbr(a+b)^n=\sum_{r=0}^{n}\binom{n}{r}a^{n-r}b^{r}

The numbers (nr)=n!r!(n−r)!\binom{n}{r}=\dfrac{n!}{r!(n-r)!} are the binomial coefficients (they form the rows of Pascal's triangle).

Middle terms of (2x2−a2x)15\left(2x^2-\dfrac{a^2}{x}\right)^{15}. There are 16 terms, so the middle terms are the 8th and 9th. The general term is

Tr+1=(15r)(2x2)15−r(−a2x)rT_{r+1}=\binom{15}{r}(2x^2)^{15-r}\left(-\frac{a^2}{x}\right)^{r}

For r=7r=7 (8th term):

T8=−(157)28x16a14x−7=−6435⋅256 a14x9=−1647360 a14x9T_8=-\binom{15}{7}2^{8}x^{16}a^{14}x^{-7}=-6435\cdot256\,a^{14}x^{9}=-1647360\,a^{14}x^{9}

For r=8r=8 (9th term):

T9=(158)27x14a16x−8=6435⋅128 a16x6=823680 a16x6T_9=\binom{15}{8}2^{7}x^{14}a^{16}x^{-8}=6435\cdot128\,a^{16}x^{6}=823680\,a^{16}x^{6}

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 4 marks

What do you mean by tree traversal? Construct the tree for algebraic expression: ((x+2y)3+(x−y))((x+2y)^3+(x-y)).

Answer

Tree traversal is a systematic way of visiting every vertex of a rooted tree exactly once. The three standard orders are:

  • Preorder: root, then left subtree, then right subtree.
  • Inorder: left subtree, then root, then right subtree.
  • Postorder: left subtree, then right subtree, then root.

Expression tree for ((x+2y)3+(x−y))((x+2y)^3+(x-y)). The last operation is the addition, so the root is ++.

  • Left child of the root: ∧\wedge (power), with left child ++ and right child 33. The ++ node has children xx and ∗*, and ∗* has children 22 and yy.
  • Right child of the root: −-, with children xx and yy.
            +
         /     \
       ^         -
     /   \      / \
    +     3    x   y
   / \
  x   *
     / \
    2   y

Preorder: + ∧ + x ∗ 2 y 3 − x y+\ \wedge\ +\ x\ *\ 2\ y\ 3\ -\ x\ y

Inorder: ((x+(2∗y))∧3)+(x−y)((x+(2*y))\wedge 3)+(x-y)

Postorder: x 2 y ∗ + 3 ∧ x y − +x\ 2\ y\ *\ +\ 3\ \wedge\ x\ y\ -\ +

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 2 marks

Prove that the inverse and converse of conditional statements are logically equivalent.

Answer

Let the conditional be p→qp\to q. Its converse is q→pq\to p and its inverse is ¬p→¬q\neg p\to\neg q.

The inverse is the contrapositive of the converse, and a statement is equivalent to its contrapositive. Directly:

¬p→¬q≡¬(¬p)∨¬q≡p∨¬q≡¬q∨p≡q→p\neg p\to\neg q\equiv \neg(\neg p)\vee\neg q\equiv p\vee\neg q\equiv \neg q\vee p\equiv q\to p

Truth table:

ppqqq→pq\to p¬p→¬q\neg p\to\neg q
TTTT
TFTT
FTFF
FFTT

The last two columns are identical, so the inverse and the converse are logically equivalent. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 2 marks

Let A=[1110]A=\begin{bmatrix}1&1\\1&0\end{bmatrix} and B=[0101]B=\begin{bmatrix}0&1\\0&1\end{bmatrix} be two Boolean matrices, find (i) A∨BA\vee B (ii) A∧BA\wedge B

Answer

Join takes the entrywise OR and meet takes the entrywise AND.

(i) A∨B=[1∨01∨11∨00∨1]=[1111]A\vee B=\begin{bmatrix}1\vee0&1\vee1\\1\vee0&0\vee1\end{bmatrix}=\begin{bmatrix}1&1\\1&1\end{bmatrix}

(ii) A∧B=[1∧01∧11∧00∧1]=[0100]A\wedge B=\begin{bmatrix}1\wedge0&1\wedge1\\1\wedge0&0\wedge1\end{bmatrix}=\begin{bmatrix}0&1\\0&0\end{bmatrix}

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 2 marks

Use mathematical induction to show that: 12+22+32+⋯+n2=n(n+1)(2n+1)61^2+2^2+3^2+\dots+n^2=\dfrac{n(n+1)(2n+1)}{6}, where nn is positive integer.

Answer

Let P(n): 12+22+⋯+n2=n(n+1)(2n+1)6P(n):\ 1^2+2^2+\dots+n^2=\dfrac{n(n+1)(2n+1)}{6}.

Basis. For n=1n=1: LHS =1=1, RHS =1⋅2⋅36=1=\dfrac{1\cdot2\cdot3}{6}=1. So P(1)P(1) is true.

Inductive step. Assume P(k)P(k) is true for some k≥1k\ge1. Then

12+⋯+k2+(k+1)2=k(k+1)(2k+1)6+(k+1)2=(k+1)[k(2k+1)+6(k+1)]61^2+\dots+k^2+(k+1)^2=\frac{k(k+1)(2k+1)}{6}+(k+1)^2=\frac{(k+1)\left[k(2k+1)+6(k+1)\right]}{6}

=(k+1)(2k2+7k+6)6=(k+1)(k+2)(2k+3)6=\frac{(k+1)(2k^2+7k+6)}{6}=\frac{(k+1)(k+2)(2k+3)}{6}

which is P(k+1)P(k+1). By the principle of mathematical induction, P(n)P(n) holds for all positive integers nn. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 2 marks

Define Wheel graph. Prove that the sum of degree of vertices of wheel graph is 4 times the size of cycle graph.

Answer

Definition. The wheel graph WnW_n is obtained from the cycle graph CnC_n (n≥3n\ge3 vertices and nn edges) by adding one new vertex (the hub) joined to every vertex of the cycle.

Proof. WnW_n has n+1n+1 vertices. The nn edges of the cycle plus the nn spokes give 2n2n edges. By the handshaking lemma,

∑vdeg⁡(v)=2×(number of edges)=2(2n)=4n=4×(size of Cn).\sum_{v}\deg(v)=2\times(\text{number of edges})=2(2n)=4n=4\times(\text{size of }C_n).

Check by degrees: the hub has degree nn, and each rim vertex has degree 3, so the sum is n+3n=4nn+3n=4n. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 2 marks

Find the minimum number of students to guarantee that 50 of them obtain a same grade where there are altogether 20 different grades.

Answer

By the generalised pigeonhole principle, if NN objects are placed in kk boxes, some box contains at least ⌈N/k⌉\lceil N/k\rceil objects.

We need ⌈N/20⌉≥50\lceil N/20\rceil\ge50, which first holds when N=20×49+1N=20\times49+1 (with 980 students each grade could occur just 49 times).

N=20(49)+1=981N=20(49)+1=981

At least 981 students are required.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 2 marks

Define full binary tree. Prove that the number of vertices in a full binary tree is always odd.

Answer

Definition. A full binary tree is a rooted tree in which every internal vertex has exactly two children.

Proof. Let the tree have ii internal vertices. Each internal vertex has exactly 2 children, and every vertex except the root is the child of exactly one vertex. So the number of non-root vertices is 2i2i, and

n=2i+1,n=2i+1,

which is always odd. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2014 AD · 2 marks

Construct the BFS tree from graph given below choosing 'a' as root and find height of obtained tree. (Graph on vertices a-h is given in a figure in the original paper.)

Answer

BFS procedure from root aa.

  1. Put aa in a queue and mark it visited; it is level 0 of the tree.
  2. Remove the front vertex uu of the queue. Visit all its unvisited neighbours in alphabetical order, attach each to uu as a child (using the edge uu-neighbour), mark them visited and add them to the queue.
  3. Repeat step 2 until the queue is empty.

The tree edges are the edges that first discover each vertex, so vertices at level kk are exactly those at distance kk from aa. The height of the BFS tree is the number of edges on the longest root-to-leaf path, that is, the largest level reached (the distance from aa to the farthest vertex). Only edges discovering new vertices are kept; the remaining edges of the graph are left out of the tree.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 1 mark

Write the negation of the statement: "All birds can fly"

Answer

Negation of "All birds can fly": Some birds cannot fly (there exists a bird that cannot fly).

In symbols, ¬∀x P(x)≡∃x ¬P(x)\neg\forall x\,P(x)\equiv\exists x\,\neg P(x).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 1 mark

Define Big-Oh notation.

Answer

Let ff and gg be functions from the integers (or reals) to the reals. We say f(x)f(x) is O(g(x))O(g(x)) if there exist constants C>0C>0 and kk such that

∣f(x)∣≤C ∣g(x)∣for all x>k.|f(x)|\le C\,|g(x)|\quad\text{for all } x>k.

It gives an asymptotic upper bound on the growth of ff. Example: 3x2+5x+23x^2+5x+2 is O(x2)O(x^2).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 1 mark

Find the recurrence relation of the sequence: 3, 7, 11, 15, ........

Answer

Each term is 4 more than the previous term (common difference 4), so

an=an−1+4(n≥2),a1=3.a_n=a_{n-1}+4\quad(n\ge2),\qquad a_1=3.

Its closed form is an=4n−1a_n=4n-1.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 1 mark

Is the function f(x)=x2f(x)=x^2 from set of integers to set of integers onto? Justify.

Answer

No, f(x)=x2f(x)=x^2 from Z\mathbb Z to Z\mathbb Z is not onto.

A function is onto if every element of the codomain has a preimage. Take −1-1 (or 22): there is no integer xx with x2=−1x^2=-1 (or x2=2x^2=2). The values of ff are only the perfect squares 0,1,4,9,…0,1,4,9,\dots, so ff is not onto.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 1 mark

When is a graph said to be Eulerian?

Answer

A graph is said to be Eulerian if it has an Euler circuit, that is, a closed trail that uses every edge exactly once.

A connected graph is Eulerian if and only if every vertex has even degree.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 1 mark

If a set 'A' has nn elements then, how many relations are there from AA to AA.

Answer

A relation from AA to AA is any subset of A×AA\times A. Since ∣A×A∣=n2|A\times A|=n^2, the number of subsets, and hence of relations, is

2n2.2^{n^2}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 4 marks

Define the terms tautology, contradiction and contingency with example

Answer

  • Tautology: a compound proposition that is true for every assignment of truth values to its variables. Example: p∨¬pp\vee\neg p.
  • Contradiction: a compound proposition that is false for every assignment. Example: p∧¬pp\wedge\neg p.
  • Contingency: a compound proposition that is neither a tautology nor a contradiction, so it is true for some assignments and false for others. Example: p→qp\to q (or p∧qp\wedge q).

Truth table for the examples:

ppp∨¬pp\vee\neg pp∧¬pp\wedge\neg p
TTF
FTF

For the contingency p∧qp\wedge q, the value is T only when both pp and qq are T, and F otherwise.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 4 marks

Define relatively prime numbers? Find gcd of 190 and 80, also express it in linear combination.

Answer

Definition. Two integers aa and bb are relatively prime (coprime) if gcd⁡(a,b)=1\gcd(a,b)=1, that is, they have no common positive divisor other than 1.

Euclidean algorithm for 190 and 80:

190=2⋅80+30190=2\cdot80+30 80=2⋅30+2080=2\cdot30+20 30=1⋅20+1030=1\cdot20+10 20=2⋅10+020=2\cdot10+0

So gcd⁡(190,80)=10\gcd(190,80)=10 (not relatively prime).

Linear combination (back substitution):

10=30−20=30−(80−2⋅30)=3⋅30−80=3(190−2⋅80)−80=3⋅190−7⋅8010=30-20=30-(80-2\cdot30)=3\cdot30-80=3(190-2\cdot80)-80=3\cdot190-7\cdot80

10=3(190)+(−7)(80)10=3(190)+(-7)(80)

Check: 570−560=10570-560=10.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 4 marks

Explain binary search algorithm and trace it to search an item 85 in the given list: 6, 25, 33, 43, 51, 53, 64, 72, 84, 93, 95, 96, 97

Answer

Binary search finds an item in a sorted list. Set low = 1, high = n. Repeat: let mid = floor((low+high)/2); if the item equals list[mid] stop; if it is smaller set high = mid-1, otherwise set low = mid+1; stop with "not found" when low > high. Each step halves the search range, so it takes O(log⁡n)O(\log n) comparisons.

Trace for 85 in positions 1 to 13: 6, 25, 33, 43, 51, 53, 64, 72, 84, 93, 95, 96, 97.

Steplowhighmidlist[mid]Comparison
111376485 > 64, so low = 8
2813109385 < 93, so high = 9
38987285 > 72, so low = 9
49998485 > 84, so low = 10

Now low = 10 > high = 9, so the search ends: 85 is not in the list.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 4 marks

State inclusion-exclusion principle. Find the number of bit string of length 9 begin with 00 and end with 1.

Answer

Inclusion-exclusion principle. For finite sets AA and BB,

∣A∪B∣=∣A∣+∣B∣−∣A∩B∣|A\cup B|=|A|+|B|-|A\cap B|

and for three sets ∣A∪B∪C∣=∣A∣+∣B∣+∣C∣−∣A∩B∣−∣A∩C∣−∣B∩C∣+∣A∩B∩C∣|A\cup B\cup C|=|A|+|B|+|C|-|A\cap B|-|A\cap C|-|B\cap C|+|A\cap B\cap C|.

Bit strings of length 9 beginning with 00 and ending with 1. Let AA be the strings beginning with 00 and BB those ending with 1. Then ∣A∣=27=128|A|=2^7=128, ∣B∣=28=256|B|=2^8=256, and the required number is ∣A∩B∣|A\cap B|. The first two bits and the last bit are fixed, leaving 9−3=69-3=6 free bits:

∣A∩B∣=26=64.|A\cap B|=2^6=64.

(Using the formula, ∣A∪B∣=128+256−64=320|A\cup B|=128+256-64=320 is consistent with ∣A∩B∣=64|A\cap B|=64.)

There are 64 such bit strings.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 4 marks

Define equivalence relation. Test the relation 'congruence modulo 3' on the set S={2,3,4,6,7,9}S=\{2,3,4,6,7,9\} is equivalence or not.

Answer

An equivalence relation on a set is a relation that is reflexive, symmetric and transitive.

Test. Here a R b  ⟺  a≡b(mod3)a\,R\,b \iff a\equiv b \pmod 3, i.e. 3∣(a−b)3\mid(a-b), on S={2,3,4,6,7,9}S=\{2,3,4,6,7,9\}.

  • Reflexive: a−a=0a-a=0 is divisible by 3, so aRaaRa for every a∈Sa\in S.
  • Symmetric: if 3∣(a−b)3\mid(a-b) then 3∣(b−a)3\mid(b-a), so aRb⇒bRaaRb\Rightarrow bRa.
  • Transitive: if 3∣(a−b)3\mid(a-b) and 3∣(b−c)3\mid(b-c) then 3∣(a−b)+(b−c)=a−c3\mid(a-b)+(b-c)=a-c, so aRb, bRc⇒aRcaRb,\ bRc\Rightarrow aRc.

All three properties hold, so congruence modulo 3 is an equivalence relation on SS. Its classes are {2}\{2\} (remainder 2), {3,6,9}\{3,6,9\} (remainder 0) and {4,7}\{4,7\} (remainder 1), which partition SS.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 4 marks

Define isomorphic graph & isomorphism. Show that given graph in self complementary. (A pentagon on vertices a, b, c, d, e is given in a figure in the original paper.)

Answer

Isomorphic graphs. Two graphs G1=(V1,E1)G_1=(V_1,E_1) and G2=(V2,E2)G_2=(V_2,E_2) are isomorphic if there is a bijection ϕ:V1→V2\phi:V_1\to V_2 such that u,vu,v are adjacent in G1G_1 if and only if ϕ(u),ϕ(v)\phi(u),\phi(v) are adjacent in G2G_2. The bijection ϕ\phi is called an isomorphism.

A graph is self-complementary if it is isomorphic to its complement Gˉ\bar G.

Showing the pentagon is self-complementary. The graph is the cycle C5C_5 with edges ab, bc, cd, de, eaab,\ bc,\ cd,\ de,\ ea. Its complement has the other (52)−5=5\binom52-5=5 edges:

Eˉ={ac, ad, bd, be, ce}\bar E=\{ac,\ ad,\ bd,\ be,\ ce\}

which form the cycle a−c−e−b−d−aa-c-e-b-d-a (the pentagram).

Define ϕ:a↦a, b↦c, c↦e, d↦b, e↦d\phi: a\mapsto a,\ b\mapsto c,\ c\mapsto e,\ d\mapsto b,\ e\mapsto d. Then

ab↦ac,  bc↦ce,  cd↦eb,  de↦bd,  ea↦da,ab\mapsto ac,\ \ bc\mapsto ce,\ \ cd\mapsto eb,\ \ de\mapsto bd,\ \ ea\mapsto da,

and every image is an edge of Gˉ\bar G. Since ϕ\phi is a bijection and the edge counts are equal, G≅GˉG\cong\bar G. Hence the pentagon is self-complementary.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 4 marks

What is spanning tree? Find the number of spanning tree from wheel graph W3W_3.

Answer

A spanning tree of a connected graph GG is a subgraph that contains all vertices of GG and is a tree (connected, no cycles). It has n−1n-1 edges when GG has nn vertices.

Wheel W3W_3 consists of a hub joined to the three vertices of a triangle, so it has 4 vertices and is the complete graph K4K_4.

By Cayley's formula, the number of spanning trees of KnK_n is nn−2n^{n-2}, so

τ(W3)=44−2=16.\tau(W_3)=4^{4-2}=16.

Check with the wheel formula τ(Wn)=(3+52)n+(3−52)n−2\tau(W_n)=\left(\frac{3+\sqrt5}{2}\right)^n+\left(\frac{3-\sqrt5}{2}\right)^n-2: for n=3n=3 this is 18−2=1618-2=16.

So W3W_3 has 16 spanning trees.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 4 marks

Define tree. Prove that a tree with nn vertices has n−1n-1 edges.

Answer

A tree is a connected graph with no cycles.

Theorem. A tree with nn vertices has n−1n-1 edges.

Proof (induction on nn). For n=1n=1 the tree has 0 edges, which equals n−1n-1.

Assume every tree with kk vertices has k−1k-1 edges, and let TT have k+1k+1 vertices. A tree with at least two vertices has a pendant vertex (take an end of a longest path). Remove a pendant vertex vv and its single edge. The remaining graph T′T' is still connected and acyclic, so it is a tree with kk vertices, and by the hypothesis it has k−1k-1 edges. Adding back the removed edge, TT has (k−1)+1=k=(k+1)−1(k-1)+1=k=(k+1)-1 edges.

By induction, every tree with nn vertices has n−1n-1 edges. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 2 marks

Using mathematical induction prove that 1+2+22+23+⋯+2n=2n+1−11+2+2^2+2^3+\dots+2^n=2^{n+1}-1

Answer

Let P(n): 1+2+22+⋯+2n=2n+1−1P(n):\ 1+2+2^2+\dots+2^n=2^{n+1}-1.

Basis. For n=0n=0: LHS =1=1, RHS =21−1=1=2^1-1=1. True.

Step. Assume P(k)P(k): 1+2+⋯+2k=2k+1−11+2+\dots+2^k=2^{k+1}-1. Then

1+2+⋯+2k+2k+1=2k+1−1+2k+1=2⋅2k+1−1=2k+2−1,1+2+\dots+2^k+2^{k+1}=2^{k+1}-1+2^{k+1}=2\cdot2^{k+1}-1=2^{k+2}-1,

which is P(k+1)P(k+1). By mathematical induction, P(n)P(n) holds for all n≥0n\ge0. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 2 marks

Find the number of student in a class to ensure that at least 3 of them receive same grade among A, B, C, D and E.

Answer

By the generalised pigeonhole principle, if NN objects go into kk boxes, some box holds at least ⌈N/k⌉\lceil N/k\rceil objects. Here k=5k=5 grades and we need ⌈N/5⌉≥3\lceil N/5\rceil\ge3, which first happens when N=5⋅2+1=11N=5\cdot2+1=11.

With 10 students, two per grade is possible, so 10 is not enough.

The class must have 11 students.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 2 marks

Prove that the sum of the binomial co-efficient is 2n2^n.

Answer

By the binomial theorem, (x+y)n=∑r=0n(nr)xn−ryr(x+y)^n=\sum_{r=0}^{n}\binom nr x^{n-r}y^r.

Putting x=y=1x=y=1:

(1+1)n=∑r=0n(nr)  ⇒  (n0)+(n1)+⋯+(nn)=2n.■(1+1)^n=\sum_{r=0}^{n}\binom nr \;\Rightarrow\; \binom n0+\binom n1+\dots+\binom nn=2^n. \qquad\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 2 marks

If the function f:R→Rf:R\to R defined by f(x)=4−3xf(x)=4-3x then find f−1(−5)f^{-1}(-5).

Answer

Let f−1(−5)=xf^{-1}(-5)=x. Then f(x)=−5f(x)=-5:

4−3x=−5  ⇒  3x=9  ⇒  x=3.4-3x=-5\;\Rightarrow\;3x=9\;\Rightarrow\;x=3.

So f−1(−5)=3f^{-1}(-5)=3. (Check: f(3)=4−9=−5f(3)=4-9=-5.)

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 2 marks

Prove that the total number of edges in a complete graph KnK_n is n(n−1)2\dfrac{n(n-1)}{2}

Answer

In the complete graph KnK_n every vertex is adjacent to each of the other n−1n-1 vertices, so every vertex has degree n−1n-1.

By the handshaking lemma, ∑deg⁡(v)=2∣E∣\sum \deg(v)=2|E|. Hence

2∣E∣=n(n−1)  ⇒  ∣E∣=n(n−1)2.2|E|=n(n-1)\;\Rightarrow\;|E|=\frac{n(n-1)}{2}.

Equivalently, each edge is a choice of 2 vertices from nn, giving (n2)=n(n−1)2\binom n2=\frac{n(n-1)}2. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 2 marks

Find the adjacency matrix and incidence matrix of the digraph given in the figure of the original paper (vertices a-e, edges e1,…,e8e_1,\dots,e_8).

Answer

Adjacency matrix of a digraph with vertices a,b,c,d,ea,b,c,d,e is the 5×55\times5 matrix A=[aij]A=[a_{ij}] with

aij={1if there is an edge from vertex i to vertex j0otherwisea_{ij}=\begin{cases}1&\text{if there is an edge from vertex } i \text{ to vertex } j\\0&\text{otherwise}\end{cases}

(a parallel edge from ii to jj would give the entry equal to the number of such edges). Reading the figure row by row, row ii lists the edges leaving vertex ii.

Incidence matrix is the 5×85\times8 matrix B=[bij]B=[b_{ij}] with columns e1,…,e8e_1,\dots,e_8 and

bij={+1if edge ej leaves vertex i−1if edge ej enters vertex i0otherwiseb_{ij}=\begin{cases}+1&\text{if edge } e_j \text{ leaves vertex } i\\-1&\text{if edge } e_j \text{ enters vertex } i\\0&\text{otherwise}\end{cases}

(a loop is entered as +1+1 or 22 by convention). Each column of BB therefore contains exactly one +1+1 (the tail of the edge) and one −1-1 (the head), so every column sum is 0, and the sum of all entries in AA equals the number of edges, 8.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2016 AD · 2 marks

Explain BFS algorithm of graph traversal.

Answer

Breadth-first search (BFS) visits a graph level by level: first the start vertex, then all its neighbours, then their unvisited neighbours, and so on. It uses a queue (FIFO).

Algorithm

  1. Mark the start vertex ss as visited and enqueue it.
  2. While the queue is not empty: dequeue a vertex uu and process it; for every neighbour vv of uu that is not visited, mark it visited and enqueue it.
  3. Stop when the queue is empty.

Each vertex is enqueued once and each edge examined a constant number of times, so the time is O(V+E)O(V+E) with an adjacency list. BFS finds shortest paths (fewest edges) from ss in an unweighted graph and also gives a spanning tree.

Example. For edges A ⁣− ⁣B, A ⁣− ⁣C, B ⁣− ⁣D, C ⁣− ⁣D, D ⁣− ⁣EA\!-\!B,\ A\!-\!C,\ B\!-\!D,\ C\!-\!D,\ D\!-\!E starting at AA: queue A→B,C→D→EA\to B,C\to D\to E, so the order is A,B,C,D,EA,B,C,D,E.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 1 mark

Show that condition statement is logically equivalent to its contra-positive.

Answer

Let the conditional statement be p→qp\to q and its contrapositive ¬q→¬p\neg q\to\neg p.

ppqqp→qp\to q¬q\neg q¬p\neg p¬q→¬p\neg q\to\neg p
TTTFFT
TFFTFF
FTTFTT
FFTTTT

The columns for p→qp\to q and ¬q→¬p\neg q\to\neg p are identical, so p→q≡¬q→¬pp\to q\equiv\neg q\to\neg p.

Algebraically: ¬q→¬p≡¬(¬q)∨¬p≡q∨¬p≡¬p∨q≡p→q\neg q\to\neg p\equiv \neg(\neg q)\vee\neg p\equiv q\vee\neg p\equiv\neg p\vee q\equiv p\to q. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 1 mark

Encrypt the message DISCRETE MATHEMATICS using Ceaser cipher.

Answer

The Caesar cipher with shift 3 replaces each letter by the one three places later: C=(P+3) mod 26C=(P+3)\bmod 26.

  • DISCRETE: D→G, I→L, S→V, C→F, R→U, E→H, T→W, E→H, giving GLVFUHWH
  • MATHEMATICS: M→P, A→D, T→W, H→K, E→H, M→P, A→D, T→W, I→L, C→F, S→V, giving PDWKHPDWLFV

Encrypted message: GLVFUHWH PDWKHPDWLFV

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 1 mark

Find the first five terms of sequence defined by an=4an−1a_n=4a_{n-1} with a0=2a_0=2

Answer

With an=4an−1a_n=4a_{n-1} and a0=2a_0=2:

a0=2,a1=4⋅2=8,a2=4⋅8=32,a3=4⋅32=128,a4=4⋅128=512.a_0=2,\quad a_1=4\cdot2=8,\quad a_2=4\cdot8=32,\quad a_3=4\cdot32=128,\quad a_4=4\cdot128=512.

The first five terms are 2, 8, 32, 128, 5122,\ 8,\ 32,\ 128,\ 512 (that is, an=2⋅4na_n=2\cdot4^n).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 1 mark

Define floor function. For what values of xx, ⌊x⌋=0\lfloor x\rfloor=0

Answer

The floor function ⌊x⌋\lfloor x\rfloor is the greatest integer less than or equal to xx.

⌊x⌋=0\lfloor x\rfloor=0 exactly when 0≤x<10\le x<1.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 1 mark

State and verify DIRAC'S theorem in graph theory.

Answer

Dirac's theorem. If GG is a simple graph with n≥3n\ge3 vertices in which every vertex has degree at least n/2n/2, then GG has a Hamiltonian cycle.

Proof. GG is connected: if u,vu,v were in different components, each component would have at least n/2+1n/2+1 vertices (a vertex and its ≥n/2\ge n/2 neighbours), giving more than nn vertices in total, a contradiction.

Let P=v1v2…vkP=v_1v_2\dots v_k be a longest path. All neighbours of v1v_1 and of vkv_k lie on PP (otherwise PP could be extended). Each of v1,vkv_1,v_k has at least n/2n/2 neighbours among v2,…,vk−1,vkv_2,\dots,v_{k-1},v_k or v1,…,vk−1v_1,\dots,v_{k-1}, which are at most k−1k-1 vertices. Consider the k−1k-1 indices i=1,…,k−1i=1,\dots,k-1. At least n/2n/2 of them have v1∼vi+1v_1\sim v_{i+1}, and at least n/2n/2 have vk∼viv_k\sim v_i. Since k−1<nk-1<n, these two sets overlap, so there is ii with v1∼vi+1v_1\sim v_{i+1} and vk∼viv_k\sim v_i. Then

v1v2…vi vk vk−1…vi+1 v1v_1v_2\dots v_i\,v_k\,v_{k-1}\dots v_{i+1}\,v_1

is a cycle through all kk vertices of PP. If k<nk<n, connectedness gives a vertex outside the cycle adjacent to a vertex on it, and this yields a path with k+1k+1 vertices, contradicting the choice of PP. So k=nk=n and the cycle is Hamiltonian. ■\blacksquare

Verification. Take K5K_5: n=5n=5 and each degree is 4≥2.54\ge2.5, and indeed 1 ⁣− ⁣2 ⁣− ⁣3 ⁣− ⁣4 ⁣− ⁣5 ⁣− ⁣11\!-\!2\!-\!3\!-\!4\!-\!5\!-\!1 is a Hamiltonian cycle. Similarly, C4C_4 has n=4n=4, degrees 2≥22\ge2, and is itself a Hamiltonian cycle.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 1 mark

Define full binary tree with an example.

Answer

A full binary tree is a rooted tree in which every internal vertex has exactly two children (no vertex has exactly one child).

Example. Root AA has children BB and CC; BB has children DD and EE; CC is a leaf; DD and EE are leaves. Every internal vertex (AA and BB) has exactly two children, so this is a full binary tree with n=5n=5 vertices, 33 leaves, and n=2i+1n=2i+1 where i=2i=2.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 4 marks

Define universal quantifier and existential quantifier. Using direct proof, show that sum of two numbers is rational.

Answer

Universal quantifier. The statement ∀x P(x)\forall x\,P(x) ("for all xx, P(x)P(x)") is true when P(x)P(x) is true for every xx in the domain.

Existential quantifier. The statement ∃x P(x)\exists x\,P(x) ("there exists xx such that P(x)P(x)") is true when P(x)P(x) is true for at least one xx in the domain.

Direct proof that the sum of two rational numbers is rational. Let rr and ss be rational. Then r=abr=\dfrac ab and s=cds=\dfrac cd with integers a,b,c,da,b,c,d and b≠0, d≠0b\ne0,\ d\ne0. Now

r+s=ab+cd=ad+bcbd.r+s=\frac ab+\frac cd=\frac{ad+bc}{bd}.

Since ad+bcad+bc and bdbd are integers and bd≠0bd\ne0, the sum is a ratio of integers, hence rational. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 4 marks

What is big theta (Θ\Theta) notation? Is a function f(x)=55x2+8x+7f(x)=55x^2+8x+7 is big theta of g(x)=(x2)g(x)=(x^2)?

Answer

Big-Theta. f(x)=Θ(g(x))f(x)=\Theta(g(x)) if there exist positive constants C1,C2C_1,C_2 and kk such that

C1∣g(x)∣≤∣f(x)∣≤C2∣g(x)∣for all x>k.C_1|g(x)|\le|f(x)|\le C_2|g(x)|\quad\text{for all }x>k.

So ff grows at the same rate as gg (it is both O(g)O(g) and Ω(g)\Omega(g)).

Check. For f(x)=55x2+8x+7f(x)=55x^2+8x+7 and g(x)=x2g(x)=x^2, take x≥1x\ge1:

  • Lower bound: f(x)≥55x2f(x)\ge55x^2, since 8x+7>08x+7>0.
  • Upper bound: 8x≤8x28x\le8x^2 and 7≤7x27\le7x^2, so f(x)≤55x2+8x2+7x2=70x2f(x)\le55x^2+8x^2+7x^2=70x^2.

Thus 55x2≤f(x)≤70x255x^2\le f(x)\le70x^2 for x>1x>1, with C1=55, C2=70, k=1C_1=55,\ C_2=70,\ k=1. Hence f(x)=Θ(x2)f(x)=\Theta(x^2): yes.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 4 marks

Define combination. In how many ways a committee consisting of 5 men and 4 women be formed from group of 9 women and 12 men?

Answer

A combination is a selection of rr objects from nn distinct objects in which the order does not matter. The number of such selections is

(nr)=nCr=n!r! (n−r)!.\binom nr={}^nC_r=\frac{n!}{r!\,(n-r)!}.

Committee. Choose 5 men from 12 and 4 women from 9:

(125)(94)=792×126=99,792.\binom{12}{5}\binom94=792\times126=99{,}792.

There are 99,792 ways.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 4 marks

Define equivalence relation. Let A={1,2,3}A=\{1,2,3\}, B={p,q,r}B=\{p,q,r\}, C={x,y,z}C=\{x,y,z\} be three sets. RR is relation from AA to BB defined as R={(1,p),(2,q),(2,r),(3,p),(3,q)}R=\{(1,p),(2,q),(2,r),(3,p),(3,q)\} and SS is relation from BB to CC defined as S={(q,x),(p,z),(r,y),(r,z)}S=\{(q,x),(p,z),(r,y),(r,z)\}. Verify that (S∘R)−1=R−1∘S−1(S\circ R)^{-1}=R^{-1}\circ S^{-1} if it exist.

Answer

An equivalence relation is a relation that is reflexive, symmetric and transitive.

Composition. S∘R={(a,c):(a,b)∈R, (b,c)∈S for some b}S\circ R=\{(a,c): (a,b)\in R,\ (b,c)\in S \text{ for some } b\}.

  • (1,p)∈R, (p,z)∈S⇒(1,z)(1,p)\in R,\ (p,z)\in S\Rightarrow(1,z)
  • (2,q)∈R, (q,x)∈S⇒(2,x)(2,q)\in R,\ (q,x)\in S\Rightarrow(2,x)
  • (2,r)∈R, (r,y),(r,z)∈S⇒(2,y),(2,z)(2,r)\in R,\ (r,y),(r,z)\in S\Rightarrow(2,y),(2,z)
  • (3,p)∈R, (p,z)∈S⇒(3,z)(3,p)\in R,\ (p,z)\in S\Rightarrow(3,z)
  • (3,q)∈R, (q,x)∈S⇒(3,x)(3,q)\in R,\ (q,x)\in S\Rightarrow(3,x)

S∘R={(1,z),(2,x),(2,y),(2,z),(3,x),(3,z)}S\circ R=\{(1,z),(2,x),(2,y),(2,z),(3,x),(3,z)\}

(S∘R)−1={(z,1),(x,2),(y,2),(z,2),(x,3),(z,3)}.(S\circ R)^{-1}=\{(z,1),(x,2),(y,2),(z,2),(x,3),(z,3)\}.

Right side. R−1={(p,1),(q,2),(r,2),(p,3),(q,3)}R^{-1}=\{(p,1),(q,2),(r,2),(p,3),(q,3)\} and S−1={(x,q),(z,p),(y,r),(z,r)}S^{-1}=\{(x,q),(z,p),(y,r),(z,r)\}. Then R−1∘S−1R^{-1}\circ S^{-1} (apply S−1S^{-1} first):

  • (x,q)(x,q) then (q,2),(q,3)(q,2),(q,3) gives (x,2),(x,3)(x,2),(x,3)
  • (z,p)(z,p) then (p,1),(p,3)(p,1),(p,3) gives (z,1),(z,3)(z,1),(z,3)
  • (y,r)(y,r) then (r,2)(r,2) gives (y,2)(y,2)
  • (z,r)(z,r) then (r,2)(r,2) gives (z,2)(z,2)

R−1∘S−1={(x,2),(x,3),(z,1),(z,3),(y,2),(z,2)}.R^{-1}\circ S^{-1}=\{(x,2),(x,3),(z,1),(z,3),(y,2),(z,2)\}.

Both sets contain the same six pairs, so (S∘R)−1=R−1∘S−1(S\circ R)^{-1}=R^{-1}\circ S^{-1}. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 4 marks

Define invertible function. Given the mapping f:R→Rf:R\to R define by f(x)=3x−7f(x)=3x-7, prove that is invertible and find its inverse also.

Answer

A function f:X→Yf:X\to Y is invertible if there is a function f−1:Y→Xf^{-1}:Y\to X with f−1(f(x))=xf^{-1}(f(x))=x and f(f−1(y))=yf(f^{-1}(y))=y. This happens exactly when ff is one-to-one and onto (bijective).

For f(x)=3x−7f(x)=3x-7:

  • One-to-one: if f(a)=f(b)f(a)=f(b) then 3a−7=3b−73a-7=3b-7, so a=ba=b.
  • Onto: for any y∈Ry\in\mathbb R, put x=y+73∈Rx=\dfrac{y+7}{3}\in\mathbb R; then f(x)=3⋅y+73−7=yf(x)=3\cdot\dfrac{y+7}3-7=y.

So ff is a bijection and therefore invertible.

Inverse. Let y=3x−7y=3x-7; then x=y+73x=\dfrac{y+7}3. Hence

f−1(x)=x+73.f^{-1}(x)=\frac{x+7}{3}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 4 marks

What do you mean by Binomial theorem for position index nn? Find the middle term(s) in the expansion of (2x+13x2)9\left(2x+\dfrac{1}{3x^2}\right)^9.

Answer

Binomial theorem (positive integer index). For any positive integer nn,

(a+b)n=∑r=0n(nr)an−rbr,(a+b)^n=\sum_{r=0}^{n}\binom nr a^{n-r}b^r,

with general term Tr+1=(nr)an−rbrT_{r+1}=\binom nr a^{n-r}b^r.

Middle terms of (2x+13x2)9\left(2x+\dfrac1{3x^2}\right)^9. Here n=9n=9 is odd, so there are two middle terms, T5T_5 and T6T_6. The general term is

Tr+1=(9r)(2x)9−r(13x2)r.T_{r+1}=\binom9r(2x)^{9-r}\left(\frac1{3x^2}\right)^r.

For r=4r=4:

T5=(94) 25x5⋅134x8=126⋅3281 x−3=4489x3.T_5=\binom94\,2^5x^5\cdot\frac1{3^4x^8}=126\cdot\frac{32}{81}\,x^{-3}=\frac{448}{9x^3}.

For r=5r=5:

T6=(95) 24x4⋅135x10=126⋅16243 x−6=22427x6.T_6=\binom95\,2^4x^4\cdot\frac1{3^5x^{10}}=126\cdot\frac{16}{243}\,x^{-6}=\frac{224}{27x^6}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 4 marks

How can we get represent graph in computer memory? Explain different graph representation techniques with example.

Answer

A graph G=(V,E)G=(V,E) must be stored as data structures in memory. The common techniques are the adjacency matrix, the adjacency list and the incidence matrix.

Take the example graph with vertices 1,2,3,41,2,3,4 and edges e1=12, e2=13, e3=23, e4=34e_1=12,\ e_2=13,\ e_3=23,\ e_4=34.

1. Adjacency matrix. An n×nn\times n matrix with aij=1a_{ij}=1 if ii and jj are adjacent, else 00.

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

For an undirected graph it is symmetric. It needs O(n2)O(n^2) space and tests adjacency in O(1)O(1).

2. Adjacency list. For each vertex store the list of its neighbours:

1:{2,3}1:\{2,3\}, 2:{1,3}2:\{1,3\}, 3:{1,2,4}3:\{1,2,4\}, 4:{3}4:\{3\}.

It needs O(n+m)O(n+m) space and is efficient for sparse graphs.

3. Incidence matrix. An n×mn\times m matrix with bij=1b_{ij}=1 if vertex ii is an end of edge eje_j, else 00.

B=(1100101001110001)B=\begin{pmatrix}1&1&0&0\\1&0&1&0\\0&1&1&1\\0&0&0&1\end{pmatrix}

Each column has exactly two 1s (for a graph without loops). For digraphs, the adjacency matrix is not symmetric and incidence entries use +1+1 and −1-1.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 2 marks

Construct the truth table for the proposition [(p→q)∧(q→r)]→(p→r)[(p\to q)\wedge(q\to r)]\to(p\to r).

Answer

Let X=[(p→q)∧(q→r)]→(p→r)X=[(p\to q)\wedge(q\to r)]\to(p\to r).

ppqqrrp→qp\to qq→rq\to r(p→q)∧(q→r)(p\to q)\wedge(q\to r)p→rp\to rXX
TTTTTTTT
TTFTFFFT
TFTFTFTT
TFFFTFFT
FTTTTTTT
FTFTFFTT
FFTTTTTT
FFFTTTTT

Every entry in the last column is T, so the proposition is a tautology (the law of hypothetical syllogism).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 2 marks

Find the minimum number of students in a class to ensure that 4 of them born in a same day of the week.

Answer

There are 7 days of the week (boxes). To guarantee that at least 4 students share a birth day, we need ⌈N/7⌉≥4\lceil N/7\rceil\ge4, which first holds for N=7⋅3+1=22N=7\cdot3+1=22.

With 21 students, exactly 3 per day is possible, so 21 is not enough.

The minimum is 22 students.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 2 marks

Define self complementary graph with suitable diagram.

Answer

A simple graph GG is self-complementary if it is isomorphic to its complement Gˉ\bar G (the graph on the same vertices in which two vertices are adjacent exactly when they are not adjacent in GG). Such a graph has n(n−1)/4n(n-1)/4 edges.

Example. The path P4P_4: a−b−c−da-b-c-d with edges ab, bc, cdab,\ bc,\ cd. Its complement has edges ac, ad, bdac,\ ad,\ bd, which form the path c−a−d−bc-a-d-b. The map a↦c, b↦a, c↦d, d↦ba\mapsto c,\ b\mapsto a,\ c\mapsto d,\ d\mapsto b is an isomorphism P4→Pˉ4P_4\to\bar P_4, so P4P_4 is self-complementary. The cycle C5C_5 is another example.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 2 marks

Construct an expression tree from the expression: (x+2y)3(a−3b)(x+2y)^3(a-3b) and write its postfix.

Answer

The expression is (x+2y)3×(a−3b)(x+2y)^3\times(a-3b).

Expression tree (operators are internal nodes, operands are leaves):

  • Root: ×\times
    • Left child: ∧\wedge (power)
      • Left: ++, with children xx and ×\times (whose children are 22 and yy)
      • Right: 33
    • Right child: −-
      • Left: aa
      • Right: ×\times (whose children are 33 and bb)

Postfix (left subtree, right subtree, root):

x 2 y × + 3 ∧ a 3 b × − ×x\ 2\ y\ \times\ +\ 3\ \wedge\ a\ 3\ b\ \times\ -\ \times

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2017 AD · 2 marks

Prove that number of pendant vertices in a full binary tree with nn vertices is n+12\frac{n+1}{2}.

Answer

Let a full binary tree have nn vertices, of which ii are internal and tt are pendant (leaves), so n=i+tn=i+t.

Every internal vertex has exactly 2 children, and every vertex other than the root is the child of exactly one vertex. So the number of non-root vertices is

n−1=2i  ⇒  i=n−12.n-1=2i\;\Rightarrow\;i=\frac{n-1}2.

Therefore

t=n−i=n−n−12=n+12.■t=n-i=n-\frac{n-1}2=\frac{n+1}2. \qquad\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 1 mark

Determine whether the integers 21, 34 and 21, 45 are pair wise relatively prime?

Answer

Integers are pairwise relatively prime if every pair among them has greatest common divisor 1.

  • 21 and 34: 21=3⋅721=3\cdot7 and 34=2⋅1734=2\cdot17 have no common prime factor, so gcd⁡(21,34)=1\gcd(21,34)=1. They are relatively prime.
  • 21 and 45: 21=3⋅721=3\cdot7 and 45=32⋅545=3^2\cdot5, so gcd⁡(21,45)=3≠1\gcd(21,45)=3\ne1. They are not relatively prime.

So the pair 21,3421,34 is relatively prime, but the integers 21,4521,45 are not; consequently the collection 21,34,4521,34,45 is not pairwise relatively prime either.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 1 mark

Is the function f(x)=x2f(x)=x^2 defined on set of integers ZZ is onto?

Answer

No. f(x)=x2f(x)=x^2 on ZZ is not onto, because the range contains only perfect squares {0,1,4,9,… }\{0,1,4,9,\dots\}. For example, −1-1 (or 22) has no integer xx with x2=−1x^2=-1 (or 22), so the range is not all of ZZ.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 1 mark

Define nn-array relation?

Answer

An nn-ary relation on sets A1,A2,…,AnA_1,A_2,\dots,A_n is a subset of the Cartesian product A1×A2×⋯×AnA_1\times A_2\times\dots\times A_n, i.e. a set of ordered nn-tuples (a1,…,an)(a_1,\dots,a_n) with ai∈Aia_i\in A_i. A binary relation is the case n=2n=2.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 1 mark

How many cables are required to form a complete mesh topology with 10 nodes?

Answer

In a complete mesh every pair of nodes needs its own cable, so the number is n(n−1)2=10⋅92=45\dfrac{n(n-1)}{2}=\dfrac{10\cdot 9}{2}=45 cables.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 1 mark

Define Hamiltonian graph with suitable example.

Answer

A Hamiltonian graph is a connected graph that has a Hamiltonian cycle, i.e. a cycle that passes through every vertex exactly once (and returns to the start).

Example: the complete graph K4K_4 with vertices a,b,c,da,b,c,d has the Hamiltonian cycle a→b→c→d→aa\to b\to c\to d\to a, so it is Hamiltonian.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 1 mark

Define Boolean matrix with an example.

Answer

A Boolean matrix (zero-one matrix) is a matrix whose entries are only 0 or 1.

Example: A=[101011]A=\begin{bmatrix}1&0&1\\0&1&1\end{bmatrix}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 1 mark

What can you say about a graph whose every edge is cut edges?

Answer

A graph in which every edge is a cut edge (bridge) contains no cycle, because an edge lying on a cycle is never a cut edge. Hence the graph is a forest; if it is connected, it is a tree.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 1 mark

In which order does the post order traversal visit the vertices in rooted tree?

Answer

Post-order traversal visits the left subtree first, then the right subtree (that is, all children from left to right), and the root last: Left, Right, Root. Every vertex is visited after all its descendants.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 4 marks

Define trivial proof and vacuous proof. Using direct proof show that difference of two rational numbers is rational.

Answer

Trivial proof: to prove p→qp\rightarrow q, if qq is known to be true then p→qp\rightarrow q is true whatever pp is.

Vacuous proof: to prove p→qp\rightarrow q, if the hypothesis pp is false then p→qp\rightarrow q is true automatically.

Direct proof that the difference of two rational numbers is rational.

Let xx and yy be rational. Then x=abx=\dfrac{a}{b} and y=cdy=\dfrac{c}{d} with integers a,b,c,da,b,c,d and b≠0b\ne0, d≠0d\ne0. Then

x−y=ab−cd=ad−bcbd.x-y=\frac{a}{b}-\frac{c}{d}=\frac{ad-bc}{bd}.

Here ad−bcad-bc and bdbd are integers (integers are closed under multiplication and subtraction) and bd≠0bd\neq 0. Hence x−yx-y is a quotient of two integers with non-zero denominator, so it is rational. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 4 marks

State Euclidean algorithm. Express the gcd(128, 325) as linear combination of these integers with integer coefficients.

Answer

Euclidean algorithm: for integers a≥b>0a\ge b>0, write a=bq+ra=bq+r with 0≤r<b0\le r<b. Then gcd⁡(a,b)=gcd⁡(b,r)\gcd(a,b)=\gcd(b,r). Repeat until the remainder is 0; the last non-zero remainder is gcd⁡(a,b)\gcd(a,b).

Finding gcd⁡(128,325)\gcd(128,325):

325=2⋅128+69325=2\cdot128+69 128=1⋅69+59128=1\cdot69+59 69=1⋅59+1069=1\cdot59+10 59=5⋅10+959=5\cdot10+9 10=1⋅9+110=1\cdot9+1 9=9⋅1+09=9\cdot1+0

So gcd⁡(128,325)=1\gcd(128,325)=1.

Back-substitution:

1=10−9=10−(59−5⋅10)=6⋅10−591=10-9=10-(59-5\cdot10)=6\cdot10-59 =6(69−59)−59=6⋅69−7⋅59=6(69-59)-59=6\cdot69-7\cdot59 =6⋅69−7(128−69)=13⋅69−7⋅128=6\cdot69-7(128-69)=13\cdot69-7\cdot128 =13(325−2⋅128)−7⋅128=13⋅325−33⋅128.=13(325-2\cdot128)-7\cdot128=13\cdot325-33\cdot128.

Hence

1=(−33)⋅128+13⋅325.1=(-33)\cdot128+13\cdot325.

Check: 13⋅325=422513\cdot325=4225, 33⋅128=422433\cdot128=4224, difference =1=1.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 4 marks

Define equivalence relation. Test the relation R={(1,1),(1,3),(2,2),(2,4),(3,1),(3,3),(4,2),(4,4)}R=\{(1,1),(1,3),(2,2),(2,4),(3,1),(3,3),(4,2),(4,4)\} defined on the set A={1,2,3,4}A=\{1,2,3,4\} is equivalence relation or not.

Answer

Definition: a relation on a set AA is an equivalence relation if it is reflexive, symmetric and transitive.

Test of R={(1,1),(1,3),(2,2),(2,4),(3,1),(3,3),(4,2),(4,4)}R=\{(1,1),(1,3),(2,2),(2,4),(3,1),(3,3),(4,2),(4,4)\} on A={1,2,3,4}A=\{1,2,3,4\}:

  • Reflexive: (1,1),(2,2),(3,3),(4,4)∈R(1,1),(2,2),(3,3),(4,4)\in R, so RR is reflexive.
  • Symmetric: (1,3)∈R(1,3)\in R and (3,1)∈R(3,1)\in R; (2,4)∈R(2,4)\in R and (4,2)∈R(4,2)\in R; the pairs (a,a)(a,a) are trivially symmetric. So RR is symmetric.
  • Transitive: checking all chains: (1,3),(3,1)⇒(1,1)∈R(1,3),(3,1)\Rightarrow(1,1)\in R; (1,3),(3,3)⇒(1,3)∈R(1,3),(3,3)\Rightarrow(1,3)\in R; (3,1),(1,3)⇒(3,3)∈R(3,1),(1,3)\Rightarrow(3,3)\in R; (3,1),(1,1)⇒(3,1)∈R(3,1),(1,1)\Rightarrow(3,1)\in R; (2,4),(4,2)⇒(2,2)∈R(2,4),(4,2)\Rightarrow(2,2)\in R; (2,4),(4,4)⇒(2,4)∈R(2,4),(4,4)\Rightarrow(2,4)\in R; (4,2),(2,4)⇒(4,4)∈R(4,2),(2,4)\Rightarrow(4,4)\in R; (4,2),(2,2)⇒(4,2)∈R(4,2),(2,2)\Rightarrow(4,2)\in R. All required pairs are in RR, so RR is transitive.

Since RR is reflexive, symmetric and transitive, it is an equivalence relation. Its equivalence classes are {1,3}\{1,3\} and {2,4}\{2,4\}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 4 marks

How can you relate domain, co-domain and range for onto and into function? If a function f:R→Rf:R\to R defined as f(x)=2x3+1f(x)=2x^3+1 then find f−1(8)f^{-1}(8) and f−1(2)f^{-1}(2) if exist.

Answer

Relation between domain, co-domain and range:

  • For any function f:A→Bf:A\to B, AA is the domain, BB the co-domain, and the range f(A)={f(x):x∈A}⊆Bf(A)=\{f(x):x\in A\}\subseteq B.
  • Onto (surjective) function: range == co-domain, i.e. every element of BB has a pre-image.
  • Into function: range is a proper subset of the co-domain, i.e. some element of BB has no pre-image.

Inverse values for f(x)=2x3+1f(x)=2x^3+1, f:R→Rf:R\to R:

ff is one-to-one (strictly increasing) and onto RR, so f−1f^{-1} exists. Solve f(x)=yf(x)=y: x=y−123x=\sqrt[3]{\dfrac{y-1}{2}}.

  • f−1(8)f^{-1}(8): 2x3+1=8⇒x3=72⇒x=7/23≈1.5182x^3+1=8\Rightarrow x^3=\dfrac72\Rightarrow x=\sqrt[3]{7/2}\approx1.518.
  • f−1(2)f^{-1}(2): 2x3+1=2⇒x3=12⇒x=1/23≈0.7942x^3+1=2\Rightarrow x^3=\dfrac12\Rightarrow x=\sqrt[3]{1/2}\approx0.794.

Both exist (they are real numbers).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 4 marks

Define permutation with repetition. Prove that C(n+1,r)=C(n,r−1)+C(n,r)C(n+1,r)=C(n,r-1)+C(n,r)

Answer

Permutation with repetition: the number of ordered arrangements of rr objects chosen from nn types when each type may be used any number of times is nrn^r. More generally, the number of distinct arrangements of nn objects of which n1,n2,…,nkn_1,n_2,\dots,n_k are alike is n!n1! n2!⋯nk!\dfrac{n!}{n_1!\,n_2!\cdots n_k!}.

Proof of C(n+1,r)=C(n,r−1)+C(n,r)C(n+1,r)=C(n,r-1)+C(n,r):

C(n,r−1)+C(n,r)=n!(r−1)! (n−r+1)!+n!r! (n−r)!C(n,r-1)+C(n,r)=\frac{n!}{(r-1)!\,(n-r+1)!}+\frac{n!}{r!\,(n-r)!}

Take the common factor n!r! (n−r+1)!\dfrac{n!}{r!\,(n-r+1)!}:

=n!r! (n−r+1)![r+(n−r+1)]=n! (n+1)r! (n+1−r)!=(n+1)!r! (n+1−r)!=C(n+1,r). ■=\frac{n!}{r!\,(n-r+1)!}\big[r+(n-r+1)\big]=\frac{n!\,(n+1)}{r!\,(n+1-r)!}=\frac{(n+1)!}{r!\,(n+1-r)!}=C(n+1,r).\ \blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 4 marks

Define isomorphism of graphs. Test whether the following graphs are isomorphic or not. (Graphs G=(V,E)G=(V,E) on vertices u1,…,u6u_1,\dots,u_6 and H=(V,E)H=(V,E) on vertices v1,…,v6v_1,\dots,v_6 are given in a figure in the original paper.)

Answer

Definition: graphs G1=(V1,E1)G_1=(V_1,E_1) and G2=(V2,E2)G_2=(V_2,E_2) are isomorphic if there is a bijection f:V1→V2f:V_1\to V_2 such that u,vu,v are adjacent in G1G_1 if and only if f(u),f(v)f(u),f(v) are adjacent in G2G_2 (adjacency is preserved in both directions).

Testing for isomorphism (method):

  1. Compare the isomorphism invariants: number of vertices, number of edges, degree sequence, and the number and lengths of cycles. If any differ, the graphs are not isomorphic.
  2. If all agree, try to build a bijection ff by matching vertices of equal degree (and equal neighbourhood degrees), e.g. ui↦vju_i\mapsto v_j.
  3. Write the adjacency matrices of GG and HH with vertices ordered by the mapping; the graphs are isomorphic exactly when the two matrices are identical, i.e. every edge uiuju_iu_j maps to an edge f(ui)f(uj)f(u_i)f(u_j) and the edge counts are equal.

If a matching bijection preserving all edges exists, the graphs are isomorphic; if a invariant fails (for instance a vertex of degree 3 in one graph with no counterpart in the other), they are not isomorphic.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 4 marks

Define source and sink vertex in directed graph. Explain adjacency matrix and incidence matrix representation of directed graph with example.

Answer

Source vertex: a vertex with in-degree 0 (only outgoing edges). Sink vertex: a vertex with out-degree 0 (only incoming edges).

Adjacency matrix of a directed graph with nn vertices is the n×nn\times n matrix A=[aij]A=[a_{ij}] with aij=1a_{ij}=1 if there is an edge from viv_i to vjv_j, and 00 otherwise.

Incidence matrix is the n×mn\times m matrix B=[bij]B=[b_{ij}] (mm edges) with bij=1b_{ij}=1 if edge eje_j leaves viv_i, bij=−1b_{ij}=-1 if eje_j enters viv_i, and 00 otherwise.

Example: vertices 1,2,31,2,3 and edges e1:1→2e_1:1\to2, e2:2→3e_2:2\to3, e3:1→3e_3:1\to3.

A=[011001000],B=[101−1100−1−1]A=\begin{bmatrix}0&1&1\\0&0&1\\0&0&0\end{bmatrix},\qquad B=\begin{bmatrix}1&0&1\\-1&1&0\\0&-1&-1\end{bmatrix}

(rows are vertices 1,2,31,2,3; columns are e1,e2,e3e_1,e_2,e_3). Vertex 1 is a source (in-degree 0) and vertex 3 is a sink (out-degree 0).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 2 marks

Express the statement "Every student in a class has studied C-programming" using quantifier.

Answer

Let P(x)P(x) be "xx has studied C-programming", with the domain of xx being the students in the class. Then the statement is

∀x P(x).\forall x\,P(x).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 2 marks

Show that a function f(n)=3n2+4n+7f(n)=3n^2+4n+7 is big-oh of g(n)=n2g(n)=n^2

Answer

f(n)f(n) is O(g(n))O(g(n)) if there are constants C,kC,k with f(n)≤C g(n)f(n)\le C\,g(n) for all n≥kn\ge k.

For n≥1n\ge1: 4n≤4n24n\le4n^2 and 7≤7n27\le7n^2, so

3n2+4n+7≤3n2+4n2+7n2=14n2.3n^2+4n+7\le3n^2+4n^2+7n^2=14n^2.

Thus with C=14C=14 and k=1k=1, f(n)≤14 n2f(n)\le14\,n^2 for all n≥1n\ge1. Hence f(n)=3n2+4n+7f(n)=3n^2+4n+7 is O(n2)O(n^2).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 AD · 2 marks

Find A∨BA\vee B and A∧BA\wedge B if: A=[1011]A=\begin{bmatrix}1&0\\1&1\end{bmatrix}, B=[1101]B=\begin{bmatrix}1&1\\0&1\end{bmatrix}.

Answer

Join (∨\vee) takes the entrywise OR, meet (∧\wedge) takes the entrywise AND.

A∨B=[1∨10∨11∨01∨1]=[1111]A\vee B=\begin{bmatrix}1\vee1&0\vee1\\1\vee0&1\vee1\end{bmatrix}=\begin{bmatrix}1&1\\1&1\end{bmatrix}

A∧B=[1∧10∧11∧01∧1]=[1001]A\wedge B=\begin{bmatrix}1\wedge1&0\wedge1\\1\wedge0&1\wedge1\end{bmatrix}=\begin{bmatrix}1&0\\0&1\end{bmatrix}

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 1 mark

Find the negation of the statement "All students have passed the exam".

Answer

With P(x)P(x): "xx has passed the exam", the statement is ∀x P(x)\forall x\,P(x), whose negation is ∃x ¬P(x)\exists x\,\neg P(x):

"There is at least one student who has not passed the exam."

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 1 mark

Find the value of −9 mod 5-9 \bmod 5.

Answer

We need −9=5q+r-9=5q+r with 0≤r<50\le r<5. Taking q=−2q=-2: −9=5(−2)+1-9=5(-2)+1, so r=1r=1.

−9 mod 5=1.-9\bmod5=1.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 1 mark

What do you mean by Boolean matrix? Give example.

Answer

A Boolean (zero-one) matrix is a matrix all of whose entries are 0 or 1. It is used, for example, to represent relations and graphs, with operations ∨\vee (OR), ∧\wedge (AND) and Boolean product.

Example: A=[101010110]A=\begin{bmatrix}1&0&1\\0&1&0\\1&1&0\end{bmatrix}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 1 mark

Under what condition ⌈x⌉−⌊x⌋=1\lceil x\rceil-\lfloor x\rfloor=1?

Answer

⌈x⌉−⌊x⌋=1\lceil x\rceil-\lfloor x\rfloor=1 exactly when xx is not an integer. If xx is an integer both are equal to xx and the difference is 0; otherwise the ceiling is the next integer above the floor.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 1 mark

Determine the type of the function f(x)=x2f(x)=x^2

Answer

For f(x)=x2f(x)=x^2 with f:R→Rf:R\to R: it is not one-to-one since f(2)=f(−2)=4f(2)=f(-2)=4, and it is not onto since negative numbers have no pre-image (the range is [0,∞)[0,\infty)). So it is a many-to-one, into function (a polynomial/quadratic function).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 1 mark

What does O(n2)O(n^2) means?

Answer

f(n)=O(n2)f(n)=O(n^2) means that ff grows no faster than a constant multiple of n2n^2: there exist constants C>0C>0 and kk such that ∣f(n)∣≤C n2|f(n)|\le C\,n^2 for all n≥kn\ge k. It describes quadratic upper-bound (time) complexity of an algorithm.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 1 mark

When is a directed graph said to be strongly connected?

Answer

A directed graph is strongly connected if for every ordered pair of vertices (u,v)(u,v) there is a directed path from uu to vv (and hence also from vv to uu), i.e. every vertex is reachable from every other vertex following edge directions.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 1 mark

How many possible lowercase words of 4 letter are there, that doesn't contain 'X' in them?

Answer

Each position can be any of the 25 lowercase letters other than 'x', so the number is 254=39062525^4=390625.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 4 marks

All stupid persons are over smart. Children of over smart persons are naughty, Ram is children of Hari. Hari is stupid. Is Ram naughty?

Answer

Let the domain be persons. Define S(x)S(x): xx is stupid; O(x)O(x): xx is over smart; C(x,y)C(x,y): xx is a child of yy; N(x)N(x): xx is naughty.

Premises:

  1. ∀x (S(x)→O(x))\forall x\,(S(x)\rightarrow O(x))
  2. ∀x ∀y ((C(x,y)∧O(y))→N(x))\forall x\,\forall y\,((C(x,y)\wedge O(y))\rightarrow N(x))
  3. C(Ram,Hari)C(\text{Ram},\text{Hari})
  4. S(Hari)S(\text{Hari})

Proof:

  • From 1 by universal instantiation: S(Hari)→O(Hari)S(\text{Hari})\rightarrow O(\text{Hari}).
  • With 4 by modus ponens: O(Hari)O(\text{Hari}).
  • From 2 by instantiation: (C(Ram,Hari)∧O(Hari))→N(Ram)(C(\text{Ram},\text{Hari})\wedge O(\text{Hari}))\rightarrow N(\text{Ram}).
  • From 3 and O(Hari)O(\text{Hari}) by conjunction: C(Ram,Hari)∧O(Hari)C(\text{Ram},\text{Hari})\wedge O(\text{Hari}).
  • By modus ponens: N(Ram)N(\text{Ram}).

Hence yes, Ram is naughty.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 4 marks

Prove that if the product of two positive integer aa and bb is even then either aa is even or bb is even.

Answer

Claim: if a,ba,b are positive integers and abab is even, then aa is even or bb is even.

Proof by contraposition. Suppose neither is even, i.e. both are odd: a=2k+1a=2k+1 and b=2m+1b=2m+1 for integers k,mk,m. Then

ab=(2k+1)(2m+1)=4km+2k+2m+1=2(2km+k+m)+1,ab=(2k+1)(2m+1)=4km+2k+2m+1=2(2km+k+m)+1,

which is odd. Thus if aa and bb are both odd, abab is odd. By contraposition, if abab is even then aa is even or bb is even. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 4 marks

Solve the recurrence relation an=an−1+an−2a_n=a_{n-1}+a_{n-2} with initial conditions a0=0a_0=0, and a1=1a_1=1.

Answer

The characteristic equation of an=an−1+an−2a_n=a_{n-1}+a_{n-2} is

r2−r−1=0⇒r=1±52.r^2-r-1=0\Rightarrow r=\frac{1\pm\sqrt5}{2}.

The roots are distinct, so

an=α(1+52)n+β(1−52)n.a_n=\alpha\left(\frac{1+\sqrt5}{2}\right)^n+\beta\left(\frac{1-\sqrt5}{2}\right)^n.

Initial conditions:

  • a0=0a_0=0: α+β=0⇒β=−α\alpha+\beta=0\Rightarrow\beta=-\alpha.
  • a1=1a_1=1: α1+52−α1−52=α5=1⇒α=15\alpha\dfrac{1+\sqrt5}{2}-\alpha\dfrac{1-\sqrt5}{2}=\alpha\sqrt5=1\Rightarrow\alpha=\dfrac1{\sqrt5}.

Therefore

an=15[(1+52)n−(1−52)n]a_n=\frac1{\sqrt5}\left[\left(\frac{1+\sqrt5}{2}\right)^n-\left(\frac{1-\sqrt5}{2}\right)^n\right]

(the Fibonacci numbers 0,1,1,2,3,5,8,…0,1,1,2,3,5,8,\dots).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 4 marks

Find the maximal element, minimal element, greatest element and least element from the poset ({3,5,9,15,24,45},/)(\{3,5,9,15,24,45\},/). Here the relation is divisibility.

Answer

Poset ({3,5,9,15,24,45},∣)(\{3,5,9,15,24,45\},\mid). Relations: 3∣9,15,24,453\mid9,15,24,45; 5∣15,455\mid15,45; 9∣459\mid45; 15∣4515\mid45.

  • Maximal elements: elements that divide no other element: 2424 and 4545.
  • Minimal elements: elements not divisible by any other element: 33 and 55.
  • Greatest element: none, since neither 2424 nor 4545 is divisible by all the elements (e.g. 4545 is not a multiple of 2424).
  • Least element: none, since neither 33 nor 55 divides all the elements.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 4 marks

Define isomorphic graph and self complementary graph. List the necessary invariants for isomorphic graphs.

Answer

Isomorphic graphs: two graphs G1G_1 and G2G_2 are isomorphic if there is a one-to-one correspondence between their vertex sets that preserves adjacency, i.e. uvuv is an edge of G1G_1 if and only if f(u)f(v)f(u)f(v) is an edge of G2G_2.

Self-complementary graph: a graph GG that is isomorphic to its complement G‾\overline G (the graph on the same vertices with exactly the edges missing from GG). Examples: the path P4P_4 and the cycle C5C_5. It must have n(n−1)4\dfrac{n(n-1)}{4} edges, so n≡0n\equiv0 or 1(mod4)1 \pmod 4.

Invariants that isomorphic graphs must share:

  • the same number of vertices;
  • the same number of edges;
  • the same degree sequence;
  • the same number of components (and connectedness);
  • the same number of cycles of each length (circuits of the same lengths);
  • the same number of vertices of each degree, with adjacent vertices having matching degrees;
  • the same adjacency-matrix structure under a suitable relabelling of vertices.

If any invariant differs, the graphs are not isomorphic; if all agree, this alone does not prove isomorphism and a mapping must be exhibited.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 4 marks

Define spanning tree. How many spanning tree are possible from wheel graph W3W_3? Find using Kirchhoff's theorem.

Answer

A spanning tree of a connected graph GG is a subgraph that contains every vertex of GG and is a tree (connected and without cycles). A spanning tree of a graph with nn vertices has exactly n−1n-1 edges.

Kirchhoff's (Matrix-Tree) theorem: the number of spanning trees of GG equals any cofactor of its Laplacian matrix L=D−AL=D-A (degree matrix minus adjacency matrix).

Wheel W3W_3: one hub joined to the 3 vertices of a triangle, i.e. 4 vertices (this is K4K_4). Each rim vertex has degree 3 and the hub has degree 3. Order the vertices h,1,2,3h,1,2,3:

L=[3−1−1−1−13−1−1−1−13−1−1−1−13]L=\begin{bmatrix}3&-1&-1&-1\\-1&3&-1&-1\\-1&-1&3&-1\\-1&-1&-1&3\end{bmatrix}

Delete the row and column of hh:

det⁡[3−1−1−13−1−1−13]=3(9−1)+1(−3−1)−1(1+3)=24−4−4=16\det\begin{bmatrix}3&-1&-1\\-1&3&-1\\-1&-1&3\end{bmatrix}=3(9-1)+1(-3-1)-1(1+3)=24-4-4=16

Hence W3W_3 has 16 spanning trees (agreeing with Cayley's formula 44−2=164^{4-2}=16).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 2 marks

Check whether the statements "Good food are not expensive" and "cheap food are not good" are logically equivalent or not.

Answer

Let G(x)G(x): "xx is good food", E(x)E(x): "xx is expensive". "Cheap" means "not expensive".

  • Statement 1, "Good food are not expensive": ∀x (G(x)→¬E(x))\forall x\,(G(x)\to\neg E(x)), equivalent to ∀x (E(x)→¬G(x))\forall x\,(E(x)\to\neg G(x)).
  • Statement 2, "Cheap food are not good": ∀x (¬E(x)→¬G(x))\forall x\,(\neg E(x)\to\neg G(x)), equivalent to ∀x (G(x)→E(x))\forall x\,(G(x)\to E(x)).

Statement 1 says good food is cheap, whereas statement 2 says good food is expensive. Take an item that is good and cheap: statement 1 holds for it but statement 2 fails.

Hence the two statements are not logically equivalent.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 2 marks

How many numbers need to be selected from the set S={1,2,3,4,5,6}S=\{1,2,3,4,5,6\} to ensure that at least one pair add up to 7?

Answer

Partition SS into the pairs that sum to 7: {1,6},{2,5},{3,4}\{1,6\},\{2,5\},\{3,4\} (3 boxes). Choosing 3 numbers, one from each pair, gives no pair summing to 7, but by the pigeonhole principle any 4th number must fall in a box already used and completes a pair.

Hence 4 numbers must be selected.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 2 marks

Prove that sum of binomial coefficients in the expansion of (x−y)n(x-y)^n is 2n2^n

Answer

By the binomial theorem

(x−y)n=∑k=0n(nk)xn−k(−y)k.(x-y)^n=\sum_{k=0}^{n}\binom{n}{k}x^{n-k}(-y)^k .

The binomial coefficients are (nk)\binom{n}{k}. To find their sum, expand (1+1)n(1+1)^n:

2n=(1+1)n=∑k=0n(nk)1n−k1k=∑k=0n(nk).2^n=(1+1)^n=\sum_{k=0}^{n}\binom{n}{k}1^{n-k}1^k=\sum_{k=0}^{n}\binom{n}{k}.

Hence (n0)+(n1)+⋯+(nn)=2n\binom n0+\binom n1+\cdots+\binom nn=2^n. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 2 marks

What is tree traversal? Explain pre order traversal with example.

Answer

Tree traversal is the process of visiting every vertex of a rooted tree exactly once in a systematic order.

Pre-order traversal (root, left, right): visit the root, then traverse the left subtree in pre-order, then the right subtree in pre-order.

Example: for the binary tree with root AA, children BB (left) and CC (right), where BB has children D,ED,E and CC has child FF (left):

Pre-order: A, B, D, E, C, FA,\,B,\,D,\,E,\,C,\,F.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 2 marks

Show that order and size of complete bipartite graph Km,nK_{m,n} is m+nm+n and m×nm\times n respectively.

Answer

In Km,nK_{m,n} the vertex set is split into two parts V1,V2V_1,V_2 with ∣V1∣=m|V_1|=m and ∣V2∣=n|V_2|=n.

Order (number of vertices) =∣V1∣+∣V2∣=m+n=|V_1|+|V_2|=m+n.

Size (number of edges): every vertex of V1V_1 is joined to every vertex of V2V_2 and there are no other edges. Each of the mm vertices of V1V_1 contributes nn edges, so the number of edges is m×nm\times n. (Check: the degree sum is m⋅n+n⋅m=2mnm\cdot n+n\cdot m=2mn, which equals 2×2\times size.) ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 AD · 2 marks

How many rearrangements of the letters of the word "SCINTILLATING" will no two I's appear together?

Answer

SCINTILLATING has 13 letters: I(2), N(2), T(2), L(2), and S, C, A, G once each.

Total arrangements: 13!2! 2! 2! 2!=622702080016=389,188,800\frac{13!}{2!\,2!\,2!\,2!}=\frac{6227020800}{16}=389{,}188{,}800

Arrangements with the two I's together (treat "II" as one block, giving 12 objects with N, T, L repeated twice): 12!2! 2! 2!=4790016008=59,875,200\frac{12!}{2!\,2!\,2!}=\frac{479001600}{8}=59{,}875{,}200

Arrangements with no two I's together: 389,188,800−59,875,200=329,313,600389{,}188{,}800-59{,}875{,}200=\mathbf{329{,}313{,}600}

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 AD · 1 mark

Is p∨¬pp\vee\neg p tautology or contradiction?

Answer

p∨¬pp\vee\neg p is a tautology: it is true for both truth values of pp (law of excluded middle).

pp¬p\neg pp∨¬pp\vee\neg p
TFT
FTT

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 AD · 1 mark

Find the negation of "All Students of BIM second semester have passed the exam".

Answer

Negation: "There is at least one student of BIM second semester who has not passed the exam."

(Symbolically ¬∀x P(x)≡∃x ¬P(x)\neg\forall x\,P(x)\equiv\exists x\,\neg P(x).)

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 AD · 1 mark

Give an example of partial order relation.

Answer

The relation ≤\le on the set of integers Z\mathbb Z is a partial order: it is reflexive (a≤aa\le a), antisymmetric (a≤ba\le b and b≤a⇒a=bb\le a\Rightarrow a=b) and transitive. Another example is set inclusion ⊆\subseteq on the power set of a set.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 AD · 1 mark

For what values of xx, ⌈x⌉=⌊x⌋+1\lceil x\rceil=\lfloor x\rfloor+1?

Answer

⌈x⌉=⌊x⌋+1\lceil x\rceil=\lfloor x\rfloor+1 holds exactly when xx is not an integer. For an integer xx both equal xx; for a non-integer xx the ceiling is the next integer above the floor.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 AD · 1 mark

Differentiate between tree and graph.

Answer

TreeGraph
A connected graph with no cycles.A set of vertices joined by edges; may have cycles, loops, parallel edges.
Always connected.May be connected or disconnected.
Exactly one path between any two vertices.May have several paths or none.
Has exactly n−1n-1 edges for nn vertices.Number of edges can be anything up to its maximum.
Every tree is a graph.Not every graph is a tree.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 AD · 1 mark

Find the order and size of complete bipartite graph K5,8K_{5,8}?

Answer

For K5,8K_{5,8}:

Order =5+8=13=5+8=\mathbf{13} vertices; size =5×8=40=5\times 8=\mathbf{40} edges.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 AD · 1 mark

List the necessary and sufficient condition for a graph to have an Euler circuit.

Answer

A graph has an Euler circuit if and only if it is connected (apart from isolated vertices) and every vertex has even degree.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 AD · 1 mark

Define a degree of a vertex in case for directed graph.

Answer

In a directed graph, the in-degree deg⁡−(v)\deg^-(v) is the number of edges ending at vv, and the out-degree deg⁡+(v)\deg^+(v) is the number of edges starting at vv. The degree of vv is deg⁡(v)=deg⁡−(v)+deg⁡+(v)\deg(v)=\deg^-(v)+\deg^+(v) (a loop adds 1 to each). Also ∑deg⁡−(v)=∑deg⁡+(v)=\sum\deg^-(v)=\sum\deg^+(v)= number of edges.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 AD · 1 mark

In how many ways can you express a word of 5 letter that do not contain the consecutive vowels.

Answer

Take the 26 English letters: 5 vowels and 21 consonants, with letters allowed to repeat. Count by the number kk of vowels, placing vowels in non-adjacent positions of the 5 places (number of position choices (5−k+1k)\binom{5-k+1}{k}):

kkposition choiceswords
01215=4,084,10121^5=4{,}084{,}101
155⋅5⋅214=4,862,0255\cdot5\cdot21^4=4{,}862{,}025
266⋅52⋅213=1,389,1506\cdot5^2\cdot21^3=1{,}389{,}150
3153⋅212=55,1255^3\cdot21^2=55{,}125

Total =4,084,101+4,862,025+1,389,150+55,125=10,390,401=4{,}084{,}101+4{,}862{,}025+1{,}389{,}150+55{,}125=\mathbf{10{,}390{,}401} words.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 AD · 4 marks

Define universal quantifier and existential quantifier. Using mathematical induction, show that n3+2nn^3+2n is divisible by 3 for all n>0n>0.

Answer

Universal quantifier ∀\forall: ∀x P(x)\forall x\,P(x) means "P(x)P(x) is true for every xx in the domain".

Existential quantifier ∃\exists: ∃x P(x)\exists x\,P(x) means "there is at least one xx in the domain for which P(x)P(x) is true".

Claim: n3+2nn^3+2n is divisible by 3 for all n≥1n\ge1.

Basis: n=1n=1: 1+2=31+2=3, divisible by 3.

Inductive step: assume k3+2k=3mk^3+2k=3m for some integer mm. Then

(k+1)3+2(k+1)=k3+3k2+3k+1+2k+2=(k3+2k)+3(k2+k+1)=3m+3(k2+k+1)=3 (m+k2+k+1),(k+1)^3+2(k+1)=k^3+3k^2+3k+1+2k+2=(k^3+2k)+3(k^2+k+1)=3m+3(k^2+k+1)=3\,(m+k^2+k+1),

which is divisible by 3. By mathematical induction, n3+2nn^3+2n is divisible by 3 for all n>0n>0. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 AD · 4 marks

Explain bubble sort algorithm and trace it to sort the list 10, 8, 13, 7, 11.

Answer

Bubble sort repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order. After each pass the largest remaining element "bubbles" to its final position at the end. The process stops when a pass makes no swaps.

for i = 1 to n-1
    for j = 1 to n-i
        if a[j] > a[j+1] then swap a[j], a[j+1]

Trace for 10, 8, 13, 7, 11:

Pass 1: compare 10,8 swap giving 8,10,13,7,11; 10,13 no swap; 13,7 swap giving 8,10,7,13,11; 13,11 swap giving 8, 10, 7, 11, 13.

Pass 2: 8,10 no swap; 10,7 swap giving 8,7,10,11,13; 10,11 no swap; result 8, 7, 10, 11, 13.

Pass 3: 8,7 swap giving 7, 8, 10, 11, 13; other comparisons need no swap.

Pass 4: no swaps, so the list is sorted: 7, 8, 10, 11, 13.

Worst-case time complexity is O(n2)O(n^2).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 AD · 4 marks

What do you mean by equivalence relation? Find the relation congruence modulo 5 defined on the set A={1,2,3,6,7,8}A=\{1,2,3,6,7,8\}. And prove that it is equivalence.

Answer

A relation RR on a set AA is an equivalence relation if it is reflexive, symmetric and transitive.

Congruence modulo 5 on A={1,2,3,6,7,8}A=\{1,2,3,6,7,8\}: a R ba\,R\,b iff 5∣(a−b)5\mid(a-b). The related pairs are

R={(1,1),(2,2),(3,3),(6,6),(7,7),(8,8),(1,6),(6,1),(2,7),(7,2),(3,8),(8,3)}.R=\{(1,1),(2,2),(3,3),(6,6),(7,7),(8,8),(1,6),(6,1),(2,7),(7,2),(3,8),(8,3)\}.

Proof that it is an equivalence relation:

  • Reflexive: a−a=0a-a=0 is divisible by 5, so (a,a)∈R(a,a)\in R for every aa.
  • Symmetric: if 5∣(a−b)5\mid(a-b) then 5∣(b−a)=−(a−b)5\mid(b-a)=-(a-b), so (b,a)∈R(b,a)\in R.
  • Transitive: if 5∣(a−b)5\mid(a-b) and 5∣(b−c)5\mid(b-c) then 5∣(a−b)+(b−c)=a−c5\mid(a-b)+(b-c)=a-c, so (a,c)∈R(a,c)\in R.

Hence RR is an equivalence relation, with classes {1,6},{2,7},{3,8}\{1,6\},\{2,7\},\{3,8\}. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 AD · 4 marks

Let f:R→Rf:R\to R and g:R→Rg:R\to R be two functions defined as f(x)=2x2+1f(x)=2x^2+1 and g(x)=x−3g(x)=x-3 respectively. Prove that (g∘f)−1=(f∘g)−1(g\circ f)^{-1}=(f\circ g)^{-1}

Answer

First compute the two composites:

(g∘f)(x)=g(2x2+1)=2x2−2,(f∘g)(x)=f(x−3)=2(x−3)2+1=2x2−12x+19.(g\circ f)(x)=g(2x^2+1)=2x^2-2,\qquad (f\circ g)(x)=f(x-3)=2(x-3)^2+1=2x^2-12x+19 .

Both composites are quadratics, so they are not one-to-one on RR (for example (g∘f)(1)=(g∘f)(−1)=0(g\circ f)(1)=(g\circ f)(-1)=0). A function that is not one-to-one has no inverse, so (g∘f)−1(g\circ f)^{-1} and (f∘g)−1(f\circ g)^{-1} do not exist as functions on RR. Moreover g∘f≠f∘gg\circ f\neq f\circ g (e.g. at x=0x=0: −2-2 versus 1919), so the stated equality cannot be proved for these functions.

What is true in general, for invertible ff and gg, is the reversal rule

(g∘f)−1=f−1∘g−1,(g\circ f)^{-1}=f^{-1}\circ g^{-1},

proved by checking (f−1∘g−1)∘(g∘f)=f−1∘(g−1∘g)∘f=f−1∘f=id(f^{-1}\circ g^{-1})\circ(g\circ f)=f^{-1}\circ(g^{-1}\circ g)\circ f=f^{-1}\circ f=\mathrm{id}, and similarly in the other order. Here gg is invertible with g−1(x)=x+3g^{-1}(x)=x+3, but ff is not (it is even), so the rule cannot be applied to this particular ff.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 AD · 4 marks

Define MST. What types of graphs are considered as isomorphic graphs?

Answer

Minimum spanning tree (MST): for a connected weighted graph, an MST is a spanning tree whose total edge weight is the smallest among all spanning trees. It can be found by Kruskal's or Prim's algorithm.

Isomorphic graphs: two graphs G1=(V1,E1)G_1=(V_1,E_1) and G2=(V2,E2)G_2=(V_2,E_2) are isomorphic if there is a one-to-one, onto function f:V1→V2f:V_1\to V_2 such that u,vu,v are adjacent in G1G_1 iff f(u),f(v)f(u),f(v) are adjacent in G2G_2. They are really the same graph drawn differently. Necessary conditions are:

  • the same number of vertices;
  • the same number of edges;
  • the same degree sequence;
  • the same number of cycles of each length and the same connectivity.

These conditions are necessary but not sufficient, so an explicit adjacency-preserving mapping is needed to confirm isomorphism.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 AD · 4 marks

What do you mean by graph traversal? Traverse the graph given below using DFS method. (Graph on vertices a-l is given in a figure in the original paper.)

Answer

Graph traversal means visiting every vertex of a graph exactly once in a systematic way. The two standard methods are depth-first search (DFS) and breadth-first search (BFS).

DFS algorithm: start at a chosen vertex, mark it visited, then repeatedly move to an unvisited neighbour (taking the smallest label first), going as deep as possible. When no unvisited neighbour remains, backtrack (using a stack or recursion) to the most recent vertex that still has an unvisited neighbour. Stop when the stack is empty.

DFS(v): mark v visited; for each neighbour w of v (in order): if w not visited: DFS(w)

Illustration: for edges a ⁣− ⁣b, a ⁣− ⁣c, b ⁣− ⁣d, b ⁣− ⁣e, c ⁣− ⁣fa\!-\!b,\ a\!-\!c,\ b\!-\!d,\ b\!-\!e,\ c\!-\!f, starting from aa: visit aa, then bb, then dd; backtrack to bb and visit ee; backtrack to aa and visit cc, then ff.

DFS order: a,b,d,e,c,fa,b,d,e,c,f. Applying the same procedure to the given graph from vertex aa (alphabetical order of neighbours) gives its DFS traversal.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 AD · 2 marks

Express the statement "All pilots are male" in to logical expression using quantifier.

Answer

Let P(x)P(x): "xx is a pilot" and M(x)M(x): "xx is male". Then

∀x (P(x)→M(x)).\forall x\,\big(P(x)\to M(x)\big).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 AD · 2 marks

Define Eulerian circuit with example?

Answer

An Eulerian circuit in a graph is a closed walk that uses every edge of the graph exactly once (it starts and ends at the same vertex). A connected graph has one iff every vertex has even degree.

Example: the triangle K3K_3 with vertices a,b,ca,b,c: the circuit a→b→c→aa\to b\to c\to a uses each of the three edges exactly once, and every vertex has degree 2 (even). Similarly the cycle C4C_4 has an Eulerian circuit.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 AD · 2 marks

Given the recurrence relation an=2an−1−3an−2a_n=2a_{n-1}-3a_{n-2} with a0=1a_0=1, a1=2a_1=2 Find a2a_2 and a3a_3.

Answer

With an=2an−1−3an−2a_n=2a_{n-1}-3a_{n-2}, a0=1a_0=1, a1=2a_1=2:

a2=2a1−3a0=4−3=1,a3=2a2−3a1=2−6=−4.a_2=2a_1-3a_0=4-3=\mathbf{1},\qquad a_3=2a_2-3a_1=2-6=\mathbf{-4}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 AD · 2 marks

Find A∨BA\vee B and A∧BA\wedge B if: A=[1101]A=\begin{bmatrix}1&1\\0&1\end{bmatrix} and B=[1010]B=\begin{bmatrix}1&0\\1&0\end{bmatrix}.

Answer

For Boolean matrices, join A∨BA\vee B takes entrywise OR and meet A∧BA\wedge B takes entrywise AND.

A∨B=[1∨11∨00∨11∨0]=[1111],A∧B=[1∧11∧00∧11∧0]=[1000].A\vee B=\begin{bmatrix}1\vee1&1\vee0\\0\vee1&1\vee0\end{bmatrix}=\begin{bmatrix}1&1\\1&1\end{bmatrix},\qquad A\wedge B=\begin{bmatrix}1\wedge1&1\wedge0\\0\wedge1&1\wedge0\end{bmatrix}=\begin{bmatrix}1&0\\0&0\end{bmatrix}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 AD Model · 1 mark

What does it mean for two propositions to be logically equivalent?

Answer

Two propositions pp and qq are logically equivalent, written p≡qp\equiv q, if they have the same truth value in every possible case, that is, p↔qp\leftrightarrow q is a tautology. For example, p→q≡¬p∨qp\to q\equiv\neg p\lor q.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 AD Model · 1 mark

Convert "If an integer is not even, then it is odd" into equivalent logical expression.

Answer

Let pp: "the integer is even" and qq: "the integer is odd". The statement is

¬p→q\neg p \to q

Since ¬p→q≡p∨q\neg p\to q\equiv p\lor q, it also says that the integer is even or odd.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 AD Model · 1 mark

Find the seventh term of (x+2y)10(x+2y)^{10}.

Answer

The general term of (x+y′)n(x+y')^n is Tr+1=(nr)xn−ry′ rT_{r+1}=\binom{n}{r}x^{n-r}y'^{\,r}. For the seventh term, r=6r=6, n=10n=10 and y′=2yy'=2y:

T7=(106)x4(2y)6=210⋅64 x4y6=13440 x4y6T_7=\binom{10}{6}x^{4}(2y)^6=210\cdot64\,x^4y^6=13440\,x^4y^6

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 AD Model · 1 mark

What do you mean by recursive algorithm.

Answer

A recursive algorithm is one that solves a problem by reducing it to smaller instances of the same problem, and that calls itself on those instances. It needs a base case (which stops the recursion) and a recursive step that moves toward the base case. Example: n!=n⋅(n−1)!n!=n\cdot(n-1)! with 0!=10!=1.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 AD Model · 1 mark

State sum rule and product rule of counting.

Answer

Sum rule. If a task can be done in one of n1n_1 ways or in one of n2n_2 ways, and the two sets of ways are disjoint, then the task can be done in n1+n2n_1+n_2 ways.

Product rule. If a procedure consists of two tasks done in sequence, the first in n1n_1 ways and the second in n2n_2 ways for each way of the first, then the procedure can be done in n1⋅n2n_1\cdot n_2 ways.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 AD Model · 1 mark

How permutation differ from combination.

Answer

A permutation counts arrangements in which order matters, P(n,r)=n!(n−r)!P(n,r)=\dfrac{n!}{(n-r)!}. A combination counts selections in which order does not matter, C(n,r)=n!r!(n−r)!C(n,r)=\dfrac{n!}{r!(n-r)!}. Hence P(n,r)=r! C(n,r)P(n,r)=r!\,C(n,r). For example, selecting 2 of {a,b,c}\{a,b,c\} gives 6 permutations but only 3 combinations.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 AD Model · 1 mark

Define wheel graph with example.

Answer

The wheel graph WnW_n is formed from the cycle graph CnC_n by adding one extra vertex (the hub) that is joined to all nn vertices of the cycle. It has n+1n+1 vertices and 2n2n edges.

Example: W4W_4 has a 4-cycle v1v2v3v4v_1v_2v_3v_4 and a hub hh joined to each viv_i, giving 5 vertices and 8 edges.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 AD Model · 1 mark

What is game tree?

Answer

A game tree is a rooted tree that represents all possible moves of a game. The root is the starting position, each vertex is a position, and each edge is a move by a player. Levels alternate between the two players, and the leaves are the end positions (win, lose or draw). It is used to find the best strategy, for example with the minimax algorithm in tic-tac-toe or chess.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 AD Model · 1 mark

Define degree of tree with example.

Answer

The degree of a vertex is the number of edges incident to it. The degree of a tree is the maximum degree of any of its vertices. (In a rooted tree it is often the maximum number of children of a vertex.)

Example: in a tree with edges ab,ac,ad,deab, ac, ad, de, the vertex aa has degree 3, dd has degree 2, and b,c,eb,c,e have degree 1, so the degree of the tree is 3.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 AD Model · 1 mark

List out any three applications of graph.

Answer

Three applications of graphs:

  1. Computer and communication networks, where vertices are computers and edges are links.
  2. Road and transport maps, where graphs are used for shortest-path problems (GPS navigation, Dijkstra's algorithm).
  3. Social networks, where vertices are people and edges are friendships.

Others include scheduling, circuit design and web page links.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 AD Model · 3 marks

Show that if nn is an integer and n3+5n^3+5 is odd, then nn is even using a proof by contraposition.

Answer

We must show p→qp\to q, where pp: "n3+5n^3+5 is odd" and qq: "nn is even". By contraposition we prove ¬q→¬p\neg q\to\neg p: if nn is odd, then n3+5n^3+5 is even.

Let nn be odd, so n=2k+1n=2k+1 for some integer kk. Then

n3+5=(2k+1)3+5=8k3+12k2+6k+6=2 (4k3+6k2+3k+3)n^3+5=(2k+1)^3+5=8k^3+12k^2+6k+6=2\,(4k^3+6k^2+3k+3)

which is 22 times an integer, so n3+5n^3+5 is even. This proves the contrapositive, and hence the original statement: if n3+5n^3+5 is odd, then nn is even. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 AD Model · 3 marks

State the pigeon hole principle. How many numbers must be selected from the set {1,3,5,7,9,11,13,15}\{1,3,5,7,9,11,13,15\} to guarantee that at least one pair of these numbers add up to 16?

Answer

Pigeonhole principle. If n+1n+1 or more objects (pigeons) are placed in nn boxes (pigeonholes), then at least one box contains two or more objects. More generally, NN objects in kk boxes put at least ⌈N/k⌉\lceil N/k\rceil objects in some box.

Numbers summing to 16. Partition the set {1,3,5,7,9,11,13,15}\{1,3,5,7,9,11,13,15\} into pairs that add up to 16:

{1,15}, {3,13}, {5,11}, {7,9}\{1,15\},\ \{3,13\},\ \{5,11\},\ \{7,9\}

These are 4 boxes. If we select 4 numbers, we can take one from each pair (for example 1, 3, 5, 7) and no two add to 16. If we select 5 numbers, two of them must come from the same pair, and those two add up to 16.

Therefore 5 numbers must be selected to guarantee a pair with sum 16.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 AD Model · 3 marks

Write a Euclidean algorithm to compute GCD of any two positive integers.

Answer

The Euclidean algorithm uses gcd⁡(a,b)=gcd⁡(b, a mod b)\gcd(a,b)=\gcd(b,\ a \bmod b) and gcd⁡(a,0)=a\gcd(a,0)=a.

procedure gcd(a, b: positive integers)
    x := a
    y := b
    while y != 0
    begin
        r := x mod y
        x := y
        y := r
    end
    return x      { x is gcd(a, b) }

Example. gcd⁡(252,105)\gcd(252,105): 252=2⋅105+42252=2\cdot105+42, 105=2⋅42+21105=2\cdot42+21, 42=2⋅21+042=2\cdot21+0. So the gcd is 2121.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 AD Model · 3 marks

Explain simple, multi and pseudo graph with example.

Answer

Simple graph. An undirected graph with no loops and no multiple edges between any pair of vertices. Example: a triangle on vertices a,b,ca,b,c with edges ab,bc,caab, bc, ca.

Multigraph. An undirected graph that may have multiple (parallel) edges between the same pair of vertices, but no loops. Example: vertices a,ba,b joined by two edges e1,e2e_1,e_2, and b,cb,c joined by one edge.

Pseudograph. A graph that may have both multiple edges and loops (an edge joining a vertex to itself). Example: vertex aa with a loop, plus two parallel edges between aa and bb.

Every simple graph is a multigraph, and every multigraph is a pseudograph.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 AD Model · 3 marks

Define binary search tree. Construct the binary search tree of: 8,3,1,10,6,14,7.

Answer

A binary search tree (BST) is a binary tree in which each vertex holds a key such that all keys in its left subtree are smaller, and all keys in its right subtree are larger, than its own key.

Construction (insert 8, 3, 1, 10, 6, 14, 7 in order):

  • 8 becomes the root.
  • 3 < 8, so it goes to the left of 8.
  • 1 < 8 and < 3, so it goes to the left of 3.
  • 10 > 8, so it goes to the right of 8.
  • 6 < 8, > 3, so it goes to the right of 3.
  • 14 > 8 and > 10, so it goes to the right of 10.
  • 7 < 8, > 3, > 6, so it goes to the right of 6.
        8
       / \
      3   10
     / \    \
    1   6    14
         \
          7

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 AD Model · 5 marks

Show that the hypotheses "If you send me an e-mail message, then I will finish writing the program," "If you do not send me an e-mail message, then I will go to sleep early," and "If I go to sleep early, then I will wake up feeling refreshed" lead to the conclusion "If I do not finish writing the program, then I will wake up feeling refreshed."

Answer

Let pp: "you send me an e-mail message", qq: "I will finish writing the program", rr: "I will go to sleep early", ss: "I will wake up feeling refreshed".

Hypotheses: p→qp\to q,  ¬p→r\ \neg p\to r,  r→s\ r\to s. Conclusion: ¬q→s\neg q\to s.

StepStatementReason
1p→qp\to qHypothesis
2¬q→¬p\neg q\to\neg pContrapositive of step 1
3¬p→r\neg p\to rHypothesis
4¬q→r\neg q\to rHypothetical syllogism (2, 3)
5r→sr\to sHypothesis
6¬q→s\neg q\to sHypothetical syllogism (4, 5)

So "If I do not finish writing the program, then I will wake up feeling refreshed." follows from the hypotheses. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 AD Model · 5 marks

State Chinese remainder theorem. Find all solution to the system of congruences.
x≡2(mod3)x\equiv 2 \pmod 3, x≡1(mod4)x\equiv 1 \pmod 4, x≡3(mod5)x\equiv 3 \pmod 5

Answer

Chinese remainder theorem. Let m1,m2,…,mkm_1,m_2,\dots,m_k be pairwise relatively prime positive integers. Then the system x≡ai(modmi)x\equiv a_i\pmod{m_i}, i=1,…,ki=1,\dots,k, has a unique solution modulo M=m1m2⋯mkM=m_1m_2\cdots m_k.

Solution. The moduli 3, 4, 5 are pairwise coprime, and M=3⋅4⋅5=60M=3\cdot4\cdot5=60.

M1=60/3=20M_1=60/3=20, M2=60/4=15M_2=60/4=15, M3=60/5=12M_3=60/5=12.

Find the inverses yiy_i of MiM_i modulo mim_i:

  • 20y1≡1(mod3)20y_1\equiv1\pmod3: 20≡220\equiv2, and 2⋅2=4≡12\cdot2=4\equiv1, so y1=2y_1=2.
  • 15y2≡1(mod4)15y_2\equiv1\pmod4: 15≡315\equiv3, and 3⋅3=9≡13\cdot3=9\equiv1, so y2=3y_2=3.
  • 12y3≡1(mod5)12y_3\equiv1\pmod5: 12≡212\equiv2, and 2⋅3=6≡12\cdot3=6\equiv1, so y3=3y_3=3.

x=2⋅20⋅2+1⋅15⋅3+3⋅12⋅3=80+45+108=233≡53(mod60)x=2\cdot20\cdot2+1\cdot15\cdot3+3\cdot12\cdot3=80+45+108=233\equiv53\pmod{60}

Check: 53=3⋅17+253=3\cdot17+2, 53=4⋅13+153=4\cdot13+1, 53=5⋅10+353=5\cdot10+3.

All solutions are x≡53(mod60)x\equiv53\pmod{60}, that is, x=53+60tx=53+60t for integer tt.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 AD Model · 5 marks

Determine whether the following graphs are isomorphic or not. (Two graphs are given in a figure in the original paper: one on vertices 1-6, one on vertices a-f.)

Answer

Two simple graphs G1=(V1,E1)G_1=(V_1,E_1) and G2=(V2,E2)G_2=(V_2,E_2) are isomorphic if there is a one-to-one, onto function f:V1→V2f:V_1\to V_2 such that u,vu,v are adjacent in G1G_1 if and only if f(u),f(v)f(u),f(v) are adjacent in G2G_2.

Method used to decide (the figure is not reproduced here, so the test is given in general form):

  1. Compare the number of vertices (6 in each graph) and the number of edges. If they differ, the graphs are not isomorphic.
  2. Compare the degree sequences (sorted lists of vertex degrees). If they differ, the graphs are not isomorphic.
  3. Compare other invariants: the number of vertices of each degree, the presence of cycles of the same lengths (such as triangles), and whether adjacent vertices have matching degrees.
  4. If all invariants agree, try to build a mapping ff from the vertices 11 to 66 onto aa to ff that matches degrees and preserves adjacency. Then check that every edge of G1G_1 maps to an edge of G2G_2, and that the edge counts are equal.

If such a mapping preserves all adjacencies, the graphs are isomorphic. If some invariant differs (for example, one graph has a triangle and the other does not, or the degree sequences differ), they are not isomorphic.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 AD Model · 5 marks

What is minimum spanning tree? Find the minimum spanning tree for the following graph by using Kruskal's algorithm. (A weighted graph on five vertices is given in a figure in the original paper.)

Answer

A spanning tree of a connected graph GG is a subgraph that contains all vertices of GG and is a tree (connected, no cycles, n−1n-1 edges for nn vertices). In a weighted graph, a minimum spanning tree (MST) is the spanning tree whose total edge weight is the smallest.

Kruskal's algorithm

  1. Sort all edges in non-decreasing order of weight.
  2. Start with an empty edge set TT.
  3. Take the next edge in order; add it to TT if it does not form a cycle with edges already in TT, otherwise discard it.
  4. Stop when TT has n−1n-1 edges.

Illustration (graph with vertices A,B,C,D,EA,B,C,D,E and edges BC=1BC=1, AB=2AB=2, AC=3AC=3, BD=4BD=4, CD=5CD=5, CE=6CE=6, DE=7DE=7)

EdgeWeightDecision
BC1accept
AB2accept
AC3reject (cycle A-B-C)
BD4accept
CD5reject (cycle B-C-D)
CE6accept (4 edges now)
DE7not needed

MST edges: BC,AB,BD,CEBC, AB, BD, CE.

Total weight=1+2+4+6=13\text{Total weight} = 1+2+4+6 = 13

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 AD Model · 10 marks

Define linear homogeneous and non-homogeneous recurrence relation with constant coefficients with example. Solve the recurrence relation an=2an−1+5an−2−6an−3a_n=2a_{n-1}+5a_{n-2}-6a_{n-3} for n≥3n\ge 3, with a0=7a_0=7, a1=−4a_1=-4 and a2=8a_2=8.

Answer

Linear homogeneous recurrence relation with constant coefficients (degree kk):

an=c1an−1+c2an−2+⋯+ckan−k,ck≠0a_n = c_1a_{n-1}+c_2a_{n-2}+\dots+c_ka_{n-k},\quad c_k\neq 0

Example: an=3an−1−2an−2a_n = 3a_{n-1}-2a_{n-2}.

Non-homogeneous: the relation has an extra term F(n)F(n) that is not a multiple of earlier terms:

an=c1an−1+⋯+ckan−k+F(n),F(n)≠0a_n = c_1a_{n-1}+\dots+c_ka_{n-k}+F(n),\quad F(n)\neq 0

Example: an=2an−1+3na_n = 2a_{n-1}+3^n.

Solution of an=2an−1+5an−2−6an−3a_n=2a_{n-1}+5a_{n-2}-6a_{n-3}, a0=7, a1=−4, a2=8a_0=7,\ a_1=-4,\ a_2=8

Characteristic equation:

r3−2r2−5r+6=0r^3-2r^2-5r+6=0

r=1r=1 is a root (1−2−5+6=01-2-5+6=0), so (r−1)(r2−r−6)=(r−1)(r−3)(r+2)=0(r-1)(r^2-r-6)=(r-1)(r-3)(r+2)=0, giving r=1,3,−2r=1,3,-2.

General solution:

an=A (1)n+B 3n+C(−2)na_n = A\,(1)^n + B\,3^n + C(-2)^n

Using the initial conditions:

  • n=0n=0: A+B+C=7A+B+C=7
  • n=1n=1: A+3B−2C=−4A+3B-2C=-4
  • n=2n=2: A+9B+4C=8A+9B+4C=8

Subtracting the first from the second gives 2B−3C=−112B-3C=-11; subtracting the second from the third gives 6B+6C=126B+6C=12, i.e. B+C=2B+C=2. So B=2−CB=2-C and 4−2C−3C=−114-2C-3C=-11, hence C=3C=3, B=−1B=-1, A=5A=5.

an=5−3n+3(−2)na_n = 5 - 3^n + 3(-2)^n

Check: a0=5−1+3=7a_0=5-1+3=7, a1=5−3−6=−4a_1=5-3-6=-4, a2=5−9+12=8a_2=5-9+12=8.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 AD Model · 10 marks

What do you mean by shortest path problem? Write Dijkstra's algorithm to find the shortest path. Apply this algorithm to find the shortest path between a to every other vertex for the following graph. (A weighted graph on vertices a-f is given in a figure in the original paper.)

Answer

The shortest path problem asks for a path between two vertices of a weighted graph such that the sum of the edge weights along it is minimum.

Dijkstra's algorithm (non-negative weights, source ss)

  1. Set d(s)=0d(s)=0 and d(v)=∞d(v)=\infty for every other vertex; mark all vertices unvisited.
  2. Choose the unvisited vertex uu with the smallest d(u)d(u) and mark it visited.
  3. For each unvisited neighbour vv of uu: if d(u)+w(u,v)<d(v)d(u)+w(u,v)<d(v), set d(v)=d(u)+w(u,v)d(v)=d(u)+w(u,v) and record uu as the predecessor of vv.
  4. Repeat steps 2-3 until all vertices are visited (or the target is visited).

Illustration (edges ab=4ab=4, ac=2ac=2, bc=1bc=1, bd=5bd=5, cd=8cd=8, ce=10ce=10, de=2de=2, df=6df=6, ef=3ef=3; source aa)

StepVisitedbbccddeeff
starta42∞\infty∞\infty∞\infty
1c (2)3-1012∞\infty
2b (3)--812∞\infty
3d (8)---1014
4e (10)----13
5f (13)-----

Shortest distances from aa: c=2c=2 (a-c), b=3b=3 (a-c-b), d=8d=8 (a-c-b-d), e=10e=10 (a-c-b-d-e), f=13f=13 (a-c-b-d-e-f).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

Questions from TU BIM Business Communication (MGT 204) 2001 AD (Board exam paper, 2001 AD), TU BIM Business Communication (MGT 204) 2002 AD (Board exam paper, 2002 AD), TU BIM Business Communication (MGT 204) 2003 AD (Board exam paper, 2003 AD), TU BIM Business Communication (MGT 204) 2005 AD (Board exam paper, 2005 AD), TU BIM Business Communication (MGT 204) 2007 AD (Board exam paper, 2007 AD), TU BIM Business Communication (MGT 204) 2008 AD (Board exam paper, 2008 AD), TU BIM Business Communication (MGT 204) 2009 AD (Board exam paper, 2009 AD), TU BIM Business Communication (MGT 204) 2010 AD (Board exam paper, 2010 AD), TU BIM Business Communication (MGT 204) 2011 AD (Board exam paper, 2011 AD), TU BIM Business Communication (MGT 204) 2012 AD (Board exam paper, 2012 AD), TU BIM Business Communication (MGT 204) 2013 AD (Board exam paper, 2013 AD), TU BIM Business Communication (MGT 204) 2014 AD (Board exam paper, 2014 AD), TU BIM Business Communication (MGT 204) 2015 AD (Board exam paper, 2015 AD), TU BIM Business Communication (MGT 204) 2016 AD (Board exam paper, 2016 AD), TU BIM Business Communication (MGT 204) 2017 AD (Board exam paper, 2017 AD), TU BIM Business Communication (MGT 204) 2018 AD (Board exam paper, 2018 AD), TU BIM Business Communication (MGT 204) 2019 AD (Board exam paper, 2019 AD), TU BIM Business Communication (MGT 204) 2021 AD (Board exam paper, 2021 AD), TU BIM Discrete Mathematics (MTH 202) 2005 AD (Board exam paper, 2005 AD), TU BIM Discrete Mathematics (MTH 202) 2007 AD (Board exam paper, 2007 AD), TU BIM Discrete Mathematics (MTH 202) 2008 AD (Board exam paper, 2008 AD), TU BIM Discrete Mathematics (MTH 202) 2009 AD (Board exam paper, 2009 AD), TU BIM Discrete Mathematics (MTH 202) 2010 AD (Board exam paper, 2010 AD), TU BIM Discrete Mathematics (MTH 202) 2011 AD (Board exam paper, 2011 AD), TU BIM Discrete Mathematics (MTH 202) 2012 AD (Board exam paper, 2012 AD), TU BIM Discrete Mathematics (MTH 202) 2013 AD (Board exam paper, 2013 AD), TU BIM Discrete Mathematics (MTH 202) 2014 AD (Board exam paper, 2014 AD), TU BIM Discrete Mathematics (MTH 202) 2016 AD (Board exam paper, 2016 AD), TU BIM Discrete Mathematics (MTH 202) 2017 AD (Board exam paper, 2017 AD), TU BIM Discrete Mathematics (MTH 202) 2018 AD (Board exam paper, 2018 AD), TU BIM Discrete Mathematics (MTH 202) 2019 AD (Board exam paper, 2019 AD), TU BIM Discrete Mathematics (MTH 202) 2021 AD (Board exam paper, 2021 AD), TU BIM Data Communication and Computer Network (ITC 214) 2001 AD (Board exam paper, 2001 AD), TU BIM Data Communication and Computer Network (ITC 214) 2002 AD (Board exam paper, 2002 AD), TU BIM Data Communication and Computer Network (ITC 214) 2004 AD (Board exam paper, 2004 AD), TU BIM Data Communication and Computer Network (ITC 214) 2005 AD (Board exam paper, 2005 AD), TU BIM Data Communication and Computer Network (ITC 214) 2009 AD (Board exam paper, 2009 AD), TU BIM Data Communication and Computer Network (ITC 214) 2010 AD (Board exam paper, 2010 AD), TU BIM Data Communication and Computer Network (ITC 214) 2011 AD (Board exam paper, 2011 AD), TU BIM Data Communication and Computer Network (ITC 214) 2012 AD (Board exam paper, 2012 AD), TU BIM Data Communication and Computer Network (ITC 214) 2013 AD (Board exam paper, 2013 AD), TU BIM Data Communication and Computer Network (ITC 214) 2014 AD (Board exam paper, 2014 AD), TU BIM Data Communication and Computer Network (ITC 214) 2015 AD (Board exam paper, 2015 AD), TU BIM Data Communication and Computer Network (ITC 214) 2016 AD (Board exam paper, 2016 AD), TU BIM Data Communication and Computer Network (ITC 214) 2017 AD (Board exam paper, 2017 AD), TU BIM Data Communication and Computer Network (ITC 214) 2018 AD (Board exam paper, 2018 AD), TU BIM Data Communication and Computer Network (ITC 214) 2019 AD (Board exam paper, 2019 AD), TU BIM Data Communication and Computer Network (ITC 214) 2021 AD (Board exam paper, 2021 AD), TU BIM Sociology for Business (SOC 201) 2001 AD (Board exam paper, 2001 AD), TU BIM Sociology for Business (SOC 201) 2002 AD (Board exam paper, 2002 AD), TU BIM Sociology for Business (SOC 201) 2003 AD (Board exam paper, 2003 AD), TU BIM Sociology for Business (SOC 201) 2005 AD (Board exam paper, 2005 AD), TU BIM Sociology for Business (SOC 201) 2008 AD (Board exam paper, 2008 AD), TU BIM Sociology for Business (SOC 201) 2009 AD (Board exam paper, 2009 AD), TU BIM Sociology for Business (SOC 201) 2011 AD (Board exam paper, 2011 AD), TU BIM Sociology for Business (SOC 201) 2012 AD (Board exam paper, 2012 AD), TU BIM Sociology for Business (SOC 201) 2013 AD (Board exam paper, 2013 AD), TU BIM Sociology for Business (SOC 201) 2014 AD (Board exam paper, 2014 AD), TU BIM Sociology for Business (SOC 201) 2015 AD (Board exam paper, 2015 AD), TU BIM Structured Programming (ITC 213) 2001 AD (Board exam paper, 2001 AD), TU BIM Structured Programming (ITC 213) 2002 AD (Board exam paper, 2002 AD), TU BIM Structured Programming (ITC 213) 2004 AD (Board exam paper, 2004 AD), TU BIM Structured Programming (ITC 213) 2007 AD (Board exam paper, 2007 AD), TU BIM Structured Programming (ITC 213) 2008 AD (Board exam paper, 2008 AD), TU BIM Structured Programming (ITC 213) 2009 AD (Board exam paper, 2009 AD), TU BIM Structured Programming (ITC 213) 2010 AD (Board exam paper, 2010 AD), TU BIM Structured Programming (ITC 213) 2012 AD (Board exam paper, 2012 AD), TU BIM Structured Programming (ITC 213) 2002 AD (Objective question paper, 2002 (20 MCQs, 0.5 marks each, full marks 10)), TU BIM Structured Programming (ITC 213) 2003 AD (Objective question paper, 2003 (20 MCQs, 0.5 marks each, full marks 10); item 10 as printed in the scan), TU BIM Structured Programming (ITC 213) 2013 AD (Board exam paper, 2013 (the scan of this paper ends after question 5)), TU BIM Structured Programming (ITC 213) 2014 AD (Board exam paper, 2014 AD), TU BIM Structured Programming (ITC 213) 2015 AD (Board exam paper, 2015 (the line "if( (m 2 ) == 0" is printed with a modulus sign that is illegible in the scan; read as m % 2)), TU BIM Structured Programming (ITC 213) 2016 AD (Board exam paper, 2016 (the first figure in question 2 is transcribed as printed)), TU BIM Structured Programming (ITC 213) 2017 AD (Board exam paper, August-September 2017), TU BIM Structured Programming (ITC 213) 2018 AD (Board exam paper, September-October 2018), TU BIM Structured Programming (ITC 213) 2021 Aug (Board exam paper, August 2021) and TU BIM Second Semester Model Questions 2022/23 (IT 232, IT 233, IT 235, IT 234, MGT 241) (Faculty of Management model question set, BIM second semester (new course), via EducateNepal). Answers are written for this site; check them against your class notes.