Graph COLORING-FINAL
Graph COLORING-FINAL
Graph COLORING-FINAL
Planar Graphs
A graph (or multigraph) G is called planar if G can be drawn
in the plane with its edges intersecting only at vertices of G,
such a drawing of G is called an embedding of G in the plane.
K4
Planar Graphs
Representation examples: Q3
Planar Graphs
v1 v2 v3 v1 v5 v1 v5
R21
R2 R1 R1
R22
v3
v4 v5 v6 v4 v2 v4 v2
Planar Graphs
Theorem : Euler's planar graph theorem
For a connected planar graph or multigraph:
v–e+r=2
number number
number of regions
of vertices of edges
Planar Graphs
Example of Euler’s theorem
R3 v=4,e=6,r=4, v-e+r=2
Regions of Plane-
it given as-
Degree of Interior region = Number of edges
Because (n-2(n/2)+2)
Cn: cycle with n vertices; Kn: fully connected graph with n vertices;
Km,n: complete bipartite graph
C4 C5
K4 K2, 3
Every Bipartite graph is 2-colorable?
Every 2 colorable graph is bipartite?
……So we can say
A graph is bipartite iff it is 2-colorable.
A B
C D
Case:1 <A,D> -same color
Case 2- <A,D>- different color
Answer: 84
A B
C D
Question: A graph G(V,E) has 6 vertices x(G)
=3 then maximum no. of edges it can
have___12_______
Problem?
Sherry is a manager at MathDyn Inc. and is attempting to get
a training schedule in place for some new employees. There
are four meetings to be scheduled, and she wants to use as
few time slots as possible for the meetings. However, if an
employee has to be at two different meetings, then those
meetings must be scheduled at different times. To get a
visual representation of this, Sherry represents the meetings
with dots, and if two meetings have an employee that needs
to be at both of them, they are connected by an edge.
PERMUTATIONS AND COMBINATIONS
permutations and combinations is concerned
with determining the number of different
ways of arranging and selecting objects out
of a given number of objects, without actually
listing them
Fundamental principle of counting
Multiplication principle (Fundamental
Principle of Counting)
- Suppose an event E can occur in m different ways and
associated with each way of occurring of E, another event F can
occur in n different ways, then the total number of occurrence of the
two events in the given order is m × n
Addition principle
- If an event E can occur in m ways and another event F can
occur in n ways, and suppose that both can not occur together, then
E or F can occur in m + n ways.
Fundamental principle of counting
Permutations: A permutation is an arrangement of
objects in a definite order.
Permutation of n different objects without
repetition : The number of permutations of n objects
taken all at a time, denoted by the symbol nPn , is given
by nPn = n(n – 1) (n – 2) ... 3.2.1, read as factorial n, or
n factorial.
The number of permutations of n objects taken r at a
time, where 0 < r ≤ n, denoted by nPr , is given by
n
Pr = n!
(n-r)! We assume that
0!=1
Example: How many ways can first and
second place be awarded to 10 people?
When repetition of objects is allowed : The number of
permutations of n things taken all at a time, when repetition of objects
is allowed is nn .
- The number of permutations of n objects, taken r at a time, when
repetition of objects is allowed, is n r .
r!(n-r)!
Example
If there are 30 people on your tennis team.
How many ways can you choose 2 co-
captain?
Answer: C2 = 30!
30
(30-2)!2!
Combinations with Repetition
2) Answer: 1024,60
In how many different ways can you arrange
three books on a shelf from a group of 7?
In how many ways we can arrange 5 books on
a shelf.