简体   繁体   English

理论计算机科学:这个问题与顶点覆盖有关吗?

[英]Theoretical computer science: is this problem related to vertex cover?

I have the following problem that seems to share some similarities to the vertex cover problem.我有以下问题,似乎与顶点覆盖问题有一些相似之处。

We have a directed graph G=(V,E) with |V|我们有一个有向图 G=(V,E) 和 |V| vertices and |E|顶点和 |E| edges.边缘。 Let us imagine that a vertex represents a person and that an edge from vertex A to vetrex B represents an information path from B to A, ie if B is given a piece of information then A also has it.让我们假设一个顶点代表一个人,而从顶点 A 到顶点 B 的一条边代表从 B 到 A 的信息路径,即如果给 B 一条信息,那么 A 也有它。 However, if another edge goes from vertex C to vertex A, then the information will not reach C unless there is an edge from C to B or if the information is given directly to A also.但是,如果另一条边从顶点 C 到顶点 A,则信息不会到达 C,除非有一条从 C 到 A 的信息也直接提供给 B 或

Now the question is what the maximum number of vertices/persons are that we can reach by giving information to (at most) k vertices/persons.现在的问题是,通过向(最多)k 个顶点/人提供信息,我们可以达到的最大顶点/人数是多少。 I think this is closely related to the vertex problem, but where we only have to cover k vertices instead of all.我认为这与顶点问题密切相关,但我们只需要覆盖 k 个顶点而不是全部。 But still it does not seem to quite fit the other problem.但它似乎仍然不太适合另一个问题。

Can anybody name a well-known problem that shares a similar structure?谁能说出一个具有相似结构的众所周知的问题? This would help me better to approach an approximation algorithm for it.这将帮助我更好地接近它的近似算法。

Edit: I am intrested in the optimization aspect of this problem, but it seems to me that an optimal approach would be to choose a set of connected people, as large as possible, and then remove the selected people from all the other sets of connected people and repeat the process.编辑:我对这个问题的优化方面很感兴趣,但在我看来,最佳方法是选择一组尽可能多的有联系的人,然后从所有其他有联系的人集中删除选定的人人并重复这个过程。 Then the problem would be in P, but it is actually NP-hard.那么问题就出在 P 中,但它实际上是 NP 难的。 This I do not see.这个我没看到。

What you're describing here is closely related to the dominating set problem.您在这里描述的内容与支配集问题密切相关。 A dominating set is a set of nodes where each node is either in the set or at the end of an edge whose other endpoint is in the set.支配集是一组节点,其中每个节点要么在集合中,要么位于另一端点在集合中的边的末端。 In your case, you're more properly looking at the dominating set problem in directed graphs, and your graph happens to have the edge reversed.在您的情况下,您更正确地查看有向图中的主导集问题,并且您的图恰好有反转的边缘。

This problem is known to be NP -hard, so you'll likely need to look for approximation algorithms.众所周知,这个问题是NP难题,因此您可能需要寻找近似算法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM