1. Two ingredients of Graph:
a) vertices A.K.A. nodes (V)
b) edges = pairs of vertices (E)
can be undirected or directed A.K.A arcs
2. Definition of Cuts of Graphs:
A cut of Graph ( V, E) is a partition of V into two non-empty sets A and B.
The crossing edges of a cut (A, B) are those edges with:
a) one endpoint in each of (A, B) for undirected graph
b) tail in A, head in B for directed graph
3. Definition of the Minimum Cut Problem:
Input : an undirected graph G = (V, E) , parallel edges (multiple edges for the same node pair are allowed
Output : a cut with fewest number of crossing edges.
4. Applications for Min-Cut problem:
a) Identify network bottlenecks / weaknesses
b) Community detection in social networks
c) Image segmentation
5. Let n = # of vertices and m = # of edges.
In most applications, m is Ω(n) and O(n^2).
-- in a "Sparse Graph", m is O(n) or close to it.
-- in a "Dense Graph", m is Θ(n^2) or close to it.
6. The Ajacency Matrix :
Represent G by a nXn 0-1 matrix A, where Aij = 1 <==> G has an i-j edge
Variants:
a) Aij = # of i-j edges (if parallel edges allowed)
b) Aij = weight of i-j edge ( if any)
c) Aij = +1, if i --> j ; -1 if j --> i ;
Takes Θ(n^2) spaces.
7. The Ajacency Lists:
a) array ( or list ) of vertices
b) array ( or list ) of edges
c) each edge points to its endpoints
d) each vertex points to edges incident on it
Takes Θ(n+m) = Θ (max{n, m}) spaces.
8. Random Contraction Algorithm:
While there are more than 2 vertices :
a) pick a remaining edge (u, v) uniformly at random
b) merge ( or contract ) u and v into a single vertex
c) remove self-loops
Return cut represented by final 2 vertices.
9. Fix a graph G = (V, E) with n vertices , m edges.
Fix a minimum cut (A,B), ( there can be multiple minum cuts, here we fix the specific one)
Let k = # of edges crossing (A, B)
Let F = crossing edges of cut (A, B)
a) Suppose an edge of F is contracted at some point => algorithm will not output (A, B)
b) Suppose only edges inside A or inside B get contracted => algorithm will output (A, B)
So, P[ output is (A, B) ] = P[ never contracts an edge of F]
Let Si = event that an edge of F contracted in iteration i.
Goal : compute P[ !S1 and !S2 and ...and !Sn-2]
degree ( # of incident edges ) of each vertex is at least k. (otherwise # of crosing edges of min-cut <k)
Sum {degree(v) } = 2m >= kn , m >= kn/2
So for the first iteration, P[S1] = k/m <= 2/n. P[!S1] >= 1-2/n
P[!S1 and !S2] = P[!S1] P[!S2 | !S1] >= (1-2/n) ( 1- k/ # of remaining edges)
In the second iterfation, still degree(v) >= k , so Sum{degree(v)} = 2 * # remaining edges >= 2 (n-1)
So P[!S1 and !S2] >= (1-2/n) * (1- 2/(n-1) );
So P[ never contracts an edge of F]>= ( 1- 2/n ) * ( 1- 2/(n-1) ) * ... * ( 1- 2/(n-(n-3) ) ) (total n-2 iteration)
= (n-2)/n * (n-3)/(n-1) * (n-4) /(n-2) * ... * 2/4 * 1/3
= 2/(n * (n-1) ) >= 2/n^2
10. Run the random contraction algorithm a large number N times. Let Ti = event that the Min-Cut (A, B) is found on the ith try. By definition different Ti are independent.
So P[ all N trials failed] = P [ !T1 and !T2 and ... !TN] = P[!T1] * P[!T2] * ... * P[!TN] <= (1-1/n^2)^N
Since, for any real number x, 1+x <= e^x
let N= n^2 , P[ all N trails failed] <= e^(-N* 1/n^2) = 1/e
let N = n^2* lnn , P[ all N trails failed] <= 1/n
Each contraction algorithm takes O(m) (need to check each edges) and at most n^2 or n^2 * lnn times.
11. A tree with n vertices has n-1 min cuts.
12. What's the largest number of min cuts that a graph with n vertices can have?
Lower bound : n verices that forms a cycle. Each pair of the n edges defines a distinct min cut ( with two crossing edges) . so it has n * (n-1) / 2 min cuts.
Upper bound : Let (A1, B1) , (A2, B2), ... (At, Bt) be the min cuts of a Graph with n vertices. By random contraction algorithm, we know that P[ output = (Ai, Bi) ] >= 2/(n (n-1) ).
So Sum(i = 1, 2, ..., t) { P[output = (Ai, Bi)] } >= 2t/( n(n-1) ) <= 1 , so t <= n(n-1) /2
相关推荐
Computer global min-cut in a graph. Implements random contraction algorithm. Need to be run multiple time for better solutions.
电力日负荷曲线预测程序和数据集(预测未来一天的负荷曲线)
勾正科技向新而生智赢未来-2024年H1中国家庭智能大屏行业发展白皮书83页.pdf
题目2.2(成绩分析问题):设计并实现一个成绩分析系统,们能够实现录入、保存一个班级学生多门课程的成绩,并成绩进行分析等功能。
更多毕业设计https://cv2022.blog.csdn.net/article/details/124463185
系统选用B/S模式,后端应用springboot框架,前端应用vue框架, MySQL为后台数据库。 本系统基于java设计的各项功能,数据库服务器端采用了Mysql作为后台数据库,使Web与数据库紧密联系起来。 在设计过程中,充分保证了系统代码的良好可读性、实用性、易扩展性、通用性、便于后期维护、操作方便以及页面简洁等特点。
内容概要:本文主要介绍了鸿蒙原生应用开发过程中可能遇到的内存问题以及相应的解决方案。针对这些问题,华为提供的 DevEco Studio 包含了性能分析工具 DevEco Profiler,提供两种场景化的分析模板——Snapshot Insight 和 Allocation Insight,支持实时监控、ArkTS 和 Native 内存的深度分析。这使得开发者能够有效识别、定界定位并优化内存问题,大幅提升应用的稳定性和性能。此外,文章还介绍了 DevEco Studio 强大的模拟器功能,该模拟器能仿真各类设备及场景,包括GPS定位、导航和低电量管理,极大提高了开发效率和测试灵活性。最后,文中详细列出了常见的快捷键,并给出了保持 DevEco Studio 与 Android Studio 快捷键同步的方法。 适合人群:专注于鸿蒙生态系统内的应用开发的技术人员,特别是有一定经验的中级至高级程序员。 使用场景及目标:本文旨在帮助开发者更好地理解和掌握 DevEco Studio 的强大工具链,尤其是解决开发过程中经常遇见的内存管理和多设备兼容问题,目标是优化开发流程,减少调测时间,增强产品的质量和用户体验。 阅读建议:开发者可通过鸿蒙官方提供的资源链接下载最新版本的 DevEco Studio 并探索相关技术博客,以获得最新的技术和使用技巧。建议在实践中逐步熟悉各个功能模块,并积极利用性能分析工具和模拟器来解决现实中的问题。
我是谁
精美导航引导页HTML源码,自适应手机/电脑,无后台,上传网站根目录就能用,首页内容在index里面修改 可以双页切换,亲测可用,搭建简单,附带修改教程
hap手机软件包测试,测试使用
内容概要:本文档是一份针对自动化专业的《电子线路CAD训练》实习报告,详细介绍了通过使用Altium Designer冬春软件进行电子线路的原理图设计、元件库文件设计、PCB板设计及元件封装库设计的过程。文档首先概述了训练的目的和重要性,随后逐步讲解Altium Designer Winter的安装与配置,然后重点展示了具体元件的设计细节,如温度传感器、AD输入通道、四双向模拟开关等的实际应用。此外,还详细阐述了自动布线和手动布线的具体步骤与注意事项,最后通过对此次实习的回顾,强调了本次训练对于提升电路设计能力和后续学习的支持。 适用人群:本报告适用于正在学习自动化及相关专业的在校大学生或从事电气工程领域的工程师和技术人员。 使用场景及目标:旨在帮助读者深入了解电子线路CAD的基础理论知识及其实际应用场景,特别是在Altium Designer环境下的操作流程。目标在于强化学生或技术人员的专业技能,以便他们能够在未来的工作或研究中有更强的设计能力。同时,该报告也可作为相关课程的教学材料。 其他说明:附录部分提供了完整的电路原理图和详细的元器件列表,供读者进一步理解和参照练习。
“2019年金融网点分县统计数据”提供了中国县域金融机构布局的详细信息,覆盖国有大型商业银行、股份制商业银行、城市商业银行及农村商业银行的网点分布特征。截至2019年底,全国银行网点总量为197,719个,其中县域地区分布87,003个,占比44%;市区网点110,716个,占比56%。 从银行类型看,国有大型商业银行县域网点数量最多(46,481个),但分布不均,如交通银行县域网点仅占9.01%,而邮政储蓄银行县域覆盖率高达59%。股份制商业银行县域网点仅占10%,主要集中于华东地区(73%)。农村商业银行县域网点占比60%(34,525个),华北和华中地区占其总量的53%。 区域分布上,华中地区县域网点占比最高(57.66%),其次是华东(34%)和西南(46%);华南地区县域网点最少,仅占7%。国有大行在华东地区县域网点占比32%,农村商业银行则集中在华北(32%)和华中(21%)。 该数据为研究金融资源城乡配置、普惠金融发展及区域经济差异提供了基础支撑。例如,国有大行2019年县域网点数量较前一年增加,反映其下沉服务趋势;而农村金融机构通过人缘地缘优势持续优化县域服务。数据格式包含分银行、分地区的统计表格,适用于量化分析金融网络覆盖与经济社会发展的关联性。
GFP-ATOMIC参数的含义
ollama国内源,bash使用
内容概要:本文详细介绍了一家电动汽车(EV)制造商面临的数据处理挑战以及为解决这些问题所采取的举措——将现有数据平台迁移到Snowflake云平台上。文中阐述了制造商目前遇到的问题,如查询速度慢、运营成本高、难以整合结构化及非结构化的数据来源,并提出了具体的改进方向和技术细节。为了帮助潜在技术人员更好地理解和准备相关技术测试,还提供了一个详细的步骤指南来构建数据管道。具体要求分为两大部分:一是在当前架构上进行操作演示,二是利用Snowflake完成未来状态架构搭建并做技术示范,同时提供了预期产出物列表、所需技能概述及观众构成等关键信息。 适用人群:对于想要深入理解数据仓库迁移流程及其技术实施的专业人士非常有价值,特别适合作为数据工程师、数据科学家和其他IT专业人士参与面试的技术评估资料。 使用场景及目标:旨在展示候选人在构建现代数据工程基础设施方面的技术和创新能力。此外还可以作为内部培训材料供团队成员提高技能,或者为计划类似转型项目的企业决策层提供借鉴参考,从而优化其自身的数据管理策略和架构规划。 其他说明:演示时间被安排为60分钟,其中包括用例讲解(5分钟)、架构讨论(10分钟
自动封装javaBean的工具类
更多毕业设计https://cv2022.blog.csdn.net/article/details/124463185
更多毕业设计https://cv2022.blog.csdn.net/article/details/124463185
wireshark log for ethercat io