Clique of constant size

76 Views Asked by At

It is well known that Clique is a NP-Complete problem, But given some constant value K, finding whether a graph G has a clique of size K, is always a log-space (L) class problem?

1

There are 1 best solutions below

0
On BEST ANSWER

Yes. For any fixed $k$, you can enumerate all of the $k$-element subsets in logarithmic space, and check whether each of them is a clique.