How many edges does a tree with n vertices have?
-
A
2n
-
B
n + 1
-
C
n − 1
Correct answer
-
D
n
19 views
Explanation
A tree is connected and acyclic, so it has exactly n − 1 edges. Adding any edge creates a cycle, and removing one disconnects the tree.
Reference
Asked in: GATE CS, NTS, Technical Interviews
Doubts & discussion
Not sure why the answer is C? Ask here and get an explanation.
Ask a doubt about this MCQ