Graph Theory

Similar documents
AQR UNIT 7. Circuits, Paths, and Graph Structures. Packet #

Circuits and Paths. April 13, 2014

Worksheet 28: Wednesday November 18 Euler and Topology

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

Travel Every Edge 3. Example (Travel Every Edge 3) In the graphs above, can you find a circuit that hits every edge without repeating any edges?

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

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

Characterization of Graphs with Eulerian Circuits

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?

Chapter 8 Topics in Graph Theory

Unit 7 Day 2 Section Vocabulary & Graphical Representations Euler Circuits and Paths

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 7

Chapter 11: Graphs and Trees. March 23, 2008

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

Sections 5.2, 5.3. & 5.4

MATH 113 Section 9.2: Topology

An Introduction to Graph Theory

Grade 7/8 Math Circles Graph Theory - Solutions October 13/14, 2015

Launch problem: Lining streets

WUCT121. Discrete Mathematics. Graphs

Instructor: Paul Zeitz, University of San Francisco

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

Fundamental Properties of Graphs

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

Graph theory was invented by a mathematician named Euler in the 18th century. We will see some of the problems which motivated its study.

EULERIAN GRAPHS AND ITS APPLICATIONS

11-5 Networks. Königsberg Bridge Problem

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

INTRODUCTION TO GRAPH THEORY. 1. Definitions

Chapter 5: Euler Paths and Circuits The Mathematics of Getting Around

Street-Routing Problems

Graph Theory CS/Math231 Discrete Mathematics Spring2015

Chapter 5: Euler Paths and Circuits The Mathematics of Getting Around

TWO CONTRIBUTIONS OF EULER

6.2. Paths and Cycles

FINDING THE RIGHT PATH

Math 110 Graph Theory II: Circuits and Paths

Brief History. Graph Theory. What is a graph? Types of graphs Directed graph: a graph that has edges with specific directions

Varying Applications (examples)

The Bridges of Konigsberg Problem Can you walk around the town crossing each bridge only once?

Graph Theory Lecture 5: Modeling with Graphs, and Euler Circuits/Paths Spring 2014 Morgan Schreffler Office: POT 902

Week 7: Introduction to Graph Theory. 24 and 26 October, 2018

14 More Graphs: Euler Tours and Hamilton Cycles

MA 111 Review for Exam 3

14.2 Euler Paths and Circuits filled in.notebook November 18, Euler Paths and Euler Circuits

CS70 - Lecture 6. Graphs: Coloring; Special Graphs. 1. Review of L5 2. Planar Five Color Theorem 3. Special Graphs:

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

Fundamentals of Graph Theory MATH Fundamentals of Graph Theory. Benjamin V.C. Collins, James A. Swenson MATH 2730

Networks and Graphs: Circuits, Paths, and Graph Structures VII.A Student Activity Sheet 1: Euler Circuits and Paths

Networks and Graphs: Circuits, Paths, and Graph Structures VII.A Student Activity Sheet 1: Euler Circuits and Paths

EECS 203 Lecture 20. More Graphs

Walking with Euler through Ostpreußen and RNA

An Interactive Introduction to Graph Theory

BIL694-Lecture 1: Introduction to Graphs

Notebook Assignments

Multi-edges, loops, and two or more pieces are all allowed. Example 4 (Not Graphs). None of the following are graphs.

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

Eulerian Tours and Fleury s Algorithm

3 Euler Tours, Hamilton Cycles, and Their Applications

IJIET, e-issn , p-issn , Vol. 2, No. 2, July 2018

Ma/CS 6a Class 8: Eulerian Cycles

Grade 7/8 Math Circles March 7, 2012 Introduction to Graph Theory

Graphs: Definitions Trails, Paths, and Circuits Matrix Representations Isomorphisms. 11. Graphs and Trees 1. Aaron Tan. 30 October 3 November 2017

MathZoom, Summer, 2014

