Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6560841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:30:48+00:00 2026-05-25T13:30:48+00:00

The wikipedia pseudocode on BK clique finding with pivoting: BronKerbosch2(R,P,X): if P and X

  • 0

The wikipedia pseudocode on BK clique finding with pivoting:

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

I’m unclear on what happens with P union X is empty. Since u is undefined, does the function continue with N(u) as the empty set (i.e. it continues with for each vertex v in P), or does it return to the caller?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:30:48+00:00Added an answer on May 25, 2026 at 1:30 pm

    P union X is empty if and only if both P and X are empty. This condition is checked in the line

    if P and X are both empty:
    

    Thus, if this condition fails, this means P or X or both are not empty. Thus, there must be at least one element in P union X.

    To put it in other words: If P union X is empty, we report R as a maximal clique.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The pseudocode as taken from Wikipedia: function Dijkstra(Graph, source): 2 for each vertex v
Wikipedia says: Selection algorithms: Finding the min, max, both the min and max, median
Wikipedia states that underscores are used by both Android and Microsoft Windows Systems in
I wrote this code of BFS in c++ using wikipedia's pseudocode. The function takes
I'm having trouble understanding this pseudocode I found for alpha beta pruning on wikipedia:
I was trying to implement a simple A* search program based on Wikipedia's pseudocode.
I'm implementing the SHA1 algorithm from the pseudocode on wikipedia. It says I should
Does the pseudocode provided in Wikipedia's article on Mersenne Twister work with Little Endian
I'm using the wikipedia pseudocode to base against - function alphabeta(node, depth, α, β,
When looking at pseudocode (actually, on the Wikipedia article on A*), i came across

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.