Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Bron-Kerbosch algorithm to BackTracking algos #1592

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

IkkiOcean
Copy link
Contributor

Description

This PR implements the Bron-Kerbosch algorithm, a recursive backtracking method designed to find all maximal cliques in an undirected graph. A maximal clique is defined as a subset of vertices that forms a complete subgraph and cannot be extended by including an adjacent vertex.

Key Features

  • Recursive Backtracking: The algorithm explores all potential cliques by maintaining three sets during recursion.

  • Efficiency: Known for its efficiency, particularly on sparse graphs, the Bron-Kerbosch algorithm reduces unnecessary computations.

  • Pivoting Optimization: An optional pivoting strategy is included, which minimizes the number of recursive calls, improving the algorithm's performance in practice.

  • Closes [NEW ALGORITHM] Bron-Kerbosch Algorithm for undirected graph #1529

@pankaj-bind pankaj-bind merged commit 051214f into AlgoGenesis:main Nov 4, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[NEW ALGORITHM] Bron-Kerbosch Algorithm for undirected graph
2 participants