14 Graph Theory. Exercise Set 14-1

Graphs and Puzzles. Eulerian and Hamiltonian Tours.

Graph Theory. 26 March Graph Theory 26 March /29

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

CHAPTER 10 GRAPHS AND TREES. Copyright Cengage Learning. All rights reserved.

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

Section Graphs, Paths, and Circuits. Copyright 2013, 2010, 2007, Pearson, Education, Inc.

Eulerian Tours and Fleury s Algorithm

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.

Notes slides from before lecture. CSE 21, Winter 2017, Section A00. Lecture 9 Notes. Class URL:

Chapter 14 Section 3 - Slide 1

Graphs (MTAT , 6 EAP) Lectures: Mon 14-16, hall 404 Exercises: Wed 14-16, hall 402

Worksheet for the Final Exam - Part I. Graphs

Graph Theory Mini-course

Section Graphs, Paths, and Circuits. Copyright 2013, 2010, 2007, Pearson, Education, Inc.

Classic Graph Theory Problems

Eulerian Cycle (2A) Young Won Lim 4/26/18

08. First and second degree equations

The ancient Egyptians used a decimal system in which pictographs were used to represent powers of 10.

Euler and Hamilton circuits. Euler paths and circuits

Graph Theory. Part of Texas Counties.

Eulerian tours. Russell Impagliazzo and Miles Jones Thanks to Janine Tiefenbruck. April 20, 2016

Discrete mathematics

Chapter 5: The Mathematics of Getting Around

13. (a) G,G. A circuit of length 1 is a loop. 14. (a) E,E. (c) A,B,C,A. 16. (a) BF, FG

Number Theory and Graph Theory

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))

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

Week 10: Colouring graphs, and Euler s paths. 14 and 16 November, 2018

Digital Integrated CircuitDesign

2. CONNECTIVITY Connectivity

Introduction to Graphs

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

CS6702 GRAPH THEORY AND APPLICATIONS 2 MARKS QUESTIONS AND ANSWERS

Math 443/543 Graph Theory Notes

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

Transcription:

Graph Theory 2012.04.18 Our goal today is to learn some basic concepts in graph theory and explore fun problems using graph theory. A graph is a mathematical object that captures the notion of connection. It is a set of vertices (nodes) and edges (lines connecting two vertices), G =(V, E). DEFINITIONS Finite graphs are graphs that have finite sets of vertices and edges. When two endpoints of an edge are the same vertex, this is called a loop. A graph is said to have multiple edges when more than one edge share the same set of endpoints. The degree of a vertex is the number of edges coming out of that vertex. A simple graph is a graph having no loops or multiple edges. A complete graph is a graph where every pair of vertices is connected by a unique edge. A path is an ordered walk along the graph starting at a vertex. A cycle is a simple graph whose vertices can be cyclically ordered and each vertex has degree two. A connected graph is a graph where there exist a path between any two vertices. A trail is a path with no repeated edges. A closed trail or a circuit is a graph where first and last vertices of a trail are the same. An Eulerian trail is a trail in the graph which contains all of the edges of the graph. An Eulerian circuit is a circuit in the graph which contains all of the edges of the graph. A graph is Eulerian if it has an Eulerian circuit. An independent set I is a set of vertices where no two vertices make up an edge. A matching set M is a set of edges where no two edges share a common vertex. A graph has complete matching if and only if every vertex of the graph touches exactly one edge of the matching.

EXERCISES 1. What is the difference between a path and a trail? Give examples of the two showing their difference. 2. What is the difference between a circuit and a cycle? Give examples of the two showing their difference. 3. Consider the following collection of graphs: Which graphs are simple? Suppose that for any graph, we decide to add a loop to one of the vertices. Does this affect whether or not the graph is Eulerian? Which graphs are connected? Which graphs are Eulerian? Trace out an Eulerian circuit or explain why an Eulerian circuit is not possible. 2

