简体   繁体   English

从加权图中选择边,这样每个顶点都是一个边的端点,并且边权重的总和被最小化

[英]Choose edges from weighted graph, such that each vertex is an endpoint of one edge, and the sum of edge weights is minimized

For simplication, we can assume that the graph G=(V,E) has 2N vertexes and the answer has N edges. 为了简化起见,我们可以假设图G =(V,E)具有2N个顶点,并且答案具有N条边。

I have learned that if the graph is bipartite, Hungarian algorithm works well. 我了解到,如果该图是二分图,则匈牙利算法效果很好。 However, I wonder if there is any nontrivial solution(ie a polynomial one) for a general graph. 但是,我想知道一般图形是否存在非平凡的解(即多项式)。

Any polynomial solutions, as well as a proof of NP Complexity, are welcome. 欢迎使用任何多项式解以及NP复杂度的证明。

If you want every vertex be incident to exactly one edge, then you need to find perfect matching. 如果要使每个顶点恰好入射到一个边缘,则需要找到完美的匹配。 But perfect matching not always exists even for a graph with even number of vertices. 但是,即使对于具有偶数个顶点的图,也不总是存在完美匹配。

You can see example in this answer . 您可以在此答案中看到示例。

暂无
暂无

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

相关问题 找到一组要去除的边缘,以使每个顶点的度不超过K,并且使边缘权重的总和最大化 - Finding a set of edges to remove such that that the degree of each vertex is no more than K and the sum of edge weights is maximized 无向加权图中连接3个顶点的最小总权重,仅具有正边权重 - Minimum sum weight of connecting 3 vertices in an undirected, weighted graph, with only positive edge weights 将图划分为三顶点图,以使边缘权重之和最小 - Dividing a graph to triple-vertices graphs such the sum of weights of edges is minimized 从矩阵中的每一行和每列中选择一个元素,并将总和最小化 - Choose one element from each row and column in matrix and the sum is minimized 找到使共享顶点颜色的边的权重总和最小化的图形着色 - Find graph colouring that minimises sum of weights of edges that share vertex colours 给定有向图中的边,如果每条边都分配给一个节点,那么将分配的最大边数是多少? - Given edges in directed graph, if each edge is assigned to one node what is maximum number of edges that will be assigned? 将加权图分成n个图,以使每个图的权重之和最小 - Split a weighted graph into n graphs to minimize the sum of weights in each graph 图论:找到边缘“方向”组合的最佳算法,其中每个节点最多有一个边缘指向它 - Graph theory: best algorithm to find combination of edges “directions”, where each node has at most one edge directed to it 有向加权边缘图及其权重的算法 - Algorithm for directed weighted edge graphs and their weights 如何用graphx求和边缘权重 - how to sum edge weights with graphx
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM