Docsity

Graph - Graph Theory - Lecture Slides, Slides of Design and Analysis of Algorithms

Partial preview of the text

Download Graph - Graph Theory - Lecture Slides and more Slides Design and Analysis of Algorithms in PDF only on Docsity!

What is a Graph?

It is a triple consisting of a vertex set V (G ), an edge set E (G ) and a relation that associates with each edge two vertices (not necessarily distinct) called its end points.

A loop

Multiple edge.

Simple Graph

Finite Graph

Subgraph and Induced Subgraph

H is a subgraph of G : Then V (H) ⊆ V (G ), E (H) ⊆ E (G ). The assignment of end points to edges in H is the same as that in G. H is an induced subgraph of G on S, where S ⊆ V (G ): Then V (H) = S and E (H) is the set of edges of G such that both the end points belong to S.

A graph G is connected if each pair of vertices belongs to a path.

Forest and Tree

A graph without any cycle is acyclic. A forest is an acyclic graph A tree is a connected acyclic graph.

Bipartite Graph

A graph G is bipartite if V (G ) is the union of two disjoint (possibly empty) independent sets called partite sets of G. (A subset S ⊆ V (G ) is an independent set if the induced subgraph on S contains no edges. )

Vertex Cover

A set S ⊆ V (G ) is a vertex cover of G (of the edges of G ) if every edge of G is incident with a vertex in S. A vertex cover of the minimum cardinality is called a minimum vertex cover. We will denote this set by MVC(G).

What is the cardinality of MVC in the complete graph Kn?

What about the complete bipartite graph Km,n?

The cycle Cn, when n is even and odd?

Is there any relation between |MVC (G )| and α(G )?

If we remove a VC from G , the rest is an independent set. So, if we remove MVC from G , the rest, i.e. V − MVC is an independent set. So, α(G ) ≥ n − |MVC (G )|. Thus |MVC (G )| ≥ n − α(G ). Similiarly if we remove any independent set from G , the rest is VC, and so |MVC | ≤ n − α(G ). Thus we get |MVC | = n − α(G ). If we denote —MVC(G)— by β(G ), then we have β(G ) + α(G ) = n.

Matching

A set M of independent edges in a graph is called a matching. M is a matching of U ⊆ V (G ), if every vertex in U is incident with an edge in M. Then a vertex in U is a matched vertex. The vertices which are not incident with any edge of M is unmatched.

The cardinality of the biggest matching in G can be denoted by α′(G ).

What is the value of α′(G ) for:

Cycle Cn Path Pn Complete Graph Kn Complete Bipartite graph Km,n