Hashing
December 31, 2024Computer-Graphics
January 1, 2025Data-Structures
Question 93 |
How many edges are there in a forest with p components having n vertices in all?
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.
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.
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.
Subscribe
Login
0 Comments