Minimum time to deliver k letters

Правка en1, от _Aryan_, 2023-07-15 11:33:03

Byteland has N cities (numbered from to ) and N-1 bidirectional roads. It is guaranteed that there is a route from any city to any other city.

Jeanie is a postal worker who must deliver Kletters to various cities in Byteland. She can start and end her delivery route in any city. Given the destination cities for K letters and the definition of each road in Byteland, find and print the minimum distance Jeanie must travel to deliver all K letters.

Note: The letters can be delivered in any order.

approach for this problem

O(V+E) solution intended

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский _Aryan_ 2023-07-15 13:45:05 26 Tiny change: ' problem\n\nO(V+E) solution intended' -> ' problem\n'
en3 Английский _Aryan_ 2023-07-15 12:16:36 20
en2 Английский _Aryan_ 2023-07-15 12:15:37 506
en1 Английский _Aryan_ 2023-07-15 11:33:03 594 Initial revision (published)