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 , weights ):
- Set and for every other vertex. Mark all vertices as unvisited.
- Pick the unvisited vertex with the smallest and mark it permanent (visited).
- For every unvisited neighbour of , if , then set and record as the predecessor of .
- Repeat steps 2 and 3 until all vertices are permanent.
At the end, is the length of the shortest path from to , and following the predecessors back from to gives the path itself.
For the graph with vertices , record each step in a table with one column per vertex. Start with , make 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 to .
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 , non-negative weights):
- Set , for all other vertices, and mark all vertices unvisited.
- Choose the unvisited vertex with the least label and make it permanent.
- For each unvisited neighbour of : if , set and record as the predecessor of .
- Repeat from step 2 until all vertices are permanent.
For the graph with vertices , tabulate the labels of after each step. The label of each vertex when it becomes permanent is the length of the shortest path from to it, and the shortest path itself is read off by following the recorded predecessors back to .
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 :
- Give the label and every other vertex the label .
- Make permanent the temporary-labelled vertex with the smallest label.
- For each neighbour of that is not permanent, replace its label by , remembering the predecessor.
- Repeat steps 2 and 3 until all vertices are permanent.
At the end, each label is the shortest distance from , and following the predecessors back from any vertex gives its shortest path.
The weighted graph on vertices to 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 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 , weights ):
- Set and for all other vertices; all vertices are temporary.
- Make permanent the temporary vertex with the smallest .
- For each temporary neighbour of , if set and record as its predecessor.
- Repeat steps 2 and 3 until all of are permanent.
For the given weighted graph, form a table with a column for each of . The first row is . Make 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 to , and tracing the predecessors back from each vertex to 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 and add the chord . The cycle visits every vertex once, so the graph is Hamiltonian. But and have degree 3 (odd), so it has no Euler circuit and is not Eulerian.
(b) Eulerian but not Hamiltonian. Take the complete bipartite graph with parts and . The degrees are for and for each , all even, and the graph is connected, so it has an Euler circuit, e.g. . 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 and add the chord . The cycle visits every vertex once, so the graph is Hamiltonian. But and now have degree 3 (odd), so no Eulerian circuit exists.
(ii) Eulerian but not Hamiltonian: take , with vertices each joined to all of . Here and , 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 .
(a) Hamiltonian but not Eulerian. The 6-cycle plus the chord . 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 and a 4-cycle sharing the vertex . All degrees are even ( has degree 4, others 2), so an Euler circuit exists. But is a cut vertex, so no cycle can visit all six vertices; there is no Hamiltonian cycle.
(c) Both. The 6-cycle : 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 objects from distinct objects is a selection of of them in which order does not matter. The number is
Pigeonhole principle. If pigeons are placed in holes with , some hole contains at least two pigeons. More generally, if objects are placed in boxes, some box contains at least objects.
Students. Treat the months as boxes. If there are students, two in each month is possible, so is not enough. With students, some month has at least 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 on vertices and on vertices are given in a figure in the original paper.)
Answer
Isomorphic graphs: graphs and are isomorphic if there is a bijection such that are adjacent in iff are adjacent in . The bijection 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 and (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 .
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 that is a tree and contains all vertices of .
Let the bow-tie have centre and triangles and . 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 spanning trees.
Choose the left part from , , and the right part from , , . Every combination of one left choice and one right choice is a spanning tree:
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
which is even. Split the vertices into the set of odd-degree vertices and the set of even-degree vertices:
A sum of odd numbers is even only if the number of terms is even. Hence is even.
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 or 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 defined by and defined by , , find the composition of and , and the composition of and if they defined.
Similar questions: Define the composition of two functions. How (2011 AD)
Answer
Definition. If and , the composition of followed by is the function given by . It is denoted (also written ).
Here and , .
Both compositions are defined for all real (for we need , i.e. ).
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 consists of a set of vertices and a set of edges, each edge being an unordered pair of vertices. Example: , .
Theorem. In any graph, the number of vertices of odd degree is even.
Proof. By the handshaking lemma, , which is even. Split the vertices into (even degree) and (odd degree):
The first sum is a sum of even numbers, so it is even. Hence is even. But it is a sum of odd numbers, and such a sum is even only if the number of terms is even. Therefore is even.
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 -regular graph of odd degree consists of even number of vertices. Also show that the complete graph with vertices is the regular graph of degree .
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 , it is -regular.
Claim 1. An -regular graph with odd has an even number of vertices.
Let there be vertices. The sum of degrees is , and by the handshaking lemma , which is even. Since is odd, must be even.
Claim 2. The complete graph is regular of degree .
In every vertex is joined by exactly one edge to each of the other vertices, and there are no loops or multiple edges. So every vertex has degree , and is -regular.
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 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 with vertices has at least two pendant vertices.
Proof. A tree with vertices has edges, so the sum of degrees is . Because is connected and , every vertex has degree at least 1. Suppose at most one vertex has degree 1. Then the other vertices have degree at least 2, and
a contradiction. Therefore at least two vertices have degree 1.
(Alternatively, the end vertices of a longest path in 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 is connected if and only if it has a subgraph that is a spanning tree.
() Let be a spanning tree of . contains all vertices of and is connected, so any two vertices of are joined by a path in , which is also a path in . Hence is connected.
() Let be connected. If 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 has finitely many edges, the process ends with a connected graph with no cycles that contains all vertices, which is a spanning tree of .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2005 AD · 2 marks
If is a partition of the set , find the equivalence relation on 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 gives all 9 ordered pairs of its elements and the block gives :
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 by
It is one-to-one, since gives , and onto, since every odd positive integer equals . So the odd positive integers can be listed 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 .
Similar questions: How many edges and vertices are there (2011 AD)
Answer
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 objects from distinct objects in which order does not matter: For example, choosing 2 people from gives selections: .
Pigeonhole principle: if more than objects are placed into boxes, some box contains at least two objects. More generally, if objects go into boxes, some box has at least objects.
Three in the same month: there are 12 months (boxes). With students, each month could hold exactly 2. With students, some month must have at least .
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: with a non-empty set of vertices and a set 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 , which is even. Let be the set of even-degree vertices and the set of odd-degree vertices. Then which is even. A sum of odd numbers is even only if it has an even number of terms, so is even.
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 ? 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 that is a tree and contains all vertices of .
Theorem: is connected iff it has a spanning tree.
Proof:
() If has a spanning tree , then is connected and contains every vertex, so any two vertices of are joined by a path in , which is also a path in . Hence is connected.
() Let be connected. If 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.
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 to .
- List all edges in increasing order of weight.
- Add the smallest edge to the tree.
- Take the next smallest edge and add it only if it does not form a cycle with the edges already chosen.
- Stop when edges have been chosen.
The chosen 5 edges connect all six vertices, and their weight sum is the minimum possible. The tree has exactly 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 to a set ? If defined by and defined by . Find a formula for the inverse function and
Similar questions: Define a function from a set A (2009 AD)
Answer
Function. A function from to is a rule that assigns to each element exactly one element . is the domain and the codomain.
Inverse of . Put and solve for : . Hence
Check: .
Composition .
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 ? What are the binomial coefficients? Find the middle terms of .
Similar questions: What do you mean by Binomial theorem (2009 AD)
Answer
Binomial theorem. For a positive integer ,
The numbers are the binomial coefficients; they form the rows of Pascal's triangle.
Middle terms. For there are 16 terms, so the middle terms are the 8th and 9th. The general term is
- : .
- : .
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 , its children , the children of being ).
i. Lexicographic order.
ii. Tree. The root has three children .
- has child , which has children and .
- has children and . has child . has child , which has child .
- has children and . has child , which has children and .
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.
- Sort all edges by increasing weight.
- Take the next lightest edge; keep it if it joins two different components, and reject it if it would form a cycle.
- Stop when 4 edges () 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 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 , so .
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 to a set ? If define by and define by . Find a formula for the inverse function and .
Similar questions: Inverse function 5x-3 and 3x-1 (2008 AD)
Answer
A function from a set to a set is a rule that assigns to each element exactly one element . Equivalently, it is a relation in which every appears as the first coordinate of exactly one ordered pair.
Inverse of . is one-to-one and onto. Put , so . Hence
Composition .
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 ? What are the binomial coefficients? Find the 7th term of .
Similar questions: Middle terms of (2x+1/2x)^15 (2008 AD)
Answer
Binomial theorem. For a positive integer ,
Binomial coefficients. The numbers , , which appear as the coefficients in this expansion.
7th term of . The -th term is . For the 7th term :
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2009 AD · 4 marks
Show that the number of vertices in a full binary tree is always odd, and the number of pendant vertices is .
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 be the number of internal vertices and the number of pendant (leaf) vertices, so .
is odd. Every vertex except the root is the child of exactly one internal vertex, and each internal vertex has exactly 2 children. So which is odd.
Number of pendant vertices. From we get , so
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 of positive integers.
Let and define by .
- One-to-one: .
- Onto: every odd positive integer equals with .
So is a bijection and 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 if every edge of 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 is a bridge, then has no cycle at all, so is a forest (each component is a tree). If 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 define on the set is an equivalence relation. Also find the partition of the set determined by the relation .
Similar questions: Equivalence relation from partition (2005 AD)
Answer
Equivalence relation. A relation on a set that is reflexive, symmetric and transitive.
on , i.e. .
- Reflexive: is divisible by 4, so .
- Symmetric: if then , so .
- Transitive: if and then (their sum), so .
So is an equivalence relation.
Partition (equivalence classes by remainder mod 4): The partition is .
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 is and 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 such that every edge joins a vertex of to a vertex of . If every vertex of is joined to every vertex of , with and , it is the complete bipartite graph .
Order. The vertex set is with , so the order is .
Size. Each of the vertices of is adjacent to all vertices of and to no vertex of . Every edge has exactly one end in , so the number of edges is the sum of the degrees of : (Check: the degree sum is .) Hence the size is and the order is .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2010 AD · 2 marks
Show that an -regular graph of odd degree consists of even number of vertices.
Similar questions: Regular graph odd degree (2005 AD)
Answer
Let be -regular with vertices and edges, where is odd. By the handshaking lemma,
which is even. Since is odd, can be even only if is even. Hence has an even number of vertices.
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 vertices is
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 be the number of internal vertices and the number of pendant vertices (leaves), so .
Every vertex except the root is the child of exactly one internal vertex, so , giving . Then
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 ?
Similar questions: Edges in complete graph K9 (2007 AD)
Answer
has vertices. Each of the vertices in the first part is joined to each of the in the second, so there are 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 , if every edge of is a bridge?
Similar questions: What can you say about a simple (2010 AD)
Answer
If every edge of a simple graph is a bridge, then no edge lies on a cycle, so has no cycles. Hence 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 defined by and defined by , find the composition of and , the composition of and if defined.
Similar questions: Composition of functions (2005 AD)
Answer
Definition. If and , the composition of and is the function given by . Similarly, means , defined when the range of lies in the domain of .
Here and on , so both compositions are defined.
Since , .
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 ; the star ; a single vertex (the trivial tree).
Theorem. A tree with vertices has at least two vertices of degree .
Proof. Let be a tree with vertices. It is connected, so it has at least one edge. Take a longest path in , where .
Suppose had a neighbour other than . If is on , then with and is a cycle, impossible in a tree. If is not on , then is a longer path, contradicting the choice of . So has only the neighbour , hence .
By the same argument, . Since , the tree has at least two vertices of degree .
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 is and respectively.
Similar questions: Define bipartite graph. Prove that size and (2010 AD)
Answer
A graph is bipartite if its vertex set can be split into two disjoint non-empty sets and so that every edge joins a vertex of to a vertex of (no edge has both ends in the same set).
The complete bipartite graph has , , and every vertex of is joined to every vertex of .
Order. .
Size. Each of the vertices of is adjacent to all vertices of , giving edges per vertex, and no edge is counted twice since edges only run between the sets. So .
Hence has order and size .
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 and is the set of all ordered pairs whose first element is from and second from :
It is denoted (read " cross "). If and then .
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 on a set if is a partial ordering and an equivalence? Give an example of such a relation on the set .
Answer
A partial ordering is reflexive, antisymmetric and transitive, and an equivalence relation is reflexive, symmetric and transitive. If is both, it is symmetric and antisymmetric, so implies and hence . Together with reflexivity, must be the identity (equality) relation on .
For the example is
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 defined by for every .
Answer
We need all with , that is . The set of inverse images is
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2005 AD · 1 mark
What is an -permutation of distinct objects and how many are there? (Where ).
Answer
An -permutation of distinct objects is an ordered arrangement of of those objects. The number of -permutations is
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 ?
Answer
For two subsets and of a finite universal set ,
and the number of elements of in neither set is .
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):
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 and are the bipartition sets of a complete bipartite graph with and , how many vertices and edges are there? How is such graph denoted?
Answer
The graph has vertices and edges (each vertex of is joined to every vertex of ). It is denoted .
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 and there is a directed path from to or a directed path from to (at least one of the two).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2005 AD · 4 marks
If is a relation on defined by if and only if is multiple of , find the domain, the range, and the inverse of the relation . Also verify that .
Answer
With , iff is a multiple of :
Domain (first elements) .
Range (second elements) .
Inverse (reverse each pair):
Verification. Taking rows and columns in the order :
From : is related to ; to ; to ; to ; to . So
Hence .
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 mean for some integer . On the set of positive integers:
- Reflexive. , so .
- Antisymmetric. If and , then and with positive integers, so , hence and . Thus .
- Transitive. If and , then , , so and .
So is a partial ordering on .
On all integers it is not a partial order, because it is not antisymmetric. Counter example: and , but .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2005 AD · 4 marks
Define a function from a set into a set . Let . Define functions (if possible) such that
a) is one-to-one and onto
b) is neither one-to-one nor onto
c) is onto but not one-to-one
d) is a constant function
Answer
Definition. A function from a set into a set is a rule that assigns to each element exactly one element . We write .
For :
(a) One-to-one and onto: . Distinct elements have distinct images and every element of is an image.
(b) Neither one-to-one nor onto: . Here , and are not images.
(c) Onto but not one-to-one: not possible. is finite and has the same number of elements as , so a function that is onto must also be one-to-one (if two elements shared an image, at most 3 elements of could be reached).
(d) Constant function: for every , i.e. .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2005 AD · 4 marks
State the Binomial theorem for positive index . What are the binomial coefficients? Find the general term and hence, find the term free from in the expansion .
Answer
Binomial theorem. For a positive integer ,
Binomial coefficients are the numbers , the coefficients in this expansion.
General term: .
For :
The term is free from when , i.e. . So it is the 7th term:
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 and be the sets of freshmen taking computer science and mathematics. Then , , .
Freshmen taking neither:
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 to 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 .
Label each vertex with its shortest known distance from ; permanent labels are chosen in increasing order.
| Step | Vertex made permanent | Updated labels |
|---|---|---|
| 1 | ||
| 2 | ||
| 3 | ||
| 4 | ||
| 5 | ||
| 6 | ||
| 7 | done |
The shortest distance from to is , by
Alternative shortest path:
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 and edges together with and . It has 7 edges, so a spanning tree uses 5 edges and must drop one edge from each of the cycles and ( is always kept).
From each triangle, dropping an edge leaves either
- (i) dropped: and both hang directly from ; or
- (ii) or dropped: a path of length 2 hangs from (such as ).
There are spanning trees, but up to isomorphism only the combination of types matters:
- Both of type (i): the star with centre and leaves .
- One of type (i), one of type (ii): has degree 4, joined to and , and has the extra leaf .
- Both of type (ii): has degree 3, joined to , and , with and 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 be a directed graph, where the vertices set and the directed edges set , show that is a rooted tree and identify the root and leaves. Also find the height of the tree.
Answer
Edges: .
In-degrees. has in-degree 0. Every other vertex has in-degree exactly 1: (from ), (from ), (from ), (from ), (from ), (from ), (from ).
Connectivity. There is a directed path from to every vertex: , , , , . 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:
- Leaves (out-degree 0):
- Height (length of the longest path from the root): (or ) 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
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:
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 (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:
| Edge | Weight | Decision |
|---|---|---|
| 1 | accept | |
| 1 | accept | |
| 2 | accept | |
| 2 | accept | |
| 2 | accept | |
| 3 | reject (cycle ) | |
| 4 | reject (cycle ) | |
| 5 | accept (joins with ) |
The minimal spanning tree has edges and
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 .
Answer
Definition. A graph is a subgraph of if and (each edge of having its end points in ). The subgraph induced by has vertex set and contains every edge of whose two end points are both in .
For the graph with edges , the only edges with both ends in are and . The induced subgraph therefore consists of the vertices and two disjoint edges:
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 :
Bridges (edges whose removal disconnects the graph): the edge is the only one, since would become isolated. The other edges lie on the cycles and , so deleting one keeps the graph connected. Bridge: .
Cut points (vertices whose removal disconnects the graph): removing separates the graph into , and . Removing any other vertex leaves a connected graph. Cut point: .
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 edges for vertices. For the six-vertex digraph ( to ) the path starts at the source, follows edge directions through the remaining vertices without repeating any, and ends at the sink. Its length is .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2007 AD · 1 mark
If and , find the value of .
Answer
, which has ordered triples:
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2007 AD · 1 mark
Write down the partition of
Answer
A partition splits into non-empty, disjoint subsets whose union is . The partitions of are:
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2007 AD · 1 mark
If , find .
Answer
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 .
Answer
The general term is . For the fifth term, :
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2007 AD · 1 mark
Define an equivalence class.
Answer
If is an equivalence relation on a set , the equivalence class of is the set of all elements related to : . The distinct classes form a partition of .
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: is the greatest integer less than or equal to . For example, and .
Ceiling: is the least integer greater than or equal to . For example, and .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2007 AD · 1 mark
.
Answer
True. By Pascal's identity, . With and :
Numerically, .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2007 AD · 1 mark
A graph 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 . The stated degrees give , which is odd, so these four vertices cannot belong to any graph on their own. Taking the fifth vertex to have degree 1 gives , so 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 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 to a set . Let , determine whether the relation is reflexive, symmetric, asymmetric, antisymmetric or transitive.
Answer
Binary relation: a binary relation from to is any subset . We write when .
For on :
- Reflexive: No. and are missing.
- Symmetric: No. but .
- Asymmetric: No. , and together.
- Antisymmetric: No. and are both in although .
- Transitive: Yes. Checking every pair , for example , , , , , the required pair is always in .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2007 AD · 4 marks
Define equivalence relation on a set. Let be a relation defined on a set given by . Is , an equivalence relation?
Answer
Equivalence relation: a relation on a set that is reflexive, symmetric and transitive.
For the given on :
- Reflexive: , so is reflexive.
- Symmetric: but , so is not symmetric.
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 is defined as for all real . Plot it in the XY plane and categorize it using graphical aids.
Answer
Function: a function assigns to each element of exactly one element of .
One-to-one (injective): distinct inputs give distinct outputs. That is, .
Onto (surjective): every element of is the image of at least one element of . That is, the range equals .
For on : the graph is a smooth increasing curve through , with an inflection at the origin.
- Horizontal line test: every horizontal line cuts the curve exactly once, so is one-to-one.
- The curve takes every real value , and is real, so is onto.
Hence 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 defined by if and only if is a multiple of . Find the domain, range, the matrix of the relation and its complement.
Answer
Binary relation: a subset of . For example, with and , the set is a relation from to .
For with iff is a multiple of :
Domain and Range .
Matrix (rows , columns , both in the order 2, 3, 4, 5):
Complement (swap 0 and 1):
This is the relation .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2007 AD · 4 marks
Define composition of two functions? Let and are any two functions defined by , . Find formulas, which define the function and .
Answer
Composition: for and , the composition is defined by .
With and :
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2007 AD · 4 marks
Define inverse of a function . Prove that , defined by is invertible.
Answer
Inverse: if is a bijection, its inverse is defined by . A function is invertible exactly when it is one-to-one and onto.
Proof for :
- One-to-one: if , then , so .
- Onto: for any , take . Then .
So is a bijection and is invertible, with
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 objects taken at a time is
Answer
Permutation: an ordered arrangement of objects chosen from distinct objects.
Proof: fill positions in turn.
- The first position can be filled in ways.
- The second in ways, since one object is used.
- Continuing, the -th position can be filled in ways.
By the multiplication principle, Multiplying and dividing by :
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2007 AD · 4 marks
Find the shortest path between the vertices and in the weighted graph given in the figure of the original paper.
Answer
Use Dijkstra's algorithm on the weighted graph.
- Label with distance 0 and every other vertex with .
- Take the unvisited vertex with the smallest label and make it permanent.
- For each unvisited neighbour of that vertex , update .
- Repeat until is made permanent.
The permanent label of 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 lists the binomial coefficients . Each inner entry is the sum of the two entries just above it, by . The edges are all 1.
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
Row gives the coefficients of . For example, row 4 gives .
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.
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 .
Answer
General term:
Fifth term ():
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:
(b) UNUSUAL has 7 letters, with U twice and every other letter once:
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 students, each zone could hold exactly 2. By the pigeonhole principle, one more student forces some zone to have 3.
Minimum number of students 29.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2007 AD · 2 marks
Let us consider a complete graph . How many edges does its spanning tree have? State with a figure.
Answer
A spanning tree of a graph on vertices has edges. has 5 vertices, so every spanning tree has 4 edges.
For example, with vertices the star , drawn as vertex 1 joined to each of the other four vertices, is a spanning tree. So is the path .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2007 AD · 2 marks
Consider the diagraph given in the figure of the original paper (vertices a-h).
- Find the directed walk of length 8.
- Find a directed path in of longest possible length.
- Is weakly connected?
- Is strongly connected? If not why?
Answer
Definitions used for the digraph on vertices to :
-
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.
-
Longest directed path: a directed path repeats no vertex, so its length is at most . The longest one is found by following edge directions from a start vertex through as many distinct vertices as possible.
-
Weakly connected: 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.
-
Strongly connected: this requires a directed path from every vertex to every other vertex. 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 find the value of .
Answer
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2008 AD · 1 mark
Write down the partition of .
Answer
A partition splits into non-empty, disjoint subsets whose union is . The partitions of are:
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2008 AD · 1 mark
find the power set of .
Answer
The power set contains all subsets of , so it has elements:
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2008 AD · 1 mark
Evaluate: .
Answer
and .
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, must be even, but five vertices of degree 3 give , 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 (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 with directed edges , , , .
- has in-degree 0, so it is a source.
- has out-degree 0, so it is a sink.
- and 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 ?
Answer
A trail in a graph is a walk (an alternating sequence of vertices and edges ) 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 of a graph a bridge for ?
Answer
An edge of a connected graph is a bridge when its deletion disconnects , that is, has more components than . Equivalently, is a bridge exactly when it lies on no cycle of .
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 be a Hamiltonian?
Answer
(with and at least 3 vertices in all) is Hamiltonian if and only if .
A Hamiltonian cycle alternates between the two vertex sets, so it needs exactly as many vertices in one set as in the other. If , 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 .
Answer
The general term is . For the 7th term, :
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2008 AD · 4 marks
Explain types of the function with examples. defined by if and only if is a multiple of . Find the domain, range the matrix of the relation and its complement.
Answer
Types of functions. Let .
- One-to-one (injective): different elements of have different images, . Example: on .
- Onto (surjective): every element of is the image of some element of , so range . Example: from to .
- Bijective: both one-to-one and onto. Example: on . Only bijections have inverses.
- Constant: for all . Example: .
- Identity: for all .
Relation. Take and iff is a multiple of . Then
Domain and range .
With rows and columns in the order :
The complement matrix is obtained by interchanging 0 and 1 in every entry of . It represents .
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 & . Given a set , given a relation on which is an equivalence relation. Also state why it is called so.
Answer
Difference. The Cartesian product is the set of all ordered pairs. A relation from to is only a subset , holding the pairs that satisfy some stated condition. So every relation is part of a Cartesian product, and itself is the largest relation. If and , then , while the number of possible relations is .
Equivalence relation on . Take
- Reflexive: .
- Symmetric: and .
- Transitive: , , 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 into disjoint classes of mutually related elements, here and , 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 on a set is a partial order if it is reflexive (), antisymmetric ( and ) and transitive (, ).
Both at once. Yes. An equivalence relation is reflexive, symmetric and transitive. A relation that is both must be symmetric and antisymmetric, so . Hence every related pair is of the form , and the only such relation is the identity (equality) relation.
Example: on let .
- It is reflexive, symmetric and transitive, so it is an equivalence relation (each element is its own class).
- It is reflexive, antisymmetric (no pair is related) and transitive, so it is a partial order.
Any relation containing a pair with cannot be both, because symmetry would force 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 defined by and defined by , find the composition of and , the composition of and if defined.
Answer
Equivalence relation. A relation that is reflexive, symmetric and transitive. Example: on , iff is divisible by 3.
Equivalence class. For , . The classes form a partition of (they are disjoint and their union is ). In the example the classes are
Compositions. With and (both defined on all of , so both compositions exist):
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 . 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 objects taken at a time is a selection of of them in which order does not matter. Its number is .
Proof. The -permutations of objects number . Each -element subset can be arranged in orders, so the permutations are counted times by the subsets:
Committee. One man from 7 and two women from 5:
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2008 AD · 4 marks
What is permutation of different objects? What do you mean by an -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 different objects is an ordered arrangement of all of them; the number is .
-permutation. An ordered arrangement of objects chosen from different objects (); the number is .
ELEVEN. It has 6 letters, with E repeated 3 times (L, V, N once each):
Beginning and ending with E. Fix E at both ends. The remaining 4 places hold E, L, V, N, all different, so there are 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 to be sure that two of the numbers add up to 10.
Answer
Pigeonhole principle. If or more objects are placed into boxes, at least one box contains two or more objects. (Generally, if objects go into boxes, some box has at least .)
Application. Split into the pigeonholes
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 (only one element), so it is a pair summing to 10.
Picking 5 is not enough, for example 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 , there are at least two vertices of degree 1.
Answer
Tree. A tree is a connected graph with no cycles. Examples: a path () and a star (one centre joined to leaves).
Theorem. Every tree with at least two vertices has at least two vertices of degree 1.
Proof. Let be a longest path in the tree ; because the tree has an edge. Suppose had a neighbour other than .
- If is on , then forms a cycle, which a tree cannot have.
- If is not on , then is a longer path, contradicting the choice of .
So has only the neighbour , that is, . By the same argument . Since , there are at least two vertices of degree 1.
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 connected components has edges.
Answer
Tree. A connected graph with no cycles. A tree with vertices has exactly edges.
Theorem. A forest (a graph whose components are all trees) with vertices and components has edges.
Proof. Let the components be trees with vertices, so . A tree with vertices has edges. Therefore
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.
Classify with reason whether it is weakly connected, unilaterally connected or strong connected.
Answer
Directed graph. A digraph consists of a set of vertices and a set of ordered pairs of vertices, called directed edges (arcs) from to .
Graph. Label the vertices . Row lists the arcs leaving :
- (a loop)
- and
- and
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 , there is no path from 4 to 5 (4 reaches only ) and none from 5 to 4 (5 reaches only ).
- Weakly connected: ignoring directions, the arcs , , , 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 and let be the equivalence relation on defined by . Find the equivalence classes of .
Answer
Binary relation. A binary relation from a set to a set is a subset of ; means . Example: on , .
Equivalence classes. .
- (from ), and .
- , and .
- .
So the equivalence classes are , which partition .
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 .
Answer
Pascal's triangle, row 5 (each entry is the sum of the two above it):
The coefficients are , so
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
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2008 AD · 2 marks
If is a connected with three vertices. Show that 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 is connected, it is traversable by Euler's theorem.
For example, the path has odd vertices and is traced ; the triangle has none and is traced as a closed circuit.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2008 AD · 2 marks
Find the connected components of a graph where and .
Answer
Follow the edges:
- , , , link the vertices .
- , , link the vertices .
The graph has two connected components, with vertex sets
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 vertices ( to ):
- List the edges in non-decreasing order of weight.
- 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.
- Stop when 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 on if no elements of is related to itself?
Answer
is irreflexive: for every , .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2009 AD · 1 mark
When are two functions said to be equal?
Answer
Two functions are equal when they have the same domain and codomain and for every .
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 is defined by for all . Example: for , ; on , .
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 ? Explain with an example.
Answer
The degree sequence of a graph is the list of the degrees of its vertices, written in non-increasing (or non-decreasing) order.
Example: take the graph with vertices and edges . The degrees are , , , , so the degree sequence is . The sum is .
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 ? Why?
Answer
No. 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 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 of the adjacency matrix of a directed graph equals the out-degree of vertex (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 there is a directed path from to .
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 on is an equivalence relation with the help of the digraph of the relation .
Answer
Definition. A relation on a set is an equivalence relation if it is reflexive, symmetric and transitive.
Verification for and
Draw the digraph with vertices and an arrow for each .
- Reflexive: every vertex has a loop.
- Symmetric: every arrow between distinct vertices has a returning arrow: , , , . So .
- Transitive: the vertices form a complete digraph (all six arrows between distinct pairs plus loops), and form a complete digraph, with no arrows between the two groups. Whenever there is a path , the arrow is also present.
So is an equivalence relation, with equivalence classes and .
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 is the set of all subsets of a given set , show that the inclusion relation '' is a partial ordering on the power set .
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 . Let .
- Reflexive: for every set .
- Antisymmetric: if and , then (by the definition of set equality).
- Transitive: if and , then every lies in and hence in , so .
Hence is a partial ordering on .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2009 AD · 4 marks
Define composition of relations. Let , and be three sets. If and are two relations from to and to respectively, verify that i) and ii) .
Answer
Composition. If is a relation from to and is a relation from to , then , a relation from to .
Compute. , .
- , , .
- : has no pair in . .
Matrices. Order ; ; .
i. The Boolean product :
- Row 1 is the OR of rows and of : .
- Row 2 is .
- Row 3 is the OR of rows and : .
which is exactly the matrix of . So .
ii. , whose matrix (rows , columns ) is
Now
The Boolean product has row : columns of ORed over the 1s in , i.e. rows of : . Row is . Row uses only row : . Row uses only row : . This gives
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2009 AD · 4 marks
What is a mapping from a set into a set ? When is a mapping said to be surjection? Let a function define by for all (set of natural numbers). Then determine whether the function is bijection or not.
Answer
Mapping. A mapping (function) from into is a rule assigning to every element of exactly one element of , written .
Surjection. is a surjection (onto) if every has at least one with ; that is, range .
on .
- One-to-one: . Yes.
- Onto: the range is . For example, has no pre-image since gives . So is not onto.
A bijection must be both, so 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 . 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 (). A combination is an unordered selection, so order does not matter (). Each combination of objects gives permutations, so .
Proof that . Fill positions in turn. The first can be filled in ways, the second in ways, and so on, until the -th can be filled in ways. By the multiplication principle
Committee. Choose 2 men from 8 and 3 women from 6:
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 ? Show that the number of odd vertices in a graph is always even.
Answer
Undirected graph. A graph consists of a non-empty set of vertices and a set of edges, where each edge is an unordered pair of vertices , so the edges have no direction.
Relationship (handshaking lemma). 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 and be the sets of vertices of even and odd degree. Then The left side and the first sum on the right are even, so is even. It is a sum of odd numbers, which is even only if 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 has at least two vertices of degree one.
Proof. Since and the tree is connected, it has at least one edge. Let () be a longest path in the tree.
Suppose had a neighbour other than .
- If is not on , then is a longer path, a contradiction.
- If for some , then is a cycle, impossible in a tree.
So is adjacent only to , i.e. . By the same argument . As , the tree has at least two vertices of degree one.
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 , by using Matrix-Tree Theorem.
Answer
Matrix-Tree Theorem. The number of spanning trees of a graph equals any cofactor of its Laplacian matrix (degree matrix minus adjacency matrix).
For every vertex has degree 3, so
Delete the first row and column:
Hence has spanning trees (agreeing with Cayley's formula ).
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 . Visit all its neighbours (level 1) and join them to 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 ).
- Put in the queue. Take its unvisited neighbours in alphabetical order and add the edges -neighbour.
- Take the next vertex in the queue, add edges to its unvisited neighbours (alphabetically), and enqueue them.
- Repeat until the queue is empty. The edges added form the BFS spanning tree .
Universal addresses. Treat as an ordered rooted tree. The root has address . If a vertex has address , its children, from left to right, get addresses . Thus the children of the root are , their children are , and so on.
Lexicographic order. Compare addresses component by component, and a prefix comes before its extensions. For example Listing the addresses in this order gives the preorder (depth-first) listing of the vertices of .
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 to a set ? Find the domain and the range of the relation on the set .
Answer
Binary relation. A binary relation from a set to a set is a subset of the Cartesian product , i.e. a set of ordered pairs with , .
Given relation. On , holds for the pairs within the classes , , :
- Domain
- Range
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2009 AD · 2 marks
Define floor function and ceiling function. Evaluate .
Answer
Floor function is the greatest integer less than or equal to . Ceiling function is the least integer greater than or equal to .
Since , we have , so . Also . Therefore
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 the statement : .
Answer
Let : .
Basis. For : LHS , RHS . So is true.
Inductive step. Assume is true for some : . Then which is .
By the principle of mathematical induction, is true for all integers .
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 find and 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 The -th row gives the coefficients of .
The row for is . Adding adjacent entries gives the next rows:
- :
- :
Therefore
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 is self-complementary if it is isomorphic to its complement (the graph on the same vertices in which two vertices are adjacent exactly when they are not adjacent in ).
The path : . Its edges are . The complement has edges , which form the path .
Define by . Then
so is an isomorphism (a bijection preserving adjacency, with both graphs having 3 edges). Hence 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 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: 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 .
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 . The root is the operator evaluated last, and each operator has its two operands as children:
÷
/ \
× 5
/ \
↑ −
/ \ / \
+ 3 y +
/ \ / \
x 2 3 x
- Root: , with children and .
- has children and .
- has children and .
- has children and .
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 , there are at least two vertices of degree one.
Answer
Tree. A tree is a connected graph with no cycles. Examples: a path , a star , and any connected acyclic graph such as one with edges .
Theorem. Any tree with at least two vertices has at least two vertices of degree one.
Proof. Take a longest path in the tree (). If had another neighbour , then either is off the path and the path could be extended (contradicting maximality), or on the path and a cycle would result (impossible in a tree). So , and similarly . These are two different vertices, so at least two vertices have degree one.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2010 AD · 1 mark
Find all partitions of the set
Answer
A partition of is a collection of non-empty, pairwise disjoint subsets whose union is . For there are 5 partitions:
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2010 AD · 1 mark
When is a relation on a set said to be asymmetric?
Answer
A relation on a set is asymmetric if for all , whenever then . (In particular, no can be in .)
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2010 AD · 1 mark
What is a function from a set to set ?
Answer
A function from a set to a set , written , is a rule that assigns to every element exactly one element .
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 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 for the expansion of ?
Answer
In , the term has , so the coefficient is
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 .
Answer
In 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: .
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 ?
Answer
In a digraph , a source vertex has in-degree (edges only leave it, no edge enters it), while a sink vertex has out-degree (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 with only two arcs, and :
a ──► b c ──► d
- Not strongly connected: there is no path from to .
- Not unilaterally connected: for the pair there is no path from to and none from to .
(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 to another set ? If the relation on the set defined by the rule such that , find the domain and the range of the relation and also verify that .
Answer
Binary relation. A binary relation from a set to a set is a subset of , i.e. a set of ordered pairs with .
Given relation. on :
- :
- :
- :
- :
- :
Domain and range .
Verification. The matrix (rows , columns ) is . Since , we get , so . The matrix above is symmetric, so . Hence is verified.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2010 AD · 4 marks
Define an invertible function. Let , the set of real numbers and let be given by the formula and be given by the formula . Show that is bijection between and , and is a bijection between and .
Answer
Invertible function. is invertible if there is a function with and . This holds exactly when is a bijection (one-to-one and onto).
.
- One-to-one: (cube roots are unique in ).
- Onto: for , let . Then .
So is a bijection from to .
.
- One-to-one: .
- Onto: for , take ; then .
So is a bijection from to . Moreover and , so .
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 objects chosen from distinct objects; the number is .
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:
(ii) M and R always occur. Choose the other 2 letters from the remaining 6 in ways, then arrange the 4 chosen letters in ways:
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2010 AD · 4 marks
State Binomial Theorem for positive index . Show that
a. .
b. .
Answer
Binomial theorem. For a positive integer ,
(a) Put :
(b) Put : so By (a) the sum of the two sides is , so each side equals .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2010 AD · 4 marks
Show that the following graphs and are isomorphic by showing their corresponding adjacency matrices are equal. (Figure in the original paper: is a pentagon, 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.
(pentagon) with vertices and edges :
(pentagram) with vertices has edges (each vertex joined to the two non-neighbours on the pentagon). Order its vertices as and call them . Its edges then become , so
The isomorphism is . Since the adjacency matrices are equal, .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2010 AD · 4 marks
Prove that loop free undirected graph is a tree, if there is a unique path between any two vertices of .
Answer
A tree is a connected graph with no cycles. Suppose a loop-free undirected graph has a unique path between every pair of vertices.
is connected. Any two vertices are joined by a path (a unique one exists), so is connected.
has no cycle. Suppose contained a cycle . Take two distinct vertices on . The cycle gives two different paths from to (the two arcs of ), contradicting uniqueness. (A cycle of length 2 would need parallel edges giving two paths between the same pair, which is likewise excluded.) Hence has no cycles.
A connected graph without cycles is a tree, so is a tree.
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 with components has 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 with components has edges.
Proof. Let the components be trees with vertices, where . A tree on vertices has edges, so the total number of edges is
(The fact that a tree on vertices has 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 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 defined on the vertices set and the edges set . Draw a rooted tree from the tree, choosing as the root. Find a) the path from the root to each leaf and the height of the rooted tree. b) siblings of and subtree at . c) descendants of and all branch nodes of the rooted tree.
Answer
The adjacencies are: : ; : ; : ; : ; : ; : ; : ; : ; : ; : ; : ; : .
Rooted tree with root :
- has children
- has children
- has child
- has child ; has child
- has child
- has child
g
/ | \
e h i
/ | \ |
b f d j
| | |
a l c
|
k
(a) Leaves and paths from the root. The leaves are .
The longest path has 4 edges, so the height of the rooted tree is .
(b) Siblings of : and . Subtree at : vertices with edges .
(c) Descendants of : and . Branch (internal) nodes: (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 , the integers is a partial order relation or a total ordered relation.
Answer
The relation on is not a partial order, and hence not a total order.
A partial order must be reflexive, antisymmetric and transitive. Here is false for every integer , 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 each time, starting at .
(a) Explicit: .
(b) Recursive: for .
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 .
Define (the odd natural numbers) by . It is one-to-one, since gives . It is onto, since every odd number equals and .
So is a bijection, and the odd natural numbers form a countably infinite set.
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 to be sure that two of them add up 7.
Answer
Group the elements of into pairs that sum to 7 (the pigeonholes):
There are pigeonholes. If integers are selected, two of them lie in the same pair, and those two add up to . Selecting only is not enough (for example ).
The minimum number is 4.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2010 AD · 2 marks
If and are positive integers with , show that , (Pascal Identity).
Answer
Start from the right-hand side and use .
Take the common denominator :
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 . How many isomorphism classes are there?
Answer
A spanning subgraph of (vertices , edges ) keeps all three vertices and any subset of the edges. There are such subgraphs:
- no edges: 1 graph (three isolated vertices);
- one edge: 3 graphs (, or , plus an isolated vertex);
- two edges: 3 graphs (a path on three vertices);
- three edges: 1 graph ( itself, a triangle).
Graphs with the same number of edges are isomorphic here, so there are 4 isomorphism classes (with 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 vertices:
- Sort the edges in non-decreasing order of weight.
- Go through them in order, adding an edge if it does not form a cycle with the edges already chosen, and discarding it otherwise.
- Stop when 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 said to be symmetric?
Answer
A relation on a set is symmetric if whenever then , for all .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2011 AD · 1 mark
If is the mod. 7 function, compute .
Answer
is the remainder of on division by , taken in . Since ,
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2011 AD · 1 mark
For which real number is the true that ?
Answer
exactly when is not an integer. If is an integer, both equal and the difference is . If is not an integer, the ceiling is the next integer above the floor, so the difference is .
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 positions can be or , so by the product rule there are 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 there is a directed path from to or a directed path from to (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 vertices with edges have degree sum . Up to isomorphism there are exactly three:
- Triangle plus an isolated vertex: edges , vertex isolated. Degrees .
- Path : edges . Degrees .
- Star : edges . Degrees .
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 is a relation defined on a set by . Write as a set of ordered pairs. State whether the relation is reflexive, symmetric, anti-symmetric, asymmetric, transitive.
Answer
Definition. A relation on is anti-symmetric if and imply .
as a set. means on :
It has ordered pairs.
Properties.
- Reflexive: No, since (in fact ).
- Symmetric: No, since but .
- Anti-symmetric: Yes. There is no pair with both and in , so the condition holds vacuously.
- Asymmetric: Yes. always implies .
- Transitive: Yes. If and then , so .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2011 AD · 4 marks
Define permutation with example. Prove that . In how many ways can a committee consisting of three women be chosen from seven men and five women?
Answer
Permutation. A permutation of objects chosen from distinct objects is an ordered arrangement of them. Example: the permutations of letters chosen from are , so .
Proof of . Fill positions in order. The first can be filled in ways, the second in ways, and so on, until the -th position, which can be filled in ways. By the product rule,
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):
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 and are given in a figure in the original paper.)
Answer
Isomorphic graphs. Two graphs and are isomorphic if there is a bijection (an isomorphism) such that are adjacent in if and only if are adjacent in . That is, the two graphs are the same up to relabelling of vertices.
Using adjacency matrices. Write the adjacency matrices and with the vertices of labelled according to the correspondence , with entry if vertices are adjacent and otherwise. If the two matrices are equal under this ordering, the adjacency is preserved and is an isomorphism. Equivalently, for a permutation matrix .
The graphs 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 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 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 edges. List every choice of edges that contains no cycle, then group them by shape. On four vertices a tree is either a path or a star , 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.
- 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.
- 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.
- The optimal length is the total weight of all edges plus the weight of the repeated edges.
- Find an Euler circuit in the enlarged multigraph, starting and ending at . 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 to a set .
Answer
A binary relation from a set to a set is a subset of the Cartesian product , i.e. a set of ordered pairs with and . We write when .
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 is the function defined by for all . 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 is it true that ?
Answer
exactly when .
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 . Each of the remaining bits can be or , so there are 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 ? Why?
Answer
No. A simple graph with vertices has no loops or multiple edges, so each vertex has degree at most . The sequence contains a vertex of degree , which is impossible. (Equivalently, a vertex of degree would need distinct neighbours, but only 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 ?
Answer
A cut-vertex of a connected graph is a vertex whose removal (together with the edges incident to it) leaves a disconnected graph; that is, 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) said to be Eulerian?
Answer
A connected graph (multigraph) is Eulerian if it has a closed trail (circuit) that contains every edge exactly once. Equivalently, 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 and the five directed edges
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 vertices?
Answer
Let a full binary tree have vertices, internal vertices and pendant vertices (leaves). Then
so the number of pendant vertices is one more than the number of internal vertices, and .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2012 AD · 4 marks
What is Boolean Matrix? If and be two relations on , find the Boolean product of and . Also, verify that a) b) .
Answer
Boolean matrix. A Boolean matrix is a matrix whose entries are only and . The Boolean product is computed like the usual product but with in place of multiplication and in place of addition. The join is the entrywise OR.
Order the elements as .
Boolean product. Row of selects rows and of , and rows and of each select row of :
(a) , so
Also
So .
(b) , so
since the columns of are , and . Hence .
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 and denoted? Let , the set of real numbers. Let defined by and let defined by . Verify that each function is the inverse of the other.
Answer
Composition. If and , the composition is the function defined by . It is denoted (also ).
Verification. Here and .
So and . Therefore and are inverses of each other: and .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2012 AD · 4 marks
If , the set of real numbers, and the function is defined by and the function is defined by . Verify that
Answer
Here , which is a bijection on , so
Inverses of the separate functions: from we get ; from we get .
Then
Both sides equal , hence .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2012 AD · 4 marks
What is an -permutations of a set of distinct objects, where ? 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 -permutation of a set of distinct objects is an ordered arrangement of of those objects. The number of them is
Circular table. Treat the two particular persons as one block. We then have units to place round a table, which can be done in ways. The two persons can swap places inside the block in ways.
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 red and black balls.
(i) All the same colour. All red or all black:
(ii) Three red and two black.
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 with edges . The complete graph has edges, so the complement has the other edges: These form the cycle , again a pentagon.
Define by . It is a bijection, and the edges of map as which are exactly the edges of . So 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 with components has size .
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 of order with components has size .
Proof. Let the components be trees with vertices, so . A tree with vertices has edges. Therefore
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 , where is the diagonal matrix of degrees and the adjacency matrix.
Procedure for the four-vertex graph on .
- Write and from the figure and form (diagonal entries are the degrees, off-diagonal entries are for each edge, otherwise).
- Delete one row and the matching column to get a matrix.
- Its determinant is the number of spanning trees .
Illustration. For every degree is and For a graph with a missing edge, such as minus one edge, the same method gives .
Drawing the trees. A spanning tree on four vertices has exactly edges. List every choice of 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 and use a queue.
- Visit and put it in the queue.
- Remove the front vertex . For each unvisited neighbour of (taken in alphabetical order), mark it visited, add the edge from to it to the tree, and put it in the queue.
- 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 : the neighbours of form level 1; the unvisited neighbours of those vertices form level 2, and so on, until all vertices are visited. The chosen edges, in all, form a spanning tree rooted at .
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.