File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 5
5
* Source: https://en.wikipedia.org/wiki/Bron%E2%80%93Kerbosch_algorithm
6
6
* Description: Runs a callback for all maximal cliques in a graph (given as a
7
7
* symmetric bitset matrix; self-edges not allowed). Callback is given a bitset
8
- * representing the maximal clique. Possible optimization: on the top-most
9
- * recursion level, ignore 'cands', and go through nodes in order of increasing
10
- * degree, where degrees go down as nodes are removed.
8
+ * representing the maximal clique.
11
9
* Time: O(3^{n/3}), much faster for sparse graphs
12
10
* Status: fuzz-tested
13
11
*/
14
12
#pragma once
13
+ // / Possible optimization: on the top-most
14
+ // / recursion level, ignore 'cands', and go through nodes in order of increasing
15
+ // / degree, where degrees go down as nodes are removed.
16
+ // / (mostly irrelevant given MaximumClique)
15
17
16
18
typedef bitset<128 > B;
17
19
template <class F >
Original file line number Diff line number Diff line change 3
3
* Date: 2019-05-10
4
4
* License: GPL3+
5
5
* Source: https://en.wikipedia.org/wiki/MaxCliqueDyn_maximum_clique_algorithm, https://gitlab.com/janezkonc/mcqd/blob/master/mcqd.h
6
- * Description: Finds a maximum clique of a graph (given as symmetric bitset
6
+ * Description: Quickly finds a maximum clique of a graph (given as symmetric bitset
7
7
* matrix; self-edges not allowed). Can be used to find a maximum independent
8
8
* set by finding a clique of the complement graph.
9
9
* Time: Runs in about 1s for n=155 and worst case random graphs (p=.90). Runs
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ \section{DFS algorithms}
30
30
31
31
\section {Heuristics }
32
32
\kactlimport {MaximalCliques.h}
33
- % \kactlimport{MaximumClique.h}
33
+ \kactlimport {MaximumClique.h}
34
34
\kactlimport {MaximumIndependentSet.h}
35
35
36
36
\section {Trees }
@@ -41,4 +41,4 @@ \section{Trees}
41
41
\kactlimport {LinkCutTree.h}
42
42
\kactlimport {DirectedMST.h}
43
43
\kactlimport {MatrixTree.h}
44
- \hardcolumnbreak
44
+ \columnbreak
You can’t perform that action at this time.
0 commit comments