Skip to main content

Chapter 3

Discrete Structure (2005–2012 AD)

TU BIM past exam questions

Past questions and answers

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

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

Apply Dijkastra's algorithm to find the shortest path from the vertex A to each of the other vertices of the weighted graph given in the figure of the original paper (vertices a, b, c, d, e).

Similar questions: Find the shortest path from the vertex (2010 AD) · Use Dijkastra's algorithm to find the shortest (2011 AD) · Apply Dijkstra's algorithm to find the shortest (2012 AD)

Answer

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

  1. Set d(A)=0d(A)=0 and d(v)=∞d(v)=\infty for every other vertex. Mark all vertices as unvisited.
  2. Pick the unvisited vertex uu with the smallest d(u)d(u) and mark it permanent (visited).
  3. For every unvisited neighbour vv of uu, if d(u)+w(u,v)<d(v)d(u)+w(u,v)<d(v), then 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 permanent.

At the end, d(v)d(v) is the length of the shortest path from AA to vv, and following the predecessors back from vv to AA gives the path itself.

For the graph with vertices a,b,c,d,ea,b,c,d,e, record each step in a table with one column per vertex. Start with 0,∞,∞,∞,∞0,\infty,\infty,\infty,\infty, make aa permanent, update its neighbours, then repeatedly make the vertex with the least label permanent and relabel its neighbours. The last row of labels gives the shortest distances from AA to b,c,d,eb,c,d,e.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

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

Find the shortest path from the vertex a to each of the other vertices of the weighted graph given in the figure of the original paper (vertices a-f) by using Dijkastra's algorithm.

Similar questions: Apply Dijkastra's algorithm to find the shortest (2009 AD) · Use Dijkastra's algorithm to find the shortest (2011 AD) · Apply Dijkstra's algorithm to find the shortest (2012 AD)

Answer

Dijkstra's algorithm (source aa, non-negative weights):

  1. Set d(a)=0d(a)=0, d(v)=∞d(v)=\infty for all other vertices, and mark all vertices unvisited.
  2. Choose the unvisited vertex uu with the least label d(u)d(u) and make it 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 from step 2 until all vertices are permanent.

For the graph with vertices a,b,c,d,e,fa,b,c,d,e,f, tabulate the labels of b,c,d,e,fb,c,d,e,f after each step. The label of each vertex when it becomes permanent is the length of the shortest path from aa to it, and the shortest path itself is read off by following the recorded predecessors back to aa.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

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

Use Dijkastra's algorithm to find the shortest path from the vertex A to each of the other vertices of the weighted graph given in the figure of the original paper (vertices A-G).

Similar questions: Find the shortest path from the vertex (2010 AD) · Apply Dijkastra's algorithm to find the shortest (2009 AD) · Apply Dijkstra's algorithm to find the shortest (2012 AD)

Answer

Dijkstra's algorithm from source AA:

  1. Give AA the label 00 and every other vertex the label ∞\infty.
  2. Make permanent the temporary-labelled vertex uu with the smallest label.
  3. For each neighbour vv of uu that is not permanent, replace its label by min⁡(label(v), label(u)+w(u,v))\min\big(\text{label}(v),\ \text{label}(u)+w(u,v)\big), remembering the predecessor.
  4. Repeat steps 2 and 3 until all vertices are permanent.

At the end, each label is the shortest distance from AA, and following the predecessors back from any vertex gives its shortest path.

The weighted graph on vertices AA to GG is given in a figure in the original paper, which is not reproduced here, so the particular distances and paths cannot be stated.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

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

Apply Dijkstra's algorithm to find the shortest path from the vertex "a" to each of other vertices of the weighted graph G(V,E)G(V,E) given in the figure of the original paper (vertices a-f).

Similar questions: Apply Dijkastra's algorithm to find the shortest (2009 AD) · Find the shortest path from the vertex (2010 AD) · Use Dijkastra's algorithm to find the shortest (2011 AD)

Answer

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

  1. Set d(a)=0d(a)=0 and d(v)=∞d(v)=\infty for all other vertices; all vertices are temporary.
  2. Make permanent the temporary vertex 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 its predecessor.
  4. Repeat steps 2 and 3 until all of b,…,fb,\dots,f are permanent.

For the given weighted graph, form a table with a column for each of a,b,c,d,e,fa,b,c,d,e,f. The first row is 0,∞,∞,∞,∞,∞0,\infty,\infty,\infty,\infty,\infty. Make aa permanent and label its neighbours with the edge weights, then at each later row fix the smallest temporary label and relabel its neighbours using step 3. The final labels are the shortest distances from aa to b,c,d,e,fb,c,d,e,f, and tracing the predecessors back from each vertex to aa gives the corresponding shortest path.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

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

Draw a graph with six vertices which is (a) Hamiltonian but not Eulerian and Eulerian but not Hamiltonian.

Similar questions: Hamiltonian not Eulerian six vertices (2007 AD) · Explain the difference between a Hamiltonian graph (2010 AD)

Answer

(a) Hamiltonian but not Eulerian. Take the 6-cycle v1v2v3v4v5v6v1v_1v_2v_3v_4v_5v_6v_1 and add the chord v1v4v_1v_4. The cycle v1v2v3v4v5v6v1v_1v_2v_3v_4v_5v_6v_1 visits every vertex once, so the graph is Hamiltonian. But v1v_1 and v4v_4 have degree 3 (odd), so it has no Euler circuit and is not Eulerian.

(b) Eulerian but not Hamiltonian. Take the complete bipartite graph K2,4K_{2,4} with parts {u1,u2}\{u_1,u_2\} and {w1,w2,w3,w4}\{w_1,w_2,w_3,w_4\}. The degrees are 44 for u1,u2u_1,u_2 and 22 for each wiw_i, all even, and the graph is connected, so it has an Euler circuit, e.g. u1w1u2w2u1w3u2w4u1u_1w_1u_2w_2u_1w_3u_2w_4u_1. A Hamiltonian cycle would alternate between the two parts, so it would need as many vertices in each part, but the parts have 2 and 4 vertices. Hence it is not Hamiltonian.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

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

Draw a graph with six vertices which is
i) Hamiltonian but not Eulerian ii) Eulerian but not Hamiltonian.

Similar questions: Hamiltonian and Eulerian graphs six vertices (2005 AD) · Explain the difference between a Hamiltonian graph (2010 AD)

Answer

(i) Hamiltonian but not Eulerian: take the 6-cycle v1v2v3v4v5v6v1v_1v_2v_3v_4v_5v_6v_1 and add the chord v1v4v_1v_4. The cycle visits every vertex once, so the graph is Hamiltonian. But v1v_1 and v4v_4 now have degree 3 (odd), so no Eulerian circuit exists.

(ii) Eulerian but not Hamiltonian: take K2,4K_{2,4}, with vertices x,yx,y each joined to all of w1,w2,w3,w4w_1,w_2,w_3,w_4. Here deg⁡x=deg⁡y=4\deg x=\deg y=4 and deg⁡wi=2\deg w_i=2, all even and the graph is connected, so it is Eulerian. A Hamiltonian cycle would have to alternate between the two sides, which needs equal numbers of vertices on each side, but the sides have 2 and 4. So it is not Hamiltonian.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

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

Explain the difference between a Hamiltonian graph and an Eulerian graph. Draw a graph with 6 vertices which is a) Hamiltonian but not Eulerian. B) Eulerian but not Hamiltonian c) Both Eulerian and Hamiltonian.

Similar questions: Hamiltonian and Eulerian graphs six vertices (2005 AD) · Hamiltonian not Eulerian six vertices (2007 AD)

Answer

Difference. A Hamiltonian graph has a cycle passing through every vertex exactly once. An Eulerian graph has a closed trail (circuit) passing through every edge exactly once; a connected graph is Eulerian iff all vertex degrees are even.

Let the six vertices be 1,…,61,\dots,6.

(a) Hamiltonian but not Eulerian. The 6-cycle 1-2-3-4-5-6-11\text{-}2\text{-}3\text{-}4\text{-}5\text{-}6\text{-}1 plus the chord 1414. The cycle is a Hamiltonian cycle, but vertices 1 and 4 have degree 3 (odd), so there is no Euler circuit.

(b) Eulerian but not Hamiltonian. A triangle v,a,bv,a,b and a 4-cycle v,c,d,ev,c,d,e sharing the vertex vv. All degrees are even (vv has degree 4, others 2), so an Euler circuit exists. But vv is a cut vertex, so no cycle can visit all six vertices; there is no Hamiltonian cycle.

(c) Both. The 6-cycle C6C_6: every degree is 2 (Eulerian) and the cycle itself passes through all vertices (Hamiltonian).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

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

What do you mean by combination? What do you mean by the pigeonhole Principle? Find the minimum number of students in a class to be sure that three of them are born in the same month.

Similar questions: Combination and pigeonhole same month (2007 AD) · Find the minimum number of students in (2009 AD)

Answer

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

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

Pigeonhole principle. If nn pigeons are placed in kk holes with n>kn>k, some hole contains at least two pigeons. More generally, if nn objects are placed in kk boxes, some box contains at least ⌈n/k⌉\lceil n/k\rceil objects.

Students. Treat the 1212 months as boxes. If there are 2424 students, two in each month is possible, so 2424 is not enough. With 2⋅12+1=252\cdot 12+1=25 students, some month has at least ⌈25/12⌉=3\lceil 25/12\rceil=3 students.

The minimum number is 25.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Asked 2 times
  • 2007 AD · 4 marks
  • 2008 AD · 4 marks

Define isomorphic graph & isomorphism. Shows that the following set of graph are not isomorphic. (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

Isomorphic graphs: 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 iff ϕ(u),ϕ(v)\phi(u),\phi(v) are adjacent in G2G_2. The bijection ϕ\phi is the isomorphism.

Showing two graphs are not isomorphic: it is enough to find one property preserved by isomorphism on which they differ:

  • the number of vertices, or the number of edges;
  • the degree sequence;
  • the presence of a cycle of a given length, or a circuit.

For G1G_1 and G2G_2 (both with 6 vertices), counting degrees shows that they have different degree sequences, or that one contains a cycle of a length the other lacks. For example, a vertex of degree 3 adjacent to a pendant vertex in one graph has no counterpart in the other. Since the invariant differs, no adjacency-preserving bijection can exist, so G1≇G2G_1\not\cong G_2.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Asked 2 times
  • 2007 AD · 2 marks
  • 2008 AD · 2 marks

Define spanning tree. Draw all spanning trees of the graph given in the figure of the original paper (a bow-tie graph: two triangles sharing a common vertex).

Answer

Spanning tree: a subgraph of a connected graph GG that is a tree and contains all vertices of GG.

Let the bow-tie have centre cc and triangles c,a,bc,a,b and c,d,ec,d,e. It has 5 vertices, so each spanning tree has 4 edges. A tree must drop exactly one edge from each triangle, since dropping two from one triangle would disconnect a vertex. Each triangle has 3 ways to drop one edge, giving 3×3=93\times3=9 spanning trees.

Choose the left part from {ca,cb}\{ca,cb\}, {ca,ab}\{ca,ab\}, {cb,ab}\{cb,ab\} and the right part from {cd,ce}\{cd,ce\}, {cd,de}\{cd,de\}, {ce,de}\{ce,de\}. Every combination of one left choice and one right choice is a spanning tree:

  1. ca,cb,cd,ceca,cb,cd,ce
  2. ca,cb,cd,deca,cb,cd,de
  3. ca,cb,ce,deca,cb,ce,de
  4. ca,ab,cd,ceca,ab,cd,ce
  5. ca,ab,cd,deca,ab,cd,de
  6. ca,ab,ce,deca,ab,ce,de
  7. cb,ab,cd,cecb,ab,cd,ce
  8. cb,ab,cd,decb,ab,cd,de
  9. cb,ab,ce,decb,ab,ce,de

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Asked 2 times
  • 2008 AD · 4 marks
  • 2011 AD · 4 marks

Define simple and multi graph. What does isolated vertex mean? Prove that number of an odd vertex in a graph is always even.

Answer

Simple graph. A graph with no loops and no parallel (multiple) edges between any pair of vertices.

Multigraph. A graph that may have several edges joining the same pair of vertices (parallel edges); loops are allowed in some definitions.

Isolated vertex. A vertex of degree 0, that is, one not incident with any edge.

Theorem. In any graph the number of odd-degree vertices is even.

Proof. Each edge contributes 2 to the sum of the degrees, so

∑v∈Vdeg⁡v=2∣E∣,\sum_{v\in V}\deg v=2|E|,

which is even. Split the vertices into the set OO of odd-degree vertices and the set E′E' of even-degree vertices:

∑v∈Odeg⁡v=2∣E∣−∑v∈E′deg⁡v=even.\sum_{v\in O}\deg v=2|E|-\sum_{v\in E'}\deg v=\text{even}.

A sum of odd numbers is even only if the number of terms is even. Hence ∣O∣|O| is even. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Asked 2 times
  • 2011 AD · 1 mark
  • 2013 AD · 1 mark

What is a full binary tree?

Answer

A full binary tree is a rooted tree in which every internal vertex has exactly two children (so every vertex has either 00 or 22 children).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 4 marks

Define composition of two functions. How is it denoted? If f:R→Rf:\mathbb{R}\to\mathbb{R} defined by f(x)=3x−4f(x)=3x-4 and g:R→Rg:\mathbb{R}\to\mathbb{R} defined by g(x)=x/(x−2)g(x)=x/(x-2), x≠2x\neq 2, find the composition of ff and gg, and the composition of gg and ff if they defined.

Similar questions: Define the composition of two functions. How (2011 AD)

Answer

Definition. If g:A→Bg:A\to B and f:B→Cf:B\to C, the composition of gg followed by ff is the function f∘g:A→Cf\circ g:A\to C given by (f∘g)(x)=f(g(x))(f\circ g)(x)=f(g(x)). It is denoted f∘gf\circ g (also written fgfg).

Here f(x)=3x−4f(x)=3x-4 and g(x)=xx−2g(x)=\dfrac{x}{x-2}, x≠2x\ne2.

(f∘g)(x)=f(g(x))=3⋅xx−2−4=3x−4x+8x−2=8−xx−2,x≠2.(f\circ g)(x)=f(g(x))=3\cdot\frac{x}{x-2}-4=\frac{3x-4x+8}{x-2}=\frac{8-x}{x-2},\quad x\neq2.

(g∘f)(x)=g(f(x))=3x−4(3x−4)−2=3x−43x−6=3x−43(x−2),x≠2.(g\circ f)(x)=g(f(x))=\frac{3x-4}{(3x-4)-2}=\frac{3x-4}{3x-6}=\frac{3x-4}{3(x-2)},\quad x\neq 2.

Both compositions are defined for all real x≠2x\ne2 (for g∘fg\circ f we need f(x)≠2f(x)\neq2, i.e. x≠2x\ne 2).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 4 marks

Define undirected graph with an example. In any graph prove that the number of odd vertices is always even.

Similar questions: Trivial graph odd vertices even (2007 AD)

Answer

Definition. An undirected graph G=(V,E)G=(V,E) consists of a set VV of vertices and a set EE of edges, each edge being an unordered pair of vertices. Example: V={a,b,c,d}V=\{a,b,c,d\}, E={ab,bc,cd,da,ac}E=\{ab,bc,cd,da,ac\}.

Theorem. In any graph, the number of vertices of odd degree is even.

Proof. By the handshaking lemma, ∑vdeg⁡(v)=2∣E∣\sum_{v}\deg(v)=2|E|, which is even. Split the vertices into VeV_e (even degree) and VoV_o (odd degree):

∑v∈Vedeg⁡(v)+∑v∈Vodeg⁡(v)=2∣E∣.\sum_{v\in V_e}\deg(v)+\sum_{v\in V_o}\deg(v)=2|E|.

The first sum is a sum of even numbers, so it is even. Hence ∑v∈Vodeg⁡(v)=2∣E∣−(even)\sum_{v\in V_o}\deg(v)=2|E|-(\text{even}) is even. But it is a sum of ∣Vo∣|V_o| odd numbers, and such a sum is even only if the number of terms is even. Therefore ∣Vo∣|V_o| is even. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 4 marks

What do you mean by a regular graph? Show that an rr-regular graph of odd degree consists of even number of vertices. Also show that the complete graph with nn vertices is the regular graph of degree n−1n-1.

Similar questions: Show that an r-regular graph of odd (2010 AD)

Answer

Regular graph. A graph in which every vertex has the same degree is regular; if that degree is rr, it is rr-regular.

Claim 1. An rr-regular graph with rr odd has an even number of vertices.

Let there be nn vertices. The sum of degrees is nrnr, and by the handshaking lemma nr=2∣E∣nr=2|E|, which is even. Since rr is odd, nn must be even. ■\blacksquare

Claim 2. The complete graph KnK_n is regular of degree n−1n-1.

In KnK_n every vertex is joined by exactly one edge to each of the other n−1n-1 vertices, and there are no loops or multiple edges. So every vertex has degree n−1n-1, and KnK_n is (n−1)(n-1)-regular. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 4 marks

Define tree in graph theory. Prove that in any tree TT of order two or more has at least two pendant vertices.

Similar questions: Define tree in graph theory with examples (2011 AD)

Answer

Definition. A tree is a connected graph with no cycles. A pendant vertex is a vertex of degree 1.

Theorem. A tree TT with n≥2n\ge2 vertices has at least two pendant vertices.

Proof. A tree with nn vertices has n−1n-1 edges, so the sum of degrees is 2(n−1)=2n−22(n-1)=2n-2. Because TT is connected and n≥2n\ge2, every vertex has degree at least 1. Suppose at most one vertex has degree 1. Then the other n−1n-1 vertices have degree at least 2, 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. Therefore at least two vertices have degree 1. ■\blacksquare

(Alternatively, the end vertices of a longest path in TT are pendant, since any other neighbour of an end vertex would either extend the path or create a cycle.)

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 4 marks

Prove that a graph is connected if and only if it has a sub-graph that is a spanning tree.

Similar questions: Tree spanning tree connected iff (2007 AD)

Answer

Claim. A graph GG is connected if and only if it has a subgraph that is a spanning tree.

(⇐\Leftarrow) Let TT be a spanning tree of GG. TT contains all vertices of GG and is connected, so any two vertices of GG 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 and a spanning tree. Otherwise, choose a cycle and delete one of its edges. Removing an edge of a cycle does not disconnect the graph, since any path using that edge can go round the rest of the cycle. The resulting graph is still connected and spans all vertices. Repeat while cycles remain. Since GG has finitely many edges, the process ends with a connected graph with no cycles that contains all vertices, which is a spanning tree of GG. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 2 marks

If P={{1,2,3},{4}}P=\{\{1,2,3\},\{4\}\} is a partition of the set A={1,2,3,4}A=\{1,2,3,4\}, find the equivalence relation RR on AA determined by the partition.

Similar questions: Define equivalence relation. Show that the relation (2010 AD)

Answer

The relation determined by a partition relates two elements exactly when they lie in the same block. The block {1,2,3}\{1,2,3\} gives all 9 ordered pairs of its elements and the block {4}\{4\} gives (4,4)(4,4):

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

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 2 marks

Show that the set of odd positive integers is countable.

Similar questions: Show that the set of odd positive (2009 AD)

Answer

A set is countable if it can be put in one-to-one correspondence with the positive integers (or is finite). Define f:Z+→{1,3,5,… }f:\mathbb{Z}^+\to\{1,3,5,\dots\} by

f(n)=2n−1.f(n)=2n-1.

It is one-to-one, since 2n−1=2m−12n-1=2m-1 gives n=mn=m, and onto, since every odd positive integer kk equals f ⁣(k+12)f\!\left(\frac{k+1}{2}\right). So the odd positive integers can be listed 1,3,5,7,…1,3,5,7,\dots and the set is countable (countably infinite).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 1 mark

How many edges are there in a complete graph K9K_9.

Similar questions: How many edges and vertices are there (2011 AD)

Answer

∣E(Kn)∣=n(n−1)2⇒∣E(K9)∣=9⋅82=36.|E(K_n)|=\frac{n(n-1)}{2}\Rightarrow |E(K_9)|=\frac{9\cdot8}{2}=36.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 4 marks

What do you mean by combination illustrating with example? What do you mean by the Pigeon hole principle? Find the minimum number of students in a class to be sure that three of them are born in the same month.

Similar questions: What do you mean by combination? What (2011 AD)

Answer

Combination: a selection of rr objects from nn distinct objects in which order does not matter: C(n,r)=n!r!(n−r)!.C(n,r)=\frac{n!}{r!(n-r)!}. For example, choosing 2 people from {A,B,C}\{A,B,C\} gives C(3,2)=3C(3,2)=3 selections: AB,AC,BCAB, AC, BC.

Pigeonhole principle: if more than kk objects are placed into kk boxes, some box contains at least two objects. More generally, if NN objects go into kk boxes, some box has at least ⌈N/k⌉\lceil N/k\rceil objects.

Three in the same month: there are 12 months (boxes). With 2424 students, each month could hold exactly 2. With 2⋅12+1=252\cdot12+1=25 students, some month must have at least ⌈25/12⌉=3\lceil 25/12\rceil=3.

The minimum number of students is 25.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 4 marks

Define a graph? What is a trivial graph? Prove that the number of odd vertices in a graph is always even.

Similar questions: Odd vertices always even (2005 AD)

Answer

Graph: G=(V,E)G=(V,E) with a non-empty set VV of vertices and a set EE of edges, each joining two vertices.

Trivial graph: a graph with a single vertex and no edges.

Theorem: the number of odd-degree vertices in a graph is even.

Proof: each edge adds 2 to the total degree, so ∑vdeg⁡(v)=2∣E∣\sum_{v}\deg(v)=2|E|, which is even. Let VeV_e be the set of even-degree vertices and VoV_o the set of odd-degree vertices. Then ∑v∈Vodeg⁡(v)=2∣E∣−∑v∈Vedeg⁡(v),\sum_{v\in V_o}\deg(v)=2|E|-\sum_{v\in V_e}\deg(v), which is even. A sum of odd numbers is even only if it has an even number of terms, so ∣Vo∣|V_o| is even. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 4 marks

Define a tree. What is meant by a spanning tree of a graph GG? Prove that a graph is connected if and only if it has a sub-graph that is a spanning tree.

Similar questions: Connected iff has spanning tree (2005 AD)

Answer

Tree: a connected graph with no cycles.

Spanning tree: a subgraph of GG that is a tree and contains all vertices of GG.

Theorem: GG is connected iff it has a spanning tree.

Proof:

(⇐\Leftarrow) If GG has a spanning tree TT, then TT is connected and contains every vertex, so any two vertices of GG 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 already a tree and is its own spanning tree. Otherwise, pick a cycle and delete one of its edges. The graph stays connected, because any path through the deleted edge can go around the rest of the cycle, and no vertex is removed. Repeat while cycles remain. The process stops after finitely many steps and leaves a connected, acyclic graph on all the vertices, which is a spanning tree. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 4 marks

Find the minimal spanning tree of the weighted graph given in the figure of the original paper (vertices A-F).

Similar questions: Minimal spanning tree communication network (2008 AD)

Answer

Use Kruskal's algorithm (or Prim's) on the weighted graph with vertices AA to FF.

  1. List all edges in increasing order of weight.
  2. Add the smallest edge to the tree.
  3. Take the next smallest edge and add it only if it does not form a cycle with the edges already chosen.
  4. Stop when 6−1=56-1=5 edges have been chosen.

The chosen 5 edges connect all six vertices, and their weight sum is the minimum possible. The tree has exactly n−1=5n-1=5 edges.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 4 marks

Define rooted tree consider the following addresses which are in random order.
0, 2.2.1, 3.2, 2.2.1.1, 1, 2.1, 3.2.1.1, 3.1.1.2, 3.1, 2.2, 2.1.1, 3.2.1, 1.1, 3.2.1.2, 2
a) Place the addresses in lexicographic order. b) Draw the corresponding ordered rooted tree.

