Division of a graph into connected subgraphs with sets of vertices that must be in the same subgraph

I have a connected, undirected graph G = (V, E), a set S = {S_1, S_2, ..., S_n}, where each S_i is a subset of V and ak> 1. How can I split V into k subsets such , which is guaranteed that:

  • for each i, each node in S_i is in the same subset
  • each subset is a connected subgraph of G?
+5
source share
2 answers

G = (V, E) (s 1, t 1),..., (s m, t m), H G , s i t i H.

- , , . , - NP-.

, , , , c, , k = | V | - c, S i= {s i, t i}. c, , | V | - c = k. , , , | V | - k = c.

2, , k . , , .

+6

. , S_i, S_j, . , , S_k - , . , . k , , , . , n ^ k, , . , "" S, .

, , . ;)

0

All Articles