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?

Similar documents
Math 776 Graph Theory Lecture Note 1 Basic concepts

Graph Theory CS/Math231 Discrete Mathematics Spring2015

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

Introduction to Graph Theory

Characterizing Graphs (3) Characterizing Graphs (1) Characterizing Graphs (2) Characterizing Graphs (4)

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.

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 7

Varying Applications (examples)

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

8.2 Paths and Cycles

Introduction to Graphs

Introduction III. Graphs. Motivations I. Introduction IV

Lecture 5: Graphs. Rajat Mittal. IIT Kanpur

Definition 1.1. A matching M in a graph G is called maximal if there is no matching M in G so that M M.

Logic: The Big Picture. Axiomatizing Arithmetic. Tautologies and Valid Arguments. Graphs and Trees

Math 443/543 Graph Theory Notes 2: Transportation problems

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

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

Instructor: Paul Zeitz, University of San Francisco

Chapter 11: Graphs and Trees. March 23, 2008

Instant Insanity Instructor s Guide Make-it and Take-it Kit for AMTNYS 2006

Graph Theory. Part of Texas Counties.

An Introduction to Graph Theory

INTRODUCTION TO GRAPH THEORY. 1. Definitions

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. An Introduction to Graph Theory

Graph Theory Mini-course

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

Basics of Graph Theory

Section 3.4 Basic Results of Graph Theory

Module 11. Directed Graphs. Contents

Graphs and trees come up everywhere. We can view the internet as a graph (in many ways) Web search views web pages as a graph

BIL694-Lecture 1: Introduction to Graphs

Discrete Mathematics

Fundamental Properties of Graphs

An Interactive Introduction to Graph Theory

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

Graph Theory S 1 I 2 I 1 S 2 I 1 I 2

Theory of Computing. Lecture 10 MAS 714 Hartmut Klauck

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

1. a graph G = (V (G), E(G)) consists of a set V (G) of vertices, and a set E(G) of edges (edges are pairs of elements of V (G))

Let G = (V, E) be a graph. If u, v V, then u is adjacent to v if {u, v} E. We also use the notation u v to denote that u is adjacent to v.

Dieter Jungnickel (2008), Graphs, Networks and Algorithms, 3rd edition, which is available online via SpringerLink.

Lecture 3: Graphs and flows

Intermediate Math Circles Wednesday, February 22, 2017 Graph Theory III

Discrete mathematics

Junior Circle Meeting 3 Circuits and Paths. April 18, 2010

Chapter 9. Graph Theory

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

Crossing bridges. Crossing bridges Great Ideas in Theoretical Computer Science. Lecture 12: Graphs I: The Basics. Königsberg (Prussia)

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

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

GRAPH THEORY: AN INTRODUCTION

WUCT121. Discrete Mathematics. Graphs

MATH 363 Final Wednesday, April 28. Final exam. You may use lemmas and theorems that were proven in class and on assignments unless stated otherwise.

The Konigsberg Bridge Problem

IMO Training 2008: Graph Theory

CS473-Algorithms I. Lecture 13-A. Graphs. Cevdet Aykanat - Bilkent University Computer Engineering Department

Number Theory and Graph Theory

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

Notebook Assignments

Number Theory and Graph Theory

14 More Graphs: Euler Tours and Hamilton Cycles

Network Topology and Graph

Graph Theory Part A. Peter Keevash

Majority and Friendship Paradoxes

PACKING DIGRAPHS WITH DIRECTED CLOSED TRAILS

Graph Theory

1 Matchings in Graphs

Assignment 4 Solutions of graph problems

Launch problem: Lining streets

Some Upper Bounds for Signed Star Domination Number of Graphs. S. Akbari, A. Norouzi-Fard, A. Rezaei, R. Rotabi, S. Sabour.

Assignments are handed in on Tuesdays in even weeks. Deadlines are:

HW Graph Theory SOLUTIONS (hbovik) - Q

11.2 Eulerian Trails

North Bank. West Island. East Island. South Bank