Similar questions: Rooted tree addresses lexicographic (2008 AD)

Answer

Rooted tree: a tree in which one vertex is distinguished as the root. Every other vertex is reached from the root by a unique path. In an ordered rooted tree the children of each vertex are ordered, and the address of a vertex is its parent's address followed by its position among its siblings.

(a) Lexicographic order:

0, 1, 1.1, 2, 2.1, 2.1.1, 2.2, 2.2.1, 2.2.1.1, 3.1, 3.1.1.2, 3.2, 3.2.1, 3.2.1.1, 3.2.1.2

(b) Ordered rooted tree (the root is 0; indentation shows the parent-child relation):

0
├── 1
│   └── 1.1
├── 2
│   ├── 2.1
│   │   └── 2.1.1
│   └── 2.2
│       └── 2.2.1
│           └── 2.2.1.1
└── 3
    ├── 3.1
    │   └── 3.1.1
    │       └── 3.1.1.2
    └── 3.2
        └── 3.2.1
            ├── 3.2.1.1
            └── 3.2.1.2

The vertices 3, 3.1.1 (and 3.1.1.1) do not appear in the list, but they are the ancestors that connect the listed addresses to the root.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 4 marks

Define a function from a set AA to a set BB? If f:R→Rf:R\to R defined by f(x)=5x−3f(x)=5x-3 and g:R→Rg:R\to R defined by g(x)=3x−1g(x)=3x-1. Find a formula for the inverse function f−1:R→Rf^{-1}:R\to R and g∘f:R→Rg\circ f:R\to R

Similar questions: Define a function from a set A (2009 AD)

Answer

Function. A function ff from AA to BB is a rule that assigns to each element a∈Aa\in A exactly one element f(a)∈Bf(a)\in B. AA is the domain and BB the codomain.

Inverse of f(x)=5x−3f(x)=5x-3. Put y=5x−3y=5x-3 and solve for xx: x=y+35x=\dfrac{y+3}{5}. Hence

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

Check: f(f−1(x))=5⋅x+35−3=xf(f^{-1}(x))=5\cdot\frac{x+3}{5}-3=x.

Composition g∘fg\circ f.

(g∘f)(x)=g(f(x))=3(5x−3)−1=15x−10.(g\circ f)(x)=g(f(x))=3(5x-3)-1=15x-10.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 4 marks

What do you mean by Binomial theorem for positive index nn? What are the binomial coefficients? Find the middle terms of (2x+12x)15\left(2x+\dfrac{1}{2x}\right)^{15}.

Similar questions: What do you mean by Binomial theorem (2009 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}.

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. For n=15n=15 there are 16 terms, so the middle terms are the 8th and 9th. The general term is

Tr+1=(15r)(2x)15−r(12x)r=(15r)(2x)15−2r.T_{r+1}=\binom{15}{r}(2x)^{15-r}\left(\frac{1}{2x}\right)^{r}=\binom{15}{r}(2x)^{15-2r}.

  • r=7r=7: T8=(157)(2x)1=6435⋅2x=12870 xT_8=\binom{15}{7}(2x)^{1}=6435\cdot 2x=12870\,x.
  • r=8r=8: T9=(158)(2x)−1=64352xT_9=\binom{15}{8}(2x)^{-1}=\dfrac{6435}{2x}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 4 marks

Define rooted tree consider the following addresses which are in random order.
1, 2.2.1, 3.2, 2.2.1.1, 1.1.1, 0, 2.1, 3.2.1.1, 3, 3.1, 2.2, 2.1.1, 3.2.1, 1.1, 3.2.1.2, 2, 1.1.2.
i. Place the addresses in lexicographic order. ii. Draw the corresponding ordered rooted tree.

Similar questions: Rooted tree addresses lexicographic (2007 AD)

Answer

Rooted tree. A tree in which one vertex is designated the root, and every edge is directed away from the root. Each vertex other than the root has a unique parent. In an ordered rooted tree the children of each vertex are ordered, and the vertices are labelled by addresses (root 00, its children 1,2,3,…1,2,3,\dots, the children of aa being a.1,a.2,…a.1,a.2,\dots).

i. Lexicographic order.

0, 1, 1.1, 1.1.1, 1.1.2, 2, 2.1, 2.1.1, 2.2, 2.2.1, 2.2.1.1, 3, 3.1, 3.2, 3.2.1, 3.2.1.1, 3.2.1.2.0,\ 1,\ 1.1,\ 1.1.1,\ 1.1.2,\ 2,\ 2.1,\ 2.1.1,\ 2.2,\ 2.2.1,\ 2.2.1.1,\ 3,\ 3.1,\ 3.2,\ 3.2.1,\ 3.2.1.1,\ 3.2.1.2.

ii. Tree. The root 00 has three children 1,2,31,2,3.

  • 11 has child 1.11.1, which has children 1.1.11.1.1 and 1.1.21.1.2.
  • 22 has children 2.12.1 and 2.22.2. 2.12.1 has child 2.1.12.1.1. 2.22.2 has child 2.2.12.2.1, which has child 2.2.1.12.2.1.1.
  • 33 has children 3.13.1 and 3.23.2. 3.23.2 has child 3.2.13.2.1, which has children 3.2.1.13.2.1.1 and 3.2.1.23.2.1.2.
0
├─1 ─ 1.1 ─┬─ 1.1.1
│          └─ 1.1.2
├─2 ─┬─ 2.1 ─ 2.1.1
│    └─ 2.2 ─ 2.2.1 ─ 2.2.1.1
└─3 ─┬─ 3.1
     └─ 3.2 ─ 3.2.1 ─┬─ 3.2.1.1
                      └─ 3.2.1.2

It has 17 vertices and 16 edges, as a tree should.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 2 marks

Find the minimal spanning tree of the communication network (weighted graph) given in the figure of the original paper (vertices a, b, c, d, e).

Similar questions: Minimal spanning tree given graph (2007 AD)

Answer

A minimal spanning tree of a connected weighted graph with 5 vertices has 4 edges, and is built greedily (Kruskal or Prim).

Kruskal's method.

  1. Sort all edges by increasing weight.
  2. Take the next lightest edge; keep it if it joins two different components, and reject it if it would form a cycle.
  3. Stop when 4 edges (=n−1=n-1) have been kept.

Prim's method. Start at any vertex, and repeatedly add the cheapest edge joining a vertex already in the tree to one outside it, until a,b,c,d,ea,b,c,d,e are all included.

The weights are in the figure of the original paper, which is not reproduced here. The tree obtained by either method has the same minimum total weight, equal to the sum of the four selected edge weights.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 1 mark

Find the minimum number of students in a class to be sure that three of them are born in the same month. (Use the pigeonhole principle)

Similar questions: What do you mean by combination? What (2011 AD)

Answer

There are 12 months. Using the generalised pigeonhole principle, to be sure some month has at least 3 students we need N>2×12=24N>2\times12=24, so N=25N=25.

With 24 students, two in each month is possible, but with 25 students at least three share a month.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 4 marks

Define a function from a set AA to a set BB? If f:R→Rf:R\to R define by f(x)=4x−3f(x)=4x-3 and g:R→Rg:R\to R define by g(x)=6x−2g(x)=6x-2. Find a formula for the inverse function f−1:R→Rf^{-1}:R\to R and g∘f:R→Rg\circ f:R\to R.

Similar questions: Inverse function 5x-3 and 3x-1 (2008 AD)

Answer

A function ff from a set AA to a set BB is a rule that assigns to each element a∈Aa\in A exactly one element f(a)∈Bf(a)\in B. Equivalently, it is a relation f⊆A×Bf\subseteq A\times B in which every a∈Aa\in A appears as the first coordinate of exactly one ordered pair.

Inverse of ff. f(x)=4x−3f(x)=4x-3 is one-to-one and onto. Put y=4x−3y=4x-3, so x=y+34x=\dfrac{y+3}{4}. Hence f−1(y)=y+34.f^{-1}(y)=\frac{y+3}{4}.

Composition g∘fg\circ f. (g∘f)(x)=g(f(x))=g(4x−3)=6(4x−3)−2=24x−20.(g\circ f)(x)=g(f(x))=g(4x-3)=6(4x-3)-2=24x-20.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 4 marks

What do you mean by Binomial theorem for positive index nn? What are the binomial coefficients? Find the 7th term of (x+1x)10\left(x+\dfrac{1}{x}\right)^{10}.

Similar questions: Middle terms of (2x+1/2x)^15 (2008 AD)

Answer

Binomial theorem. For a positive integer nn, (x+y)n=∑k=0nC(n,k) xn−kyk=C(n,0)xn+C(n,1)xn−1y+⋯+C(n,n)yn.(x+y)^n=\sum_{k=0}^{n}C(n,k)\,x^{n-k}y^{k}=C(n,0)x^n+C(n,1)x^{n-1}y+\dots+C(n,n)y^n .

Binomial coefficients. The numbers C(n,k)=n!k!(n−k)!C(n,k)=\dfrac{n!}{k!(n-k)!}, k=0,1,…,nk=0,1,\dots,n, which appear as the coefficients in this expansion.

7th term of (x+1x)10\left(x+\dfrac1x\right)^{10}. The (k+1)(k+1)-th term is C(10,k)x10−kx−kC(10,k)x^{10-k}x^{-k}. For the 7th term k=6k=6: T7=C(10,6) x4(1x)6=210 x−2=210x2.T_7=C(10,6)\,x^{4}\left(\frac1x\right)^{6}=210\,x^{-2}=\frac{210}{x^{2}}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 4 marks

Show that the number of vertices nn in a full binary tree is always odd, and the number of pendant vertices is 12(n+1)\frac{1}{2}(n+1).

Similar questions: Show that the number of pendant vertices (2010 AD)

Answer

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

Let ii be the number of internal vertices and tt the number of pendant (leaf) vertices, so n=i+tn=i+t.

nn is odd. Every vertex except the root is the child of exactly one internal vertex, and each internal vertex has exactly 2 children. So n−1=2i⇒n=2i+1,n-1=2i\quad\Rightarrow\quad n=2i+1, which is odd.

Number of pendant vertices. From n=2i+1n=2i+1 we get i=n−12i=\dfrac{n-1}{2}, so t=n−i=n−n−12=n+12=12(n+1).■t=n-i=n-\frac{n-1}{2}=\frac{n+1}{2}=\tfrac12(n+1). \qquad\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 2 marks

Show that the set of odd positive integer is countable.

Similar questions: Odd positive integers countable (2005 AD)

Answer

A set is countable if it is finite or can be put in one-to-one correspondence with the set Z+\mathbb{Z}^+ of positive integers.

Let O={1,3,5,… }O=\{1,3,5,\dots\} and define f:Z+→Of:\mathbb{Z}^+\to O by f(n)=2n−1f(n)=2n-1.

  • One-to-one: 2m−1=2n−1⇒m=n2m-1=2n-1\Rightarrow m=n.
  • Onto: every odd positive integer kk equals f ⁣(k+12)f\!\left(\frac{k+1}{2}\right) with k+12∈Z+\frac{k+1}{2}\in\mathbb{Z}^+.

So ff is a bijection and OO is countably infinite, i.e. countable.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 1 mark

What can you say about a simple graph GG if every edge of GG is a bridge?

Similar questions: What can you say about a simple (2011 AD)

Answer

An edge is a bridge exactly when it lies on no cycle. If every edge of GG is a bridge, then GG has no cycle at all, so GG is a forest (each component is a tree). If GG is also connected, it is a tree.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 4 marks

Define equivalence relation. Show that the relation R={(x,y):x≡y(mod4)}R=\{(x,y): x\equiv y \pmod 4\} define on the set A={1,2,3,…,13,14,15}A=\{1,2,3,\dots,13,14,15\} is an equivalence relation. Also find the partition of the set AA determined by the relation RR.

Similar questions: Equivalence relation from partition (2005 AD)

Answer

Equivalence relation. A relation on a set that is reflexive, symmetric and transitive.

R={(x,y):x≡y(mod4)}R=\{(x,y):x\equiv y \pmod 4\} on A={1,…,15}A=\{1,\dots,15\}, i.e. 4∣(x−y)4\mid(x-y).

  • Reflexive: x−x=0x-x=0 is divisible by 4, so (x,x)∈R(x,x)\in R.
  • Symmetric: if 4∣(x−y)4\mid(x-y) then 4∣(y−x)4\mid(y-x), so (y,x)∈R(y,x)\in R.
  • Transitive: if 4∣(x−y)4\mid(x-y) and 4∣(y−z)4\mid(y-z) then 4∣(x−z)4\mid(x-z) (their sum), so (x,z)∈R(x,z)\in R.

So RR is an equivalence relation.

Partition (equivalence classes by remainder mod 4): [1]={1,5,9,13},[2]={2,6,10,14},[3]={3,7,11,15},[4]={4,8,12}.[1]=\{1,5,9,13\},\quad [2]=\{2,6,10,14\},\quad [3]=\{3,7,11,15\},\quad [4]=\{4,8,12\}. The partition is {{1,5,9,13},{2,6,10,14},{3,7,11,15},{4,8,12}}\{\{1,5,9,13\},\{2,6,10,14\},\{3,7,11,15\},\{4,8,12\}\}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 4 marks

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

Similar questions: What do you mean by bipartite graph? (2012 AD)

Answer

Bipartite graph. A graph whose vertex set can be split into two disjoint sets V1,V2V_1,V_2 such that every edge joins a vertex of V1V_1 to a vertex of V2V_2. If every vertex of V1V_1 is joined to every vertex of V2V_2, with ∣V1∣=m|V_1|=m and ∣V2∣=n|V_2|=n, it is the complete bipartite graph Km,nK_{m,n}.

Order. The vertex set is V1∪V2V_1\cup V_2 with V1∩V2=∅V_1\cap V_2=\emptyset, so the order is m+nm+n.

Size. Each of the mm vertices of V1V_1 is adjacent to all nn vertices of V2V_2 and to no vertex of V1V_1. Every edge has exactly one end in V1V_1, so the number of edges is the sum of the degrees of V1V_1: ∣E∣=m⋅n.|E|=m\cdot n . (Check: the degree sum is mn+nm=2mn=2∣E∣mn+nm=2mn=2|E|.) Hence the size is mnmn and the order is m+nm+n. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 2 marks

Show that an rr-regular graph of odd degree consists of even number of vertices.

Similar questions: Regular graph odd degree (2005 AD)

Answer

Let GG be rr-regular with nn vertices and ee edges, where rr is odd. By the handshaking lemma,

∑vdeg⁡(v)=rn=2e,\sum_{v}\deg(v) = rn = 2e,

which is even. Since rr is odd, rnrn can be even only if nn is even. Hence GG has an even number of vertices. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 2 marks

Show that the number of pendant vertices in a full binary tree with nn vertices is 12(n+1)\frac{1}{2}(n+1)

Similar questions: Show that the number of vertices n (2009 AD)

Answer

In a full binary tree every internal vertex has exactly two children. Let ii be the number of internal vertices and tt the number of pendant vertices (leaves), so n=i+tn=i+t.

Every vertex except the root is the child of exactly one internal vertex, so n−1=2in-1=2i, giving i=n−12i=\frac{n-1}{2}. Then

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

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2011 AD · 1 mark

How many edges and vertices are there in a complete bipartite graph K8,9K_{8,9}?

Similar questions: Edges in complete graph K9 (2007 AD)

Answer

K8,9K_{8,9} has 8+9=178+9=17 vertices. Each of the 88 vertices in the first part is joined to each of the 99 in the second, so there are 8×9=728\times 9=72 edges.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2011 AD · 1 mark

What can you say about a simple graph GG, if every edge of GG is a bridge?

Similar questions: What can you say about a simple (2010 AD)

Answer

If every edge of a simple graph GG is a bridge, then no edge lies on a cycle, so GG has no cycles. Hence GG is a forest, and if it is connected it is a tree.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2011 AD · 4 marks

Define the composition of two functions. How is it denoted? If f:R→Rf:R\to R defined by f(x)=4x−3f(x)=4x-3 and g:R→Rg:R\to R defined by g(x)=5xg(x)=5x, find the composition of ff and gg, the composition of gg and ff if defined.

Similar questions: Composition of functions (2005 AD)

Answer

Definition. If f:A→Bf:A\to B and g:B→Cg:B\to C, the composition of ff and gg is the function g∘f:A→Cg\circ f:A\to C given by (g∘f)(x)=g(f(x))(g\circ f)(x)=g(f(x)). Similarly, f∘gf\circ g means (f∘g)(x)=f(g(x))(f\circ g)(x)=f(g(x)), defined when the range of gg lies in the domain of ff.

Here f(x)=4x−3f(x)=4x-3 and g(x)=5xg(x)=5x on R\mathbb{R}, so both compositions are defined.

(f∘g)(x)=f(g(x))=4(5x)−3=20x−3,(f\circ g)(x)=f(g(x))=4(5x)-3=20x-3,

(g∘f)(x)=g(f(x))=5(4x−3)=20x−15.(g\circ f)(x)=g(f(x))=5(4x-3)=20x-15.

Since 20x−3≠20x−1520x-3\ne 20x-15, f∘g≠g∘ff\circ g\ne g\circ f.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2011 AD · 4 marks

Define tree in graph theory with examples. Prove that for any tree of order two or more has at least two vertices of degree 1.

Similar questions: Tree has two pendant vertices (2005 AD)

Answer

Tree. A tree is a connected graph with no cycles. Examples: a path PnP_n; the star K1,nK_{1,n}; a single vertex (the trivial tree).

Theorem. A tree with n≥2n\ge 2 vertices has at least two vertices 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=v0v1⋯vkP=v_0v_1\cdots v_k in TT, where k≥1k\ge1.

Suppose v0v_0 had a neighbour ww other than v1v_1. If ww is on PP, then w=vjw=v_j with j≥2j\ge2 and v0v1⋯vjv0v_0v_1\cdots v_jv_0 is 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 v0v_0 has only the neighbour v1v_1, hence deg⁡(v0)=1\deg(v_0)=1.

