encyclopegia.org

MaxCliqueDyn algorithm

The MaxCliqueDyn algorithm is an algorithm for finding a maximum clique in an undirected graph. MaxCliqueDyn is based on the MaxClique algorithm, which finds a maximum clique of bounded size. The bound is found using a coloring algorithm. MaxCliqueDyn extends MaxClique to include dynamically varying bounds. This algorithm was designed by Janez Konc and its description was published in 2007. In comparison to earlier algorithms, MaxCliqueDyn has an improved coloring algorithm (ColorSort) and applies tighter, more computationally expensive upper bounds on a fraction of the search space. Both improvements reduce time to find maximum clique. In addition to reducing time, the improved coloring algorithm also reduces the number of steps needed to find a maximum clique.

The MaxCliqueDyn algorithm is an algorithm for finding a maximum clique in an undirected graph. MaxCliqueDyn is based on the MaxClique algorithm, which finds a maximum clique of bounded size. The bound is found using a coloring algorithm. MaxCliqueDyn extends MaxClique to include dynamically varying bounds. This algorithm was designed by Janez Konc and its description was published in 2007. In comparison to earlier algorithms, MaxCliqueDyn has an improved coloring algorithm (ColorSort) and applies tighter, more computationally expensive upper bounds on a fraction of the search space. Both improvements reduce time to find maximum clique. In addition to reducing time, the improved coloring algorithm also reduces the number of steps needed to find a maximum clique. ==MaxClique algorithm== The MaxClique algorithm is the basic algorithm from which MaxCliqueDyn is extended. The pseudocode of the algorithm is: procedure MaxClique(R, C) is Q = Ø, Q max = Ø while R ≠ Ø do choose a vertex p with a maximum color C(p) from set R R := R\{p} if |Q| + C(p)>|Q max | then Q := Q ⋃ {p} if R ⋂ Γ(p) ≠ Ø then obtain a vertex-coloring C' of G(R ⋂ Γ(p)) MaxClique(R ⋂ Γ(p), C') else if |Q|>|Q max | then Q max := Q Q := Q\{p} else return end while where Q is a set of vertices of the currently growing clique, Q max is a set of vertices of the largest clique currently found, R is a set of candidate vertices, Γ(p) is the set of all vertices that are adjacent to p, and C its corresponding set of color classes. The MaxClique algorithm recursively searches for a maximum clique by adding and removing vertices to and from Q. ==Coloring algorithms== The ColorSort algorithm improves on the approximate coloring algorithm by taking into consideration the above observation. Each vertex is assigned to a color class C_k . If k , the vertex is moved to the set R (behind the last vertex in R). If k \geq - +1 , then the vertex stays in C_k and is not moved to R. At the end, all of the vertices remaining in C_k (where k \geq - +1 ) are added to the back of R as they appear in each C_k and in increasing order with respect to index  k . In the ColorSort algorithm, only these vertices are assigned colors C(v)=k . The pseudocode of the ColorSort algorithm is: procedure ColorSort(R, C) is max_no := 1; k min := |Q max | − |Q| + 1; if k min ≤ 0 then k min := 1; j := 0; C 1 := Ø; C 2 := Ø; for i := 0 to |R| − 1 do p := R[i]; {the i-th vertex in R} k := 1; while C k ⋂ Γ(p) ≠ Ø do k := k+1; if k > max_no then max_no := k; C max_no+1 := Ø; end if C k := C k ⋃ {p}; if k min then R[j] := R[i]; j := j+1; end if end for C[j−1] := 0; for k := k min to max_no do for i := 1 to |C k | do R[j] := C k [i]; C[j] := k; j := j+1; end for end for Example The graph above can be described as a candidate set of vertices R = {7 (5) , 1 (4) , 4 (4) , 2 (3) , 3 (3) , 6 (3) , 5 (2) , 8 (2) }, and used as input for both the approximate coloring algorithm and the ColorSort algorithm. Either algorithm can be used to construct the following table: The approximate coloring algorithm returns set of vertices R = {7 (5) , 5 (2) , 1 (4) , 6 (3) , 8 (2) , 4 (4) , 2 (3) , 3 (3) } and its corresponding set of color classes C = {1,1,2,2,2,3,3,3}. The ColorSort algorithm returns set of vertices R = {7 (5) , 1 (4) , 6 (3) , 5 (2) , 8 (2) , 4 (4) , 2 (3) , 3 (3) } and its corresponding set of color classes C = {–,–,–,–,–,3,3,3}, where – represents unknown color class with k  O(|R|^2) of the determination of the degrees and sorting of vertices in R stays the same. The pseudocode of the MaxCliqueDyn algorithm is: procedure MaxCliqueDyn(R, C, level) is S[level] := S[level] + S[level−1] − S old [level]; S old [level] := S[level−1]; while R ≠ Ø do choose a vertex p with maximum C(p) (last vertex) from R; R := R\{p}; if |Q| + C[index of p in R] > |Q max | then Q := Q ⋃ {p}; if R ⋂ Γ(p) ≠ Ø then if S[level]/ALL STEPS limit then calculate the degrees of vertices in G(R ⋂ Γ(p)); sort vertices in R ⋂ Γ(p) in a descending order with respect to their degrees; end if ColorSort(R ⋂ Γ(p), C') S[level] := S[level] + 1; ALL STEPS := ALL STEPS + 1; MaxCliqueDyn(R ⋂ Γ(p), C', level + 1); else if |Q| > |Q max | then Q max := Q; Q := Q\{p}; else return end while Value T limit can be determined by experimenting on random graphs. In the original article it was determined that algorithm works best for T limit  = 0.025.

References

No reference rows published for this article.

Cite this article

MLA

"MaxCliqueDyn algorithm." encyclopegia.org, 2024, https://encyclopegia.org/wiki/maxcliquedyn-algorithm. Accessed 24 November 2026.

Chicago

"MaxCliqueDyn algorithm." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/maxcliquedyn-algorithm.

APA

encyclopegia.org. (2024). MaxCliqueDyn algorithm. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/maxcliquedyn-algorithm

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Claims

PredicateValueSource
publication date2007Wikipedia

Related articles

μ-law algorithm

stub · references available

bitap algorithm

stub · references available

QR algorithm

stub · references available

Prim's algorithm

stub · references available

greedy algorithm

stub · references available

Apriori algorithm

stub · references available

Baum–Welch algorithm

stub · references available

Glushkov's construction algorithm

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1264766187 · 0.5 · snapshot enwiki-001264766187

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.