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.
I found out reduction from problem
INDEPENDENT-SETtoCLIQUE-OR-INDEPENDENT-SET. All you need to do is to addnisolated vertices to graphG(which is an instance ofINDEPENDENT-SETand hasnvertices). Let call this newly created graphG'(instance ofCLIQUE-OR-INDEPENDENT-SET). Then it is not hard to prove thatGhaskindependent-set iffG'hasn+kindependent-set of clique (since, by construction, it cannot haven+kclique).