By the same argument, deg⁡(vk)=1\deg(v_k)=1. Since v0≠vkv_0\ne v_k, the tree has at least two vertices of degree 11. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2012 AD · 4 marks

What do you mean by bipartite graph? Prove that the order and size of a complete bipartite graph Km,nK_{m,n} is m+nm+n and m×nm\times n respectively.

Similar questions: Define bipartite graph. Prove that size and (2010 AD)

Answer

A graph G(V,E)G(V,E) is bipartite if its vertex set can be split into two disjoint non-empty sets V1V_1 and V2V_2 so that every edge joins a vertex of V1V_1 to a vertex of V2V_2 (no edge has both ends in the same set).

The complete bipartite graph Km,nK_{m,n} has ∣V1∣=m|V_1|=m, ∣V2∣=n|V_2|=n, and every vertex of V1V_1 is joined to every vertex of V2V_2.

Order. ∣V∣=∣V1∣+∣V2∣=m+n|V|=|V_1|+|V_2|=m+n.

Size. Each of the mm vertices of V1V_1 is adjacent to all nn vertices of V2V_2, giving nn edges per vertex, and no edge is counted twice since edges only run between the sets. So ∣E∣=m×n|E|=m\times n.

Hence Km,nK_{m,n} has order m+nm+n and size mnmn.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 1 mark

What is the Cartesian product of two nonempty sets and how is it denoted?

Answer

The Cartesian product of two nonempty sets AA and BB is the set of all ordered pairs whose first element is from AA and second from BB:

A×B={(a,b)∣a∈A, b∈B}A\times B=\{(a,b)\mid a\in A,\ b\in B\}

It is denoted A×BA\times B (read "AA cross BB"). If ∣A∣=m|A|=m and ∣B∣=n|B|=n then ∣A×B∣=mn|A\times B|=mn.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 1 mark

What can you say about the binary relation RR on a set AA if RR is a partial ordering and an equivalence? Give an example of such a relation on the set A={x,y,z}A=\{x,y,z\}.

Answer

A partial ordering is reflexive, antisymmetric and transitive, and an equivalence relation is reflexive, symmetric and transitive. If RR is both, it is symmetric and antisymmetric, so (a,b)∈R(a,b)\in R implies (b,a)∈R(b,a)\in R and hence a=ba=b. Together with reflexivity, RR must be the identity (equality) relation on AA.

For A={x,y,z}A=\{x,y,z\} the example is R={(x,x),(y,y),(z,z)}.R=\{(x,x),(y,y),(z,z)\}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 1 mark

Write down the set of inverse images of the ceiling function f:R→Rf:\mathbb{R}\to\mathbb{R} defined by ⌈x⌉=−1\lceil x\rceil=-1 for every x∈Rx\in\mathbb{R}.

Answer

We need all xx with ⌈x⌉=−1\lceil x\rceil=-1, that is −2<x≤−1-2<x\le -1. The set of inverse images is

f−1(−1)={x∈R∣−2<x≤−1}=(−2,−1].f^{-1}(-1)=\{x\in\mathbb{R}\mid -2<x\le -1\}=(-2,-1].

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 1 mark

What is an rr-permutation of nn distinct objects and how many are there? (Where r≤nr\le n).

Answer

An rr-permutation of nn distinct objects is an ordered arrangement of rr of those objects. The number of rr-permutations is

P(n,r)=n(n−1)(n−2)⋯(n−r+1)=n!(n−r)!.P(n,r)=n(n-1)(n-2)\cdots(n-r+1)=\frac{n!}{(n-r)!}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 1 mark

State the principle of inclusion and exclusion for two subsets of a finite universal set UU?

Answer

For two subsets AA and BB of a finite universal set UU,

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

and the number of elements of UU in neither set is ∣U∣−∣A∪B∣=∣U∣−∣A∣−∣B∣+∣A∩B∣|U|-|A\cup B|=|U|-|A|-|B|+|A\cap B|.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 1 mark

What is the relationship between the sum of the degree of vertices and the number of edges in a graph?

Answer

The sum of the degrees of all vertices of a graph equals twice the number of edges (handshaking lemma):

∑v∈Vdeg⁡(v)=2∣E∣.\sum_{v\in V}\deg(v)=2|E|.

This is because each edge contributes 1 to the degree of each of its two end points.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 1 mark

If MM and NN are the bipartition sets of a complete bipartite graph with ∣M∣=m|M|=m and ∣N∣=n|N|=n, how many vertices and edges are there? How is such graph denoted?

Answer

The graph has m+nm+n vertices and mnmn edges (each vertex of MM is joined to every vertex of NN). It is denoted Km,nK_{m,n}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 1 mark

When is a multi-graph said to be traversable graph?

Answer

A multigraph is traversable if it is connected and has a trail (a path with no repeated edge) that contains every edge exactly once, i.e. it can be drawn without lifting the pencil or retracing any edge. By Euler's theorem this happens exactly when it is connected and has either zero or exactly two vertices of odd degree.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 1 mark

What can you say about two vertices in a rooted tree that have the same parent?

Answer

Two vertices having the same parent are called siblings. They are at the same level, and the unique path between them goes through their common parent.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 1 mark

When is a directed graph said to be unilaterally connected?

Answer

A directed graph is unilaterally connected if for every pair of vertices uu and vv there is a directed path from uu to vv or a directed path from vv to uu (at least one of the two).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 4 marks

If RR is a relation on A={1,2,3,4,6}A=\{1,2,3,4,6\} defined by aRbaRb if and only if aa is multiple of bb, find the domain, the range, and the inverse of the relation RR. Also verify that (MR)T=MR−1(M_R)^T=M_{R^{-1}}.

Answer

With A={1,2,3,4,6}A=\{1,2,3,4,6\}, aRbaRb iff aa is a multiple of bb:

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

Domain (first elements) ={1,2,3,4,6}=A=\{1,2,3,4,6\}=A.

Range (second elements) ={1,2,3,4,6}=A=\{1,2,3,4,6\}=A.

Inverse (reverse each pair): R−1={(1,1),(1,2),(2,2),(1,3),(3,3),(1,4),(2,4),(4,4),(1,6),(2,6),(3,6),(6,6)}.R^{-1}=\{(1,1),(1,2),(2,2),(1,3),(3,3),(1,4),(2,4),(4,4),(1,6),(2,6),(3,6),(6,6)\}.

Verification. Taking rows and columns in the order 1,2,3,4,61,2,3,4,6:

MR=(1000011000101001101011101),(MR)T=(1111101011001010001000001).M_R=\begin{pmatrix}1&0&0&0&0\\1&1&0&0&0\\1&0&1&0&0\\1&1&0&1&0\\1&1&1&0&1\end{pmatrix},\qquad (M_R)^T=\begin{pmatrix}1&1&1&1&1\\0&1&0&1&1\\0&0&1&0&1\\0&0&0&1&0\\0&0&0&0&1\end{pmatrix}.

From R−1R^{-1}: 11 is related to 1,2,3,4,61,2,3,4,6; 22 to 2,4,62,4,6; 33 to 3,63,6; 44 to 44; 66 to 66. So

MR−1=(1111101011001010001000001)=(MR)T.M_{R^{-1}}=\begin{pmatrix}1&1&1&1&1\\0&1&0&1&1\\0&0&1&0&1\\0&0&0&1&0\\0&0&0&0&1\end{pmatrix}=(M_R)^T.

Hence (MR)T=MR−1(M_R)^T=M_{R^{-1}}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 4 marks

Show that the divisibility relation '|' is a partial ordering on the set of position integers. Is the relation partial order on the set of integers? Justify your answer with a counter example.

Answer

Let a∣ba\mid b mean b=kab=ka for some integer kk. On the set Z+\mathbb{Z}^+ of positive integers:

  • 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 k,lk,l positive integers, so a=kl aa=kl\,a, hence kl=1kl=1 and k=l=1k=l=1. Thus a=ba=b.
  • Transitive. If a∣ba\mid b and b∣cb\mid c, then b=kab=ka, c=lbc=lb, so c=(lk)ac=(lk)a and a∣ca\mid c.

So ∣\mid is a partial ordering on Z+\mathbb{Z}^+.

On all integers it is not a partial order, because it is not antisymmetric. Counter example: 3∣−33\mid -3 and −3∣3-3\mid 3, but 3≠−33\neq -3.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 4 marks

Define a function from a set AA into a set BB. Let X={a,b,c,d}=YX=\{a,b,c,d\}=Y. Define functions f:X→Yf:X\to Y (if possible) such that
a) ff is one-to-one and onto b) ff is neither one-to-one nor onto c) ff is onto but not one-to-one d) ff is a constant function

Answer

Definition. A function ff from a set AA into a set BB is a rule that assigns to each element a∈Aa\in A exactly one element f(a)∈Bf(a)\in B. We write f:A→Bf:A\to B.

For X=Y={a,b,c,d}X=Y=\{a,b,c,d\}:

(a) One-to-one and onto: f(a)=b, f(b)=c, f(c)=d, f(d)=af(a)=b,\ f(b)=c,\ f(c)=d,\ f(d)=a. Distinct elements have distinct images and every element of YY is an image.

(b) Neither one-to-one nor onto: f(a)=a, f(b)=a, f(c)=b, f(d)=bf(a)=a,\ f(b)=a,\ f(c)=b,\ f(d)=b. Here f(a)=f(b)f(a)=f(b), and c,dc,d are not images.

(c) Onto but not one-to-one: not possible. XX is finite and has the same number of elements as YY, so a function that is onto must also be one-to-one (if two elements shared an image, at most 3 elements of YY could be reached).

(d) Constant function: f(x)=af(x)=a for every x∈Xx\in X, i.e. f(a)=f(b)=f(c)=f(d)=af(a)=f(b)=f(c)=f(d)=a.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 4 marks

State the Binomial theorem for positive index nn. What are the binomial coefficients? Find the general term and hence, find the term free from xx in the expansion (x2+1/x)9(x^2+1/x)^9.

Answer

Binomial theorem. For a positive integer nn,

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

Binomial coefficients are the numbers (nr)=n!r!(n−r)!\binom{n}{r}=\dfrac{n!}{r!(n-r)!}, the coefficients in this expansion.

General term: Tr+1=(nr)xn−ryrT_{r+1}=\binom{n}{r}x^{n-r}y^{r}.

For (x2+1x)9\left(x^2+\dfrac1x\right)^9:

Tr+1=(9r)(x2)9−r(1x)r=(9r)x18−2r−r=(9r)x18−3r.T_{r+1}=\binom{9}{r}(x^2)^{9-r}\left(\frac1x\right)^r=\binom9r x^{18-2r-r}=\binom9r x^{18-3r}.

The term is free from xx when 18−3r=018-3r=0, i.e. r=6r=6. So it is the 7th term:

T7=(96)=9⋅8⋅73⋅2⋅1=84.T_7=\binom96=\frac{9\cdot8\cdot7}{3\cdot2\cdot1}=84.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 4 marks

Suppose that there are 1807 freshmen at your college. Of these, 453 are taking a course in computer science, 567 are taking a course in mathematics, and 299 are taking courses in both computer science and mathematics. Applying the principle of inclusion and exclusion, find the number of freshmen who are not taking a course in either computer science or in mathematics.

Answer

Let CC and MM be the sets of freshmen taking computer science and mathematics. Then ∣C∣=453|C|=453, ∣M∣=567|M|=567, ∣C∩M∣=299|C\cap M|=299.

∣C∪M∣=453+567−299=721.|C\cup M|=453+567-299=721.

Freshmen taking neither:

1807−721=1086.1807-721=1086.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 4 marks

Use Dijkstra's algorithm to find the shortest path from the vertex aa to zz of the graph given in the figure of the original paper (weighted graph on vertices a, b, c, d, e, f, z). Also find alternative shortest path if exists.

Answer

Take the weighted graph with edges ab=4, ac=2, bc=1, bd=5, cd=8, de=2, ce=10, ef=1, ez=3, fz=2, dz=6ab=4,\ ac=2,\ bc=1,\ bd=5,\ cd=8,\ de=2,\ ce=10,\ ef=1,\ ez=3,\ fz=2,\ dz=6.

Label each vertex with its shortest known distance from aa; permanent labels are chosen in increasing order.

StepVertex made permanentUpdated labels
1a (0)a\ (0)b=4, c=2b=4,\ c=2
2c (2)c\ (2)b=min⁡(4,2+1)=3, d=10, e=12b=\min(4,2+1)=3,\ d=10,\ e=12
3b (3)b\ (3)d=min⁡(10,3+5)=8d=\min(10,3+5)=8
4d (8)d\ (8)e=min⁡(12,8+2)=10, z=14e=\min(12,8+2)=10,\ z=14
5e (10)e\ (10)f=11, z=min⁡(14,13)=13f=11,\ z=\min(14,13)=13
6f (11)f\ (11)z=min⁡(13,11+2)=13z=\min(13,11+2)=13
7z (13)z\ (13)done

The shortest distance from aa to zz is 1313, by

a→c→b→d→e→z(2+1+5+2+3=13).a\to c\to b\to d\to e\to z\quad(2+1+5+2+3=13).

Alternative shortest path:

a→c→b→d→e→f→z(2+1+5+2+1+2=13).a\to c\to b\to d\to e\to f\to z\quad(2+1+5+2+1+2=13).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 4 marks

Draw all non-isomorphic spanning trees of the graph given in the figure of the original paper (a graph on vertices a-f in which e is joined to a, b, c, d, f).

Answer

Take the graph with vertices a,b,c,d,e,fa,b,c,d,e,f and edges ea,eb,ec,ed,efea,eb,ec,ed,ef together with abab and cdcd. It has 7 edges, so a spanning tree uses 5 edges and must drop one edge from each of the cycles e a be\,a\,b and e c de\,c\,d (efef is always kept).

From each triangle, dropping an edge leaves either

  • (i) abab dropped: aa and bb both hang directly from ee; or
  • (ii) eaea or ebeb dropped: a path of length 2 hangs from ee (such as e−b−ae-b-a).

There are 3×3=93\times3=9 spanning trees, but up to isomorphism only the combination of types matters:

  1. Both of type (i): the star K1,5K_{1,5} with centre ee and leaves a,b,c,d,fa,b,c,d,f.
  2. One of type (i), one of type (ii): ee has degree 4, joined to a,b,fa,b,f and cc, and cc has the extra leaf dd.
  3. Both of type (ii): ee has degree 3, joined to ff, aa and cc, with a−ba-b and c−dc-d as the two tails.

Hence there are exactly 3 non-isomorphic spanning trees.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 4 marks

If D(V,A)D(V,A) be a directed graph, where the vertices set V={a,b,c,d,e,f,g,h,i,j}V=\{a,b,c,d,e,f,g,h,i,j\} and the directed edges set A={(b,c),(b,a),(d,e),(d,f),(e,h),(f,g),(d,b),(g,i),(g,j)}A=\{(b,c),(b,a),(d,e),(d,f),(e,h),(f,g),(d,b),(g,i),(g,j)\}, show that D(V,A)D(V,A) is a rooted tree and identify the root and leaves. Also find the height of the tree.

Answer

Edges: b→c, b→a, d→e, d→f, e→h, f→g, d→b, g→i, g→jb\to c,\ b\to a,\ d\to e,\ d\to f,\ e\to h,\ f\to g,\ d\to b,\ g\to i,\ g\to j.

In-degrees. dd has in-degree 0. Every other vertex has in-degree exactly 1: bb (from dd), ee (from dd), ff (from dd), a,ca,c (from bb), hh (from ee), gg (from ff), i,ji,j (from gg).

Connectivity. There is a directed path from dd to every vertex: d→b→cd\to b\to c, d→b→ad\to b\to a, d→e→hd\to e\to h, d→f→g→id\to f\to g\to i, d→f→g→jd\to f\to g\to j. Also there are 10 vertices and 9 edges.

A digraph with a single vertex of in-degree 0 from which every vertex is reachable, and all other vertices of in-degree 1, is a rooted tree.

  • Root: dd
  • Leaves (out-degree 0): a, c, h, i, ja,\ c,\ h,\ i,\ j
  • Height (length of the longest path from the root): d→f→g→id\to f\to g\to i (or jj) has length 3, while the other paths have length 2. So the height is 3.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 2 marks

If the laundry bag contains many red, white and blue socks, find the minimum number of socks that one needs to choose in order to get two pairs (four socks) of the same colour.

Answer

There are 3 colours. The worst case is to pick 3 socks of each colour without getting four of the same colour (9 socks). The next sock must make four of one colour, so by the pigeonhole principle the minimum number is

3×3+1=10.3\times3+1=10.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 2 marks

How many different eight-card hands with five red cards and three black cards can be dealt from a deck of 52 cards?

Answer

A deck has 26 red and 26 black cards. Choose 5 red cards and 3 black cards:

(265)(263)=65780×2600=171,028,000.\binom{26}{5}\binom{26}{3}=65780\times2600=171{,}028{,}000.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 2 marks

Find the minimal spanning tree for the weighted graph (of the Dijkstra question above). Also find its total weight.

Answer

Using the weighted graph with edges ab=4, ac=2, bc=1, bd=5, cd=8, de=2, ce=10, ef=1, ez=3, fz=2, dz=6ab=4,\ ac=2,\ bc=1,\ bd=5,\ cd=8,\ de=2,\ ce=10,\ ef=1,\ ez=3,\ fz=2,\ dz=6 (7 vertices, so the tree needs 6 edges), apply Kruskal's algorithm by taking edges in increasing weight and rejecting any that forms a cycle:

EdgeWeightDecision
bcbc1accept
efef1accept
acac2accept
dede2accept
fzfz2accept
ezez3reject (cycle e,f,ze,f,z)
abab4reject (cycle a,b,ca,b,c)
bdbd5accept (joins {a,b,c}\{a,b,c\} with {d,e,f,z}\{d,e,f,z\})

The minimal spanning tree has edges bc, ef, ac, de, fz, bdbc,\ ef,\ ac,\ de,\ fz,\ bd and

total weight=1+1+2+2+2+5=13.\text{total weight}=1+1+2+2+2+5=13.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 2 marks

Define sub-graph of a graph. Draw the sub-graph of the graph (of the spanning tree question above) induced by W={a,b,c,d}W=\{a,b,c,d\}.

Answer

