Topics Covered. Introduction to Graphs Euler s Theorem Hamiltonian Circuits The Traveling Salesman Problem Trees and Kruskal s Algorithm
|
|
- Paula Lawrence
- 6 years ago
- Views:
Transcription
1 Graph Theory
2 Topics Covered Introduction to Graphs Euler s Theorem Hamiltonian Circuits The Traveling Salesman Problem Trees and Kruskal s Algorithm
3 What is a graph? A collection of points, called vertices (or vertex if singular), together with a set of lines, called edges, connecting pairs of vertices. The degree of a vertex is the number of edges that use that vertex as an endpoint, with loops contributing twice to the degree. A vertex is odd if. A vertex is even if.
4 What is a graph? A graph is completely described by its vertices and edges. Example: Sketch the graph with vertices A, B, C, D, E, F, G and edges {AB, AC, BC, CD, DE, DF, EG, FG}. *Both pictures represent the graph described.
5 What is a graph? We can also represent the same graph with different labels on the vertices. We say two graphs are the same graph represented differently if we can find a one-to-one correspondence between the vertices and edges of the two graphs. *Both pictures represent the graph described.
6 These graphs represent the same graph under the correspondence: Vertices A! 1 B! 2 C! 3 D! 4 E! 5 F! 6 G! 7 Edges AB AC BC CD DE DF EG FG " " " " " " " "
7 Graphs We can use graphs to model real-life situations. A C B C A D B D Let each land mass be a vertex, and the bridges be edges. image taken from wikipedia.com
8
9 A graph which has no loops and satisfies the condition that no pair of vertices is joined by more than one edge is called a simple graph. A Terminology A C B C B Two edges connecting vertices C and D. D Not simple D Simple
10 Terminology A path in a graph is a sequence (an ordered list) of distinct edges of the graph such that the ending vertex of one edge in the sequence is the beginning vertex of the next edge in the sequence. A circuit is a path that begins and ends at the same vertex. The length of a path or circuit is the number of edges traveled in the path. We usually describe a path by listing the sequence of vertices traveled by the path. A B The path ABCDE is highlighted in red. This path has length. A B D E C D E C
11 Terminology A graph is connected if there exists some path between every pair of vertices. A subgraph of a graph is a set of vertices and edges chosen from the original graph. A component of a graph is a maximally connected subgraph of the original graph. disconnected graph A subgraph of the graph to the left. Find another subgraph of the graph above. How many components does the graph have? What are they? *Connected graphs are also called networks.
12 Example: Determine which of the graphs below is a subgraph of the graph to the right. How many components does the graph have? I H K J K I J H (a) (b) (c)
13 Terminology A bridge in a connected graph is an edge such that if it were removed the graph would no longer be connected. You Try: Construct a connected graph with 6 vertices which contains a bridge. Identify the bridge in your graph. connected graph edge CD is a bridge
14 The Seven Bridges of Koenigsberg Problem Starting at some point in the city, can you visit all parts of the city, crossing each bridge once and only once, and return to the place you started? A A C B C B D D image taken from wikipedia.com
15 Terminology The mathematician Leonard Euler ( ) solved the Koenigsberg bridge problem in 1735 using graph theory. An Euler path is a path that uses every edge of the graph exactly once. An Euler circuit is an Euler path that begins and ends at the same vertex. Can you make a Euler path or an Euler circuit on the graphs below? A B A B A B E E D C D C D C What has to happen for a graph to have a Euler path?
16 Euler s Theorem *Look at the degrees of the vertices in the graph. (1)If a graph has more than two vertices of odd degree then it has no Euler paths. (2)If a graph is connected and has zero or exactly two vertices of odd degree, then it has at least one Euler path (probably more). Any such path must start at one of the odd-degree vertices and end at the other if the graph has two odd-degree vertices. Otherwise, it must start and end at the same vertex. (3)If a connected graph has zero vertices of odd degree, then it has at least one Euler circuit. Conversely, if a graph has an Euler circuit, then it has no vertices of odd degree.
17 Which of the graphs have an Euler path? Which have an Euler circuit? A B A E C B D C D A B E D C G F
18 Euler s Theorem Add an edge to the graph below (without repeating an existing edge) so that the resulting graph contains an Euler path. Hint: Look at the degrees of each vertex. How many vertices have odd degree? How many have even degree? 18
19 Euler s Theorem Add an edge to the graph below (without repeating an existing edge) so that the resulting graph contains an Euler path. 19
20 Euler s Theorem Example: Using the graph below, answer the following. (1)Is AED a path in the graph? (2)Is the graph connected? (3)What is the degree of vertex D? (4)What is the length of the path ABED? (5)Does the graph have an Euler path? If so, give an Euler path. (6)Does it have an Euler circuit?
21 Fleury s Algorithm - used to find Euler Circuits Given a connected graph with all even vertices, choose any vertex with which to begin. Travel along edges in the graph according to the following rules. 1. After traveling an edge, erase it. Once all the edges for a vertex have been used, erase the vertex, too. 2. You may only travel over a bridge if there is no other option. Example: The graph to the right represents the streets in a neighborhood. Starting at vertex A, use Fleury s algorithm to find an Euler circuit to provide a mail route for this neighborhood that does not repeat streets.
22 erase erase erase The Euler circuit is ACBFGJKHIEDHGCDA.
23 Eulerizing a Graph Eulerizing a graph converts a non-eulerian graph into an Eulerian graph by making copies of existing edges in the graph so that all vertices have even degree. Example: A newspaper boy has been assigned the neighborhood depicted below for his newspaper route. Find a route that uses every road, begins and ends at the same point, and minimizes repetition of streets. The odd degree vertices are labeled. We duplicate edges to make these vertices have even degrees. *Note we can t add edges like an edge from D to E, that aren t in the original graph.
24 Solution: Eulerize You try: Duplicate edges in the graph below to make it Eulerian. A D B H I E C J G F
25 The Traveling Salesman Problem Kristen lives in Kansas City and must make visits next week to give sales pitches in Denver, Minneapolis, Chicago, and Nashville. She has found prices of flights between each pair of cities. What sequence of visits minimizes the cost? We ll use a graph to model the problem.
26 Hamiltonian Paths A path that passes through all the vertices of a graph exactly once is called a Hamiltonian path. If a Hamiltonian path begins and ends at the same vertex, it is called a Hamiltonian circuit. If a graph has a Hamiltonian circuit we say it is Hamiltonian. What is the difference between a Hamiltonian circuit and an Euler circuit? Find a Hamiltonian path in the graph to the right starting at vertex A and ending at vertex G.
27 Complete Graphs A complete graph is one in which every pair of vertices is joined by an edge. A complete graph with n vertices is denoted by K n. Often, we want to find all the Hamiltonian circuits in a graph. This is easy to accomplish for complete graphs.
28 Example: Find all the Hamiltonian Circuits in K 4. *Note that the circuit ADCBA is the same as the circuit DCBAD, which is the same as CBADC, etc. So we can assume all circuits begin and end at vertex A. If we start at vertex A, what vertex could we visit next? Then which vertex could we visit? We can display this in a tree diagram.
29 Example: Find all the Hamiltonian Circuits in K 4. start A choices for the second vertex B C D choices for the third vertex C D B D B C choices for the last vertex D C D B C B Tracing through the tree diagram we see that K 4 has the following 6 circuits: ABCDA, ABDCA, ACBDA, ACDBA, ADBCA, ADCBA
30 You try: How many Hamiltonian circuits does K 3 have? What about K 5? K n?
31 Solving the Traveling Salesman Problem (TSP) - find all Hamiltonian circuits using weighted graphs A weighted graph is a graph with numbers, called weights, assigned to the edges. The weight of a path is the sum of the weights of the edges of the path.
32 Example: Kristen lives in Kansas City and must make visits next week to give sales pitches in Denver, Minneapolis, Chicago, and Nashville. To determine which would be her cheapest trip, she has obtained prices of flights between each pair of cities. What sequence of visits minimizes the cost? Find all the Hamiltonian circuits and their weights in the graph. Which Hamiltonian circuit has the minimum weight?
33 The Brute Force Algorithm for solving the TSP Step 1: List all Hamiltonian circuits in the graph. Step 2: Find the weight of each circuit found in step 1. Step 3: The circuits with the smallest weights give the solution to the TSP. This algorithm is time consuming. There are other less timeconsuming algorithms that give good approximations to the TSP.
34 The Nearest Neighbor Algorithm (NNA) Step 1: Start at any vertex X. Step 2: Choose any one edge connected to X that has the smallest weight. (There may be several with smallest weight.) Select the vertex at the end of this edge as the next vertex in your circuit. This vertex is called the nearest neighbor of X. Step 3: Choose subsequent new vertices as you did in step 2. (i.e., at every step, choose the next nearest neighbor that hasn t already been chosen). Step 4: After all vertices have been chosen, close the circuit by returning to the starting vertex.
35 Example: Use the nearest neighbor algorithm, starting at Kansas City, to solve Kristen s problem.
36 Example: Use the nearest neighbor algorithm, starting at Kansas City, to solve Kristen s problem.
37 Repetitive Nearest Neighbor Algorithm Pick a vertex and apply the Nearest Neighbor Algorithm (NNA) Repeat the NNA for each vertex of the graph Pick the best of all the Hamiltonian circuits you got in the first two steps.
38 The Side Sorted Algorithm (sometimes called the Best Edge or the Cheapest Link Algorithm) Step 1: Choose any edge with the smallest weight. Step 2: Choose any remaining edge in the graph with the smallest weight. Step 3: Keep adding the next smallest weight edge while following the below conditions. - do not form a circuit before all the vertices have been added - do not add an edge that would give a vertex degree three
39 Example: Use the side sorted algorithm to solve Kristen s problem. Edge Chosen Weight MC 137 MK 194 CD 250 DN 462 KN 466
40 Example 1. Does the graph to the left have an Euler circuit? An Euler path? If so, find the path and/or circuit. 2. Find a Hamiltonian circuit in the graph to the left. A 5 D B 1 C 1. Use the Nearest Neighbor Algorithm to find a Hamiltonian circuit in the graph to the left of low weight. 2. Use the Side Sorted Algorithm to find a Hamiltonian circuit in the graph to the left of low weight.
41 Let s add (O)maha and D(A)llas to Kristen s trip. Below is a table with the flight cost between the cities. K C M D N O A K C M D N O A Draw a graph to represent this problem. 2. If we were to use the brute force algorithm to solve the TSP, how many Hamiltonian circuits would we have to consider? 3. Use the Nearest Neighbor Algorithm to find a Hamiltonian circuit beginning at Kansas City.
42 Example: The table below shows the distance (in mi) between five Starbucks stores. A manager from the headquarters must visit each store to check on customer satisfaction. Using any method that we ve discussed, find a route for the manager using as few miles as possible.
43 Some more examples of Hamiltonian Paths Find a Hamiltonian path in each graph below, or explain why you can t.
44 Trees Recall: A subgraph of a given graph is a set of vertices and edges chosen from among those of the original graph. Example: Removing edge HW creates the subgraph shown at right. Original Graph Subgraph
45 Trees Recall that a circuit is a path that begins at a vertex and returns to that vertex without using any edges twice. A connected graph that has no circuits is called a tree. Tree Tree Not a Tree
46 Choose the graph(s) that is a tree. A B C a. F b. A B C D DE F G E c. d. A F C E D B A B C D E F
47 A forest is a collection of one or more trees. Choose the graph(s) that is a forest. C A B a. b. D E c. d. A F C E D B F A B C DE F G A B C D E F
48 Example: The graph below is not a tree because it contains several circuits. Find a subgraph that is a tree.
49 Spanning Trees A spanning tree is a subgraph that Contains all the original vertices in the graph. Is connected Contains no circuits - Every connected graph has at least one spanning tree. Graph Spanning Tree
50 Minimal Spanning Trees In a weighted graph, a spanning tree with the smallest possible total weight is called a minimal spanning tree. - Since a connected weighted graph can have multiple spanning trees, there may be one or more than one of those spanning trees with the smallest total weight. Original Weighted Graph Weight = 76 Spanning Tree Weight = 66 Spanning Tree Weight = 62
51 Kruskal s Algorithm - Used to find a minimal spanning tree of a connected weighted graph. Step 1: Choose any edge with the smallest weight. Step 2: Choose any remaining edge in the graph with the smallest weight. Step 3: Keep adding the next smallest weight edge that does not create a circuit until all vertices have been added to your subgraph.
52 Example: Construct a minimal spanning tree for the weighted graph below.
53 Example: Construct a minimal spanning tree for the weighted graph below. 1 Start with the 5 vertices. Add the edge with the smallest weight. 2 Choose the edge with the next smallest weight.
54 Example: Construct a minimal spanning tree for the weighted graph below. 3 The next lowest edge has weight 4.7, but it is not allowed since its addition would form a circuit. Add edge AC instead. 4 The next lowest edge is BE, so add it. The total weight of the spanning tree is = 18.8
55 Example: The distance between the five most popular animals at a zoo is listed in the table below. What is the minimum distance required to build sidewalks that connect the most popular animals? (A)pe (B)ear (C)heetah (D)ingo (E)lephant (A)pe (B)ear (C)heetah (D)ingo (E)lephant
Chapter 6. The Traveling-Salesman Problem. Section 1. Hamilton circuits and Hamilton paths.
Chapter 6. The Traveling-Salesman Problem Section 1. Hamilton circuits and Hamilton paths. Recall: an Euler path is a path that travels through every edge of a graph once and only once; an Euler circuit
More information6.2 Initial Problem. Section 6.2 Network Problems. 6.2 Initial Problem, cont d. Weighted Graphs. Weighted Graphs, cont d. Weighted Graphs, cont d
Section 6.2 Network Problems Goals Study weighted graphs Study spanning trees Study minimal spanning trees Use Kruskal s algorithm 6.2 Initial Problem Walkways need to be built between the buildings on
More informationWarm -Up. 1. Draw a connected graph with 4 vertices and 7 edges. What is the sum of the degrees of all the vertices?
Warm -Up 1. Draw a connected graph with 4 vertices and 7 edges. What is the sum of the degrees of all the vertices? 1. Is this graph a. traceable? b. Eulerian? 3. Eulerize this graph. Warm-Up Eulerize
More informationSEVENTH EDITION and EXPANDED SEVENTH EDITION
SEVENTH EDITION and EXPANDED SEVENTH EDITION Slide 14-1 Chapter 14 Graph Theory 14.1 Graphs, Paths and Circuits Definitions A graph is a finite set of points called vertices (singular form is vertex) connected
More informationGraph Theory CS/Math231 Discrete Mathematics Spring2015
1 Graphs Definition 1 A directed graph (or digraph) G is a pair (V, E), where V is a finite set and E is a binary relation on V. The set V is called the vertex set of G, and its elements are called vertices
More informationChapter 14 Section 3 - Slide 1
AND Chapter 14 Section 3 - Slide 1 Chapter 14 Graph Theory Chapter 14 Section 3 - Slide WHAT YOU WILL LEARN Graphs, paths and circuits The Königsberg bridge problem Euler paths and Euler circuits Hamilton
More information14 Graph Theory. Exercise Set 14-1
14 Graph Theory Exercise Set 14-1 1. A graph in this chapter consists of vertices and edges. In previous chapters the term was used as a visual picture of a set of ordered pairs defined by a relation or
More informationSimple Graph. General Graph
Graph Theory A graph is a collection of points (also called vertices) and lines (also called edges), with each edge ending at a vertex In general, it is allowed for more than one edge to have the same
More informationTopic 10 Part 2 [474 marks]
Topic Part 2 [474 marks] The complete graph H has the following cost adjacency matrix Consider the travelling salesman problem for H a By first finding a minimum spanning tree on the subgraph of H formed
More information1. Read each problem carefully and follow the instructions.
SSII 2014 1 Instructor: Benjamin Wilson Name: 1. Read each problem carefully and follow the instructions. 2. No credit will be given for correct answers without supporting work and/ or explanation. 3.
More informationFinite Math A Chapter 6 Notes Hamilton Circuits
Chapter 6: The Mathematics of Touring (Hamilton Circuits) and Hamilton Paths 6.1 Traveling Salesman Problems/ 6.2 Hamilton Paths and Circuits A traveling salesman has clients in 5 different cities. He
More informationStudy Guide Mods: Date:
Graph Theory Name: Study Guide Mods: Date: Define each of the following. It may be helpful to draw examples that illustrate the vocab word and/or counterexamples to define the word. 1. Graph ~ 2. Vertex
More informationSCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. An Introduction to Graph Theory
SCHOOL OF ENGINEERING & BUILT ENVIRONMENT Mathematics An Introduction to Graph Theory. Introduction. Definitions.. Vertices and Edges... The Handshaking Lemma.. Connected Graphs... Cut-Points and Bridges.
More informationIE 102 Spring Routing Through Networks - 1
IE 102 Spring 2017 Routing Through Networks - 1 The Bridges of Koenigsberg: Euler 1735 Graph Theory began in 1735 Leonard Eüler Visited Koenigsberg People wondered whether it is possible to take a walk,
More informationChapter 5: Euler Paths and Circuits The Mathematics of Getting Around
1 Finite Math A Chapter 5: Euler Paths and Circuits The Mathematics of Getting Around Academic Standards Covered in this Chapter: *************************************************************************************
More informationPATH FINDING AND GRAPH TRAVERSAL
GRAPH TRAVERSAL PATH FINDING AND GRAPH TRAVERSAL Path finding refers to determining the shortest path between two vertices in a graph. We discussed the Floyd Warshall algorithm previously, but you may
More informationChapter 5: Euler Paths and Circuits The Mathematics of Getting Around
1 Finite Math A Chapter 5: Euler Paths and Circuits The Mathematics of Getting Around Academic Standards Covered in this Chapter: *************************************************************************************
More informationSections 5.2, 5.3. & 5.4
MATH 11008: Graph Theory Terminology Sections 5.2, 5.3. & 5.4 Routing problem: A routing problem is concerned with finding ways to route the delivery of good and/or services to an assortment of destinations.
More informationEulerian Tours and Fleury s Algorithm
Eulerian Tours and Fleury s Algorithm CSE21 Winter 2017, Day 12 (B00), Day 8 (A00) February 8, 2017 http://vlsicad.ucsd.edu/courses/cse21-w17 Vocabulary Path (or walk): describes a route from one vertex
More informationExcursions in Modern Mathematics Sixth Edition. Chapter 5 Euler Circuits. The Circuit Comes to Town. Peter Tannenbaum
Excursions in Modern Mathematics Sixth Edition Chapter 5 Peter Tannenbaum The Circuit Comes to Town 1 2 Outline/learning Objectives Outline/learning Objectives (cont.) To identify and model Euler circuit
More informationMathematical Thinking
Mathematical Thinking Chapter 2 Hamiltonian Circuits and Spanning Trees It often happens in mathematics that what appears to be a minor detail in the statement of a problem can have a profound effect on
More informationJunior Circle Meeting 3 Circuits and Paths. April 18, 2010
Junior Circle Meeting 3 Circuits and Paths April 18, 2010 We have talked about insect worlds which consist of cities connected by tunnels. Here is an example of an insect world (Antland) which we saw last
More informationThe Traveling Salesman Problem Outline/learning Objectives The Traveling Salesman Problem
Chapter 6 Hamilton Joins the Circuit Outline/learning Objectives To identify and model Hamilton circuit and Hamilton path problems. To recognize complete graphs and state the number of Hamilton circuits
More informationA path that visits every vertex exactly once is a Hamiltonian path. A circuit that visits every vertex exactly once is a Hamiltonian circuit.
Math 167 Review of Chapter 2 1 (c) Janice Epstein CHAPTER 2 BUSINESS EFFICENCY A path that visits every vertex exactly once is a Hamiltonian path. A circuit that visits every vertex exactly once is a Hamiltonian
More informationThe Traveling Salesman Problem
The Traveling Salesman Problem Hamilton path A path that visits each vertex of the graph once and only once. Hamilton circuit A circuit that visits each vertex of the graph once and only once (at the end,
More informationChapter 11: Graphs and Trees. March 23, 2008
Chapter 11: Graphs and Trees March 23, 2008 Outline 1 11.1 Graphs: An Introduction 2 11.2 Paths and Circuits 3 11.3 Matrix Representations of Graphs 4 11.5 Trees Graphs: Basic Definitions Informally, a
More informationWUCT121. Discrete Mathematics. Graphs
WUCT121 Discrete Mathematics Graphs WUCT121 Graphs 1 Section 1. Graphs 1.1. Introduction Graphs are used in many fields that require analysis of routes between locations. These areas include communications,
More informationChapter 3: Paths and Cycles
Chapter 3: Paths and Cycles 5 Connectivity 1. Definitions: Walk: finite sequence of edges in which any two consecutive edges are adjacent or identical. (Initial vertex, Final vertex, length) Trail: walk
More informationCS 440 Theory of Algorithms /
CS 440 Theory of Algorithms / CS 468 Algorithms in Bioinformaticsi Brute Force. Design and Analysis of Algorithms - Chapter 3 3-0 Brute Force A straightforward approach usually based on problem statement
More informationCHAPTER 10 GRAPHS AND TREES. Alessandro Artale UniBZ - artale/z
CHAPTER 10 GRAPHS AND TREES Alessandro Artale UniBZ - http://www.inf.unibz.it/ artale/z SECTION 10.1 Graphs: Definitions and Basic Properties Copyright Cengage Learning. All rights reserved. Graphs: Definitions
More informationSHORT ANSWER. Write the word or phrase that best completes each statement or answers the question.
Chapter 6 Test Review Name SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question. Solve the problem. 1) The number of edges in K12 is 1) 2) The number of Hamilton
More informationChapter 8 Topics in Graph Theory
Chapter 8 Topics in Graph Theory Chapter 8: Topics in Graph Theory Section 8.1: Examples {1,2,3} Section 8.2: Examples {1,2,4} Section 8.3: Examples {1} 8.1 Graphs Graph A graph G consists of a finite
More informationThe Traveling Salesman Problem Outline/learning Objectives The Traveling Salesman Problem
Chapter 6 Hamilton Joins the Circuit Outline/learning Objectives To identify and model Hamilton circuit and Hamilton path problems. To recognize complete graphs and state the number of Hamilton circuits
More informationPrecept 4: Traveling Salesman Problem, Hierarchical Clustering. Qian Zhu 2/23/2011
Precept 4: Traveling Salesman Problem, Hierarchical Clustering Qian Zhu 2/23/2011 Agenda Assignment: Traveling salesman problem Hierarchical clustering Example Comparisons with K-means TSP TSP: Given the
More informationCircuits and Paths. April 13, 2014
Circuits and Paths April 13, 2014 Warm Up Problem Quandroland is an insect country that has four cities. Draw all possible ways tunnels can join the cities in Quadroland. (Remember that some cities might
More informationUndirected Network Summary
Undirected Network Summary Notice that the network above has multiple edges joining nodes a to d and the network has a loop at node d. Also c is called an isolated node as it is not connected to any other
More information14.2 Euler Paths and Circuits filled in.notebook November 18, Euler Paths and Euler Circuits
14.2 Euler Paths and Euler Circuits The study of graph theory can be traced back to the eighteenth century when the people of the town of Konigsberg sought a solution to a popular problem. They had sections
More informationEulerian tours. Russell Impagliazzo and Miles Jones Thanks to Janine Tiefenbruck. April 20, 2016
Eulerian tours Russell Impagliazzo and Miles Jones Thanks to Janine Tiefenbruck http://cseweb.ucsd.edu/classes/sp16/cse21-bd/ April 20, 2016 Seven Bridges of Konigsberg Is there a path that crosses each
More informationThe Travelling Salesman Problem
The Travelling Salesman Problem The travelling salesman problem cannot be solved directly without vast amounts of processing power, since every possible Hamiltonian cycle would need to be measured. For
More informationMA 111 Review for Exam 3
MA 111 Review for Exam 3 Exam 3 (given in class on Tuesday, March 27, 2012) will cover Chapter 5. You should: know what a graph is and how to use graphs to model geographic relationships. know how to describe
More informationA region is each individual area or separate piece of the plane that is divided up by the network.
Math 135 Networks and graphs Key terms Vertex (Vertices) ach point of a graph dge n edge is a segment that connects two vertices. Region region is each individual area or separate piece of the plane that
More informationMath for Liberal Arts MAT 110: Chapter 13 Notes
Math for Liberal Arts MAT 110: Chapter 13 Notes Graph Theory David J. Gisch Networks and Euler Circuits Network Representation Network: A collection of points or objects that are interconnected in some
More informationIntermediate Math Circles Wednesday, February 22, 2017 Graph Theory III
1 Eulerian Graphs Intermediate Math Circles Wednesday, February 22, 2017 Graph Theory III Let s begin this section with a problem that you may remember from lecture 1. Consider the layout of land and water
More informationDefinition: A complete graph is a graph with N vertices and an edge between every two vertices.
Complete Graphs Let N be a positive integer. Definition: A complete graph is a graph with N vertices and an edge between every two vertices. There are no loops. Every two vertices share exactly one edge.
More informationa) Graph 2 and Graph 3 b) Graph 2 and Graph 4 c) Graph 1 and Graph 4 d) Graph 1 and Graph 3 e) Graph 3 and Graph 4 f) None of the above
Mathematics 105: Math as a Liberal Art. Final Exam. Name Instructor: Ramin Naimi Spring 2008 Close book. Closed notes. No Calculators. NO CELL PHONES! Please turn off your cell phones and put them away.
More informationSection Graphs, Paths, and Circuits. Copyright 2013, 2010, 2007, Pearson, Education, Inc.
Section 14.1 Graphs, Paths, and Circuits What You Will Learn Graphs Paths Circuits Bridges 14.1-2 Definitions A graph is a finite set of points called vertices (singular form is vertex) connected by line
More informationBrief History. Graph Theory. What is a graph? Types of graphs Directed graph: a graph that has edges with specific directions
Brief History Graph Theory What is a graph? It all began in 1736 when Leonhard Euler gave a proof that not all seven bridges over the Pregolya River could all be walked over once and end up where you started.
More informationModule 2: NETWORKS AND DECISION MATHEMATICS
Further Mathematics 2017 Module 2: NETWORKS AND DECISION MATHEMATICS Chapter 9 Undirected Graphs and Networks Key knowledge the conventions, terminology, properties and types of graphs; edge, face, loop,
More informationGraph Theory. Defining a Graph
Graph Theory This topic is one of the most applicable to real-life applications because all networks (computer, transportation, communication, organizational, etc.) can be represented with a graph. For
More informationSarah Will Math 490 December 2, 2009
Sarah Will Math 490 December 2, 2009 Euler Circuits INTRODUCTION Euler wrote the first paper on graph theory. It was a study and proof that it was impossible to cross the seven bridges of Königsberg once
More informationFurther Mathematics 2016 Module 2: NETWORKS AND DECISION MATHEMATICS Chapter 9 Undirected Graphs and Networks
Further Mathematics 2016 Module 2: NETWORKS AND DECISION MATHEMATICS Chapter 9 Undirected Graphs and Networks Key knowledge the conventions, terminology, properties and types of graphs; edge, face, loop,
More informationSection Graphs, Paths, and Circuits. Copyright 2013, 2010, 2007, Pearson, Education, Inc.
Section 14.1 Graphs, Paths, and Circuits INB Table of Contents Date Topic Page # January 27, 2014 Test #1 14 January 27, 2014 Test # 1 Corrections 15 January 27, 2014 Section 14.1 Examples 16 January 27,
More informationIntroduction to Engineering Systems, ESD.00. Networks. Lecturers: Professor Joseph Sussman Dr. Afreen Siddiqi TA: Regina Clewlow
Introduction to Engineering Systems, ESD.00 Lecture 7 Networks Lecturers: Professor Joseph Sussman Dr. Afreen Siddiqi TA: Regina Clewlow The Bridges of Königsberg The town of Konigsberg in 18 th century
More informationFoundations of Discrete Mathematics
Foundations of Discrete Mathematics Chapter 12 By Dr. Dalia M. Gil, Ph.D. Trees Tree are useful in computer science, where they are employed in a wide range of algorithms. They are used to construct efficient
More informationUnit 7 Day 6. Section 5.2 Traveling Salesman Problem & Section 5.3 Finding the Shortest Route
Unit 7 Day 6 Section 5.2 Traveling Salesman Problem & Section 5.3 Finding the Shortest Route 1 Warm Up Day 7: 1. Draw a planar graph with 6 vertices. 2. Is a K 9,3 graph planar? Explain your reasoning.
More informationFundamental Properties of Graphs
Chapter three In many real-life situations we need to know how robust a graph that represents a certain network is, how edges or vertices can be removed without completely destroying the overall connectivity,
More informationIntroduction to Graph Theory
Introduction to Graph Theory Tandy Warnow January 20, 2017 Graphs Tandy Warnow Graphs A graph G = (V, E) is an object that contains a vertex set V and an edge set E. We also write V (G) to denote the vertex
More information14 More Graphs: Euler Tours and Hamilton Cycles
14 More Graphs: Euler Tours and Hamilton Cycles 14.1 Degrees The degree of a vertex is the number of edges coming out of it. The following is sometimes called the First Theorem of Graph Theory : Lemma
More informationNetwork Topology and Graph
Network Topology Network Topology and Graph EEE442 Computer Method in Power System Analysis Any lumped network obeys 3 basic laws KVL KCL linear algebraic constraints Ohm s law Anawach Sangswang Dept.
More informationLecture 1: An Introduction to Graph Theory
Introduction to Graph Theory Instructor: Padraic Bartlett Lecture 1: An Introduction to Graph Theory Week 1 Mathcamp 2011 Mathematicians like to use graphs to describe lots of different things. Groups,
More informationDiscrete Mathematics for CS Spring 2008 David Wagner Note 13. An Introduction to Graphs
CS 70 Discrete Mathematics for CS Spring 2008 David Wagner Note 13 An Introduction to Graphs Formulating a simple, precise specification of a computational problem is often a prerequisite to writing a
More informationGraph theory was invented by a mathematician named Euler in the 18th century. We will see some of the problems which motivated its study.
Graph Theory Graph theory was invented by a mathematician named Euler in the 18th century. We will see some of the problems which motivated its study. However, it wasn t studied too systematically until
More informationTheory of Computing. Lecture 10 MAS 714 Hartmut Klauck
Theory of Computing Lecture 10 MAS 714 Hartmut Klauck Seven Bridges of Königsberg Can one take a walk that crosses each bridge exactly once? Seven Bridges of Königsberg Model as a graph Is there a path
More informationWorksheet 28: Wednesday November 18 Euler and Topology
Worksheet 28: Wednesday November 18 Euler and Topology The Konigsberg Problem: The Foundation of Topology The Konigsberg Bridge Problem is a very famous problem solved by Euler in 1735. The process he
More information8.2 Paths and Cycles
8.2 Paths and Cycles Degree a b c d e f Definition The degree of a vertex is the number of edges incident to it. A loop contributes 2 to the degree of the vertex. (G) is the maximum degree of G. δ(g) is
More informationMulti-edges, loops, and two or more pieces are all allowed. Example 4 (Not Graphs). None of the following are graphs.
MA 111, Topic 4: Graph Theory Our last topic in this course is called Graph Theory. This is the mathematics of connections, associations, and relationships. Definition 1. A Graph is a set of points called
More informationGraph Theory. 26 March Graph Theory 26 March /29
Graph Theory 26 March 2012 Graph Theory 26 March 2012 1/29 Graph theory was invented by a mathematician named Euler in the 18th century. We will see some of the problems which motivated its study. However,
More informationHow can we lay cable at minimum cost to make every telephone reachable from every other? What is the fastest route between two given cities?
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
More information08. First and second degree equations
08. First and second degree equations GRAPH THEORY Based on Chris K. Caldwell work: http://primes.utm.edu/cgi-bin/caldwell/tutor/graph/index.html INTRODUCTION Consider the next problem: Old Königsberg
More information(Refer Slide Time: 01:00)
Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Lecture minus 26 Heuristics for TSP In this lecture, we continue our discussion
More informationGraphs and Algorithms
Graphs and Algorithms Graphs are a mathematical concept readily adapted into computer programming. Graphs are not just data structures, that is, they are not solutions to simple data storage problems.
More informationStreet-Routing Problems
Street-Routing Problems Lecture 26 Sections 5.1-5.2 Robb T. Koether Hampden-Sydney College Wed, Oct 25, 2017 Robb T. Koether (Hampden-Sydney College) Street-Routing Problems Wed, Oct 25, 2017 1 / 21 1
More informationPartha Sarathi Mandal
MA 515: Introduction to Algorithms & MA353 : Design and Analysis of Algorithms [3-0-0-6] Lecture 39 http://www.iitg.ernet.in/psm/indexing_ma353/y09/index.html Partha Sarathi Mandal psm@iitg.ernet.in Dept.
More informationNotebook Assignments
Notebook Assignments These six assignments are a notebook using techniques from class in the single concrete context of graph theory. This is supplemental to your usual assignments, and is designed for
More informationMaximum Flows of Minimum Cost
Maximum Flows of Minimum Cost Figure 8-24 Two possible maximum flows for the same network Data Structures and Algorithms in Java 1 Maximum Flows of Minimum Cost (continued) Figure 8-25 Finding a maximum
More informationGraph and Digraph Glossary
1 of 15 31.1.2004 14:45 Graph and Digraph Glossary A B C D E F G H I-J K L M N O P-Q R S T U V W-Z Acyclic Graph A graph is acyclic if it contains no cycles. Adjacency Matrix A 0-1 square matrix whose
More informationWorksheet for the Final Exam - Part I. Graphs
Worksheet for the Final Exam - Part I. Graphs Date and Time: May 10 2012 Thursday 11:50AM~1:50PM Location: Eng 120 Start with the Self-Test Exercises (pp.816) in Prichard. 1. Give the adjacency matrix
More informationNote that there are questions printed on both sides of each page!
Math 1001 Name: Fall 2007 Test 1 Student ID: 10/5/07 Time allowed: 50 minutes Section: 10:10 11:15 12:20 This exam includes 7 pages, including this one and a sheet for scratch work. There are a total of
More informationDigital Integrated CircuitDesign
Digital Integrated CircuitDesign Lecture 8 Design Rules Adib Abrishamifar EE Department IUST Contents Design Rules CMOS Process Layers Intra-Layer Design Rules Via s and Contacts Select Layer Example Cell
More informationEulerian Tours and Fleury s Algorithm
Eulerian Tours and Fleury s Algorithm CSE21 Winter 2017, Day 12 (B00), Day 8 (A00) February 8, 2017 http://vlsicad.ucsd.edu/courses/cse21-w17 Vocabulary Path (or walk):describes a route from one vertex
More informationDiscrete Mathematics and Probability Theory Fall 2009 Satish Rao,David Tse Note 8
CS 70 Discrete Mathematics and Probability Theory Fall 2009 Satish Rao,David Tse Note 8 An Introduction to Graphs Formulating a simple, precise specification of a computational problem is often a prerequisite
More informationSection Hamilton Paths, and Hamilton Circuits. Copyright 2013, 2010, 2007, Pearson, Education, Inc.
Section 14.3 Hamilton Paths, and Hamilton Circuits INB Table of Contents Date Topic Page # September 11, 2013 Section 14.3 Examples/Handout 18 September 11, 2013 Section 14.3 Notes 19 2.3-2 What You Will
More informationTravel 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?
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? Find the degrees of the vertices of the graphs above! Make
More information1. trees does the network shown in figure (a) have? (b) How many different spanning. trees does the network shown in figure (b) have?
2/28/18, 8:24 M 1. (a) ow many different spanning trees does the network shown in figure (a) have? (b) ow many different spanning trees does the network shown in figure (b) have? L K M P N O L K M P N
More informationMATH 101: Introduction to Contemporary Mathematics
MATH 101: Introduction to Contemporary Mathematics Sections 201-206 Instructor: H. R. Hughes Course web page: http://www.math.siu.edu/hughes/math101.htm Summer 2013 Lecture sessions meet: MTWF 12:10-1:10
More informationGrade 7/8 Math Circles Graph Theory - Solutions October 13/14, 2015
Faculty of Mathematics Waterloo, Ontario N2L 3G1 Centre for Education in Mathematics and Computing Grade 7/8 Math Circles Graph Theory - Solutions October 13/14, 2015 The Seven Bridges of Königsberg In
More informationEECS 203 Lecture 20. More Graphs
EECS 203 Lecture 20 More Graphs Admin stuffs Last homework due today Office hour changes starting Friday (also in Piazza) Friday 6/17: 2-5 Mark in his office. Sunday 6/19: 2-5 Jasmine in the UGLI. Monday
More information6.2. Paths and Cycles
6.2. PATHS AND CYCLES 85 6.2. Paths and Cycles 6.2.1. Paths. A path from v 0 to v n of length n is a sequence of n+1 vertices (v k ) and n edges (e k ) of the form v 0, e 1, v 1, e 2, v 2,..., e n, v n,
More informationNotes slides from before lecture. CSE 21, Winter 2017, Section A00. Lecture 9 Notes. Class URL:
Notes slides from before lecture CSE 21, Winter 2017, Section A00 Lecture 9 Notes Class URL: http://vlsicad.ucsd.edu/courses/cse21-w17/ Notes slides from before lecture Notes February 8 (1) HW4 is due
More informationNP Completeness. Andreas Klappenecker [partially based on slides by Jennifer Welch]
NP Completeness Andreas Klappenecker [partially based on slides by Jennifer Welch] Dealing with NP-Complete Problems Dealing with NP-Completeness Suppose the problem you need to solve is NP-complete. What
More informationMath 443/543 Graph Theory Notes 2: Transportation problems
Math 443/543 Graph Theory Notes 2: Transportation problems David Glickenstein September 15, 2014 1 Readings This is based on Chartrand Chapter 3 and Bondy-Murty 18.1, 18.3 (part on Closure of a Graph).
More informationGRAPHS, GRAPH MODELS, GRAPH TERMINOLOGY, AND SPECIAL TYPES OF GRAPHS
GRAPHS, GRAPH MODELS, GRAPH TERMINOLOGY, AND SPECIAL TYPES OF GRAPHS DR. ANDREW SCHWARTZ, PH.D. 10.1 Graphs and Graph Models (1) A graph G = (V, E) consists of V, a nonempty set of vertices (or nodes)
More informationNotes for Recitation 9
6.042/18.062J Mathematics for Computer Science October 8, 2010 Tom Leighton and Marten van Dijk Notes for Recitation 9 1 Traveling Salesperson Problem Now we re going to talk about a famous optimization
More informationBasic Combinatorics. Math 40210, Section 01 Fall Homework 4 Solutions
Basic Combinatorics Math 40210, Section 01 Fall 2012 Homework 4 Solutions 1.4.2 2: One possible implementation: Start with abcgfjiea From edge cd build, using previously unmarked edges: cdhlponminjkghc
More informationOptimal tour along pubs in the UK
1 From Facebook Optimal tour along 24727 pubs in the UK Road distance (by google maps) see also http://www.math.uwaterloo.ca/tsp/pubs/index.html (part of TSP homepage http://www.math.uwaterloo.ca/tsp/
More informationSection Hamilton Paths, and Hamilton Circuits. Copyright 2013, 2010, 2007, Pearson, Education, Inc.
Section 14.3 Hamilton Paths, and Hamilton Circuits What You Will Learn Hamilton Paths Hamilton Circuits Complete Graphs Traveling Salesman Problems 14.3-2 Hamilton Paths A Hamilton path is a path that
More information11.2 Eulerian Trails
11.2 Eulerian Trails K.. onigsberg, 1736 Graph Representation A B C D Do You Remember... Definition A u v trail is a u v walk where no edge is repeated. Do You Remember... Definition A u v trail is a u
More informationLet 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.
Graph Adjacent Endpoint of an edge Incident Neighbors of a vertex Degree of a vertex Theorem Graph relation Order of a graph Size of a graph Maximum and minimum degree Let G = (V, E) be a graph. If u,
More informationMAS 341: GRAPH THEORY 2016 EXAM SOLUTIONS
MS 41: PH THEOY 2016 EXM SOLUTIONS 1. Question 1 1.1. Explain why any alkane C n H 2n+2 is a tree. How many isomers does C 6 H 14 have? Draw the structure of the carbon atoms in each isomer. marks; marks
More informationGraph Theory. 1 Introduction to Graphs. Martin Stynes Department of Mathematics, UCC January 26, 2011
Graph Theory Martin Stynes Department of Mathematics, UCC email: m.stynes@ucc.ie January 26, 2011 1 Introduction to Graphs 1 A graph G = (V, E) is a non-empty set of nodes or vertices V and a (possibly
More information