Chapter 3: Paths and Cycles

Eulerian Paths and Cycles

V :non-empty vertex ornode set E V V :edge set G (V, E) :directed graph on V, or digraph on V

DO NOT RE-DISTRIBUTE THIS SOLUTION FILE

On the Relationships between Zero Forcing Numbers and Certain Graph Coverings

MATH 682 Notes Combinatorics and Graph Theory II. One interesting class of graphs rather akin to trees and acyclic graphs is the bipartite graph:

Characterization of Graphs with Eulerian Circuits

Sarah Will Math 490 December 2, 2009

Circuits and Paths. April 13, 2014

Math 170- Graph Theory Notes

Graph Theory: Introduction

Introduction to Graphs

ECS 20 Lecture 17b = Discussion D8 Fall Nov 2013 Phil Rogaway

Graph theory: basic concepts

Extremal Graph Theory: Turán s Theorem

More NP-complete Problems. CS255 Chris Pollett May 3, 2006.

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

Introduction to Engineering Systems, ESD.00. Networks. Lecturers: Professor Joseph Sussman Dr. Afreen Siddiqi TA: Regina Clewlow

Discrete mathematics II. - Graphs

Lecture 20 : Trees DRAFT

Algorithms: Graphs. Amotz Bar-Noy. Spring 2012 CUNY. Amotz Bar-Noy (CUNY) Graphs Spring / 95

4. (a) Draw the Petersen graph. (b) Use Kuratowski s teorem to prove that the Petersen graph is non-planar.

An Introduction to Graph Theory

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

Graph (1A) Young Won Lim 4/19/18

Transcription:

1 Introduction Graph theory is one of the most in-demand (i.e. profitable) and heavily-studied areas of applied mathematics and theoretical computer science. May graph theory questions are applied in this way others are more of a pure mathematical flavor. One of the most powerful aspects of graph theory is that graphs can be used to model several real-world situations: 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? How can we assign n jobs to n people to get the best combination of people assigned to the jobs. How many layers does a computer chip need so that wires in the same layer don t cross? How can the season of a sports league be scheduled into the minimum number of weeks? In what order should a traveling salesman visit cities to minimize travel time? Can we color the regions of every map using four colors so that neighboring regions receive different colors? 2 What is a graph? Definition 2.1 (graph). A graph is an ordered pair (V, E), where V is called the vertex set and E is called the edge set. With each e E, we associate two vertices (perhaps the same) u and v, which we call the ends of e. Definition 2.2 (Basic Terminology). Let G = (V, E) be a graph. 1. If V and E are understood, then we often just denote G to be the graph. V always means a vertex set, E always means an edge set. If there is more than one graph in context, we say V (G) is the vertex set of G and E(G) is the edge set of G. 2. Generally, u, v, w stand for vertices, e, f stand for edges. 3. If e E, with ends u and v, we say u and v are adjacent. We also say e = uv. 4. If the ends of e are the same, we call e a loop. 5. If two edges have the same ends, they are called parallel edges. 1

6. A simple graph is a graph with no loops or parallel edges. Most applications can be solved using only simple graphs, so most of our attention will be focussed on simple graphs. 7. A graph G(V, E) is finite if V and E are finite. In this class, we will talk only about finite graphs. 8. In drawing a graph, we have a dot for each vertex, and a line from u to v for each edge e = uv Example: Let G(V, E) be the following graph. V is the set of all cities in the graph. For each road going between two cities u, v, we have an edge e whose ends are u and v that is, there is an edge from one city to another if there is a road between the two. In the above definition, if u, v are the ends of e, it does not matter if u is the first end, or v is the first end. In this sense, the definition we gave above is an undirected graph. If we can go from u to v, then we can go from v to u. However, if we are talking about intersections in a given city, we might be able to go from u to v, but not from v to u a road might be one-way. Or we may have a diode in a circuit. This motivates the concept of a directed graph: Definition 2.3 (Directed Graph). A directed graph, called digraph for short, is a ordered pair (V, E) as usual V are vertices and E edges. But now, we have a function f : E V V. If f(e) = (u, v), we call u the tail of e and v the head if e. So, if f(e) = (u, v) we can represent this as being able to travel from u to v along edge e, but we cannot use edge e to travel from v to u. The edges now have a direction associated with them. If I use the term graph, I mean an undirected graph. 3 Examples 3.1 Undirected graphs 3.1.1 The Bridges of Konigsberg A famous problem solved by Euler is the following: we are in the city of Kongisberg, with four land masses. We have bridges between the land masses. Can we, purely by walking, cross each bridge exactly once? We can model the problem as a graph. We have a vertex between each land mass, and an edge for each bridge. The ends of an edge are the same as the ends of each bridge. 3.1.2 Ramsey Theory We can model Ramsey theory using graphs. We have a vertex for each person, and there is an edge e = uv for two people u and v iff the two people are acquainted. 2

