Skip to content

Chapter 63. Independent Sets

An independent set is a set of vertices no two of which are adjacent. Independent sets are among the most fundamental objects in graph theory. They arise naturally in scheduling, coding theory, optimization, network design, resource allocation, and computational complexity. (en.wikipedia.org)

Independent sets represent collections of mutually compatible objects. If edges represent conflicts or incompatibilities, then an independent set selects objects without conflict.

The theory of independent sets is closely related to vertex covers, graph coloring, cliques, and optimization.

63.1 Definition

Let

G=(V,E) G=(V,E)

be a graph.

A subset

IV I \subseteq V

is called an independent set if no two vertices in II are adjacent.

Equivalently,

u,vI,uvE. \forall u,v \in I, \quad uv \notin E.

Thus the subgraph induced by II contains no edges.

For example, in the path

v1v2v3v4, v_1-v_2-v_3-v_4,

the set

{v1,v3} \{v_1,v_3\}

is independent.

The set

{v2,v3} \{v_2,v_3\}

is not independent because

v2v3E. v_2v_3 \in E.

63.2 Maximum Independent Sets

An independent set is maximum if it has largest possible size.

The size of a maximum independent set is called the independence number and is denoted by

α(G). \alpha(G).

Thus,

α(G)=max{I:I is an independent set}. \alpha(G) = \max\{|I| : I \text{ is an independent set}\}.

The maximum independent set problem asks for an independent set of largest possible size.

This is one of the classical NP-complete optimization problems.

63.3 Maximal and Maximum Independent Sets

The words maximal and maximum have different meanings.

TermMeaning
Maximal independent setCannot be enlarged
Maximum independent setLargest possible size

Every maximum independent set is maximal.

The converse is false.

Example

Consider the path

v1v2v3v4. v_1-v_2-v_3-v_4.

The set

{v2,v4} \{v_2,v_4\}

is maximal.

No additional vertex can be inserted.

However,

{v1,v3} \{v_1,v_3\}

has the same size, while larger examples exist in other graphs where maximal sets are not maximum.

63.4 Independent Sets in Standard Graphs

Complete Graphs

In the complete graph

Kn, K_n,

every pair of distinct vertices is adjacent.

Thus:

α(Kn)=1. \alpha(K_n)=1.

Empty Graphs

If a graph contains no edges, then every subset is independent.

Hence:

α(G)=V. \alpha(G)=|V|.

Paths

For the path graph PnP_n,

α(Pn)=n2. \alpha(P_n) = \left\lceil \frac{n}{2} \right\rceil.

One may choose alternating vertices.

Cycles

For the cycle graph CnC_n,

α(Cn)=n2. \alpha(C_n) = \left\lfloor \frac{n}{2} \right\rfloor.

Odd cycles force one conflict.

Complete Bipartite Graphs

For

Km,n, K_{m,n},

all vertices on either side form an independent set.

Thus:

α(Km,n)=max(m,n). \alpha(K_{m,n}) = \max(m,n).

63.5 Relationship with Vertex Covers

Independent sets and vertex covers are complementary notions.

Theorem 63.1

A set

IV I \subseteq V

is independent if and only if

VI V \setminus I

is a vertex cover.

Proof

Suppose II is independent.

No edge has both endpoints in II. Therefore every edge has at least one endpoint outside II, meaning:

VI V \setminus I

covers every edge.

Conversely, suppose

VI V \setminus I

is a vertex cover.

If two vertices of II were adjacent, the edge joining them would not be covered.

Thus II is independent.

This establishes the equivalence.

63.6 Independence Number and Vertex Cover Number

Because independent sets and vertex covers are complements:

α(G)+τ(G)=V. \alpha(G)+\tau(G)=|V|.

\alpha(G)+\tau(G)=|V|

This identity is fundamental in graph optimization.

It converts maximum independent set problems into minimum vertex cover problems.

63.7 Independent Sets and Cliques

A clique is a set of pairwise adjacent vertices.

Independent sets and cliques are dual under graph complementation.

Let

G \overline{G}

denote the complement graph.

Then:

I is independent in G I \text{ is independent in } G

if and only if

I is a clique in G. I \text{ is a clique in } \overline{G}.

Therefore:

α(G)=ω(G), \alpha(G)=\omega(\overline{G}),

where

ω(G) \omega(G)

is the clique number.

This duality is central in extremal graph theory.

63.8 Independent Set Algorithms

Brute Force

Testing all subsets requires:

2V 2^{|V|}

possibilities.

This quickly becomes infeasible.

Branch-and-Bound

More advanced exact algorithms prune large parts of the search space.

Dynamic Programming

Special graph classes admit efficient methods:

Graph ClassComplexity
TreesPolynomial
Bipartite graphsPolynomial via vertex cover
Interval graphsPolynomial
General graphsNP-complete

63.9 Independent Sets in Trees

Trees allow especially simple recursive methods.

For a vertex vv, either:

ChoiceConsequence
Include vvExclude all neighbors
Exclude vvChildren remain unrestricted