Definition. A graph H=(V′,E′)H=(V',E') is a subgraph of G=(V,E)G=(V,E) if V′⊆VV'\subseteq V and E′⊆EE'\subseteq E (each edge of HH having its end points in V′V'). The subgraph induced by W⊆VW\subseteq V has vertex set WW and contains every edge of GG whose two end points are both in WW.

For the graph with edges ea,eb,ec,ed,ef,ab,cdea,eb,ec,ed,ef,ab,cd, the only edges with both ends in W={a,b,c,d}W=\{a,b,c,d\} are abab and cdcd. The induced subgraph therefore consists of the vertices a,b,c,da,b,c,d and two disjoint edges:

a−bc−da - b \qquad\qquad c - d

It is disconnected, with two components.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 2 marks

Find the possible bridges and the possible cut points for the connected graph (of the spanning tree question above), if they exist.

Answer

For the connected graph with edges ea,eb,ec,ed,ef,ab,cdea,eb,ec,ed,ef,ab,cd:

Bridges (edges whose removal disconnects the graph): the edge efef is the only one, since ff would become isolated. The other edges lie on the cycles e a be\,a\,b and e c de\,c\,d, so deleting one keeps the graph connected. Bridge: {ef}\{ef\}.

Cut points (vertices whose removal disconnects the graph): removing ee separates the graph into {f}\{f\}, {a,b}\{a,b\} and {c,d}\{c,d\}. Removing any other vertex leaves a connected graph. Cut point: ee.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2005 AD · 2 marks

What is a source vertex and a sink vertex in a directed graph. Find a directed spanning path of maximum length of the digraph given in the figure of the original paper (vertices a-f).

Answer

Source vertex: a vertex of a directed graph with in-degree 0, so every edge at it points away from it.

Sink vertex: a vertex with out-degree 0, so every edge at it points into it.

Directed spanning path of maximum length: a directed path that visits every vertex exactly once has the largest possible length, which is n−1n-1 edges for nn vertices. For the six-vertex digraph (aa to ff) the path starts at the source, follows edge directions through the remaining vertices without repeating any, and ends at the sink. Its length is 6−1=56-1=5.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 1 mark

If A={1,3,5}A=\{1,3,5\} and B={2,4,6}B=\{2,4,6\}, find the value of A×B×AA\times B\times A.

Answer

A×B×A={(x,y,z):x∈A, y∈B, z∈A}A\times B\times A=\{(x,y,z): x\in A,\ y\in B,\ z\in A\}, which has 3⋅3⋅3=273\cdot3\cdot3=27 ordered triples:

(1,2,1),(1,2,3),(1,2,5),(1,4,1),(1,4,3),(1,4,5),(1,6,1),(1,6,3),(1,6,5),(1,2,1),(1,2,3),(1,2,5),(1,4,1),(1,4,3),(1,4,5),(1,6,1),(1,6,3),(1,6,5), (3,2,1),(3,2,3),(3,2,5),(3,4,1),(3,4,3),(3,4,5),(3,6,1),(3,6,3),(3,6,5),(3,2,1),(3,2,3),(3,2,5),(3,4,1),(3,4,3),(3,4,5),(3,6,1),(3,6,3),(3,6,5), (5,2,1),(5,2,3),(5,2,5),(5,4,1),(5,4,3),(5,4,5),(5,6,1),(5,6,3),(5,6,5)(5,2,1),(5,2,3),(5,2,5),(5,4,1),(5,4,3),(5,4,5),(5,6,1),(5,6,3),(5,6,5)

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 1 mark

Write down the partition of A={a,b,c}A=\{a,b,c\}

Answer

A partition splits AA into non-empty, disjoint subsets whose union is AA. The partitions of {a,b,c}\{a,b,c\} are:

  • {{a},{b},{c}}\{\{a\},\{b\},\{c\}\}
  • {{a,b},{c}}\{\{a,b\},\{c\}\}
  • {{a,c},{b}}\{\{a,c\},\{b\}\}
  • {{b,c},{a}}\{\{b,c\},\{a\}\}
  • {{a,b,c}}\{\{a,b,c\}\}

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 1 mark

If f(x)=x2−3x+2f(x)=x^2-3x+2, find f(a2+1)f(a^2+1).

Answer

f(a2+1)=(a2+1)2−3(a2+1)+2=a4+2a2+1−3a2−3+2=a4−a2.f(a^2+1)=(a^2+1)^2-3(a^2+1)+2=a^4+2a^2+1-3a^2-3+2=a^4-a^2.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 1 mark

What is the fifth term in the expansion (a+b)7(a+b)^7.

Answer

The general term is Tr+1=(7r)a7−rbrT_{r+1}=\binom{7}{r}a^{7-r}b^r. For the fifth term, r=4r=4:

T5=(74)a3b4=35a3b4.T_5=\binom{7}{4}a^3b^4=35a^3b^4.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 1 mark

Define an equivalence class.

Answer

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

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 1 mark

Define the floor and ceiling functions.

Answer

Floor: ⌊x⌋\lfloor x\rfloor is the greatest integer less than or equal to xx. For example, ⌊3.7⌋=3\lfloor 3.7\rfloor=3 and ⌊−2.3⌋=−3\lfloor -2.3\rfloor=-3.

Ceiling: ⌈x⌉\lceil x\rceil is the least integer greater than or equal to xx. For example, ⌈3.2⌉=4\lceil 3.2\rceil=4 and ⌈−2.3⌉=−2\lceil -2.3\rceil=-2.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 1 mark

C(17,6)=C(16,5)+C(16,6)C(17,6)=C(16,5)+C(16,6).

Answer

True. By Pascal's identity, C(n,r)=C(n−1,r−1)+C(n−1,r)C(n,r)=C(n-1,r-1)+C(n-1,r). With n=17n=17 and r=6r=6:

C(17,6)=C(16,5)+C(16,6).C(17,6)=C(16,5)+C(16,6).

Numerically, 12376=4368+800812376=4368+8008.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 1 mark

A graph GG has five vertices, one of which have degree 3 and the other three have degree two. How many edges does it have?

Answer

The handshaking lemma gives ∑deg⁡(v)=2∣E∣\sum \deg(v)=2|E|. The stated degrees give 3+2+2+2=93+2+2+2=9, which is odd, so these four vertices cannot belong to any graph on their own. Taking the fifth vertex to have degree 1 gives ∑deg⁡=10\sum\deg=10, so ∣E∣=102=5.|E|=\frac{10}{2}=5. The graph therefore has 5 edges.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 1 mark

A graph GG has 21 edges. What will be the length of the Eulerian cycle?

Answer

An Eulerian cycle uses every edge exactly once, so its length equals the number of edges: 21.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 4 marks

Define binary relation from a set AA to a set BB. Let A={1,2,3,4}A=\{1,2,3,4\}, determine whether the relation is reflexive, symmetric, asymmetric, antisymmetric or transitive.
R={(1,2),(1,3),(3,1),(1,1),(3,3),(3,2),(1,4),(4,2),(3,4)}R=\{(1,2),(1,3),(3,1),(1,1),(3,3),(3,2),(1,4),(4,2),(3,4)\}

Answer

Binary relation: a binary relation from AA to BB is any subset R⊆A×BR\subseteq A\times B. We write aRbaRb when (a,b)∈R(a,b)\in R.

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

  • Reflexive: No. (2,2)(2,2) and (4,4)(4,4) are missing.
  • Symmetric: No. (1,2)∈R(1,2)\in R but (2,1)∉R(2,1)\notin R.
  • Asymmetric: No. (1,1)∈R(1,1)\in R, and (1,3),(3,1)∈R(1,3),(3,1)\in R together.
  • Antisymmetric: No. (1,3)(1,3) and (3,1)(3,1) are both in RR although 1≠31\ne3.
  • Transitive: Yes. Checking every pair (a,b),(b,c)(a,b),(b,c), for example (1,3),(3,4)⇒(1,4)(1,3),(3,4)\Rightarrow(1,4), (1,4),(4,2)⇒(1,2)(1,4),(4,2)\Rightarrow(1,2), (3,1),(1,2)⇒(3,2)(3,1),(1,2)\Rightarrow(3,2), (3,4),(4,2)⇒(3,2)(3,4),(4,2)\Rightarrow(3,2), (1,3),(3,1)⇒(1,1)(1,3),(3,1)\Rightarrow(1,1), the required pair is always in RR.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 4 marks

Define equivalence relation on a set. Let RR be a relation defined on a set A={1,2,3,4,5,6}A=\{1,2,3,4,5,6\} given by R={(1,1),(1,5),(2,2),(2,6),(3,2),(3,3),(3,6),(4,4),(5,1),(5,5),(6,2),(6,3),(6,6)}R=\{(1,1),(1,5),(2,2),(2,6),(3,2),(3,3),(3,6),(4,4),(5,1),(5,5),(6,2),(6,3),(6,6)\}. Is RR, an equivalence relation?

Answer

Equivalence relation: a relation on a set that is reflexive, symmetric and transitive.

For the given RR on A={1,…,6}A=\{1,\dots,6\}:

  • Reflexive: (1,1),(2,2),(3,3),(4,4),(5,5),(6,6)∈R(1,1),(2,2),(3,3),(4,4),(5,5),(6,6)\in R, so RR is reflexive.
  • Symmetric: (3,2)∈R(3,2)\in R but (2,3)∉R(2,3)\notin R, so RR is not symmetric.

RR fails symmetry, so it is not an equivalence relation.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 4 marks

What is a function? Define one-to-one and onto function. A function ff is defined as f(x)=x3f(x)=x^3 for all real xx. Plot it in the XY plane and categorize it using graphical aids.

Answer

Function: a function f:A→Bf:A\to B assigns to each element of AA exactly one element of BB.

One-to-one (injective): distinct inputs give distinct outputs. That is, f(x1)=f(x2)⇒x1=x2f(x_1)=f(x_2)\Rightarrow x_1=x_2.

Onto (surjective): every element of BB is the image of at least one element of AA. That is, the range equals BB.

For f(x)=x3f(x)=x^3 on R\mathbb R: the graph is a smooth increasing curve through (−2,−8),(−1,−1),(0,0),(1,1),(2,8)(-2,-8),(-1,-1),(0,0),(1,1),(2,8), with an inflection at the origin.

  • Horizontal line test: every horizontal line y=ky=k cuts the curve exactly once, so ff is one-to-one.
  • The curve takes every real value yy, and x=y3x=\sqrt[3]{y} is real, so ff is onto.

Hence ff is a bijection (one-to-one and onto).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 4 marks

Determine binary relation from one set to another set with example. If A={2,3,4,5}A=\{2,3,4,5\} defined by aRbaRb if and only if aa is a multiple of bb. Find the domain, range, the matrix of the relation MRM_R and its complement.

Answer

Binary relation: a subset RR of A×BA\times B. For example, with A={1,2}A=\{1,2\} and B={a,b}B=\{a,b\}, the set R={(1,a),(2,b)}R=\{(1,a),(2,b)\} is a relation from AA to BB.

For A={2,3,4,5}A=\{2,3,4,5\} with aRbaRb iff aa is a multiple of bb:

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

Domain ={2,3,4,5}=\{2,3,4,5\} and Range ={2,3,4,5}=\{2,3,4,5\}.

Matrix MRM_R (rows aa, columns bb, both in the order 2, 3, 4, 5):

MR=(1000010010100001)M_R=\begin{pmatrix}1&0&0&0\\0&1&0&0\\1&0&1&0\\0&0&0&1\end{pmatrix}

Complement (swap 0 and 1):

MR‾=(0111101101011110)\overline{M_R}=\begin{pmatrix}0&1&1&1\\1&0&1&1\\0&1&0&1\\1&1&1&0\end{pmatrix}

This is the relation Rˉ={(2,3),(2,4),(2,5),(3,2),(3,4),(3,5),(4,3),(4,5),(5,2),(5,3),(5,4)}\bar R=\{(2,3),(2,4),(2,5),(3,2),(3,4),(3,5),(4,3),(4,5),(5,2),(5,3),(5,4)\}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 4 marks

Define composition of two functions? Let f:R→Rf:R\to R and g:R→Rg:R\to R are any two functions defined by f(x)=2x+1f(x)=2x+1, g(x)=x2−2g(x)=x^2-2. Find formulas, which define the function g∘fg\circ f and f∘gf\circ g.

Answer

Composition: for f:A→Bf:A\to B and g:B→Cg:B\to C, the composition g∘f:A→Cg\circ f:A\to C is defined by (g∘f)(x)=g(f(x))(g\circ f)(x)=g(f(x)).

With f(x)=2x+1f(x)=2x+1 and g(x)=x2−2g(x)=x^2-2:

(g∘f)(x)=g(2x+1)=(2x+1)2−2=4x2+4x−1(g\circ f)(x)=g(2x+1)=(2x+1)^2-2=4x^2+4x-1

(f∘g)(x)=f(x2−2)=2(x2−2)+1=2x2−3(f\circ g)(x)=f(x^2-2)=2(x^2-2)+1=2x^2-3

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 4 marks

Define inverse of a function ff. Prove that f:R→Rf:R\to R, defined by f(x)=2x−3f(x)=2x-3 is invertible.

Answer

Inverse: if f:A→Bf:A\to B is a bijection, its inverse f−1:B→Af^{-1}:B\to A is defined by f−1(y)=x  ⟺  f(x)=yf^{-1}(y)=x\iff f(x)=y. A function is invertible exactly when it is one-to-one and onto.

Proof for f(x)=2x−3f(x)=2x-3:

  • One-to-one: if f(x1)=f(x2)f(x_1)=f(x_2), then 2x1−3=2x2−32x_1-3=2x_2-3, so x1=x2x_1=x_2.
  • Onto: for any y∈Ry\in\mathbb R, take x=y+32∈Rx=\dfrac{y+3}{2}\in\mathbb R. Then f(x)=2⋅y+32−3=yf(x)=2\cdot\dfrac{y+3}{2}-3=y.

So ff is a bijection and is invertible, with f−1(y)=y+32.f^{-1}(y)=\frac{y+3}{2}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 4 marks

What is permutation? Prove that the permutation of nn objects taken rr at a time is P(n,r)=n!(n−r)!P(n,r)=\dfrac{n!}{(n-r)!}

Answer

Permutation: an ordered arrangement of rr objects chosen from nn distinct objects.

Proof: fill rr positions in turn.

  • The first position can be filled in nn ways.
  • The second in n−1n-1 ways, since one object is used.
  • Continuing, the rr-th position can be filled in n−r+1n-r+1 ways.

By the multiplication principle, P(n,r)=n(n−1)(n−2)⋯(n−r+1).P(n,r)=n(n-1)(n-2)\cdots(n-r+1). Multiplying and dividing by (n−r)!(n-r)!: P(n,r)=n(n−1)⋯(n−r+1) (n−r)!(n−r)!=n!(n−r)!.P(n,r)=\frac{n(n-1)\cdots(n-r+1)\,(n-r)!}{(n-r)!}=\frac{n!}{(n-r)!}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 4 marks

Find the shortest path between the vertices aa and dd in the weighted graph given in the figure of the original paper.

Answer

Use Dijkstra's algorithm on the weighted graph.

  1. Label aa with distance 0 and every other vertex with ∞\infty.
  2. Take the unvisited vertex with the smallest label and make it permanent.
  3. For each unvisited neighbour ww of that vertex vv, update d(w)=min⁡{d(w), d(v)+weight(v,w)}d(w)=\min\{d(w),\,d(v)+\text{weight}(v,w)\}.
  4. Repeat until dd is made permanent.

The permanent label of dd is the length of the shortest path, and tracing back the predecessors that set each label gives the path itself.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 2 marks

What do you mean by Pascal's triangle? Explain with suitable example.

Answer

Pascal's triangle is a triangular array in which row nn lists the binomial coefficients C(n,0),C(n,1),…,C(n,n)C(n,0),C(n,1),\dots,C(n,n). Each inner entry is the sum of the two entries just above it, by C(n,r)=C(n−1,r−1)+C(n−1,r)C(n,r)=C(n-1,r-1)+C(n-1,r). The edges are all 1.

        1
       1 1
      1 2 1
     1 3 3 1
    1 4 6 4 1

Row nn gives the coefficients of (a+b)n(a+b)^n. For example, row 4 gives (a+b)4=a4+4a3b+6a2b2+4ab3+b4(a+b)^4=a^4+4a^3b+6a^2b^2+4ab^3+b^4.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 2 marks

In how many ways can the letter of the word COCACOLA be arranged taken all at a time?

Answer

COCACOLA has 8 letters: C appears 3 times, O twice, A twice and L once.

8!3! 2! 2!=4032024=1680.\frac{8!}{3!\,2!\,2!}=\frac{40320}{24}=1680.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 2 marks

Find the general term and hence also find the fifth term in the expansion of (2x+3y)11(2x+3y)^{11}.

Answer

General term: Tr+1=(11r)(2x)11−r(3y)r.T_{r+1}=\binom{11}{r}(2x)^{11-r}(3y)^r.

Fifth term (r=4r=4): T5=(114)(2x)7(3y)4=330⋅128⋅81 x7y4=3,421,440 x7y4.T_5=\binom{11}{4}(2x)^7(3y)^4=330\cdot128\cdot81\,x^7y^4=3{,}421{,}440\,x^7y^4.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 2 marks

Find the number of distinct permutations that can be formed from all the letters of each word:
(a) RADAR (b) UNUSUAL

Answer

(a) RADAR has 5 letters, with R twice and A twice: 5!2! 2!=1204=30.\frac{5!}{2!\,2!}=\frac{120}{4}=30.

(b) UNUSUAL has 7 letters, with U twice and every other letter once: 7!2!=50402=2520.\frac{7!}{2!}=\frac{5040}{2}=2520.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 2 marks

Find the minimum number of students in a class to guarantee that three of them belong to the same zone (There are 14 zones in Nepal).

Answer

There are 14 zones (boxes). If there are 2⋅14=282\cdot14=28 students, each zone could hold exactly 2. By the pigeonhole principle, one more student forces some zone to have 3.

Minimum number of students =2⋅14+1==2\cdot14+1= 29.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 2 marks

Let us consider a complete graph K5K_5. How many edges does its spanning tree have? State with a figure.

Answer

A spanning tree of a graph on nn vertices has n−1n-1 edges. K5K_5 has 5 vertices, so every spanning tree has 4 edges.

For example, with vertices 1,…,51,\dots,5 the star {12,13,14,15}\{12,13,14,15\}, drawn as vertex 1 joined to each of the other four vertices, is a spanning tree. So is the path 1−2−3−4−51-2-3-4-5.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2007 AD · 2 marks

Consider the diagraph DD given in the figure of the original paper (vertices a-h).
  1. Find the directed walk DD of length 8.
  2. Find a directed path in DD of longest possible length.
  3. Is DD weakly connected?
  4. Is DD strongly connected? If not why?

Answer

Definitions used for the digraph DD on vertices aa to hh:

  1. Directed walk of length 8: a sequence of 8 edges, each starting where the previous ended, with vertices and edges allowed to repeat. Because repetition is allowed, a walk of this length exists whenever a directed cycle is present: start on the cycle and go around it repeatedly until 8 edges have been used.

  2. Longest directed path: a directed path repeats no vertex, so its length is at most 8−1=78-1=7. The longest one is found by following edge directions from a start vertex through as many distinct vertices as possible.

  3. Weakly connected: DD is weakly connected if the underlying undirected graph (ignoring directions) is connected. The drawn digraph has every vertex linked to the others in this sense, so it is weakly connected.

  4. Strongly connected: this requires a directed path from every vertex to every other vertex. DD is not strongly connected, because it has a source (in-degree 0) or a sink (out-degree 0), so some vertices cannot be reached from, or cannot return to, the others.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 1 mark

If B={6,7}B=\{6,7\} find the value of B×BB\times B.

Answer

B×B={(6,6),(6,7),(7,6),(7,7)}.B\times B=\{(6,6),(6,7),(7,6),(7,7)\}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 1 mark

Write down the partition of A={a,b,c}A=\{a,b,c\}.

Answer

A partition splits AA into non-empty, disjoint subsets whose union is AA. The partitions of {a,b,c}\{a,b,c\} are:

  • {{a},{b},{c}}\{\{a\},\{b\},\{c\}\}
  • {{a,b},{c}}\{\{a,b\},\{c\}\}
  • {{a,c},{b}}\{\{a,c\},\{b\}\}
  • {{b,c},{a}}\{\{b,c\},\{a\}\}
  • {{a,b,c}}\{\{a,b,c\}\}

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 1 mark

A={a,b,c}A=\{a,b,c\} find the power set of AA.

Answer

The power set contains all subsets of AA, so it has 23=82^3=8 elements: P(A)={∅,{a},{b},{c},{a,b},{a,c},{b,c},{a,b,c}}.P(A)=\{\varnothing,\{a\},\{b\},\{c\},\{a,b\},\{a,c\},\{b,c\},\{a,b,c\}\}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 1 mark

Evaluate: C(7,5)−C(7,2)C(7,5)-C(7,2).

Answer

C(7,5)=7!5! 2!=21C(7,5)=\dfrac{7!}{5!\,2!}=21 and C(7,2)=7!2! 5!=21C(7,2)=\dfrac{7!}{2!\,5!}=21.

C(7,5)−C(7,2)=21−21=0.C(7,5)-C(7,2)=21-21=0.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 1 mark

Draw a graph with 5 vertices each with degree 3.

Answer

No such graph exists. By the handshaking lemma, ∑deg⁡(v)=2∣E∣\sum\deg(v)=2|E| must be even, but five vertices of degree 3 give 5⋅3=155\cdot3=15, which is odd. Equivalently, the number of odd-degree vertices must be even, but here it is 5.

A graph with each vertex of degree 3 needs an even number of vertices, for example K4K_4 (4 vertices, each of degree 3).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 1 mark

Distinguish between sources and sink vertices. Draw a graph containing source and sink.

Answer

Source: a vertex of a directed graph with in-degree 0. All its edges leave it.

Sink: a vertex with out-degree 0. All its edges enter it.

Example: take vertices a,b,c,da,b,c,d with directed edges a→ba\to b, a→ca\to c, b→db\to d, c→dc\to d.

  • aa has in-degree 0, so it is a source.
  • dd has out-degree 0, so it is a sink.
  • bb and cc are neither, since each has one edge in and one out.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 1 mark

What do you mean by a trail for a graph for GG?

Answer

A trail in a graph GG is a walk (an alternating sequence of vertices and edges v0,e1,v1,…,ek,vkv_0,e_1,v_1,\dots,e_k,v_k) in which no edge is repeated; vertices may repeat. A closed trail (starting and ending at the same vertex) is a circuit.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 1 mark

When is an edge ee of a graph GG a bridge for GG?

Answer

An edge ee of a connected graph GG is a bridge when its deletion disconnects GG, that is, G−eG-e has more components than GG. Equivalently, ee is a bridge exactly when it lies on no cycle of GG.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 1 mark

Under what conditions will the complete bipartite graph Km,nK_{m,n} be a Hamiltonian?

Answer

Km,nK_{m,n} (with m,n≥1m,n\ge 1 and at least 3 vertices in all) is Hamiltonian if and only if m=n≥2m=n\ge 2.

A Hamiltonian cycle alternates between the two vertex sets, so it needs exactly as many vertices in one set as in the other. If m≠nm\ne n, the larger set has a vertex that cannot be placed in the alternating cycle.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 1 mark

Find the 7th term of (3x+13x)14\left(3x+\dfrac{1}{3x}\right)^{14}.

Answer

The general term is Tr+1=(14r)(3x)14−r(13x)rT_{r+1}=\binom{14}{r}(3x)^{14-r}\left(\dfrac{1}{3x}\right)^r. For the 7th term, r=6r=6:

T7=(146)(3x)8(13x)6=3003 (3x)2=3003⋅9x2=27027 x2.T_7=\binom{14}{6}(3x)^{8}\left(\frac{1}{3x}\right)^{6}=3003\,(3x)^2=3003\cdot 9x^2=27027\,x^2.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 4 marks

Explain types of the function with examples. R={a,b,c,d}R=\{a,b,c,d\} defined by aRbaRb if and only if aa is a multiple of bb. Find the domain, range the matrix of the relation MRM_R and its complement.

Answer

Types of functions. Let f:A→Bf:A\to B.

  • One-to-one (injective): different elements of AA have different images, f(x1)=f(x2)⇒x1=x2f(x_1)=f(x_2)\Rightarrow x_1=x_2. Example: f(x)=2x+1f(x)=2x+1 on R\mathbb R.
  • Onto (surjective): every element of BB is the image of some element of AA, so range =B=B. Example: f(x)=x3f(x)=x^3 from R\mathbb R to R\mathbb R.
  • Bijective: both one-to-one and onto. Example: f(x)=x+5f(x)=x+5 on R\mathbb R. Only bijections have inverses.
  • Constant: f(x)=cf(x)=c for all xx. Example: f(x)=4f(x)=4.
  • Identity: IA(x)=xI_A(x)=x for all x∈Ax\in A.

Relation. Take A={1,2,3,4}A=\{1,2,3,4\} and aRbaRb iff aa is a multiple of bb. Then

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

Domain ={1,2,3,4}=\{1,2,3,4\} and range ={1,2,3,4}=\{1,2,3,4\}.

With rows aa and columns bb in the order 1,2,3,41,2,3,4:

MR=(1000110010101101),MRˉ=(0111001101010010).M_R=\begin{pmatrix}1&0&0&0\\1&1&0&0\\1&0&1&0\\1&1&0&1\end{pmatrix},\qquad M_{\bar R}=\begin{pmatrix}0&1&1&1\\0&0&1&1\\0&1&0&1\\0&0&1&0\end{pmatrix}.

The complement matrix is obtained by interchanging 0 and 1 in every entry of MRM_R. It represents Rˉ={(1,2),(1,3),(1,4),(2,3),(2,4),(3,2),(3,4),(4,3)}\bar R=\{(1,2),(1,3),(1,4),(2,3),(2,4),(3,2),(3,4),(4,3)\}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 4 marks

Distinguish between a Cartesian product and a relation defined on two sets AA & BB. Given a set A={1,2,3}A=\{1,2,3\}, given a relation RR on AA which is an equivalence relation. Also state why it is called so.

Answer

Difference. The Cartesian product A×B={(a,b):a∈A,b∈B}A\times B=\{(a,b):a\in A,b\in B\} is the set of all ordered pairs. A relation from AA to BB is only a subset R⊆A×BR\subseteq A\times B, holding the pairs that satisfy some stated condition. So every relation is part of a Cartesian product, and A×BA\times B itself is the largest relation. If ∣A∣=m|A|=m and ∣B∣=n|B|=n, then ∣A×B∣=mn|A\times B|=mn, while the number of possible relations is 2mn2^{mn}.

Equivalence relation on A={1,2,3}A=\{1,2,3\}. Take

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

  • Reflexive: (1,1),(2,2),(3,3)∈R(1,1),(2,2),(3,3)\in R.
  • Symmetric: (1,2)∈R(1,2)\in R and (2,1)∈R(2,1)\in R.
  • Transitive: (1,2),(2,1)⇒(1,1)∈R(1,2),(2,1)\Rightarrow(1,1)\in R, (2,1),(1,2)⇒(2,2)∈R(2,1),(1,2)\Rightarrow(2,2)\in R, and no other chains cause trouble.

It is called an equivalence relation because it is reflexive, symmetric and transitive, so it behaves like "equality". It splits AA into disjoint classes of mutually related elements, here {1,2}\{1,2\} and {3}\{3\}, and elements in the same class are treated as equivalent.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 4 marks

What is a partial order relation? Can a relation be partial order as well as equivalence relation at the same time? Justify your answer with a suitable example.

Answer

Partial order. A relation RR on a set AA is a partial order if it is reflexive (aRaaRa), antisymmetric (aRbaRb and bRa⇒a=bbRa\Rightarrow a=b) and transitive (aRbaRb, bRc⇒aRcbRc\Rightarrow aRc).

Both at once. Yes. An equivalence relation is reflexive, symmetric and transitive. A relation that is both must be symmetric and antisymmetric, so aRb⇒bRa⇒a=baRb\Rightarrow bRa\Rightarrow a=b. Hence every related pair is of the form (a,a)(a,a), and the only such relation is the identity (equality) relation.

Example: on A={1,2,3}A=\{1,2,3\} let R={(1,1),(2,2),(3,3)}R=\{(1,1),(2,2),(3,3)\}.

  • It is reflexive, symmetric and transitive, so it is an equivalence relation (each element is its own class).
  • It is reflexive, antisymmetric (no pair a≠ba\ne b is related) and transitive, so it is a partial order.

Any relation containing a pair (a,b)(a,b) with a≠ba\ne b cannot be both, because symmetry would force (b,a)(b,a) and break antisymmetry.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 4 marks

Explain the equivalence relations and equivalence classes with the examples. If f:R→Rf:R\to R defined by f(x)=2x−3f(x)=2x-3 and g:R→Rg:R\to R defined by g(x)=4xg(x)=4x, find the composition of ff and gg, the composition of gg and ff if defined.

Answer

Equivalence relation. A relation that is reflexive, symmetric and transitive. Example: on Z\mathbb Z, a∼ba\sim b iff a−ba-b is divisible by 3.

Equivalence class. For a∈Aa\in A, [a]={x∈A:x∼a}[a]=\{x\in A: x\sim a\}. The classes form a partition of AA (they are disjoint and their union is AA). In the example the classes are

[0]={…,−3,0,3,… },[1]={…,−2,1,4,… },[2]={…,−1,2,5,… }.[0]=\{\dots,-3,0,3,\dots\},\quad [1]=\{\dots,-2,1,4,\dots\},\quad [2]=\{\dots,-1,2,5,\dots\}.

Compositions. With f(x)=2x−3f(x)=2x-3 and g(x)=4xg(x)=4x (both defined on all of R\mathbb R, so both compositions exist):

(f∘g)(x)=f(g(x))=2(4x)−3=8x−3,(f\circ g)(x)=f(g(x))=2(4x)-3=8x-3,

(g∘f)(x)=g(f(x))=4(2x−3)=8x−12.(g\circ f)(x)=g(f(x))=4(2x-3)=8x-12.

They are different, so composition is not commutative.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 4 marks

What do you mean by combination? Also prove that C(n,r)=P(n,r)r!=n!r!(n−r)!C(n,r)=\dfrac{P(n,r)}{r!}=\dfrac{n!}{r!(n-r)!}. In how many ways can a committee consisting of one man and two women be chosen from seven men and five women?

Answer

Combination. A combination of nn objects taken rr at a time is a selection of rr of them in which order does not matter. Its number is C(n,r)C(n,r).

Proof. The rr-permutations of nn objects number P(n,r)=n(n−1)⋯(n−r+1)=n!(n−r)!P(n,r)=n(n-1)\cdots(n-r+1)=\dfrac{n!}{(n-r)!}. Each rr-element subset can be arranged in r!r! orders, so the permutations are counted r!r! times by the subsets:

P(n,r)=C(n,r)⋅r! ⇒ C(n,r)=P(n,r)r!=n!r! (n−r)!.P(n,r)=C(n,r)\cdot r!\ \Rightarrow\ C(n,r)=\frac{P(n,r)}{r!}=\frac{n!}{r!\,(n-r)!}.

Committee. One man from 7 and two women from 5:

C(7,1)⋅C(5,2)=7×10=70 ways.C(7,1)\cdot C(5,2)=7\times 10=70\ \text{ways}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 4 marks

What is permutation of nn different objects? What do you mean by an rr-permutation? Find the number of permutation that can be formed from the letters of the word ELEVEN. Also determine how many of them begin and end with E?

Answer

Permutation. A permutation of nn different objects is an ordered arrangement of all nn of them; the number is n!n!.

rr-permutation. An ordered arrangement of rr objects chosen from nn different objects (0≤r≤n0\le r\le n); the number is P(n,r)=n!(n−r)!P(n,r)=\dfrac{n!}{(n-r)!}.

ELEVEN. It has 6 letters, with E repeated 3 times (L, V, N once each):

6!3!=7206=120.\frac{6!}{3!}=\frac{720}{6}=120.

Beginning and ending with E. Fix E at both ends. The remaining 4 places hold E, L, V, N, all different, so there are 4!=244!=24 arrangements.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 4 marks

State the pigeonholes principle. Using pigeonhole principle, find the minimum number of elements that one needs to take from the set S={1,2,3,4,5,6,7,8,9}S=\{1,2,3,4,5,6,7,8,9\} to be sure that two of the numbers add up to 10.

Answer

Pigeonhole principle. If n+1n+1 or more objects are placed into nn boxes, at least one box contains two or more objects. (Generally, if NN objects go into kk boxes, some box has at least ⌈N/k⌉\lceil N/k\rceil.)

Application. Split SS into the pigeonholes

{1,9}, {2,8}, {3,7}, {4,6}, {5}.\{1,9\},\ \{2,8\},\ \{3,7\},\ \{4,6\},\ \{5\}.

There are 5 boxes, and the two numbers in each two-element box add to 10. If we pick 6 numbers, two of them lie in the same box. That box cannot be {5}\{5\} (only one element), so it is a pair summing to 10.

Picking 5 is not enough, for example {1,2,3,4,5}\{1,2,3,4,5\} has no such pair. Hence the minimum number is 6.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 4 marks

Define tree with examples. Prove that for any tree GG, there are at least two vertices of degree 1.

Answer

Tree. A tree is a connected graph with no cycles. Examples: a path PnP_n (a−b−c−da-b-c-d) and a star K1,nK_{1,n} (one centre joined to nn leaves).

Theorem. Every tree with at least two vertices has at least two vertices of degree 1.

Proof. Let P=v0v1…vkP=v_0v_1\dots v_k be a longest path in the tree GG; k≥1k\ge1 because the tree has an edge. Suppose v0v_0 had a neighbour ww other than v1v_1.

  • If ww is on PP, then w,v0,v1,…,ww,v_0,v_1,\dots,w forms a cycle, which a tree cannot have.
  • If ww is not on PP, then wv0v1…vkwv_0v_1\dots v_k is a longer path, contradicting the choice of PP.

So v0v_0 has only the neighbour v1v_1, that is, deg⁡v0=1\deg v_0=1. By the same argument deg⁡vk=1\deg v_k=1. Since v0≠vkv_0\ne v_k, there are at least two vertices of degree 1. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 4 marks

What is a tree? Show that a forest with kk connected components has n−kn-k edges.

Answer

Tree. A connected graph with no cycles. A tree with nn vertices has exactly n−1n-1 edges.

Theorem. A forest (a graph whose components are all trees) 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. Therefore

∣E∣=∑i=1k(ni−1)=∑ni−k=n−k. ■|E|=\sum_{i=1}^{k}(n_i-1)=\sum n_i-k=n-k.\ \blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 4 marks

Define directed graph. Draw a directed graph with adjacency matrix.
(0100000100001001100001100)\begin{pmatrix}0&1&0&0&0\\0&0&1&0&0\\0&0&1&0&0\\1&1&0&0&0\\0&1&1&0&0\end{pmatrix}
Classify with reason whether it is weakly connected, unilaterally connected or strong connected.

Answer

Directed graph. A digraph G=(V,E)G=(V,E) consists of a set of vertices VV and a set EE of ordered pairs (u,v)(u,v) of vertices, called directed edges (arcs) from uu to vv.

Graph. Label the vertices 1,…,51,\dots,5. Row ii lists the arcs leaving ii:

  • 1→21\to2
  • 2→32\to3
  • 3→33\to3 (a loop)
  • 4→14\to1 and 4→24\to2
  • 5→25\to2 and 5→35\to3

Classification.

  • Not strongly connected: vertex 4 has no incoming arc, so no vertex can reach 4 (similarly for 5).
  • Not unilaterally connected: for the pair 4,54,5, there is no path from 4 to 5 (4 reaches only 1,2,31,2,3) and none from 5 to 4 (5 reaches only 2,32,3).
  • Weakly connected: ignoring directions, the arcs 1−21-2, 2−32-3, 4−14-1, 5−25-2 link all five vertices.

So the digraph is weakly connected only.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 2 marks

Explain the binary relation with examples? Let A={1,2,3,4,5,6}A=\{1,2,3,4,5,6\} and let RR be the equivalence relation on AA defined by R={(1,1),(1,5),(2,2),(2,3),(2,6),(3,2),(3,3),(3,6),(4,4),(5,1),(5,5),(6,2),(6,3),(6,6)}R=\{(1,1),(1,5),(2,2),(2,3),(2,6),(3,2),(3,3),(3,6),(4,4),(5,1),(5,5),(6,2),(6,3),(6,6)\}. Find the equivalence classes of RR.

Answer

Binary relation. A binary relation RR from a set AA to a set BB is a subset of A×BA\times B; aRbaRb means (a,b)∈R(a,b)\in R. Example: on A={1,2,3}A=\{1,2,3\}, R={(a,b):a<b}={(1,2),(1,3),(2,3)}R=\{(a,b): a<b\}=\{(1,2),(1,3),(2,3)\}.

Equivalence classes. [a]={x:(a,x)∈R}[a]=\{x:(a,x)\in R\}.

  • [1]={1,5}[1]=\{1,5\} (from (1,1),(1,5)(1,1),(1,5)), and [5]={1,5}[5]=\{1,5\}.
  • [2]={2,3,6}[2]=\{2,3,6\}, and [3]=[6]={2,3,6}[3]=[6]=\{2,3,6\}.
  • [4]={4}[4]=\{4\}.

So the equivalence classes are {1,5}, {2,3,6}, {4}\{1,5\},\ \{2,3,6\},\ \{4\}, which partition AA.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 2 marks

Use Pascal's triangle to find the coefficients of the expansion (a+x)5(a+x)^5.

Answer

Pascal's triangle, row 5 (each entry is the sum of the two above it):

11  11  2  11  3  3  11  4  6  4  11  5  10  10  5  1\begin{array}{c} 1\\ 1\ \ 1\\ 1\ \ 2\ \ 1\\ 1\ \ 3\ \ 3\ \ 1\\ 1\ \ 4\ \ 6\ \ 4\ \ 1\\ 1\ \ 5\ \ 10\ \ 10\ \ 5\ \ 1\end{array}

The coefficients are 1,5,10,10,5,11,5,10,10,5,1, so

(a+x)5=a5+5a4x+10a3x2+10a2x3+5ax4+x5.(a+x)^5=a^5+5a^4x+10a^3x^2+10a^2x^3+5ax^4+x^5.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 2 marks

What is the minimum number of students that must be there in a class to assure that 2 of them are born in the same month?

Answer

There are 12 months (pigeonholes). With 12 students all could be born in different months, but with 13 students two must share a month by the pigeonhole principle. So the minimum is 13.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 2 marks

Find the permutation of the letters of the word Mississippi.

Answer

MISSISSIPPI has 11 letters: M once, I four times, S four times, P twice. The number of distinct arrangements is

11!1! 4! 4! 2!=3991680024⋅24⋅2=399168001152=34650.\frac{11!}{1!\,4!\,4!\,2!}=\frac{39916800}{24\cdot24\cdot2}=\frac{39916800}{1152}=34650.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 2 marks

If GG is a connected with three vertices. Show that GG is traversable.

Answer

A connected graph is traversable (has an Euler trail) iff it has 0 or 2 vertices of odd degree.

In any graph the number of odd vertices is even. A graph with three vertices therefore has 0 or 2 odd vertices (it cannot have 1 or 3, which are odd numbers). Since GG is connected, it is traversable by Euler's theorem.

For example, the path a−b−ca-b-c has odd vertices a,ca,c and is traced a→b→ca\to b\to c; the triangle has none and is traced as a closed circuit. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 2 marks

Find the connected components of a graph G(V,E)G(V,E) where V={a,b,c,d,e,f,g,h}V=\{a,b,c,d,e,f,g,h\} and E={{a,d},{c,h},{h,d},{b,g},{f,b},{f,g},{e,d}}E=\{\{a,d\},\{c,h\},\{h,d\},\{b,g\},\{f,b\},\{f,g\},\{e,d\}\}.

Answer

Follow the edges:

  • a−da-d, d−hd-h, h−ch-c, d−ed-e link the vertices a,c,d,e,ha,c,d,e,h.
  • b−gb-g, f−bf-b, f−gf-g link the vertices b,f,gb,f,g.

The graph has two connected components, with vertex sets

{a,c,d,e,h}and{b,f,g}.\{a,c,d,e,h\}\quad\text{and}\quad\{b,f,g\}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2008 AD · 2 marks

Find the minimum spanning tree of the weighted graph given in the figure of the original paper (vertices A-G) by using Kruskal's algorithm. (Shortest path algorithm)

Answer

Kruskal's algorithm. For a connected weighted graph with n=7n=7 vertices (AA to GG):

  1. List the edges in non-decreasing order of weight.
  2. Examine them in order. Add an edge to the tree if it does not form a cycle with the edges already chosen; otherwise discard it.
  3. Stop when n−1=6n-1=6 edges have been chosen.

The result is a spanning tree of minimum total weight, and the total is the sum of the 6 chosen weights.

The edge weights are given in the figure of the original paper, which is not reproduced here, so the particular edges and total cannot be stated.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 1 mark

What can you say about a binary relation RR on AA if no elements of AA is related to itself?

Answer

RR is irreflexive: for every a∈Aa\in A, (a,a)∉R(a,a)\notin R.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 1 mark

When are two functions f,g:X→Yf, g: X\to Y said to be equal?

Answer

Two functions f,g:X→Yf,g:X\to Y are equal when they have the same domain and codomain and f(x)=g(x)f(x)=g(x) for every x∈Xx\in X.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 1 mark

Define identity function with example.

Answer

The identity function on a set AA is IA:A→AI_A:A\to A defined by IA(x)=xI_A(x)=x for all x∈Ax\in A. Example: for A={1,2,3}A=\{1,2,3\}, IA={(1,1),(2,2),(3,3)}I_A=\{(1,1),(2,2),(3,3)\}; on R\mathbb R, I(x)=xI(x)=x.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 1 mark

What do you mean by a degree sequence of a graph G(V,E)G(V,E)? Explain with an example.

Answer

The degree sequence of a graph G(V,E)G(V,E) is the list of the degrees of its vertices, written in non-increasing (or non-decreasing) order.

Example: take the graph with vertices a,b,c,da,b,c,d and edges ab, ac, ad, bcab,\ ac,\ ad,\ bc. The degrees are deg⁡a=3\deg a=3, deg⁡b=2\deg b=2, deg⁡c=2\deg c=2, deg⁡d=1\deg d=1, so the degree sequence is (3,2,2,1)(3,2,2,1). The sum is 8=2∣E∣8=2|E|.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 1 mark

Can you find bipartition sets for the complete graph K4K_4? Why?

Answer

No. K4K_4 contains triangles (any three of its vertices are mutually adjacent). A bipartite graph has no odd cycle, and in any split of the vertices into two sets, two of three triangle vertices fall in the same set and are adjacent, so no partition into two independent sets exists. Hence K4K_4 is not bipartite.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 1 mark

Which connected simple graphs have exactly one spanning tree?

Answer

A connected simple graph has exactly one spanning tree if and only if it is itself a tree (it has no cycles). If it contained a cycle, removing different edges of the cycle would give different spanning trees.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 1 mark

What is the sum of entries in a row of the adjacency matrix for a directed graph?

Answer

The sum of the entries in row ii of the adjacency matrix of a directed graph equals the out-degree of vertex viv_i (the number of arcs leaving it). The sum of a column gives the in-degree.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 1 mark

State the necessary and sufficient condition for a directed graph to be a strongly connected.

Answer

A directed graph is strongly connected if and only if it contains a closed directed walk that includes every vertex at least once. Equivalently, for every ordered pair of vertices u,vu,v there is a directed path from uu to vv.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 1 mark

What is the height of a rooted tree?

Answer

The height of a rooted tree is the length (number of edges) of the longest path from the root to any leaf, that is, the maximum level of any vertex.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 4 marks

Define equivalence relation. Verify that the relation R={(1,1),(2,2),(3,3),(4,4),(5,5),(1,2),(2,1),(2,3),(1,3),(4,5),(3,2),(5,4),(3,1)}R=\{(1,1),(2,2),(3,3),(4,4),(5,5),(1,2),(2,1),(2,3),(1,3),(4,5),(3,2),(5,4),(3,1)\} on A={5,4,3,2,1}A=\{5,4,3,2,1\} is an equivalence relation with the help of the digraph of the relation RR.

Answer

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

Verification for A={1,2,3,4,5}A=\{1,2,3,4,5\} and

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

Draw the digraph with vertices 1,…,51,\dots,5 and an arrow x→yx\to y for each (x,y)∈R(x,y)\in R.

  • Reflexive: every vertex has a loop.
  • Symmetric: every arrow between distinct vertices has a returning arrow: 1↔21\leftrightarrow2, 2↔32\leftrightarrow3, 1↔31\leftrightarrow3, 4↔54\leftrightarrow5. So (x,y)∈R⇒(y,x)∈R(x,y)\in R\Rightarrow(y,x)\in R.
  • Transitive: the vertices {1,2,3}\{1,2,3\} form a complete digraph (all six arrows between distinct pairs plus loops), and {4,5}\{4,5\} form a complete digraph, with no arrows between the two groups. Whenever there is a path x→y→zx\to y\to z, the arrow x→zx\to z is also present.

So RR is an equivalence relation, with equivalence classes {1,2,3}\{1,2,3\} and {4,5}\{4,5\}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 4 marks

What do you mean by a partial order relation on a set? If P(S)P(S) is the set of all subsets of a given set SS, show that the inclusion relation '⊆\subseteq' is a partial ordering on the power set P(S)P(S).

Answer

Partial order. A relation on a set that is reflexive, antisymmetric and transitive. With such a relation the set is called a partially ordered set (poset).

Inclusion on P(S)P(S). Let A,B,C∈P(S)A,B,C\in P(S).

  • Reflexive: A⊆AA\subseteq A for every set AA.
  • Antisymmetric: if A⊆BA\subseteq B and B⊆AB\subseteq A, then A=BA=B (by the definition of set equality).
  • Transitive: if A⊆BA\subseteq B and B⊆CB\subseteq C, then every x∈Ax\in A lies in BB and hence in CC, so A⊆CA\subseteq C.

Hence ⊆\subseteq is a partial ordering on P(S)P(S). ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 4 marks

Define composition of relations. Let A={1,2,3}A=\{1,2,3\}, B={a,b,c,d}B=\{a,b,c,d\} and C={x,y,z,w}C=\{x,y,z,w\} be three sets. If R={(1,a),(1,b),(3,c),(3,d)}R=\{(1,a),(1,b),(3,c),(3,d)\} and S={(a,x),(b,x),(b,z),(d,w)}S=\{(a,x),(b,x),(b,z),(d,w)\} are two relations from AA to BB and BB to CC respectively, verify that i) MS∘R=MR⊙MSM_{S\circ R}=M_R\odot M_S and ii) M(S∘R)−1=MST⊙MRTM_{(S\circ R)^{-1}}=M_S^T\odot M_R^T.

