Indian Institute of Technology Madras
BS Degree Programme · Examination & Study Paper
BSMA1001 · Mathematics for Data Science I
Shortest paths & spanning trees
Examination Instructions & Guidelines
- Solve on notebook/paper first before checking solutions.
- MCQ: Exactly 1 option is correct. Negative marking applies.
- MSQ: One or more options correct. Select all to score.
- NAT: Numerical response. No negative marking.
- Scientific calculator allowed for all calculations.
- Official answer key is sealed at the end of this sheet.
End Term · 31 Aug 2025 (FN)End Term
- Q1MCQ4 Marks·Choose one option
Suppose Dijkstra’s algorithm is run on the graph below, starting at node A. In what order do the shortest distances to the other vertices get finalized?

- A

- B

- C

- D

- A
- Q2NAT4 Marks·Write the number
Your answer:
End Term · 13 Apr 2025 (FN)End Term
- Q3MCQ3 Marks·Choose one option
Which of the following options is true?
- AThe minimum cost-spanning tree obtained by Prim’s Algorithm is always the same as obtained by Kruskal’s Algorithm.
- BThe minimum cost-spanning tree is not a tree.
- CThe cost of the spanning tree obtained by Prim’s Algorithm is the same as obtained by Kruskal’s Algorithm.
- DIf the weight of each edge in a graph is equal, then the total cost of the graph is equal to the cost of the minimum cost-spanning tree.
Read the passage below, then answer Q4
Suppose Nitya wishes to find the minimum cost spanning tree of the graph given below. While finding the minimum cost spanning tree she finds that a few edge weights are missing (x and y) but she is sure that the weight of the minimum cost spanning tree is 15 in the graph.

Based on the above data, answer the given subquestions.
Q4MSQ4 Marks·Choose all correct optionsWhich of the following are possible values for x and y?
- Ax = 2, y = 6.
- Bx= 4, y = 3.
- Cx = 3, y = 4.
- Dx = 1, y = 6.
End Term · 13 Apr 2025 (AN)End Term
- Q5MCQ3 Marks·Choose one option
Which of the following options is true?
- AThe cost of the spanning tree obtained by Prim’s Algorithm is the same as obtained by Kruskal’s Algorithm.
- BThe minimum cost-spanning tree obtained by Prim’s Algorithm is the same as obtained by Kruskal’s Algorithm.
- CThe minimum cost-spanning tree is not a tree.
- DIf the weight of each edge in a graph is equal, then the total cost of the graph is equal to the cost of the minimum cost-spanning tree.
Read the passage below, then answer Q6

Based on the above data, answer the given subquestions.
Q6MSQ4 Marks·Choose all correct options
- A

- B

- C

- D

- A
End Term · 22 Dec 2024 (FN)End Term
- Q7MSQ4 Marks·Choose all correct options

- A

- B

- C

- D

- A
- Q8MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
- Q9NAT5 Marks·Write the number
Your answer: