GRAPH THEORY: AN INTRODUCTION

Similar documents
Math.3336: Discrete Mathematics. Chapter 10 Graph Theory

HANDSHAKING AND CHASING KIDS

11.2 Eulerian Trails

An Introduction to Graph Theory

(5.2) 151 Math Exercises. Graph Terminology and Special Types of Graphs. Malek Zein AL-Abidin

Chapter 11: Graphs and Trees. March 23, 2008

HW Graph Theory SOLUTIONS (hbovik) - Q

Adjacent: Two distinct vertices u, v are adjacent if there is an edge with ends u, v. In this case we let uv denote such an edge.

MC 302 GRAPH THEORY 10/1/13 Solutions to HW #2 50 points + 6 XC points

Fundamental Properties of Graphs

8.2 Paths and Cycles

v V Question: How many edges are there in a graph with 10 vertices each of degree 6?

CPS 102: Discrete Mathematics. Quiz 3 Date: Wednesday November 30, Instructor: Bruce Maggs NAME: Prob # Score. Total 60

γ(ɛ) (a, b) (a, d) (d, a) (a, b) (c, d) (d, d) (e, e) (e, a) (e, e) (a) Draw a picture of G.

Basics of Graph Theory

Lecture 5: Graphs. Rajat Mittal. IIT Kanpur

Chapter 3: Paths and Cycles

K 4 C 5. Figure 4.5: Some well known family of graphs

CHAPTER 2. Graphs. 1. Introduction to Graphs and Graph Isomorphism

Math 778S Spectral Graph Theory Handout #2: Basic graph theory

WUCT121. Discrete Mathematics. Graphs

CHAPTER 10 GRAPHS AND TREES. Alessandro Artale UniBZ - artale/z

5 Graphs

Graph theory. Po-Shen Loh. June We begin by collecting some basic facts which can be proved via bare-hands techniques.

Ma/CS 6b Class 4: Matchings in General Graphs

Number Theory and Graph Theory

Basic Combinatorics. Math 40210, Section 01 Fall Homework 4 Solutions

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 7

Senior Math Circles November 25, 2009 Graph Theory II

Grades 7 & 8, Math Circles 31 October/1/2 November, Graph Theory

Discrete Wiskunde II. Lecture 6: Planar Graphs

How can we lay cable at minimum cost to make every telephone reachable from every other? What is the fastest route between two given cities?

Math 776 Graph Theory Lecture Note 1 Basic concepts

Sarah Will Math 490 December 2, 2009

Graph Theory. 1 Introduction to Graphs. Martin Stynes Department of Mathematics, UCC January 26, 2011

Math 170- Graph Theory Notes

Scheduling, Map Coloring, and Graph Coloring

Solution to Graded Problem Set 4

Ma/CS 6b Class 26: Art Galleries and Politicians

14 More Graphs: Euler Tours and Hamilton Cycles

Graph Theory Questions from Past Papers

Assignment 4 Solutions of graph problems

Introduction to Graphs

PACKING DIGRAPHS WITH DIRECTED CLOSED TRAILS

Notes for Recitation 9

Graph theory - solutions to problem set 1

Ma/CS 6b Class 11: Kuratowski and Coloring

Matching Algorithms. Proof. If a bipartite graph has a perfect matching, then it is easy to see that the right hand side is a necessary condition.

Section 8.2 Graph Terminology. Undirected Graphs. Definition: Two vertices u, v in V are adjacent or neighbors if there is an edge e between u and v.

DO NOT RE-DISTRIBUTE THIS SOLUTION FILE

HW Graph Theory SOLUTIONS (hbovik)

Graph Theory Part Two

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao,David Tse Note 8

Discrete Mathematics for CS Spring 2008 David Wagner Note 13. An Introduction to Graphs

Definition For vertices u, v V (G), the distance from u to v, denoted d(u, v), in G is the length of a shortest u, v-path. 1

GRAPHS, GRAPH MODELS, GRAPH TERMINOLOGY, AND SPECIAL TYPES OF GRAPHS

Lecture 6: Graph Properties

The University of Sydney MATH2969/2069. Graph Theory Tutorial 2 (Week 9) 2008

11.4 Bipartite Multigraphs

Ma/CS 6a Class 8: Eulerian Cycles

A Reduction of Conway s Thrackle Conjecture

FROM FRACTIONS TO DECIMALS (V2) WARM UP!

Combinatorial Gems. Po-Shen Loh. June 2009

Abstract. A graph G is perfect if for every induced subgraph H of G, the chromatic number of H is equal to the size of the largest clique of H.

Ma/CS 6b Class 5: Graph Connectivity

GEOMETRY & INEQUALITIES. (1) State the Triangle Inequality. In addition, give an argument explaining why it should be true.

Artificial Intelligence

Discrete mathematics , Fall Instructor: prof. János Pach

Copyright 2000, Kevin Wayne 1

Introduction III. Graphs. Motivations I. Introduction IV

Lecture 20 : Trees DRAFT

SETS AND FUNCTIONS JUNIOR CIRCLE 10/09/2011

Generalized Pebbling Number

2. CONNECTIVITY Connectivity

INTRODUCTION TO GRAPH THEORY. 1. Definitions

Matching Theory. Figure 1: Is this graph bipartite?

8 Colouring Planar Graphs

MC302 GRAPH THEORY SOLUTIONS TO HOMEWORK #1 9/19/13 68 points + 6 extra credit points

The Probabilistic Method

Discrete Mathematics and Probability Theory Fall 2013 Midterm #2

Module 7. Independent sets, coverings. and matchings. Contents

Majority and Friendship Paradoxes

Problem Set 3. MATH 776, Fall 2009, Mohr. November 30, 2009

MAT 145: PROBLEM SET 4

Introduction to Graph Theory

Graph Theory II. Po-Shen Loh. June edges each. Solution: Spread the n vertices around a circle. Take parallel classes.

Discrete Mathematics and Probability Theory Spring 2015 Vazirani Note 5

Induction Review. Graphs. EECS 310: Discrete Math Lecture 5 Graph Theory, Matching. Common Graphs. a set of edges or collection of two-elt subsets

Definition: A graph G = (V, E) is called a tree if G is connected and acyclic. The following theorem captures many important facts about trees.

Lecture 3: Graphs and flows

ASSIGNMENT 4 SOLUTIONS

Instructor: Paul Zeitz, University of San Francisco

Ma/CS 6b Class 13: Counting Spanning Trees

Math 443/543 Graph Theory Notes 5: Planar graphs and coloring

Introduction to Graphs

Lecture 5: Graphs. Graphs! Euler Definitions: model. Fact! Euler Again!! Planar graphs. Euler Again!!!!

1. Suppose you are given a magic black box that somehow answers the following decision problem in polynomial time:

Number Theory and Graph Theory

12.1 Formulation of General Perfect Matching

Paths, Circuits, and Connected Graphs

Transcription:

GRAPH THEORY: AN INTRODUCTION BEGINNERS 3/4/2018 1. GRAPHS AND THEIR PROPERTIES A graph G consists of two sets: a set of vertices V, and a set of edges E. A vertex is simply a labeled point. An edge is a connection between two vertices. For example, suppose we have vertex set V = {a, b, c, d} and edges E = {(a, b), (a, c), (a, d), (c, d)}. We can see a visual representation of this graph G = (V, E) with 4 vertices and 4 edges below: Our first graph: G = (V, E) Graphs can represent all sorts of different real life situations like internet router connections, social networks, even links between websites (this is how Google calculates their webpage rankings!). We will think of the nodes as representing friends at a dinner party, and edges representing a handshake occurring between those two friends. As with any mathematical object, we would like to define some properties of a graph so that we can study particular graphs more deeply. Since graphs can be arbitrarily large, it is easier to begin our focus on so-called local quantities of the graph. That is, we will look at each small part of the graph and use these observations to conclude something about the graph as a whole. Copyright c 2008-2011 Olga Radko/Los Angeles Math Circle/UCLA Department of Mathematics. 1

LAMC handout 2 Recall, each edge is associated to two vertices. For edge e = (a, c), we say e is incident to vertices a and c. We also say that vertices a and c are adjacent, as they are incident to a common edge. For a vertex v in the vertex set V, we define the degree of v, written deg(v), to be the total number of edges incident to vertex v. In our example, the degree of a vertex corresponds to the number of handshakes that person has participated in. (1) Calculate the degree of each vertex in the graph G. (a) deg(a) = (b) deg(b) = (c) deg(c) = (d) deg(d) = (2) We say a graph is complete if there exists an edge between every pair of vertices. Shown below are the graphs K 4 (the complete graph on four vertices) and K 5 (the complete graph on 5 vertices). (a) What is the degree of each vertex in K 4? (b) What is the degree of each vertex in K 5? (c) What will be the degree of each vertex in K n? Justify your answer. 2

LAMC handout 3 (3) We say a vertex v is even if deg(v) is even. Similarly, v is odd if deg(v) is odd. (a) How many even vertices are there in the first graph, G? (b) How many odd vertices are in the graph G? (c) For what values of n will each vertex of K n have even degree? Justify your answer. (d) For what values of n will each vertex of K n have odd degree? Justify your answer. (4) Draw your own graph G 2 = (V 2, E 2 ) below. Next to your graph, define the vertex set V 2 and the edge set E 2. You must draw at least 4 vertices and at least 4 edges. Keep track of the degree of each vertex in order to answer the questions on the following page. 3

LAMC handout 4 (a) How many even vertices are in G 2? (b) How many odd vertices are in G 2? (c) Examine your neighbor s graphs and their answers for part (b). Make a hypothesis about the number of odd vertices in an arbitrary graph. (d) Draw more graphs below to either affirm or contradict your hypothesis. Continue until you are confident in your answer. 4

LAMC handout 5 (5) After playing with a few more graphs, you should notice that the number of odd vertices seems to always be even. This turns out to be true and is famous enough to have a name: the Handshaking lemma. In terms of our example, the lemma says in a party of people, some of whom shake hands, an even number of people must shake an odd number of hands. This fact was first proven by Euler many centuries ago, let s see how! Suppose we have a graph G = (V, E) consisting of n vertices and m edges. (a) Let e be an edge in E. How many vertices are incident to e? Note: each point where an edge meets a vertex contributes 1 to the degree of that vertex. (b) Using your answer to (a), argue that if we add together the degree of every vertex, the result will be even. (Bonus: what will the sum be exactly?) (c) If we add together the degree of every even vertex, will the result be even or odd? (d) Use (b) and (c) to argue that if we add together the degree of every odd vertex, the result must be even. (e) Use (d) to argue that the total number of odd vertices is even. 5

LAMC handout 6 2. BIPARTITE GRAPHS Bipartite Graphs are special kinds of graphs that follow a few rules. Let us take an edgeless graph G such as shown below with vertices in the set V. Now, split the vertices into two different sets V 1 and V 2 such that any vertex v is either in V 1 or V 2, not both of them. Now, draw an edge connecting any black vertex in V 1 only to any red vertex in V 2. Repeat this process as many times as you like. You have just constructed a bipartite graph. The restrictions on a bipartite graph follow from the process we just went through. Basically, a bipartite graph can always have its vertices separated into two disjoint sets such that every vertex is only adjacent to vertices in the other set. Two disjoint sets have no elements in common. Below, the restrictions are represented in their symbolic and more precise mathematical form, which you should try to understand as it is the formal language of mathematics. The symbol A B represents the union of sets A and B (that is, the set you get by combining all the elements in A and B into a single set). The symbol A B represents the intersection (that is, the set of all elements that are both in A and B). Given a graph B with vertices in V, B is bipartite if there exist sets of its vertices V 1 and V 2 such that: (1) If vertex v V 1, then it may only be adjacent to vertices in V 2. (2) If vertex v V 2, then it may only be adjacent to vertices in V 1. (3) V 1 V 2 = (4) V 1 V 2 = V 6

LAMC handout 7 If V 1 and V 2 are the disjoint sets that satisfy the bipartiteness requirements for a graph B, then V 1 and V 2 are called the bipartition of B. Now, we are going to prove a few lemmas and theorems about bipartite graphs, utimately culminating in the Bipartite Coloring Theorem. (1) Bipartition Equal Degree Theorem: Given a bipartite graph B and bipartition V 1 and V 2, the sum of the degrees of all the vertices in V 1 is equal to the sum of the degrees of all the vertices in V 2. (a) Let us take the edgeless graph we used at the beginning of this section. Draw a single edge so that the graph remains bipartite. Show that the Bipartition Equal Degree Theorem holds in this case. (b) Now, assume that the Bipartition Equal Degree Theorem holds for the n 1 edge graph below. Draw a single edge that maintains its bipartiteness, and show that the Bipartition Equal Degree Theorem still holds. 7

LAMC handout 8 (c) Now use (a) and (b) as the base case and inductive step to form a proper proof by induction. (2) Regular Bipartite Theorem: Similar to the K n graphs, a k regular graph G is one where every vertex v V (G) has deg(v) = k. Now, using problem 1, show that every k regular, bipartite graph B has the same number of vertices in either set of its V 1 and V 2 bipartition. 8

LAMC handout 9 (3) Graph Coloring: We say a graph G can be colored by splitting its vertices into colored sets such that no two vertices of the same color are adjacent to each other (so if two vertices are in the green set, they can only be adjacent to vertices in other colors). If n is the smallest number of sets that the vertices of graph G can be split into so that G is properly colored, then G is an n colorable graph. Solve the coloring problems below. (a) What is the coloring of K 4 and K 5? As you can see, all graphs with n vertices are trivially colorable by n different colors. That s why graph theorists try to find the minimum number of colors k needed to color a graph and then label that graph k colorable. (b) What is the coloring of the below graph? 9

LAMC handout 10 (c) Is the below graph 3-colorable? (d) What is the coloring of a graph that is composed of the vertices and edges of an 2n sided polygon? (4) Bipartiteness Coloring Theorem: As long as a bipartite graph B is not edgeless, then it is 2 colorable. (a) Draw an non-edgeless bipartite graph. 10

LAMC handout 11 (b) Choose two sets of vertices so that each set satisfies the color restriction. (c) How many vertices of your graph must be in a single color set for it to be considered 1 colorable? (d) Why does a single color set violate the coloring restriction for your graph? (e) What type of graph must G be in order for it to be 1 colorable 11

LAMC handout 12 3. PATHS AND EULERIAN CYCLES A path along a graph G is a sequence of alternating edges and vertices such that each edge is incident to the vertices it is next to in the sequence and each edge and vertex in the sequence is distinct. For the graph below, a path between vertex v and u can be written as v, e1, a, e2, b, e3, u. However, since no edges are incident to w, no paths can be written from w to v or any other vertex in the graph. A cycle along a graph G is a path that ends at the same vertex that it started at. The length of a path is the number of edges in the path s sequence. Modifying the graph above gives a cycle of length 4 at vertices v, a, b, and c. 12

LAMC handout 13 (1) Bipartite Cycles: Show that there are no odd cycles in a bipartite graph B with bipartition X and Y. (a) Pick an arbitrary vertex in either X or Y and assume it is part of an odd cycle. Write down the general sequence that would represent this path, numbering each edge in order (that is, the first edge in the sequence is e1, the second is e2, etc.) (b) What is the parity of the last edge in the sequence? (c) Do vertices in X precede every odd edge in the cycle? Which vertices do an odd edge lead to? (d) Use (b) and (c) to show that an odd cycle in a bipartite graph provides a contradiction, and thus is impossible. 13

LAMC handout 14 (2) Eulerian Paths: An Eulerian path is a path the visits every edge in a graph exactly once. An interesting problem for graph theorists is whether certain graphs have Eulerian paths since not all graphs do. Find the Eulerian paths of the following graphs. If you cannot, explain why. (a). (b). (c). 14

LAMC handout 15 (d). (e). (f). 15

LAMC handout 16 (g). (3) Eulerian Cycles: An Eulerian cycle is a cycle that visits every edge in a graph exactly once. Find the Eulerian cycles of the following graphs. If you cannot, explain why. (a). (b). (c). 16

LAMC handout 17 (d). (e). (4) Eulerian Paths and Odd Degree Vertices: Knowing the number of vertices with odd degrees can actually determine whether an Eulerian path exists before you even attempt to draw it out! (a) Other than the starting and ending vertices in an Eulerian path, each intermediate vertex in the path must be traveled to by one edge and away from another. So what is the parity of the number of edges that are incident upon each intermediate vertex? (b) What is the parity of the degree of each intermediate vertex in the Eulerian path? 17

LAMC handout 18 (c) How many odd degree vertices can be in a graph with an Eulerian path? (d) If a graph with an Eulerian path contains an odd vertex, can this path ever end on the starting vertex in an Eulerian cycle? (Hint: What do you know about the starting vertex if it is visited as an intermediate vertex? How many edges are required to leave a vertex and return to it in an Eulerian path?) 18