Answer

Composition. If RR is a relation from AA to BB and SS is a relation from BB to CC, then S∘R={(a,c):∃ b∈B, (a,b)∈R and (b,c)∈S}S\circ R=\{(a,c): \exists\, b\in B,\ (a,b)\in R \text{ and } (b,c)\in S\}, a relation from AA to CC.

Compute. R={(1,a),(1,b),(3,c),(3,d)}R=\{(1,a),(1,b),(3,c),(3,d)\}, S={(a,x),(b,x),(b,z),(d,w)}S=\{(a,x),(b,x),(b,z),(d,w)\}.

  • 1→a→x1\to a\to x, 1→b→x1\to b\to x, 1→b→z1\to b\to z.
  • 3→c3\to c: cc has no pair in SS. 3→d→w3\to d\to w.

S∘R={(1,x),(1,z),(3,w)}.S\circ R=\{(1,x),(1,z),(3,w)\}.

Matrices. Order A=1,2,3A=1,2,3; B=a,b,c,dB=a,b,c,d; C=x,y,z,wC=x,y,z,w.

MR=(110000000011),MS=(1000101000000001).M_R=\begin{pmatrix}1&1&0&0\\0&0&0&0\\0&0&1&1\end{pmatrix},\qquad M_S=\begin{pmatrix}1&0&0&0\\1&0&1&0\\0&0&0&0\\0&0&0&1\end{pmatrix}.