Dynamic programming combines subtree solutions efficiently.

This yields linear-time algorithms on trees.

63.10 Greedy Independent Sets

A maximal independent set can be found greedily.

Algorithm

  1. Choose a vertex.
  2. Add it to the independent set.
  3. Remove the vertex and all its neighbors.
  4. Repeat.

The result is always maximal.

However, it may not be maximum.

Example

In some graphs, poor early choices lead to significantly smaller solutions.

63.11 Independent Sets and Coloring

Graph coloring partitions vertices into independent sets.

A proper coloring assigns colors so that adjacent vertices receive different colors.

Each color class is therefore independent.

If:

χ(G) \chi(G)

is the chromatic number, then:

Vχ(G)α(G). |V| \le \chi(G)\alpha(G).

Thus:

χ(G)Vα(G). \chi(G) \ge \frac{|V|}{\alpha(G)}.

Independent sets therefore provide lower bounds for coloring problems.

63.12 Weighted Independent Sets

Suppose each vertex has weight:

w(v). w(v).

The goal becomes maximizing:

vIw(v). \sum_{v \in I} w(v).

Weighted independent set problems appear in scheduling, resource allocation, and communications.

Example

If vertices represent tasks and weights represent profit, then a weighted independent set chooses mutually compatible tasks of maximum total profit.

63.13 Independent Set Polytope

Introduce variables:

xv={1,vI,0,vI. x_v= \begin{cases} 1, & v \in I, \\ 0, & v \notin I. \end{cases}

The optimization becomes:

maxvVxv \max \sum_{v \in V} x_v

subject to:

xu+xv1 x_u+x_v \le 1

for every edge

uvE. uv \in E.

x_u+x_v \le 1

These inequalities define the independent set polytope.

63.14 Complexity

The maximum independent set problem is NP-complete. (en.wikipedia.org)

Moreover, it is difficult to approximate well in general graphs.

This computational difficulty makes independent sets one of the central hard problems in combinatorial optimization.

63.15 Independent Sets in Bipartite Graphs

For bipartite graphs:

α(G)=Vτ(G). \alpha(G) = |V|-\tau(G).

Using König’s theorem:

τ(G)=ν(G), \tau(G)=\nu(G),

so:

α(G)=Vν(G). \alpha(G) = |V|-\nu(G).

Thus maximum independent sets in bipartite graphs can be computed efficiently through matching algorithms.

63.16 Ramsey-Theoretic Perspective

Ramsey theory studies unavoidable structure.

Large graphs must contain either:

StructureMeaning
Large cliqueDense organization
Large independent setSparse organization

Ramsey numbers quantify this phenomenon.

Independent sets therefore play a central role in extremal combinatorics.

63.17 Random Graphs

In random graphs, the independence number grows slowly relative to the number of vertices.

For the Erdős-Rényi random graph:

G(n,p), G(n,p),

the independence number is typically logarithmic in nn when pp is fixed.

Random graph theory studies the probabilistic behavior of independent sets.

63.18 Applications

Independent sets model mutually compatible choices.

ApplicationInterpretation
SchedulingNonconflicting tasks
Wireless networksNoninterfering transmitters
Register allocationSimultaneously usable registers
Coding theoryError-resistant codewords
Social networksMutually unrelated groups
Resource allocationCompatible requests

The abstraction is extremely broad.

63.19 Special Graph Classes

Some graph families admit efficient independent set algorithms.

Graph ClassStatus
TreesPolynomial
Chordal graphsPolynomial
Interval graphsPolynomial
Perfect graphsPolynomial
General graphsNP-complete

Structural graph theory often studies graph classes where independent sets become tractable.

63.20 Turán-Type Questions

Extremal graph theory asks:

How many edges force small independent sets?

Turán’s theorem and related results connect graph density with clique and independence structure.

Dense graphs tend to have small independent sets.

Sparse graphs tend to have larger ones.

63.21 Independent Dominating Sets

An independent dominating set is both:

PropertyMeaning
IndependentNo adjacent selected vertices
DominatingEvery vertex touched or selected

These sets combine sparsity with coverage.

They appear in facility placement and communication systems.

63.22 Common Relationships

ParametersRelation
Independent set and vertex cover(\alpha(G)+\tau(G)=
Independent set and cliqueα(G)=ω(G)\alpha(G)=\omega(\overline{G})
Coloring bound(\chi(G)\ge

These identities connect independence with multiple central graph invariants.

63.23 Exercises

  1. Compute α(P7)\alpha(P_7).

  2. Compute α(C8)\alpha(C_8).

  3. Prove that every independent set complement is a vertex cover.

  4. Show that:

α(G)+τ(G)=V. \alpha(G)+\tau(G)=|V|.
  1. Find a maximum independent set in K3,5K_{3,5}.

  2. Explain why every color class is independent.

  3. Construct a maximal independent set that is not maximum.

  4. Compute the independence number of K6K_6.

  5. Write the linear programming formulation for maximum independent set.

  6. Explain why independent set is computationally difficult in general graphs.