COURSE: DAAUNIT: 5 Pg:
REDUCTIONSFORSOMEKNOWNPROBLEMS
23
THECLIQUEPROBLEM:
Cliques:
SupposethatGisanundirectedgraph.SaythatasetSofverticesofGformacliqueif
eachvertexinSisadjacenttoeachothervertexinS.
TheCliqueProblem
Thecliqueproblemisasfollows.
Input.AnundirectedgraphGandapositiveintegerK.
Question.DoesGhaveacliqueofsizeatleastK?
Let'slookatthesameexamplegraphthatwasusedearlierfortheVertexCover
andIndependentSetproblems,whereG
1hasvertices
{1,2,3,4,5,6,7,8,9}anditsedgesare{1,2},{1,4},{1,6},{1,8},{2,3},{3,4},{4,5},
5,6},{6,7},{7,8},{8,9},{2,9}.
Wesawthat{2,4,6,8}isanindependentsetinG
1,whichmeansthat{2,4,6,8}is
acliqueinG
1.ButwhataboutacliqueinG
1?