Maybe the title is confusing but I can not come up with a more appropriate one. Suppose we haveLet $G = (V, E)$ be an undirected graphfinite $G = (V, E)$connected graph. Let $u$ be a specficspecified vertex inof $G$. Then the sum of distances $$ \sum_{v \in V} d_G(u,v) $$ is determineddefined. Now we want to decrease this value, by settingdefining "main roads" in the graph. Imagine
We require that there
- these "main roads" must constitute a subtree $T$ of $G$.(note)
- $u\in V(T)$
- $s:=\lvert V(T)\rvert < \lvert V\rvert$
The idea is a tree $T \subseteq G$ including $u$ and other $n - 1$ vertices ($n < |V|$) in $G$. Walking onthat traversing edges of $T$ needs nois cost. Formally-free, let $U$ satisfying $u \in U \subseteq V$ and $|U|=n$ is connected in $G$ (so actually $U$ isthat therefore the vertex setsize of the sum of distances drops to the sum of distances from vertices outside $T$). We would like to minimize $$ D=\sum_{v \in V} d_G(U,v) $$ for all possible $U$ with certainthe nearest vertex of $n$$T$.
Formally, the aim is to minimize (or course, $d_G(U,v):=\min\{d_G(u,v)\colon u\in U\}$) $$ D=\sum_{v \in V\setminus U} d_G(U,v) $$ over all $U\subseteq V$ with
(bc.1) $\qquad\lvert U\rvert=s<\lvert V\rvert$,
(bc.2) $\qquad G[U]:=(U,\{e\in E\colon e\subset U\})$ is connected.
My question. Was this problem studied before? Is there any result of an algorithm to calculate $D$ or estimate the minimum of $D$ with tolerable errors?
A counterexample for Manfred's algorithm, in which $u$ is $A$ and $n=4$$s=4$.
${}$________________________________
(note) Not spanning tree though, because of condition 3. (Also compare the condition $n<\lvert V\rvert$ in the original version of thie post; there, $n$ unambiguously meant the number of vertices of the tree, so, curiously, the 'main-road-subtree' is required not to be a spanning tree.)