Unit 6: Shortest Paths & Trees - Subjective Questions

MTH136 — Discrete Structures • Practice Questions with Detailed Answers

20 questions

1

Define a labelled graph and a weighted graph. Explain the difference between them with suitable examples.

2

Explain the concept of the shortest path in a weighted graph. Why is finding the shortest path important?

3

State and explain Dijkstra's algorithm for finding the shortest path in a weighted graph. Write its step-by-step procedure.

4

Apply Dijkstra's algorithm to find the shortest path from vertex to all other vertices in the following weighted graph:

  • Edges: , , , , , , .
5

Define a tree in graph theory. List and explain the important properties of a tree.

6

Explain the concept of a rooted tree. Define the following terms with respect to a rooted tree: root, parent, child, sibling, leaf, internal node, level, and height.

7

Define a binary tree. Explain its types and important properties.

8

Prove that a tree with vertices has exactly edges.

9

Define a spanning tree. Explain its properties with an example.

10

Define a minimum spanning tree (MST). Explain its significance and real-world applications.

11

Explain Kruskal's algorithm to find the minimum spanning tree. Write its step-by-step procedure and time complexity.

12

Explain Prim's algorithm to find the minimum spanning tree. Write its step-by-step procedure and time complexity.

13

Distinguish between Kruskal's and Prim's algorithms for finding the minimum spanning tree.

14

Find the Minimum Spanning Tree using Kruskal's algorithm for a graph with the following edges and weights:

, , , , , , .

15

Find the Minimum Spanning Tree using Prim's algorithm (starting from vertex ) for the graph with edges:

, , , , , , .

16

Compare the shortest path problem (Dijkstra's algorithm) with the minimum spanning tree problem (Prim's/Kruskal's algorithm). How do these problems differ in their objectives and outputs?

17

Explain the tree traversal techniques for a binary tree: Preorder, Inorder, and Postorder with an example.

18

Why does Dijkstra's algorithm fail for graphs with negative edge weights? Explain with a suitable example.

19

Describe the relationship between a graph and its spanning tree. How many spanning trees can a connected graph have, and how do you count them for a complete graph?

20

Prove that a graph is a tree if and only if it is connected and has edges (where is the number of vertices).