First of all, I want to mention that this is my homework. However, to solve my problem I can use any literature I want.
Even though I think that problem is clear from its name, I will give it description: "For given undirected graph G and given integer k, does G contain totally connected (clique) subgraph of size k or totally disconnected subgraph (independent set) of size k."
I know about polynomial reductions from 3-SAT
to CLIQUE
and from 3-SAT
to INDEPENDENT-SET
. (http://mlnotes.com/2013/04/29/npc.html) However, I have problem with this one because I cannot combine those two reductions. I also tried reduction from CLIQUE
to CLIQUE-OR-INDEPENDENT-SET
but without much success.
So I would really appreciate any hints!
Thanks in advance.