Reporters in graph problem

Revision en2, by -Alireza-, 2020-10-25 11:49:22

__hi! can somebody help me in this problem please? we have a graph and 2 type of reporters: 1 — can report the news to vertices with distance at most 1(from the reporter vertex) the price of this type is 1. 2 — can report to vertices with distance at most 2 . the price of this type is 2. what is the minimum total price to make sure that all vertices will receive the news.

for example in the graph above we can put a reporter of type 2 in the marked vertex and the total price will be 2.

I have a naive solution with O(3^n) time but that's not so good.

Tags graph

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English -Alireza- 2020-10-25 11:49:22 21
en1 English -Alireza- 2020-10-25 11:47:28 660 Initial revision (published)