Concept:
• A Minimum Spanning Tree (MST) is a subset of edges that connects all vertices without cycles and with the minimum possible total edge weight.
• Prim's algorithm builds the tree one vertex at a time.
• Kruskal's algorithm builds the tree by processing edges in increasing order of weight.
Step 1: Evaluate Assertion (A)
While Prim's and Kruskal's will always find a spanning tree with the same minimum total weight, they do not necessarily produce the same set of edges (the same tree). If a graph has multiple edges with the same weight, there can be multiple distinct MSTs. Prim's might choose one edge while Kruskal's chooses a different one with an identical weight. Thus, (A) is false.
Step 2: Evaluate Reason (R)
Both algorithms are indeed greedy. Prim's greedily picks the minimum weight edge connected to the current growing tree. Kruskal's greedily picks the absolute minimum weight edge from the entire remaining set (that doesn't form a cycle). This shared greedy philosophy is correct. Thus, (R) is true.