In the case of 6 people, we know that there are always three mutual acquaintances or three mutual strangers. In terms of graph theory, this means that we can find three vertices so that for every pair within these three vertices, there is an edge between the two, or that for every pair, there is no pair between the two. This motivates a few definitions: Definition 3.1. A complete graph on n vertices is a simple graph G = (V, E) where V is an n-element set, and for any two pairs of vertices u, v, there is an e E whose ends are u and v. We will see later that in a given sense, there is only one such graph on n vertices, and we denote this by K n. If G = (V, E) is a graph, then H = (U, F ) is a subgraph of G iff V (H) V (G), E(H) E(G), and each edge in H has the same ends as it does in G. If G = (V, E), and U E, the graph H = (U, F ), where F is the set of all edges in G with both ends in U is called the subgraph of G induced by U, and is called G[U]. If G = (V, E) is a graph, then a clique in G is an induced subgraph G[U] that is a complete graph on U vertices. That is, each pair of vertices in U are adjacent. An independent set U of vertices in G = (V, E) is a set U V of vertices in G so that no pair of vertices in U are adjacent. Using the above notation, we then have the following theorem: Theorem 3.2 (Ramsey s Theorem). For any natural numbers n, m, there is a number R(n, m) so that, for any graph G with R(m, n) vertices, there is a clique in G with m vertices or an independent set of n vertices in G. There is an alternate characterization of Ramsey s Theorem. We may color edges or vertices of a graph. Later I will show an example of coloring vertices, but here we will color edges. Let us suppose we have a complete graph on R(m, n) vertices. In other words, if this graph is G = (V, E), we partition E into two sets R B R is the set of red edges, and B is the set of blue edges. Each edge between two people that know each other is colored red. Each edge between two strangers is colored blue. Then we can state Ramsey s Theorem as follows: Theorem 3.3 (Ramsey s Theorem again). For any natural numbers n, m, There is a number R(m, n) so that if we color the edges of the complete graph on R(m, n) vertices with two colors red and blue,then there is either an m-clique whose edges are all red, or an n-clique whose edges are all blue. 3.1.3 Job Assignments and Bipartite Graphs Suppose we have a set of m jobs and n people, and each person can do some of the jobs. However, we can only assign one job to any given person. Also, 3

