Graph theory problem

Revision en1, by surajkvm007, 2016-03-08 22:14:10

Given a forest with n vertices, add edges to make it into a tree with minimal diameter. I tried many approaches but none of them passed system test cases.Please suggest some algorithm to solve this problem.

Tags algorithm, graphs, minimization

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English surajkvm007 2016-03-08 22:14:10 227 Initial revision (published)