i. The Boolean product MR⊙MSM_R\odot M_S:

  • Row 1 is the OR of rows aa and bb of MSM_S: (1,0,0,0)∨(1,0,1,0)=(1,0,1,0)(1,0,0,0)\vee(1,0,1,0)=(1,0,1,0).
  • Row 2 is (0,0,0,0)(0,0,0,0).
  • Row 3 is the OR of rows cc and dd: (0,0,0,0)∨(0,0,0,1)=(0,0,0,1)(0,0,0,0)\vee(0,0,0,1)=(0,0,0,1).

MR⊙MS=(101000000001),M_R\odot M_S=\begin{pmatrix}1&0&1&0\\0&0&0&0\\0&0&0&1\end{pmatrix},

which is exactly the matrix of S∘R={(1,x),(1,z),(3,w)}S\circ R=\{(1,x),(1,z),(3,w)\}. So MS∘R=MR⊙MSM_{S\circ R}=M_R\odot M_S.

ii. (S∘R)−1={(x,1),(z,1),(w,3)}(S\circ R)^{-1}=\{(x,1),(z,1),(w,3)\}, whose matrix (rows x,y,z,wx,y,z,w, columns 1,2,31,2,3) is

M(S∘R)−1=(100000100001).M_{(S\circ R)^{-1}}=\begin{pmatrix}1&0&0\\0&0&0\\1&0&0\\0&0&1\end{pmatrix}.

Now

MST=(1100000001000001),MRT=(100100001001).M_S^T=\begin{pmatrix}1&1&0&0\\0&0&0&0\\0&1&0&0\\0&0&0&1\end{pmatrix},\qquad M_R^T=\begin{pmatrix}1&0&0\\1&0&0\\0&0&1\\0&0&1\end{pmatrix}.

The Boolean product MST⊙MRTM_S^T\odot M_R^T has row xx: columns of MRTM_R^T ORed over the 1s in (1,1,0,0)(1,1,0,0), i.e. rows a,ba,b of MRTM_R^T: (1,0,0)∨(1,0,0)=(1,0,0)(1,0,0)\vee(1,0,0)=(1,0,0). Row yy is (0,0,0)(0,0,0). Row zz uses only row bb: (1,0,0)(1,0,0). Row ww uses only row dd: (0,0,1)(0,0,1). This gives

MST⊙MRT=(100000100001)=M(S∘R)−1. ✓M_S^T\odot M_R^T=\begin{pmatrix}1&0&0\\0&0&0\\1&0&0\\0&0&1\end{pmatrix}=M_{(S\circ R)^{-1}}.\ \checkmark

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 4 marks

What is a mapping from a set AA into a set BB? When is a mapping said to be surjection? Let a function f:N→Nf:N\to N define by f(n)=4nf(n)=4n for all n∈Nn\in N (set of natural numbers). Then determine whether the function is bijection or not.

Answer

Mapping. A mapping (function) from AA into BB is a rule ff assigning to every element of AA exactly one element of BB, written f:A→Bf:A\to B.

Surjection. f:A→Bf:A\to B is a surjection (onto) if every b∈Bb\in B has at least one a∈Aa\in A with f(a)=bf(a)=b; that is, range =B=B.

f(n)=4nf(n)=4n on N\mathbb N.

  • One-to-one: 4n1=4n2⇒n1=n24n_1=4n_2\Rightarrow n_1=n_2. Yes.
  • Onto: the range is {4,8,12,… }\{4,8,12,\dots\}. For example, 1∈N1\in\mathbb N has no pre-image since 4n=14n=1 gives n=14∉Nn=\tfrac14\notin\mathbb N. So ff is not onto.

A bijection must be both, so ff is not a bijection (it is injective only).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 4 marks

Distinguish between permutation and combination. Prove that P(n,r)=n!(n−r)!P(n,r)=\dfrac{n!}{(n-r)!}. In how many ways a committee consisting of two men and three women be chosen from eight men and six women?

Answer

Difference. A permutation is an ordered arrangement of objects, so order matters (ab≠baab\ne ba). A combination is an unordered selection, so order does not matter ({a,b}={b,a}\{a,b\}=\{b,a\}). Each combination of rr objects gives r!r! permutations, so P(n,r)=r! C(n,r)P(n,r)=r!\,C(n,r).

Proof that P(n,r)=n!(n−r)!P(n,r)=\dfrac{n!}{(n-r)!}. Fill rr positions in turn. The first can be filled in nn ways, the second in n−1n-1 ways, and so on, until the rr-th can be filled in n−r+1n-r+1 ways. By the multiplication principle P(n,r)=n(n−1)(n−2)⋯(n−r+1)=n(n−1)⋯(n−r+1) (n−r)!(n−r)!=n!(n−r)!.P(n,r)=n(n-1)(n-2)\cdots(n-r+1)=\frac{n(n-1)\cdots(n-r+1)\,(n-r)!}{(n-r)!}=\frac{n!}{(n-r)!}.

Committee. Choose 2 men from 8 and 3 women from 6: C(8,2)⋅C(6,3)=28×20=560 ways.C(8,2)\cdot C(6,3)=28\times 20=560 \text{ ways.}

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 4 marks

Define undirected graph. What is a relationship between the sum of the degree of the vertices and the number of edges in a graph G(V,E)G(V,E)? Show that the number of odd vertices in a graph is always even.

Answer

Undirected graph. A graph G(V,E)G(V,E) consists of a non-empty set VV of vertices and a set EE of edges, where each edge is an unordered pair of vertices {u,v}\{u,v\}, so the edges have no direction.

Relationship (handshaking lemma). ∑v∈Vdeg⁡(v)=2∣E∣.\sum_{v\in V}\deg(v)=2|E|. Each edge has two end points and so adds exactly 2 to the total of the degrees (a loop adds 2 to one vertex).

The number of odd vertices is even. Let VeV_e and VoV_o be the sets of vertices of even and odd degree. 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 ∣Vo∣|V_o| odd numbers, which is even only if ∣Vo∣|V_o| is even. Hence the number of odd vertices is always even.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 4 marks

Define tree. Prove that every tree of order two or more has at least two vertices of degree one.

Answer

Tree. A tree is a connected graph with no cycles.

Theorem. Every tree of order n≥2n\ge 2 has at least two vertices of degree one.

Proof. Since n≥2n\ge2 and the tree is connected, it has at least one edge. Let P=v0v1…vmP=v_0v_1\dots v_m (m≥1m\ge1) be a longest path in the tree.

Suppose v0v_0 had a neighbour ww other than v1v_1.

  • If ww is not on PP, then wv0v1…vmwv_0v_1\dots v_m is a longer path, a contradiction.
  • If w=viw=v_i for some i≥2i\ge2, then v0v1…viv0v_0v_1\dots v_iv_0 is a cycle, impossible in a tree.

So v0v_0 is adjacent only to v1v_1, i.e. deg⁡v0=1\deg v_0=1. By the same argument deg⁡vm=1\deg v_m=1. As v0≠vmv_0\ne v_m, the tree has at least two vertices of degree one. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 4 marks

Determine the total number of spanning trees of the complete graph K4K_4, by using Matrix-Tree Theorem.

Answer

Matrix-Tree Theorem. The number of spanning trees of a graph GG equals any cofactor of its Laplacian matrix L=D−AL=D-A (degree matrix minus adjacency matrix).

For K4K_4 every vertex has degree 3, so L=(3−1−1−1−13−1−1−1−13−1−1−1−13).L=\begin{pmatrix}3&-1&-1&-1\\-1&3&-1&-1\\-1&-1&3&-1\\-1&-1&-1&3\end{pmatrix}.

Delete the first row and column:

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

Hence K4K_4 has 1616 spanning trees (agreeing with Cayley's formula nn−2=42=16n^{n-2}=4^2=16).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 4 marks

Use a breadth-first search to produce a spanning tree for the simple graph given in the figure of the original paper (vertices a-i), choosing 'd' as the root of the spanning tree. Assuming the obtained spanning tree as an ordered rooted tree find the universal address to each of the vertex and also place the addresses in lexicographic order.

Answer

Breadth-first search (BFS). Start at the root dd. Visit all its neighbours (level 1) and join them to dd by tree edges. Then, taking the level-1 vertices in order, visit each one's still unvisited neighbours (level 2), and so on. An edge that would lead to an already visited vertex is discarded, so no cycle forms. When every vertex is visited, the chosen edges form a spanning tree.

Procedure for the given graph (root dd).

  1. Put dd in the queue. Take its unvisited neighbours in alphabetical order and add the edges dd-neighbour.
  2. Take the next vertex in the queue, add edges to its unvisited neighbours (alphabetically), and enqueue them.
  3. Repeat until the queue is empty. The edges added form the BFS spanning tree TT.

Universal addresses. Treat TT as an ordered rooted tree. The root has address 00. If a vertex has address AA, its children, from left to right, get addresses A.1,A.2,A.3,…A.1,A.2,A.3,\dots. Thus the children of the root are 1,2,3,…1,2,3,\dots, their children are 1.1,1.2,…,2.1,…1.1,1.2,\dots,2.1,\dots, and so on.

Lexicographic order. Compare addresses component by component, and a prefix comes before its extensions. For example 0<1<1.1<1.2<1.2.1<2<2.1<3<⋯0<1<1.1<1.2<1.2.1<2<2.1<3<\cdots Listing the addresses in this order gives the preorder (depth-first) listing of the vertices of TT.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 2 marks

What is a binary relation from a set AA to a set BB? Find the domain and the range of the relation R={(x,y):x≡y(mod3)}R=\{(x,y): x\equiv y \pmod 3\} on the set {1,2,3,4,5}\{1,2,3,4,5\}.

Answer

Binary relation. A binary relation RR from a set AA to a set BB is a subset of the Cartesian product A×BA\times B, i.e. a set of ordered pairs (a,b)(a,b) with a∈Aa\in A, b∈Bb\in B.

Given relation. On {1,2,3,4,5}\{1,2,3,4,5\}, x≡y(mod3)x\equiv y \pmod 3 holds for the pairs within the classes {1,4}\{1,4\}, {2,5}\{2,5\}, {3}\{3\}: R={(1,1),(1,4),(4,1),(4,4),(2,2),(2,5),(5,2),(5,5),(3,3)}.R=\{(1,1),(1,4),(4,1),(4,4),(2,2),(2,5),(5,2),(5,5),(3,3)\}.

  • Domain ={1,2,3,4,5}=\{1,2,3,4,5\}
  • Range ={1,2,3,4,5}=\{1,2,3,4,5\}

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 2 marks

Define floor function and ceiling function. Evaluate ⌈log⁡250⌉−⌊34⌋\lceil\log_2 50\rceil-\lfloor \frac{3}{4}\rfloor.

Answer

Floor function ⌊x⌋\lfloor x\rfloor is the greatest integer less than or equal to xx. Ceiling function ⌈x⌉\lceil x\rceil is the least integer greater than or equal to xx.

Since 25=32<50<64=262^5=32<50<64=2^6, we have 5<log⁡250<65<\log_2 50<6, so ⌈log⁡250⌉=6\lceil\log_2 50\rceil=6. Also ⌊34⌋=0\lfloor\tfrac34\rfloor=0. Therefore ⌈log⁡250⌉−⌊34⌋=6−0=6.\lceil\log_2 50\rceil-\lfloor\tfrac34\rfloor=6-0=6.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 2 marks

Using the principle of mathematical induction, prove that for all integer n≥1n\ge 1 the statement p(n)p(n): 2+4+6+⋯+2n=n(n+1)2+4+6+\dots+2n=n(n+1).

Answer

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

Basis. For n=1n=1: LHS =2=2, RHS =1⋅2=2=1\cdot2=2. So p(1)p(1) is true.

Inductive step. Assume p(k)p(k) is true for some k≥1k\ge1: 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 the principle of mathematical induction, p(n)p(n) is true for all integers n≥1n\ge1. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 2 marks

What do you mean by Pascal's theorem? If (a+b)3=a3+3a2b+3ab2+b3(a+b)^3=a^3+3a^2b+3ab^2+b^3 find (a+b)4(a+b)^4 and (a+b)5(a+b)^5 by Pascal's theorem.

Answer

Pascal's theorem (Pascal's triangle). The binomial coefficients can be arranged in a triangle in which each row begins and ends with 1 and every other entry is the sum of the two entries just above it, because C(n,k)=C(n−1,k−1)+C(n−1,k).C(n,k)=C(n-1,k-1)+C(n-1,k). The nn-th row gives the coefficients of (a+b)n(a+b)^n.

The row for (a+b)3(a+b)^3 is 1,3,3,11,3,3,1. Adding adjacent entries gives the next rows:

  • n=4n=4: 1,4,6,4,11,4,6,4,1
  • n=5n=5: 1,5,10,10,5,11,5,10,10,5,1

Therefore (a+b)4=a4+4a3b+6a2b2+4ab3+b4,(a+b)^4=a^4+4a^3b+6a^2b^2+4ab^3+b^4, (a+b)5=a5+5a4b+10a3b2+10a2b3+5ab4+b5.(a+b)^5=a^5+5a^4b+10a^3b^2+10a^2b^3+5ab^4+b^5.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 2 marks

When is a graph said to be self-complementary? Show that the graph given in the figure of the original paper (a path on four vertices a, b, c, d) is self-complementary.

Answer

A simple graph GG is self-complementary if it is isomorphic to its complement G‾\overline G (the graph on the same vertices in which two vertices are adjacent exactly when they are not adjacent in GG).

The path P4P_4: a−b−c−da-b-c-d. Its edges are ab,bc,cdab,bc,cd. The complement has edges ac,ad,bdac,ad,bd, which form the path c−a−d−bc-a-d-b.

Define φ:G→G‾\varphi:G\to\overline G by φ(a)=c, φ(b)=a, φ(c)=d, φ(d)=b\varphi(a)=c,\ \varphi(b)=a,\ \varphi(c)=d,\ \varphi(d)=b. Then

  • ab↦ca∈G‾ab\mapsto ca\in\overline G
  • bc↦ad∈G‾bc\mapsto ad\in\overline G
  • cd↦db∈G‾cd\mapsto db\in\overline G

so φ\varphi is an isomorphism (a bijection preserving adjacency, with both graphs having 3 edges). Hence P4≅P4‾P_4\cong\overline{P_4} and the graph is self-complementary.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 2 marks

Test the graph of platonic solid "Cube" for Eulerian circuits and Hamiltonian cycles. If they exist, find them.

Answer

The cube graph Q3Q_3 has 8 vertices and 12 edges, and every vertex has degree 3.

Eulerian circuit. A connected graph has an Eulerian circuit only if every vertex has even degree. All vertices here have odd degree 3, so the cube has no Eulerian circuit.

Hamiltonian cycle. Label the vertices by 3-bit strings, adjacent when they differ in one bit. The Gray-code order gives a cycle through all 8 vertices: 000→001→011→010→110→111→101→100→000.000\to001\to011\to010\to110\to111\to101\to100\to000 . Each consecutive pair differs in exactly one bit, so this is a Hamiltonian cycle.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 2 marks

What is a full binary tree? Construct the binary tree of the following algebraic expression (((x+2)↑3)×(y−(3+x)))÷5(((x+2)\uparrow 3)\times(y-(3+x)))\div 5.

Answer

Full binary tree. A rooted tree in which every internal vertex has exactly two children (so no vertex has exactly one child).

Tree of (((x+2)↑3)×(y−(3+x)))÷5(((x+2)\uparrow 3)\times(y-(3+x)))\div 5. The root is the operator evaluated last, and each operator has its two operands as children:

                    ÷
                 /     \
               ×         5
            /     \
          ↑           −
        /   \       /   \
      +      3     y      +
     / \                 / \
    x   2               3   x
  • Root: ÷\div, with children ×\times and 55.
  • ×\times has children ↑\uparrow and −-.
  • ↑\uparrow has children (x+2)(x+2) and 33.
  • −- has children yy and (3+x)(3+x).

Every internal vertex has two children, so it is a full binary tree.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2009 AD · 2 marks

Define tree with examples. Proves that for any tree GG, there are at least two vertices of degree one.

Answer

Tree. A tree is a connected graph with no cycles. Examples: a path PnP_n, a star K1,nK_{1,n}, and any connected acyclic graph such as one with edges {ab,bc,bd}\{ab,bc,bd\}.

Theorem. Any tree with at least two vertices has at least two vertices of degree one.

Proof. Take a longest path v0v1…vmv_0v_1\dots v_m in the tree (m≥1m\ge1). If v0v_0 had another neighbour w≠v1w\ne v_1, then either ww is off the path and the path could be extended (contradicting maximality), or w=viw=v_i on the path and a cycle would result (impossible in a tree). So deg⁡v0=1\deg v_0=1, and similarly deg⁡vm=1\deg v_m=1. These are two different vertices, so at least two vertices have degree one. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 1 mark

Find all partitions of the set A={q,r,s}A=\{q,r,s\}

Answer