suppose that it is wasteful to assign more than one person to a given job, so we require that no more than one person is assigned to a job. Can we assign all of the jobs? We can model this problem as follows. Let G = (V, E) be a graph, where V = A B (A is the set of jobs, B is the set of people). For each u A, v B, we have an edge e with ends u, v if person v can do job u. The problem is then reduced to seeing if we can pick a set of edges F E so for each u A, there is exactly one edge with end u and exactly one edge (not necessarily the same) with end V. Any satisfactory solution to this problem is called a matching we are matching jobs with people. Definition 3.4 (Matching). 1. If G = (V, E) is a graph, a set M E of edges is called a matching if M contains no loops and no vertex v V is an end of two edges in M. 2. A matching saturates U V if each u U is an end of some edge e M. 3. A perfect matching in G = (V, E) is a matching M in G that saturates V. Therefore, going back to the problem of jobs and people, we seek to find a matching that saturates A. Note that each edge in the graph goes from A to B. Therefore, we have partitioned the vertex set into two sets so that no edge has both ends in the same set. This is a common graph: Definition 3.5 (Bipartite Graph). A graph G = (V, E) is bipartite if V can be partitioned into two sets A and B so that no e E has both ends in A or both ends in B. Finding a perfect matching in a graph (if it has one) is an interesting problem. It is an easier problem if we know the graph is bipartite. 4 Euler Tours One of the oldest problems in graph theory is the Bridges of Konigsberg problem. The problem is as follows: suppose that there are several land masses, and bridges connecting these land masses. The question is, can we cross each bridge exactly once, and end up on the same land mass that we started? We can represent this problem as a graph. Each land mass is a vertex, and each bridge is an edge. The ends of each edge are the same as the ends of the bridge that the edge represents. Since we re talking about crossing each bridge, we can think about taking a walk Definition 4.1 (Walks). Let G = (V, E) be a graph. 1. A walk in G is a list (v 0, e 1, v 1, e 2, v 2,..., e k, v k ), where each v i is a vertex, each e i is an edge, so that the ends of e i are v i 1 and v i. 4

2. A trail is a walk where the e i are all distinct. 3. A closed walk is a walk where v 0 = v k that is, the walk ends at the same place that it starts. 4. An Euler Trail is a trail that uses every edge in G exactly once. 5. An Euler Tour is an Euler Trail that also is a closed walk that is, it is a walk that uses each e E exactly once and ends up at the same place that it starts. In this case, we are only interested in situations where everything is connected that is, if there are two landmasses that are flat out unreachable altoegther from one another, then obviously we cannot cross all the bridges (assuming that there are bridges from each landmass). Definition 4.2 (Connectivity). 1. Let G = (V, E) be a graph, and let u, v V. We say that u and v are connected if there is a walk in G starting at u and ending at v. 2. G is connected if for every u, v V, u and v are connected. Euler discovered that in the particular case of the Bridges of Konigsberg, (see diagram in Bogart), it is impossible to cross each bridge exactly once (unless you fly or swim... ). This is because some of the land masses have an odd number of incident bridges. Definition 4.3. The degree of a vertex v in a graph G is the number of ends of edges in G that equal v. In the case where G has no loops, this is equal to the number of edges that are incident with v. Before we state the theorem, here is a lemma that will be of use: Lemma 4.4. Let G be a graph where every vertex in G has even degree. Then all maximum-length trails in G are closed. Proof. Suppose that T is a trail in G that is not closed. Then an odd number of edges incident with the last vertex v k of T must have been used. Therefore, we may pick a new edge leaving T. Now, the theorem: Theorem 4.5. Let G be a connected graph. every vertex in G has even degree. Then G has an Euler Tour iff Proof. ( ): Suppose that G has an Euler tour v = v 0, e 1, v 1, e 2, v 2,..., v k = v. Let u V be given. Suppose that v j = u. Then the edges e j and e j+1 have an end at u (if j = k, then use e 1 instead of e j. Therefore, it follows that deg(u) = 2v j j [k]:v j=u 5

Thus, deg(u) is the sum of even numbers, and therefore must itself be even. ( ): Suppose now that G is a connected graph where every vertex has even degree. Let T be a maximum trail in G. By 4.4, T must be closed. Suppose, for the sake of contradiction, that T is not Eulerian. Then there is some edge leaving a vertex v used in T that is unused. Remove the edges in T from G to form a new graph G. Then G still is a graph where every vertex has even degree (because we removed an odd number of ends from each vertex in T ), and there is a trail of length at least one in the remaining graph. A maximum-length trail must thus, by 4.4, be closed. Picking a maximum length trail in G, and splicing it into the first occurrence of v in T, results in a longer trail in G. But we said that T was a maximum-length walk, which is a contradiction. 6