Clique cover #
CliqueCover is Karp's problem CLIQUE COVER [Kar72]: given a graph G and a number l, the
declared vertices of G are the union of at most l cliques of the graph induced on them
(Cslib.Complexity.Graph.CoveredByCliques). Instances (Cslib.Complexity.CliqueCoverInstance)
are encoded by Cslib.Complexity.encCliqueCover, as for Cslib.Complexity.ChromaticNumber.
The cliques of a cover may be taken to be the color classes of a coloring of the complement
(SimpleGraph.exists_cliqueCover_iff_colorable_compl), so complementing the graph on its declared
vertices (Cslib.Complexity.Graph.compl) reduces CliqueCover and ChromaticNumber to each
other. Karp's reduction from CHROMATIC NUMBER maps ⟨G, k⟩ to the complement of G with k
cliques (Cslib.Complexity.Graph.compl_mem_CliqueCover_iff); the converse reduction gives NP
membership.
Main definitions #
Cslib.Complexity.CliqueCoverInstance: instance(graph, cliques)of Clique Cover.Cslib.Complexity.encCliqueCover: polynomial-time encoding ofCliqueCoverInstance.Cslib.Complexity.Graph.CoveredByCliques: covers of the declared vertices by cliques.Cslib.Complexity.CliqueCover: graphs with a number of cliques that suffices.
Main results #
Cslib.Complexity.Graph.mem_CliqueCover_iff_compl: a cover bylcliques is anl-coloring of the complement.Cslib.Complexity.Graph.compl_mem_CliqueCover_iff: correctness of Karp's reduction.Cslib.Complexity.polyTimeReducible_ChromaticNumber_CliqueCover,Cslib.Complexity.polyTimeReducible_CliqueCover_ChromaticNumber: the two reductions.Cslib.Complexity.CliqueCover.mem_NP,Cslib.Complexity.CliqueCover_npHard,Cslib.Complexity.CliqueCover_npComplete:CliqueCoverisNP-complete.
References #
Instances For
Instances For
Encoding of CliqueCoverInstance as a pair (graph, cliques).
Instances For
The declared vertices of G are the union of at most l cliques of the graph induced on
them.
Instances For
Clique cover [Kar72]: the graphs whose declared vertices are the union of at most the given number of cliques.
Instances For
Membership in CliqueCover unfolds to Graph.CoveredByCliques.
A graph has a cover by l cliques exactly when its complement is l-colorable.
Karp's reduction from ChromaticNumber. A graph is k-colorable exactly when its
complement is covered by k cliques.
ChromaticNumber reduces to CliqueCover in polynomial time by complementing the graph
[Kar72].
CliqueCover reduces to ChromaticNumber in polynomial time by complementing the graph.
CliqueCover belongs to NP.
CliqueCover is NP-hard.
Clique cover is NP-complete, with the number of cliques in binary [Kar72].