Are there any graphs above that are not Eulerian, but have an Eulerian trail? If so, which ones? Give necessary conditions for a graph to be Eulerian. Give necessary conditions for a graph to have an Eulerian trail. 4. Given that a graph has an Eulerian circuit beginning and ending at a vertex, is it possible to construct an Eulerian circuit beginning and ending at any vertex in the graph? If so, give an example. 3

5. Euler s House. Baby Euler has just learned to walk. He is curious to know if he can walk through every doorway in his house exactly once, and return to the room he started in. Will baby Euler succeed? Redraw Euler s house as a graph. Can baby Euler walk through every door exactly once and return to a different place than where he started? What if the front door is closed? 4

6. Suppose that there are three groups of tennis players as shown on the figure below. Each point represents each player. If two players know each other, there is a line that connects them. In each group, is it possible for players who know each other to form a team for tennis doubles? We say that, to have a complete matching, no point must be left unmatched. Trace a complete matching for each graph below. 7. Do the groups in the figure below have a complete matching? 8. How about these figures? Do they have complete matching? 5

9. Using the same nine graphs and additional two graphs shown below, give one example of an independent set for each. If none exists, explain why. 6

10. For each graph below, determine (by tracing) whether is has an Eulerian trail, an Eulerian circuit, or both. 7

11. Bridges of Konigsberg. Try to find a path through the city of Konigsberg that crosses each bridge only once (an Eulerian trail). Note that the river cuts the city in half, so one cannot travel outside of the picture to get from the bottom half to the top half. Represent this problem in a graph. Is it possible? Explain why or why not. If not possible, suggest an edge addition that would make it possible. 8

12. More Eulerian Trails. Determine whether each graph below has an Eulerian trail. If it does, trace it on the graph. 9

13. Draw an Eulerian trail that passes through each of the ten edges (line segments) of the following figures. First, represent these two figures as graphs then trace their Eulerian trails. 10

14. Connect three utilities (gas, water, electricity) to three houses without having any of the wires cross. Represent the picture below as a graph. Is it possible to connect them without crossing? Why or why not? 11

15. Suppose we have four colors: red, blue, green, yellow and we denote these colors by numbers such that 1 = red 2 = blue 3 = green 4 = yellow. How many ways can you color the complete graph below if no two adjacent vertices can be colored with the same color? Now, suppose we represent the number of colors by the variable x. Can you come up with a polynomial that counts the number of ways to color the same graph? 16. A signed graph is a regular graph we ve seen before, except now the edges are either a positive or a negative. Let us represent the vertices to be people, a negative edge to be a hostile relationship between two people and a positive edge to be a friendly relationship between two people. Draw a signed graph to show the famous quote an enemy of my enemy is my friend. 12

17. A path graph P is a graph that starts at a vertex and takes a path and end at a terminal vertex where when we trace this with a pencil, we don t lift our pencil. For example, the graph below is a path graph from vertex a to vertex d. Show at least 5 paths of G other than the one shown. b b a a G c d P c d Figure 1: A path P = abcd from vertex a to vertex d in G. 18. (50 pts.)suppose we have the graph below. If we represent the X and Y vertices as axes on the xy-plane and denote available colors by numbers (see number 1), draw the xy-plane representation to show the number of ways to color the graph below with the same condition that adjacent vertices cannot be colored with the same color. X Y 13

19. The Wolf, Cabbage, Goat and Farmer Problem A farmer is bringing a wolf, a cabbage and a goat to market. The farmer arrives with all three at one side of a river that they need to cross. The farmer has a boat which can accommodate only one of the three (it s a big cabbage.) If the wolf is left along with the goat, the wolf will eat the goat. And, if the goat is left alone with the cabbage, the goat will eat the cabbage. The wolf can be left alone with the cabbage because wolves don t like cabbages. How can all three get across the river intact? Represent this as a graph. 20. Give two applications in the real world where graphs can be useful. 14