Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 755

A clique is a subset of the vertices of a graph such that every pair of vertices in the subset is connected by an edge.

6 votes

Why is bipartite perfect matching a special case of clique problem?

Now there's a matching of size $s$ in $G$ if and only if there's a clique of size $s$ in $G'$. … In particular, there's a perfect bipartite matching for $G$ if and only if there is a clique of size $|V|/2$ in $G'$. …
D.W.'s user avatar
  • 166k
0 votes
Accepted

Colored cliques complexity

It is at least as hard as the $k$-clique problem. Suppose we have a graph and we want to know whether it contains a $k$-clique. … Now the graph has a $k$-clique if and only if the answer to your problem is yes. But testing for a $k$-clique is NP-complete, so it follows that your problem is NP-complete too. …
D.W.'s user avatar
  • 166k
2 votes
Accepted

Finding bicliques in a bipartite graph of minimum size

Here is an algorithm with $O(n^{2+\lg k})$ running time. It's not polynomial in $k$ and $n$, but for fixed $n$ it is polynomial in $k$, and for fixed $k$ it is polynomial in $n$. Here is the algorit …
D.W.'s user avatar
  • 166k
1 vote

Fast $k$-clique checking algorithm?

In particular, testing whether there exists a clique of size $\ge k$ is as hard (under worst-case complexity) as finding the size of the maximum clique. … (The reduction: if you had an algorithm for testing the existence of a clique, then you could use binary search on $k$ to find the size of the maximum clique.) …
D.W.'s user avatar
  • 166k
2 votes
Accepted

Is the clique decision problem in co-NP?

The Clique problem is NP-complete. If a NP-complete problem was in co-NP, then we would have NP = co-NP. It is an open problem whether NP = co-NP, but most complexity theorists expect that NP ! … = co-NP -- which would imply that Clique is not in co-NP. …
D.W.'s user avatar
  • 166k
1 vote

Graph partition that maximize the number of triangles within its parts

Introduce zero-or-one variables $x_{i,v}$, $y_{i,u,v,w}$, where $x_{i,v}=1$ means that vertex $v$ is contained in partition $P_i$, and $y_{i,u,v,w}=1$ means that $u,v,w$ are a 3-clique in $P_i$. … (Only introduce variables $y_{i,u,v,w}$ for triples of vertices $u,v,w$ that are a 3-clique in the original graph $G$; all others are effectively hardcoded at 0.) …
D.W.'s user avatar
  • 166k
1 vote

Find maximal clique consisting of at least half of the vertices

The problem is NP-hard, so you shouldn't expect any efficient algorithm that will always work. You can look for heuristics, or approximation algorithms, or sometimes-efficient algorithms. If I had to …
D.W.'s user avatar
  • 166k
5 votes

Showing that 3-colorable is NP-complete

No, you couldn't say that, because it's not true. A helpful method is to prove all your claims. Don't just guess -- try to find a proof. If you're struggling to find a proof, the first thing to che …
D.W.'s user avatar
  • 166k