Mathematics Week 10 Graded Assignment

Mathematics Week 10 Graded Assignment


Graded Assignment

1. Multiple Choice Questions (MCQ)

Question 1: The maximum number of non-zero entries in an adjacency matrix of a simple graph having $ n $ vertices can be Options: (a) $ n^2 $
(b) $ n(n-1) $
(c) $ \frac{n(n-1)}{2} $
(d) $ n(n-1) $

Solution:
The number of non-zero entries is equal to twice the number of edges for undirected graphs, but for directed simple graphs (no loops, no multiple edges), it is $ n(n-1) $. Since the question says “simple graph” (typically undirected, but the context here implies directed or maximum possible), and the solution says “sum of degrees” is $ n(n-1) $ if every vertex has degree $ n-1 $, which is only possible in a directed simple graph.
Correct option: (d) $ n(n-1) $
Question 2: We have a graph $ G $ with 6 vertices. We write down the degrees of all vertices in $ G $ in descending order. Which of the following is a possible listing of the degrees?
Options:
(a) 6,5,4,3,2,1
(b) 5,5,2,2,1,1
(c) 5,3,3,2,2,1
(d) 2,1,1,1,1,1

Solution:

  • Option (a): Not possible (degree > 5 for a 6-vertex simple graph).
  • Option (b): Not possible (sum of degrees is odd).
  • Option (c): Possible.
  • Option (d): Not possible (sum of degrees is odd).
    Correct option: (c) 5,3,3,2,2,1
Question 3: We are trying to find the correct path in a maze. We start at the entrance. At some points, we have to choose a direction to explore. If we reach a dead end, we come back to the most recent intersection where we still have an unexplored direction to investigate. What is a good data structure to keep track of the intersections we have visited?
Options:
(a) List
(b) Stack
(c) Queue
(d) Array
Solution:
This is a recursive exploration (depth-first), so a stack is appropriate.
Correct option: (b) Stack

Question 4:
Below table shows the adjacency list w.r.t outgoing edges of a directed graph $ G $:

1{2,4}
2{3,5,6}
3{7}
4{3,5,6}
5{6,7}
6{1}
7{1,2,6}

Which of the following tables shows the adjacency list w.r.t incoming edges of the graph $ G $?
Options:
(a)

1{6,7}
2{1,7}
3{2,4}
4{1,5}
5{2,4}
6{2,4,7}
7{3,5}

(b)

1{6,7}
2{1,7}
3{2,4}
4{1}
5{2,4}
6{2,4,5,7}
7{3,5}

(c)

1{6,7}
2{1,4}
3{2,7}
4{1,5}
5{2,4}
6{2,4,7}
7{3,5}

(d) (no table shown)

Solution:
Analyzing the incoming edges from the outgoing list, option (c) matches the correct incoming adjacency list.
Correct option: (c)
Question 5:
Suppose we obtain the following BFS tree rooted at node 1 for an undirected graph with vertices (1,2,3,4,5,…,14). Which of the following cannot be an edge in the original graph?
Options:
(a) (8,11)
(b) (3,10)
(c) (4,5)
(d) (6,9)
Solution:
In a BFS tree, edges between vertices in the same or adjacent levels are possible. The edge (8,11) is unlikely to be present if not part of the tree and not connecting tree levels as expected.
Correct option: (a) (8,11)

2. Multiple Select Questions (MSQ)

Question 6:
Which of the following graphs satisfies the below properties:

  1. $ |VC(G)| = 3 $, where $ VC(G) $ is the minimum vertex cover of a graph $ G $.
  2. $ |PM(G)| = 3 $, where $ PM(G) $ is the perfect matching of a graph $ G $.
  3. The graph is a 3-colouring.

Options: (Specific graph diagrams are implied, but not shown here.)

Solution:
The correct options are (c) and (d) based on the provided answer key.
Correct options: (c), (d)
Question 7:
Which of the following statements is(are) true?
Options:
(a) BFS can be used to identify the vertex which is at the farthest distance from $ v $ in any graph, in terms of number of edges, where vertex $ v $ is the starting vertex.
(b) BFS and DFS identifies all the vertices reachable from the starting vertex $ v $.
(c) BFS cannot be used to check for cycles in the graph while DFS can be used to check for cycles in the graph.
(d) DFS can be used to identify the shortest distance from starting vertex $ v $ to every other vertex in the graph, in terms of number of edges.

Solution:

  • (a): True (BFS gives the level, i.e., distance from starting vertex).
  • (b): True (both BFS and DFS explore all reachable vertices).
  • (c): False (both can be used to detect cycles, but in different ways).
  • (d): False (DFS does not guarantee shortest path).
    Correct options: (a), (b)

3. Numerical Answer Type (NAT)

Question 8:
If $ A $ represents adjacency matrix of a graph $ G $, then the cardinality of the maximum independent set of the graph $ G $ is
Adjacency matrix:

1 2 3 4 5 6 7
1 0 1 0 1 0 0 0
2 1 0 1 1 0 1 0
3 0 1 0 0 0 0 0
4 1 1 0 0 1 1 1
5 0 0 0 1 0 0 0
6 0 1 0 1 0 0 0
7 0 0 0 1 0 0 0
Solution:
Analyzing the graph: a maximum independent set is a set of vertices with no edges between them.
Answer: 5
Question 9:
A company manufactures 10 chemicals $ X_1, X_2, X_3, …, X_{10} $. Certain pairs of these chemicals are incompatible and would cause explosions if brought into contact with each other. The graph shows incompatibility (each vertex is a chemical, each edge is incompatibility). The company wishes to partition its warehouse into compartments, and store incompatible chemicals in different compartments. What is the least number of compartments into which the warehouse should be partitioned?
Solution:
This is the chromatic number problem. The answer is determined by the maximum clique or by the graph’s structure.
Answer: 3
Question 10:
An incomplete undirected graph is given below and the numbering on each vertex denotes the colouring of the graph (‘1’ denotes color 1, ‘2’ denotes color 2, and ‘3’ denotes color 3). Find the number of maximum edges that can be added to the given graph such that the colouring is retained and the graph is planar.
Solution:
A planar graph with $ n $ vertices has at most $ 3n-6 $ edges (for $ n \geq 3 $). The maximum number of edges that can be added while retaining the given colouring and planarity is determined by the current edge count and the constraints.
Answer: 6

This is the complete extraction of all questions and solutions from the provided PDF1.


  1. Copy-of-Week-10-Graph-Theory.pdf ↩︎