论文选读:Bron–Kerbosch algorithm

本文详细介绍了Bron-Kerbosch算法,讨论了如何选择枢轴顶点u以及算法复杂性。在特定的顶点顺序下,当使用degeneracy ordering,算法对于小degeneracy的图表现高效。对于n-顶点图,最坏情况下的运行时间为O(3n/3),而对于稀疏图,复杂度可以优化到O(dn^3d/3),其中d是图的degeneracy。
摘要由CSDN通过智能技术生成

(Written in 2019.3)

link

1

R := is the set of nodes of a maximal clique.
P := is the set of possible nodes in a maximal clique.
X := is the set of nodes that are excluded.

BronKerbosch1(∅, all nodes, ∅)

BronKerbosch1(R, P, X):
  if P and X are both empty:
    report R as a maximal clique
  for each vertex v in P:
    BronKerbosch1(
      R ⋃ {
   v}, 
      P ⋂ N(v), 
      X ⋂ N(v)
    )
    P := P \ {
   v}
    X := X ⋃ {
   v}

2

"pivot vertex" u

chosen from P ⋃ X.

Any maximal clique must include either u or one of its non-neighbors, for otherwise the clique could be augmented by adding u to it.

Therefore, only u and its non-neighbors need to be tested as the choices for the vertex v that is added to R in each recursive call to the algorithm.

最大团此时是u邻居的集合,u必然包含在内
疑问,若 P \ N(u) 为空, 则所有顶点皆与u相邻,则此时应该

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值