03 28 Basic Definitions
03 28 Basic Definitions
Can you draw this picture without ever lifting your pencil?
Remarks:
- Since we have to go back where we started, we do not care where
we start.
- Everytime we go from a location to another and back, we cross 2
bridges adjacent to that location.
Since every island has an odd number of bridges, it is not possible 2
to visit all the islands by taking every bridge exactly once.
Some definitions
A graph G is made of a set of vertices (modeling some objects), and
a set of relations between two vertices, called the edges. We denote
G = (V,E) for the graph with vertices V and edges E. Any edge is a
pair of two vertices called the endpoints.
Example
Simple graph
Not simple graphs
A clique
An independent set
2. Job assignments
If there are m jobs and n people, not all qualified for all the jobs,
is there a way we can fill all the jobs?
Definition
A bipartite graph is the disjoint union of two independent sets.
4
The edges are between a job and
people
a qualified person for that job.
jobs
Vertices: Subjects
English History
Edges: If someone takes both subjects,
Physical
Education
i.e. eventual scheduling conflicts.
Math A coloring of a graph is a partition of
Chemistry
a set into independent sets. Scheduling
with no conflicts is equivalent to coloring.
Schedule:
If we want to use the minimum time, we
1. History-English-PE
should use as few colors as possible.
2. Chemistry
3. Math