Graphs
Two ingredients
1. vertices (nodes) v
2. edges(undirected or directed)
Examples: road networks, the web, social networks
The minimum Cut problem
Input: undirected graph G = (V, E) (parallel edges allowed)
Goal: compute a cut with fewest number of Crossing edges (a min cut)
Sparse vs. Dense Graphs
let n = # of vertices, m = # of edges
In most applications, m is Omega(n) and O(n^2)</

本文介绍了无向图的最小割问题,探讨了两种图的表示方式——邻接矩阵和邻接列表,并详细阐述了Karger算法的随机收缩过程,通过Python代码展示了如何求解最小割。
最低0.47元/天 解锁文章
628