A partition of AA is a collection of non-empty, pairwise disjoint subsets whose union is AA. For A={q,r,s}A=\{q,r,s\} there are 5 partitions:

  1. {{q},{r},{s}}\{\{q\},\{r\},\{s\}\}
  2. {{q,r},{s}}\{\{q,r\},\{s\}\}
  3. {{q,s},{r}}\{\{q,s\},\{r\}\}
  4. {{r,s},{q}}\{\{r,s\},\{q\}\}
  5. {{q,r,s}}\{\{q,r,s\}\}

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 1 mark

When is a relation RR on a set AA said to be asymmetric?

Answer

A relation RR on a set AA is asymmetric if for all a,b∈Aa,b\in A, whenever (a,b)∈R(a,b)\in R then (b,a)∉R(b,a)\notin R. (In particular, no (a,a)(a,a) can be in RR.)

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 1 mark

What is a function from a set AA to set BB?

Answer

A function ff from a set AA to a set BB, written f:A→Bf:A\to B, is a rule that assigns to every element a∈Aa\in A exactly one element f(a)∈Bf(a)\in B.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 1 mark

How many different bit strings are there of length 5?

Answer

Each of the 5 positions can be 0 or 1, so by the multiplication principle there are 25=322^5=32 bit strings of length 5.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 1 mark

What is the coefficient of x22y3x^{22}y^3 for the expansion of (x+y)25(x+y)^{25}?

Answer

In (x+y)25=∑kC(25,k)x25−kyk(x+y)^{25}=\sum_k C(25,k)x^{25-k}y^k, the term x22y3x^{22}y^3 has k=3k=3, so the coefficient is C(25,3)=25⋅24⋅233!=2300.C(25,3)=\frac{25\cdot24\cdot23}{3!}=2300.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 1 mark

Find degree sequence of the complete bipartite graph K4,5K_{4,5}.

Answer

In K4,5K_{4,5} each of the 4 vertices in the first part is adjacent to all 5 vertices of the other part (degree 5), and each of the 5 vertices in the second part is adjacent to all 4 vertices of the first (degree 4).

Degree sequence: (5,5,5,5,4,4,4,4,4)(5,5,5,5,4,4,4,4,4).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 1 mark

What is difference between source vertex and sink vertex in a digraph DD?

Answer

In a digraph DD, a source vertex has in-degree 00 (edges only leave it, no edge enters it), while a sink vertex has out-degree 00 (edges only enter it, none leave it).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 1 mark

What is meant by tree traversal?

Answer

Tree traversal is the process of visiting every vertex of a rooted tree exactly once in a systematic order. The standard orders are preorder (root, then subtrees left to right), inorder (left subtree, root, right subtree) and postorder (subtrees, then root).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 1 mark

Draw a digraph with four vertices which is neither strongly connected nor unilaterally connected.

Answer

Take vertices a,b,c,da,b,c,d with only two arcs, a→ba\to b and c→dc\to d:

a ──► b        c ──► d
  • Not strongly connected: there is no path from bb to aa.
  • Not unilaterally connected: for the pair a,ca,c there is no path from aa to cc and none from cc to aa.

(It is not even weakly connected, so it fails both conditions.)

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 4 marks

What is a binary relation from a set AA to another set BB? If the relation RR on the set A={1,2,3,4,5}A=\{1,2,3,4,5\} defined by the rule (x,y)(x,y) such that x+y≤6x+y\le 6, find the domain and the range of the relation RR and also verify that (MR)T=MR−1(M_R)^T=M_{R^{-1}}.

Answer

Binary relation. A binary relation from a set AA to a set BB is a subset of A×BA\times B, i.e. a set of ordered pairs (a,b)(a,b) with a∈A, b∈Ba\in A,\ b\in B.

Given relation. R={(x,y):x+y≤6}R=\{(x,y):x+y\le6\} on A={1,2,3,4,5}A=\{1,2,3,4,5\}:

  • x=1x=1: y=1,2,3,4,5y=1,2,3,4,5
  • x=2x=2: y=1,2,3,4y=1,2,3,4
  • x=3x=3: y=1,2,3y=1,2,3
  • x=4x=4: y=1,2y=1,2
  • x=5x=5: y=1y=1

Domain ={1,2,3,4,5}=\{1,2,3,4,5\} and range ={1,2,3,4,5}=\{1,2,3,4,5\}.

Verification. The matrix MRM_R (rows xx, columns yy) is MR=(1111111110111001100010000).M_R=\begin{pmatrix}1&1&1&1&1\\1&1&1&1&0\\1&1&1&0&0\\1&1&0&0&0\\1&0&0&0&0\end{pmatrix}. R−1={(y,x):(x,y)∈R}R^{-1}=\{(y,x):(x,y)\in R\}. Since x+y≤6  ⟺  y+x≤6x+y\le 6\iff y+x\le6, we get R−1=RR^{-1}=R, so MR−1=MRM_{R^{-1}}=M_R. The matrix above is symmetric, so (MR)T=MR=MR−1(M_R)^T=M_R=M_{R^{-1}}. Hence (MR)T=MR−1(M_R)^T=M_{R^{-1}} is verified.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 4 marks

Define an invertible function. Let X=Y=RX=Y=R, the set of real numbers and let f:X→Yf:X\to Y be given by the formula f(x)=2x3−1f(x)=2x^3-1 and g:Y→Xg:Y\to X be given by the formula g(y)=12y+123g(y)=\sqrt[3]{\frac{1}{2}y+\frac{1}{2}}. Show that ff is bijection between XX and YY, and gg is a bijection between YY and XX.

Answer

Invertible function. f:X→Yf:X\to Y is invertible if there is a function g:Y→Xg:Y\to X with g∘f=idXg\circ f=\mathrm{id}_X and f∘g=idYf\circ g=\mathrm{id}_Y. This holds exactly when ff is a bijection (one-to-one and onto).

f(x)=2x3−1f(x)=2x^3-1.

  • One-to-one: f(a)=f(b)⇒2a3=2b3⇒a=bf(a)=f(b)\Rightarrow 2a^3=2b^3\Rightarrow a=b (cube roots are unique in R\mathbb R).
  • Onto: for y∈Ry\in\mathbb R, let x=y+123∈Rx=\sqrt[3]{\tfrac{y+1}{2}}\in\mathbb R. Then f(x)=2⋅y+12−1=yf(x)=2\cdot\tfrac{y+1}{2}-1=y.

So ff is a bijection from XX to YY.

g(y)=y+123g(y)=\sqrt[3]{\tfrac{y+1}{2}}.

  • One-to-one: g(a)=g(b)⇒a+12=b+12⇒a=bg(a)=g(b)\Rightarrow \tfrac{a+1}{2}=\tfrac{b+1}{2}\Rightarrow a=b.
  • Onto: for x∈Rx\in\mathbb R, take y=2x3−1y=2x^3-1; then g(y)=x33=xg(y)=\sqrt[3]{x^3}=x.

So gg is a bijection from YY to XX. Moreover g(f(x))=2x323=xg(f(x))=\sqrt[3]{\tfrac{2x^3}{2}}=x and f(g(y))=yf(g(y))=y, so g=f−1g=f^{-1}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 4 marks

Define permutation. Find the number of permutations of the letters in the word 'COMPUTER' taken four at a time in which i) two letters M and R do not occur. ii) two letters M and R do occur always.

Answer

Permutation. An ordered arrangement of rr objects chosen from nn distinct objects; the number is P(n,r)=n!(n−r)!P(n,r)=\dfrac{n!}{(n-r)!}.

COMPUTER has 8 distinct letters: C, O, M, P, U, T, E, R.

(i) M and R do not occur. Choose and arrange 4 letters from the other 6: P(6,4)=6⋅5⋅4⋅3=360.P(6,4)=6\cdot5\cdot4\cdot3=360.

(ii) M and R always occur. Choose the other 2 letters from the remaining 6 in C(6,2)=15C(6,2)=15 ways, then arrange the 4 chosen letters in 4!=244!=24 ways: 15×24=360.15\times24=360.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 4 marks

State Binomial Theorem for positive index nn. Show that
a. C(n,0)+C(n,1)+C(n,2)+⋯+C(n,n)=2nC(n,0)+C(n,1)+C(n,2)+\dots+C(n,n)=2^n. b. C(n,0)+C(n,2)+C(n,4)+⋯=C(n,1)+C(n,3)+C(n,5)+⋯=2n−1C(n,0)+C(n,2)+C(n,4)+\dots=C(n,1)+C(n,3)+C(n,5)+\dots=2^{n-1}.

Answer

Binomial theorem. For a positive integer nn, (x+y)n=∑k=0nC(n,k) xn−kyk.(x+y)^n=\sum_{k=0}^{n}C(n,k)\,x^{n-k}y^k .

(a) Put x=y=1x=y=1: 2n=C(n,0)+C(n,1)+C(n,2)+⋯+C(n,n).2^n=C(n,0)+C(n,1)+C(n,2)+\dots+C(n,n).

(b) Put x=1, y=−1x=1,\ y=-1: 0=C(n,0)−C(n,1)+C(n,2)−C(n,3)+…0=C(n,0)-C(n,1)+C(n,2)-C(n,3)+\dots so C(n,0)+C(n,2)+C(n,4)+⋯=C(n,1)+C(n,3)+C(n,5)+… .C(n,0)+C(n,2)+C(n,4)+\dots=C(n,1)+C(n,3)+C(n,5)+\dots . By (a) the sum of the two sides is 2n2^n, so each side equals 2n2=2n−1\dfrac{2^n}{2}=2^{n-1}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 4 marks

Show that the following graphs G1G_1 and G2G_2 are isomorphic by showing their corresponding adjacency matrices are equal. (Figure in the original paper: G1G_1 is a pentagon, G2G_2 is a pentagram.)

Answer

Two graphs are isomorphic if there is a bijection of the vertices that preserves adjacency, i.e. after a suitable ordering of the vertices their adjacency matrices are equal.

G1G_1 (pentagon) with vertices 1,2,3,4,51,2,3,4,5 and edges 12,23,34,45,5112,23,34,45,51: A(G1)=(0100110100010100010110010).A(G_1)=\begin{pmatrix}0&1&0&0&1\\1&0&1&0&0\\0&1&0&1&0\\0&0&1&0&1\\1&0&0&1&0\end{pmatrix}.

G2G_2 (pentagram) with vertices 1,2,3,4,51,2,3,4,5 has edges 13,35,52,24,4113,35,52,24,41 (each vertex joined to the two non-neighbours on the pentagon). Order its vertices as (1,3,5,2,4)(1,3,5,2,4) and call them v1,…,v5v_1,\dots,v_5. Its edges then become v1v2, v2v3, v3v4, v4v5, v5v1v_1v_2,\ v_2v_3,\ v_3v_4,\ v_4v_5,\ v_5v_1, so A(G2)=(0100110100010100010110010)=A(G1).A(G_2)=\begin{pmatrix}0&1&0&0&1\\1&0&1&0&0\\0&1&0&1&0\\0&0&1&0&1\\1&0&0&1&0\end{pmatrix}=A(G_1).

The isomorphism is 1↦1, 2↦3, 3↦5, 4↦2, 5↦41\mapsto1,\ 2\mapsto3,\ 3\mapsto5,\ 4\mapsto2,\ 5\mapsto4. Since the adjacency matrices are equal, G1≅G2G_1\cong G_2.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 4 marks

Prove that loop free undirected graph G(V,E)G(V,E) is a tree, if there is a unique path between any two vertices of GG.

Answer

A tree is a connected graph with no cycles. Suppose a loop-free undirected graph GG has a unique path between every pair of vertices.

GG is connected. Any two vertices are joined by a path (a unique one exists), so GG is connected.

GG has no cycle. Suppose GG contained a cycle CC. Take two distinct vertices u,vu,v on CC. The cycle gives two different paths from uu to vv (the two arcs of CC), contradicting uniqueness. (A cycle of length 2 would need parallel edges giving two paths between the same pair, which is likewise excluded.) Hence GG has no cycles.

A connected graph without cycles is a tree, so GG is a tree. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 4 marks

Define tree and forest. Show that every forest of order nn with kk components has n−kn-k edges.

Answer

Tree. A connected graph with no cycles. Forest. A graph with no cycles (each component is a tree); equivalently, a disjoint union of trees.

Theorem. A forest of order nn with 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, where n1+⋯+nk=nn_1+\dots+n_k=n. A tree on nin_i vertices has ni−1n_i-1 edges, so 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

(The fact that a tree on mm vertices has m−1m-1 edges follows by induction: removing a leaf, which exists because a tree with at least two vertices has two vertices of degree one, leaves a tree on m−1m-1 vertices and removes exactly one edge.)

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 4 marks

Consider a tree TT defined on the vertices set V={a,b,c,d,e,f,g,h,i,j,k,l}V=\{a,b,c,d,e,f,g,h,i,j,k,l\} and the edges set E={{a,b},{c,d},{a,k},{b,e},{f,e},{e,d},{e,g},{g,h},{g,i},{j,i},{l,f}}E=\{\{a,b\},\{c,d\},\{a,k\},\{b,e\},\{f,e\},\{e,d\},\{e,g\},\{g,h\},\{g,i\},\{j,i\},\{l,f\}\}. Draw a rooted tree from the tree, choosing gg as the root. Find a) the path from the root gg to each leaf and the height of the rooted tree. b) siblings of bb and subtree at ee. c) descendants of bb and all branch nodes of the rooted tree.

Answer

The adjacencies are: aa: b,kb,k; bb: a,ea,e; cc: dd; dd: c,ec,e; ee: b,f,d,gb,f,d,g; ff: e,le,l; gg: e,h,ie,h,i; hh: gg; ii: g,jg,j; jj: ii; kk: aa; ll: ff.

Rooted tree with root gg:

  • gg has children e,h,ie,h,i
  • ee has children b,f,db,f,d
  • ii has child jj
  • bb has child aa; aa has child kk
  • ff has child ll
  • dd has child cc
                g
        /       |      \
       e        h        i
    /  |  \               |
   b   f   d              j
   |   |   |
   a   l   c
   |
   k

(a) Leaves and paths from the root. The leaves are h,k,l,c,jh,k,l,c,j.

  • g→hg\to h
  • g→e→b→a→kg\to e\to b\to a\to k
  • g→e→f→lg\to e\to f\to l
  • g→e→d→cg\to e\to d\to c
  • g→i→jg\to i\to j

The longest path has 4 edges, so the height of the rooted tree is 44.

(b) Siblings of bb: ff and dd. Subtree at ee: vertices {e,b,f,d,a,k,l,c}\{e,b,f,d,a,k,l,c\} with edges eb, ef, ed, ba, ak, fl, dceb,\ ef,\ ed,\ ba,\ ak,\ fl,\ dc.

(c) Descendants of bb: aa and kk. Branch (internal) nodes: g,e,i,b,a,f,dg,e,i,b,a,f,d (all vertices that have children).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 2 marks

Determine whether the relation '<' (less than) defined on ZZ, the integers is a partial order relation or a total ordered relation.

Answer

The relation << on Z\mathbb{Z} is not a partial order, and hence not a total order.

A partial order must be reflexive, antisymmetric and transitive. Here a<aa<a is false for every integer aa, so << is not reflexive. (It is antisymmetric, vacuously, and transitive, so it is a strict partial order.) Since it fails reflexivity it is not a partial order, and a total order must first be a partial order.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 2 marks

Define the sequence 2, 5, 8, 11, 14, 17, ........
a. explicitly b. recursively

Answer

The terms increase by 33 each time, starting at 22.

(a) Explicit: an=3n−1, n≥1a_n = 3n-1,\ n\ge 1.

(b) Recursive: a1=2, an=an−1+3a_1 = 2,\ a_n = a_{n-1}+3 for n≥2n\ge 2.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 2 marks

Show that the set of odd natural numbers is countable.

Answer

A set is countable if it is finite or can be put in one-to-one correspondence with N={1,2,3,… }\mathbb{N}=\{1,2,3,\dots\}.

Define f:N→Of:\mathbb{N}\to O (the odd natural numbers) by f(n)=2n−1f(n)=2n-1. It is one-to-one, since 2n−1=2m−12n-1=2m-1 gives n=mn=m. It is onto, since every odd number kk equals f ⁣(k+12)f\!\left(\frac{k+1}{2}\right) and k+12∈N\frac{k+1}{2}\in\mathbb{N}.

So ff is a bijection, and the odd natural numbers form a countably infinite set. ■\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 2 marks

By using the Pigeonholes Principle, find the minimum numbers of integers to be selected from the set S={1,2,3,4,5,6}S=\{1,2,3,4,5,6\} to be sure that two of them add up 7.

Answer

Group the elements of SS into pairs that sum to 7 (the pigeonholes):

{1,6}, {2,5}, {3,4}.\{1,6\},\ \{2,5\},\ \{3,4\}.

There are 33 pigeonholes. If 44 integers are selected, two of them lie in the same pair, and those two add up to 77. Selecting only 33 is not enough (for example 1,2,31,2,3).

The minimum number is 4.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 2 marks

If nn and rr are positive integers with r≤nr\le n, show that (n+1r)=(nr)+(nr−1)\binom{n+1}{r}=\binom{n}{r}+\binom{n}{r-1}, (Pascal Identity).

Answer

Start from the right-hand side and use (nr)=n!r!(n−r)!\binom{n}{r}=\frac{n!}{r!(n-r)!}.

(nr)+(nr−1)=n!r!(n−r)!+n!(r−1)!(n−r+1)!.\binom{n}{r}+\binom{n}{r-1}=\frac{n!}{r!(n-r)!}+\frac{n!}{(r-1)!(n-r+1)!}.

Take the common denominator r!(n−r+1)!r!(n-r+1)!:

=n! (n−r+1)+n! rr! (n−r+1)!=n! (n+1)r! (n+1−r)!=(n+1)!r! (n+1−r)!=(n+1r). ■=\frac{n!\,(n-r+1)+n!\,r}{r!\,(n-r+1)!}=\frac{n!\,(n+1)}{r!\,(n+1-r)!}=\frac{(n+1)!}{r!\,(n+1-r)!}=\binom{n+1}{r}.\ \blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 2 marks

Draw all spanning sub-graphs for the complete graph K3K_3. How many isomorphism classes are there?

Answer

A spanning subgraph of K3K_3 (vertices a,b,ca,b,c, edges ab,bc,caab,bc,ca) keeps all three vertices and any subset of the edges. There are 23=82^3=8 such subgraphs:

  • no edges: 1 graph (three isolated vertices);
  • one edge: 3 graphs (abab, bcbc or caca, plus an isolated vertex);
  • two edges: 3 graphs (a path on three vertices);
  • three edges: 1 graph (K3K_3 itself, a triangle).

Graphs with the same number of edges are isomorphic here, so there are 4 isomorphism classes (with 0,1,2,30,1,2,3 edges).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2010 AD · 2 marks

Using Kruskal's Algorithm, find the minimal spanning tree of the network given in the Dijkstra question above.

Answer

Kruskal's algorithm for a connected weighted graph with nn vertices:

  1. Sort the edges in non-decreasing order of weight.
  2. Go through them in order, adding an edge if it does not form a cycle with the edges already chosen, and discarding it otherwise.
  3. Stop when n−1n-1 edges have been chosen.

The chosen edges form a minimal spanning tree, and its weight is the sum of their weights.

The edge weights are given in the figure of the original paper (the network of the Dijkstra question), which is not reproduced here, so the particular edges and total weight cannot be stated.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2011 AD · 1 mark

When is a relation on a set AA said to be symmetric?

Answer

A relation RR on a set AA is symmetric if whenever (a,b)∈R(a,b)\in R then (b,a)∈R(b,a)\in R, for all a,b∈Aa,b\in A.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2011 AD · 1 mark

If ff is the mod. 7 function, compute f7(−81)f_7(-81).

Answer

f7(x)f_7(x) is the remainder of xx on division by 77, taken in {0,…,6}\{0,\dots,6\}. Since −81=7(−12)+3-81=7(-12)+3,

f7(−81)=3.f_7(-81)=3.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2011 AD · 1 mark

For which real number xx is the true that ⌈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 equal xx and the difference is 00. If xx is not an integer, the ceiling is the next integer above the floor, so the difference is 11.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2011 AD · 1 mark

How many different bit string are there of length 8? (where a bit is either 0 or 1)

Answer

Each of the 88 positions can be 00 or 11, so by the product rule there are 28=2562^8=256 bit strings.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2011 AD · 1 mark

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

Answer

A multigraph is traversable if it has a trail that includes every edge exactly once (it can be drawn without lifting the pencil or repeating an edge). A connected multigraph is traversable exactly when it has either no odd vertices or exactly two odd vertices.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2011 AD · 1 mark

What is meant by unilaterally connected digraph?

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 (at least one of the two, not necessarily both). Every strongly connected digraph is unilaterally connected, but not conversely.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2011 AD · 1 mark

Draw all possible non-isomorphic graphs of four vertices with three edges.

Answer

