GATE 2007

December 31, 2024

Computer-Graphics

January 1, 2025

GATE 2007

December 31, 2024

Computer-Graphics

January 1, 2025

Data-Structures

Question 93

How many edges are there in a forest with p components having n vertices in all?

A
n-p
Question 93 Explanation: 
Forest is a graph with no cycle.
Now, ‘0’ edges for p-1 vertices (p-1 components) and n-p edges for n-p+1 vertices (1 component).
So, total of n-p edges for p components.
Correct Answer: A
Question 93 Explanation: 
Forest is a graph with no cycle.
Now, ‘0’ edges for p-1 vertices (p-1 components) and n-p edges for n-p+1 vertices (1 component).
So, total of n-p edges for p components.

Leave a Reply

Your email address will not be published. Required fields are marked *