A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Vertex Cover and Clique Problems

Graduate Depth 102 in the knowledge graph I know this Set as goal
10topics build on this
525prerequisites beneath it
See this on the map →
Boolean Satisfiability, Cook-Levin, and ReductionsNP-Completeness and Cook-Levin Theorem+3 moreApproximation Algorithms and Approximation RatiosParameterized Complexity
np-complete graph-problems reduction-chains

Core Idea

Vertex cover asks: given a graph and integer k, does a set of k vertices exist such that every edge touches at least one? Clique asks: does the graph contain a complete subgraph of size k? Both are NP-complete. Clique and independent set are complementary: finding a clique in G equals finding an independent set in the complement graph. These problems exemplify how different-seeming combinatorial problems connect via polynomial reductions, sharing fundamental hardness despite surface dissimilarity.

Explainer

You already know that SAT is NP-complete and that polynomial-time reductions let you prove new problems NP-complete by transforming known hard problems into them. Vertex Cover and Clique are two of the most important problems in the NP-complete ecosystem, and understanding how they relate to each other — and to SAT — illustrates how a single thread of hardness weaves through seemingly unrelated combinatorial questions.

Vertex Cover asks: can you select at most k vertices from a graph such that every edge has at least one of its endpoints in your selected set? Think of it as placing guards in a museum hallway network — you want every hallway (edge) monitored by at least one guard (vertex), using as few guards as possible. Clique asks the opposite kind of question: does the graph contain a group of k vertices that are all mutually connected? Think of it as finding a group of k people at a party where everyone in the group knows everyone else. Despite their different flavors — one is about covering structure, the other about finding dense structure — both are NP-complete.

The connection between these problems runs through a third problem: Independent Set. An independent set is a group of vertices with no edges between them — the exact opposite of a clique. Here is the key insight: a set S is a clique in graph G if and only if S is an independent set in the complement graph Ḡ (which has an edge wherever G does not, and vice versa). Furthermore, a set S is a vertex cover in G if and only if V − S (the remaining vertices) is an independent set in G. This gives you a chain: Clique in G ↔ Independent Set in Ḡ ↔ Vertex Cover in Ḡ. Since complement construction is a polynomial-time operation, NP-completeness transfers freely along this chain. Proving any one of these three problems NP-complete immediately gives you the other two.

The original NP-completeness proof for Vertex Cover typically reduces from 3-SAT. Each clause becomes a small gadget in the graph, and the structure ensures that choosing a vertex cover of size k corresponds to finding a satisfying assignment. The reduction for Clique often goes through Independent Set. What makes these problems especially important beyond theory is that they model real optimization scenarios — network reliability (vertex cover), social network analysis (clique detection), and wireless channel assignment (independent set). The NP-completeness results explain why these practical problems resist efficient exact solutions, motivating the study of approximation algorithms. Notably, Vertex Cover has a simple 2-approximation (greedily pick both endpoints of uncovered edges), while Clique has no known constant-factor approximation — showing that NP-complete problems, despite sharing worst-case hardness, can differ dramatically in how well they can be approximately solved.

Practice Questions 5 questions

Prerequisite Chain

Understanding ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersIntroduction to ExponentsOrder of OperationsInteger Order of OperationsVariable ExpressionsThe Distributive PropertyVariables and Expressions ReviewIntroduction to PolynomialsAdding and Subtracting PolynomialsMultiplying PolynomialsFactorialPermutationsCombinationsCounting Principles: Addition and Multiplication RulesIntroduction to Graph TheoryPropositional Logic FoundationsLogical EquivalencesBoolean AlgebraBoolean Type and Truth ValuesComparison Operators and Boolean TestsLogical Operators and Boolean AlgebraBoolean Algebra and Fundamental LawsLogic Gates FundamentalsImplementing Boolean Functions with GatesKarnaugh Map SimplificationCombinational Circuit DesignFlip-Flops and LatchesFinite State Machines (FSMs)Deterministic Finite Automata (DFA)Nondeterministic Finite Automata (NFA)Two-Way Finite AutomataNFA to DFA Conversion (Subset Construction)DFA Properties and Minimization AlgorithmsRegular Languages: Definition and CharacterizationContext-Free Grammars (CFGs)Pushdown Automata (PDA)Equivalence of CFGs and Pushdown AutomataClosure Properties of Context-Free LanguagesLimitations of Context-Free LanguagesPumping Lemma for Context-Free LanguagesTuring MachinesVariants of Turing Machines and EquivalenceNondeterministic Time Complexity and NPThe P vs. NP ProblemComplexity Class P: Polynomial TimeComplexity Class NP: Nondeterministic Polynomial TimeNP-Completeness and Cook-Levin TheoremThe Cook-Levin TheoremBoolean Satisfiability, Cook-Levin, and Reductions3-SAT and k-SAT VariantsPartition and Subset Sum ProblemsVertex Cover and Clique Problems

Longest path: 103 steps · 525 total prerequisite topics

Prerequisites (5)

Leads To (2)