Graphs on 44 vertices with 33 edges have degree sum 66. Up to isomorphism there are exactly three:

  1. Triangle plus an isolated vertex: edges ab,bc,caab,bc,ca, vertex dd isolated. Degrees 2,2,2,02,2,2,0.
  2. Path P4P_4: edges ab,bc,cdab,bc,cd. Degrees 1,2,2,11,2,2,1.
  3. Star K1,3K_{1,3}: edges ab,ac,adab,ac,ad. Degrees 3,1,1,13,1,1,1.

They have different degree sequences, so no two are isomorphic.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2011 AD · 4 marks

Define anti-symmetric. If RR is a relation defined on a set A={4,5,6,7,8,9}A=\{4,5,6,7,8,9\} by R={(x,y):x−y≥1}R=\{(x,y):x-y\ge 1\}. Write RR as a set of ordered pairs. State whether the relation RR is reflexive, symmetric, anti-symmetric, asymmetric, transitive.

Answer

Definition. A relation RR on AA is anti-symmetric if (a,b)∈R(a,b)\in R and (b,a)∈R(b,a)\in R imply a=ba=b.

RR as a set. R={(x,y):x−y≥1}R=\{(x,y): x-y\ge 1\} means x>yx>y on A={4,5,6,7,8,9}A=\{4,5,6,7,8,9\}:

R={(5,4),(6,4),(6,5),(7,4),(7,5),(7,6),(8,4),(8,5),(8,6),(8,7),(9,4),(9,5),(9,6),(9,7),(9,8)}.R=\{(5,4),(6,4),(6,5),(7,4),(7,5),(7,6),(8,4),(8,5),(8,6),(8,7),(9,4),(9,5),(9,6),(9,7),(9,8)\}.

It has 1515 ordered pairs.

Properties.

  • Reflexive: No, since (4,4)∉R(4,4)\notin R (in fact x−x=0<1x-x=0<1).
  • Symmetric: No, since (5,4)∈R(5,4)\in R but (4,5)∉R(4,5)\notin R.
  • Anti-symmetric: Yes. There is no pair with both (a,b)(a,b) and (b,a)(b,a) in RR, so the condition holds vacuously.
  • Asymmetric: Yes. (a,b)∈R(a,b)\in R always implies (b,a)∉R(b,a)\notin R.
  • Transitive: Yes. If x>yx>y and y>zy>z then x>zx>z, so (x,z)∈R(x,z)\in R.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2011 AD · 4 marks

Define permutation with example. Prove that P(n,r)=n!(n−r)!P(n,r)=\dfrac{n!}{(n-r)!}. In how many ways can a committee consisting of three women be chosen from seven men and five women?

Answer

Permutation. A permutation of rr objects chosen from nn distinct objects is an ordered arrangement of them. Example: the permutations of 22 letters chosen from {a,b,c}\{a,b,c\} are ab,ba,ac,ca,bc,cbab,ba,ac,ca,bc,cb, so P(3,2)=6P(3,2)=6.

Proof of P(n,r)=n!(n−r)!P(n,r)=\dfrac{n!}{(n-r)!}. Fill rr positions in order. The first can be filled in nn ways, the second in n−1n-1 ways, and so on, until the rr-th position, which can be filled in n−r+1n-r+1 ways. By the product rule,

P(n,r)=n(n−1)⋯(n−r+1)=n(n−1)⋯(n−r+1) (n−r)!(n−r)!=n!(n−r)!. ■P(n,r)=n(n-1)\cdots(n-r+1)=\frac{n(n-1)\cdots(n-r+1)\,(n-r)!}{(n-r)!}=\frac{n!}{(n-r)!}.\ \blacksquare

Committee. The order of selection does not matter, and the committee is to consist of three women from the five women (the men are not involved):

(53)=5!3! 2!=10.\binom{5}{3}=\frac{5!}{3!\,2!}=10.

There are 10 ways.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2011 AD · 4 marks

Define isomorphic graph & isomorphism. Shows that the following set of graphs are isomorphic by showing their adjacency matrices are equal. (Graphs G1G_1 and G2G_2 are 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 (an isomorphism) 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. That is, the two graphs are the same up to relabelling of vertices.

Using adjacency matrices. Write the adjacency matrices A(G1)A(G_1) and A(G2)A(G_2) with the vertices of G2G_2 labelled according to the correspondence ϕ\phi, with entry aij=1a_{ij}=1 if vertices i,ji,j are adjacent and 00 otherwise. If the two matrices are equal under this ordering, the adjacency is preserved and ϕ\phi is an isomorphism. Equivalently, A(G2)=PA(G1)PTA(G_2)=PA(G_1)P^{T} for a permutation matrix PP.

The graphs G1,G2G_1,G_2 are given in a figure in the original paper, which is not reproduced here, so the specific matrices cannot be written out. Before matching, check that the two graphs have the same number of vertices, the same number of edges and the same degree sequence.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2011 AD · 4 marks

State a necessary and sufficient condition for a graph to have a spanning tree. Draw all spanning trees of the graph given in the figure of the original paper (a graph on four vertices). How many isomorphism classes are there?

Answer

Condition. A graph has a spanning tree if and only if it is connected.

If GG is connected, repeatedly delete an edge that lies on a cycle (this keeps it connected) until no cycle remains. The result is a connected acyclic graph on all vertices, i.e. a spanning tree. Conversely, a spanning tree is connected and contains every vertex, so GG is connected.

Spanning trees of the figure. The four-vertex graph is given in a figure in the original paper, which is not reproduced here. For such a graph, each spanning tree has 33 edges. List every choice of 33 edges that contains no cycle, then group them by shape. On four vertices a tree is either a path P4P_4 or a star K1,3K_{1,3}, so there are at most two isomorphism classes.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2011 AD · 4 marks

Find an optimal solution of Chinese Postman Problem (CPP) for the net work given in the question No.8. and hence list a round trip tour from the vertex from A to A for a postman.

Answer

Chinese Postman Problem. Find a closed walk of minimum total weight that traverses every edge at least once.

Method.

  1. Find the odd-degree vertices of the network. If there are none, the graph is Eulerian and the optimal tour is an Euler circuit, of length equal to the total edge weight.
  2. If there are two odd vertices, find the shortest path between them and repeat its edges. If there are four, consider all three ways of pairing them, find the shortest path for each pair, and choose the pairing with the least total.
  3. The optimal length is the total weight of all edges plus the weight of the repeated edges.
  4. Find an Euler circuit in the enlarged multigraph, starting and ending at AA. This is the postman's round trip.

The network is given in a figure in the original paper (question 8), which is not reproduced here, so the particular tour and its length cannot be stated.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2012 AD · 1 mark

Define binary relation from a set AA to a set BB.

Answer

A binary relation RR from a set AA to a set BB is a subset of the Cartesian product A×BA\times B, i.e. a set of ordered pairs (a,b)(a,b) with a∈Aa\in A and b∈Bb\in B. We write a R ba\,R\,b when (a,b)∈R(a,b)\in R.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2012 AD · 1 mark

What is an identity function?

Answer

The identity function on a set AA is the function IA:A→AI_A:A\to A defined by IA(x)=xI_A(x)=x for all x∈Ax\in A. It maps every element to itself, and it is both one-to-one and onto.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2012 AD · 1 mark

For which real number xx is it true that ⌊x⌋=−1\lfloor x\rfloor=-1?

Answer

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

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2012 AD · 1 mark

How many bit strings of length eight begin 1 0 1?

Answer

The first three bits are fixed as 1,0,11,0,1. Each of the remaining 55 bits can be 00 or 11, so there are 25=322^5=32 such strings.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2012 AD · 1 mark

Can there exist a simple graph with degree sequence (4,3,2,1)(4,3,2,1)? Why?

Answer

No. A simple graph with 44 vertices has no loops or multiple edges, so each vertex has degree at most 33. The sequence (4,3,2,1)(4,3,2,1) contains a vertex of degree 44, which is impossible. (Equivalently, a vertex of degree 44 would need 44 distinct neighbours, but only 33 other vertices exist.)

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2012 AD · 1 mark

What do you mean by a cut-vertex of a connected graph GG?

Answer

A cut-vertex of a connected graph GG is a vertex vv whose removal (together with the edges incident to it) leaves a disconnected graph; that is, G−vG-v is disconnected.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2012 AD · 1 mark

When is a connected graph (multi-graph) GG said to be Eulerian?

Answer

A connected graph (multigraph) GG is Eulerian if it has a closed trail (circuit) that contains every edge exactly once. Equivalently, GG is Eulerian if and only if every vertex has even degree.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2012 AD · 1 mark

What can you say about a graph if every pair of vertices has a unique path?

Answer

If every pair of vertices of a graph has exactly one path between them, the graph is connected and has no cycles, so it is a tree.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2012 AD · 1 mark

Draw a directed graph with five vertices and five edges which is strongly connected.

Answer

Take vertices v1,v2,v3,v4,v5v_1,v_2,v_3,v_4,v_5 and the five directed edges

v1→v2, v2→v3, v3→v4, v4→v5, v5→v1.v_1\to v_2,\ v_2\to v_3,\ v_3\to v_4,\ v_4\to v_5,\ v_5\to v_1.

This is a directed cycle: arranging the vertices around a pentagon with all arrows pointing the same way. From any vertex one can follow the arrows to reach every other vertex, so the digraph is strongly connected.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2012 AD · 1 mark

What is the relationship between internal vertices, pendant number of vertices in a full binary tree with nn vertices?

Answer

Let a full binary tree have nn vertices, ii internal vertices and tt pendant vertices (leaves). Then

n=2i+1,t=i+1,n=2i+1,\qquad t=i+1,

so the number of pendant vertices is one more than the number of internal vertices, and n=i+tn=i+t.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2012 AD · 4 marks

What is Boolean Matrix? If R={(a,a),(a,c),(b,b),(c,b)}R=\{(a,a),(a,c),(b,b),(c,b)\} and S={(a,b),(a,c),(b,a),(c,b),(b,b)}S=\{(a,b),(a,c),(b,a),(c,b),(b,b)\} be two relations on A={a,b,c}A=\{a,b,c\}, find the Boolean product of MRM_R and MSM_S. Also, verify that a) MR∪S=MR∨MSM_{R\cup S}=M_R\vee M_S b) MS−1=(MS)TM_{S^{-1}}=(M_S)^T.

Answer

Boolean matrix. A Boolean matrix is a matrix whose entries are only 00 and 11. The Boolean product M1⊙M2M_1\odot M_2 is computed like the usual product but with ∧\wedge in place of multiplication and ∨\vee in place of addition. The join M1∨M2M_1\vee M_2 is the entrywise OR.

Order the elements as a,b,ca,b,c.

MR=(101010010),MS=(011110010).M_R=\begin{pmatrix}1&0&1\\0&1&0\\0&1&0\end{pmatrix},\qquad M_S=\begin{pmatrix}0&1&1\\1&1&0\\0&1&0\end{pmatrix}.

Boolean product. Row aa of MRM_R selects rows aa and cc of MSM_S, and rows bb and cc of MRM_R each select row bb of MSM_S:

MR⊙MS=(011110110).M_R\odot M_S=\begin{pmatrix}0&1&1\\1&1&0\\1&1&0\end{pmatrix}.

(a) R∪S={(a,a),(a,b),(a,c),(b,a),(b,b),(c,b)}R\cup S=\{(a,a),(a,b),(a,c),(b,a),(b,b),(c,b)\}, so

MR∪S=(111110010).M_{R\cup S}=\begin{pmatrix}1&1&1\\1&1&0\\0&1&0\end{pmatrix}.

Also

MR∨MS=(1∨00∨11∨10∨11∨10∨00∨01∨10∨0)=(111110010).M_R\vee M_S=\begin{pmatrix}1\vee0&0\vee1&1\vee1\\0\vee1&1\vee1&0\vee0\\0\vee0&1\vee1&0\vee0\end{pmatrix}=\begin{pmatrix}1&1&1\\1&1&0\\0&1&0\end{pmatrix}.

So MR∪S=MR∨MSM_{R\cup S}=M_R\vee M_S.

(b) S−1={(b,a),(c,a),(a,b),(b,c),(b,b)}S^{-1}=\{(b,a),(c,a),(a,b),(b,c),(b,b)\}, so

MS−1=(010111100)=(MS)T,M_{S^{-1}}=\begin{pmatrix}0&1&0\\1&1&1\\1&0&0\end{pmatrix}=(M_S)^T,

since the columns of MSM_S are (0,1,0)(0,1,0), (1,1,1)(1,1,1) and (1,0,0)(1,0,0). Hence MS−1=(MS)TM_{S^{-1}}=(M_S)^T.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2012 AD · 4 marks

Define composition two functions. How is the composition of functions ff and gg denoted? Let A=B=C=RA=B=C=R, the set of real numbers. Let f:A→Bf:A\to B defined by f(a)=2a3−1f(a)=2a^3-1 and let g:B→Ag:B\to A defined by g(b)=12b+123g(b)=\sqrt[3]{\frac{1}{2}b+\frac{1}{2}}. Verify that each function is the inverse of the other.

Answer

Composition. If f:A→Bf:A\to B and g:B→Cg:B\to C, the composition is the function g∘f:A→Cg\circ f:A\to C defined by (g∘f)(a)=g(f(a))(g\circ f)(a)=g(f(a)). It is denoted g∘fg\circ f (also gfgf).

Verification. Here f(a)=2a3−1f(a)=2a^3-1 and g(b)=12b+123g(b)=\sqrt[3]{\tfrac{1}{2}b+\tfrac{1}{2}}.

(g∘f)(a)=g(2a3−1)=2a3−12+123=a33=a,(g\circ f)(a)=g(2a^3-1)=\sqrt[3]{\frac{2a^3-1}{2}+\frac12}=\sqrt[3]{a^3}=a,

(f∘g)(b)=f(g(b))=2(b2+12)−1=b+1−1=b.(f\circ g)(b)=f(g(b))=2\left(\frac{b}{2}+\frac12\right)-1=b+1-1=b.

So g∘f=IAg\circ f=I_A and f∘g=IBf\circ g=I_B. Therefore ff and gg are inverses of each other: g=f−1g=f^{-1} and f=g−1f=g^{-1}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2012 AD · 4 marks

If A=B=C=RA=B=C=R, the set of real numbers, and the function f:A→Bf:A\to B is defined by f(a)=2a+1f(a)=2a+1 and the function g:B→Cg:B\to C is defined by g(b)=12bg(b)=\frac{1}{2}b. Verify that (g∘f)−1=f−1∘g−1(g\circ f)^{-1}=f^{-1}\circ g^{-1}

Answer

Here g∘f(a)=g(2a+1)=2a+12=a+12g\circ f(a)=g(2a+1)=\dfrac{2a+1}{2}=a+\dfrac12, which is a bijection on R\mathbb R, so (g∘f)−1(y)=y−12.(g\circ f)^{-1}(y)=y-\tfrac12 .

Inverses of the separate functions: from y=2a+1y=2a+1 we get f−1(y)=y−12f^{-1}(y)=\dfrac{y-1}{2}; from y=12by=\tfrac12 b we get g−1(y)=2yg^{-1}(y)=2y.

Then (f−1∘g−1)(y)=f−1(2y)=2y−12=y−12.(f^{-1}\circ g^{-1})(y)=f^{-1}(2y)=\frac{2y-1}{2}=y-\tfrac12 .

Both sides equal y−12y-\tfrac12, hence (g∘f)−1=f−1∘g−1(g\circ f)^{-1}=f^{-1}\circ g^{-1}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2012 AD · 4 marks

What is an rr-permutations of a set of nn distinct objects, where 1≤r≤n1\le r\le n? Find the number of ways that a party of eight persons can arrange themselves around a circular table, if two particular persons may always sit together.

Answer

An rr-permutation of a set of nn distinct objects is an ordered arrangement of rr of those objects. The number of them is P(n,r)=n(n−1)⋯(n−r+1)=n!(n−r)!.P(n,r)=n(n-1)\cdots(n-r+1)=\frac{n!}{(n-r)!}.

Circular table. Treat the two particular persons as one block. We then have 77 units to place round a table, which can be done in (7−1)!=720(7-1)!=720 ways. The two persons can swap places inside the block in 2!2! ways.

Number of ways=720×2=1440.\text{Number of ways}=720\times 2=1440.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2012 AD · 4 marks

In how many ways can 5 balls be chosen from an urn containing 8 red and 7 black balls so that i) they must be all the same colour? ii) three are red and two are black?

Answer

There are 88 red and 77 black balls.

(i) All the same colour. All red or all black: C(8,5)+C(7,5)=56+21=77.C(8,5)+C(7,5)=56+21=77.

(ii) Three red and two black. C(8,3)⋅C(7,2)=56×21=1176.C(8,3)\cdot C(7,2)=56\times 21=1176.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2012 AD · 4 marks

Show that the graph given in the figure of the original paper (a pentagon with vertices a, b, c, d, e) is self-complementary

Answer

A graph is self-complementary if it is isomorphic to its complement.

The pentagon is the cycle C5C_5 with edges ab, bc, cd, de, eaab,\,bc,\,cd,\,de,\,ea. The complete graph K5K_5 has 1010 edges, so the complement G‾\overline G has the other 55 edges: ac,  ce,  eb,  bd,  da.ac,\; ce,\; eb,\; bd,\; da . These form the cycle a−c−e−b−d−aa-c-e-b-d-a, again a pentagon.

Define φ:V(G)→V(G‾)\varphi:V(G)\to V(\overline G) by a↦a, b↦c, c↦e, d↦b, e↦da\mapsto a,\ b\mapsto c,\ c\mapsto e,\ d\mapsto b,\ e\mapsto d. It is a bijection, and the edges of GG map as ab→ac,bc→ce,cd→eb,de→bd,ea→da,ab\to ac,\quad bc\to ce,\quad cd\to eb,\quad de\to bd,\quad ea\to da, which are exactly the edges of G‾\overline G. So G≅G‾G\cong\overline G and the pentagon is self-complementary.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2012 AD · 4 marks

Define tree and forest in graph theory. Prove that every forest of order nn with kk components has size n−kn-k.

Answer

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

Theorem. A forest FF of order nn with kk components has size n−kn-k.

Proof. Let the components be trees T1,…,TkT_1,\dots,T_k with n1,…,nkn_1,\dots,n_k vertices, so ∑ni=n\sum n_i=n. A tree with nin_i vertices has ni−1n_i-1 edges. Therefore ∣E(F)∣=∑i=1k(ni−1)=∑ni−k=n−k.■|E(F)|=\sum_{i=1}^{k}(n_i-1)=\sum n_i-k=n-k. \qquad\blacksquare

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2012 AD · 4 marks

Determine the total number of spanning trees of the graph given in the figure of the original paper (a graph on vertices a, b, c, d) using Matrix-Tree Theorem (Kirchhoff's Theorem). Also, draw each spanning tree.

Answer

Matrix-Tree (Kirchhoff) Theorem. The number of spanning trees of a connected graph equals any cofactor of its Laplacian matrix L=D−AL=D-A, where DD is the diagonal matrix of degrees and AA the adjacency matrix.

Procedure for the four-vertex graph on a,b,c,da,b,c,d.

  1. Write DD and AA from the figure and form L=D−AL=D-A (diagonal entries are the degrees, off-diagonal entries are −1-1 for each edge, 00 otherwise).
  2. Delete one row and the matching column to get a 3×33\times3 matrix.
  3. Its determinant is the number of spanning trees τ(G)\tau(G).

Illustration. For K4K_4 every degree is 33 and det⁡(3−1−1−13−1−1−13)=3(9−1)+1(−3−1)−1(1+3)=24−4−4=16.\det\begin{pmatrix}3&-1&-1\\-1&3&-1\\-1&-1&3\end{pmatrix}=3(9-1)+1(-3-1)-1(1+3)=24-4-4=16 . For a graph with a missing edge, such as K4K_4 minus one edge, the same method gives 88.

Drawing the trees. A spanning tree on four vertices has exactly 33 edges. List every choice of 33 edges from the graph that contains no cycle (equivalently, omit one edge from each cycle in turn); each such choice is drawn as one spanning tree, and their number must agree with the determinant.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2012 AD · 4 marks

Use a breadth-first search (BFS), to find a spanning tree for the graph given in the figure of the original paper (vertices a-k) choosing "e" as a root.

Answer

Breadth-first search (BFS). Start at the root ee and use a queue.

  1. Visit ee and put it in the queue.
  2. Remove the front vertex uu. For each unvisited neighbour of uu (taken in alphabetical order), mark it visited, add the edge from uu to it to the tree, and put it in the queue.
  3. Repeat step 2 until the queue is empty.

Edges that would join to an already visited vertex are discarded, so no cycle is created.

Applied to the graph on a,…,ka,\dots,k: the neighbours of ee form level 1; the unvisited neighbours of those vertices form level 2, and so on, until all 1111 vertices are visited. The chosen edges, 1010 in all, form a spanning tree rooted at ee.

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.