Center of a graph

后端 未结 3 1131
天涯浪人
天涯浪人 2021-01-06 14:02

Given an unoriented tree with weightless edges with N vertices and N-1 edges and a number K find K nodes so that every node from a tree is within S distance of at least one

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-06 14:41

    This problem is called p-center, and you can find several papers online about it such as this. It is indeed NP for general graphs, but polynomial on trees, both weighted and unweighted.

提交回复
热议问题