0% found this document useful (0 votes)
6 views8 pages

Presentation 12

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views8 pages

Presentation 12

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

CLIQUE ALGORITHM

• The Clique algorithm is a fundamental graph


theory algorithm used to find cliques within a
graph. A clique is a subset of vertices in a
graph such that every pair of vertices in the
subset is connected by an edge. In simpler
terms, a clique is a fully connected subgraph
within the larger graph
ALGORITHM
• Input: The input to the Clique algorithm is a graph G=(V,E), where V is the set of vertices
and E is the set of edges.
• Initialization: Initially, the algorithm starts with an empty set as the current clique.
• Exploration: The algorithm explores the graph to identify cliques. It does this by
systematically examining combinations of vertices to determine whether they form a
clique.
• Candidate Generation: The algorithm generates candidate cliques by selecting a vertex
from the graph and checking if it can be added to the current clique without violating the
definition of a clique.
• Pruning: During the exploration process, the algorithm prunes branches of the search tree
that cannot lead to a clique. This is done to reduce the search space and improve efficiency .
• Validation: For each candidate clique, the algorithm validates
whether it satisfies the clique property
• Backtracking: If a candidate clique is found to be valid, the
algorithm recursively explores additional vertices to extend the
clique further
• Termination: The algorithm terminates when all possible cliques
have been explored, or when the search space has been exhausted.
• Output: The output of the Clique algorithm is a list of all maximal
cliques in the graph.
EXAMPLE PROBLEM:
APPLICATIONS:
• Social Network Analysis: In social networks, cliques represent tightly knit groups

of individuals who interact frequently with each other.

• Bioinformatics: In biological networks such as protein-protein interaction

networks or gene regulatory networks, cliques may represent functional modules or

groups of genes/proteins that work together.

• Recommendation Systems: In recommendation systems, cliques can represent

groups of users with similar preferences or behaviors. Identifying cliques can help

in generating personalized recommendations and improving the overall system's

performance.

• Pattern Recognition: In image or pattern recognition, cliques can represent

regions or segments of an image with strong internal coherence.


ADVANTAGES:
• Comprehensive Solution: The Clique algorithm provides a comprehensive solution for

identifying all maximal cliques in a graph, allowing for a thorough analysis of the graph's

structure.

• Flexibility: The algorithm can be adapted to different types of graphs and domains, making it

versatile for various applications.

• Insight Generation: By identifying cliques, the algorithm can provide insights into the

underlying structure and relationships within a graph, leading to a better understanding of the

data.

• Scalability: While finding the maximum clique is NP-hard, the Clique algorithm can efficiently

find all maximal cliques in many practical scenarios, especially for moderately sized graphs.
DISADVANTAGES:
• Complexity: The Clique algorithm can have high computational complexity, especially

for large graphs or graphs with dense connectivity. Finding the maximum clique is an NP-

hard problem, which means the algorithm may not scale well for certain instances.

• Memory Requirements: The algorithm may require significant memory resources,

especially when exploring large graphs or maintaining a list of maximal cliques.

• Sensitivity to Graph Structure: The performance of the algorithm may be sensitive to

the structure of the input graph, particularly in cases where the graph has irregular or

highly interconnected patterns.

• Optimization Challenges: Implementing efficient versions of the Clique algorithm with

optimizations such as pruning strategies and heuristics can be challenging and may require

domain-specific knowledge.

You might also like