SAMPLE. MODULE 5 Undirected graphs

Size: px
Start display at page:

Download "SAMPLE. MODULE 5 Undirected graphs"

Transcription

1 H P T R MOUL Undirected graphs How do we represent a graph by a diagram and by a matrix representation? How do we define each of the following: graph subgraph vertex edge (node) loop isolated vertex bipartite graph degenerate graph connected graph circuit tree spanning tree complete graph simple graph uler path uler circuit Hamilton path Hamilton circuit adjacency matrix planar graph degree of a vertex How do we apply uler s formula to planar graphs? How do we determine the shortest path between two given vertices on a graph? How do we find the minimum spanning tree of a graph? How do we apply Prim s algorithm to find the minimum spanning trees of a connected graph? How do we apply the Hungarian algorithm?.1 Introduction and definitions hockey team belongs to a competition in which there are six teams:,,,, and. few weeks into the season, some of the teams have played each other: has played, and has played, and has played, and has played and has played and has played, and SMPL igure.1 ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown 1 and McMenamin

2 hapter Undirected graphs 1 This situation can be represented graphically. The teams can be represented by points and two such points are joined by a line whenever the teams they represent have played each other. figure such as igure.1 is called a graph. The points,,,, and are called the vertices or nodes of the graph and the lines connecting the vertices are called edges. graph consists of a set of elements called vertices and a set of elements called edges. ach edge joins two vertices. The vertices and of a graph are adjacent vertices if they are joined by an edge. The graph can be represented by a table or a matrix. 1 is used to denote that there is one edge connecting the two vertices and a 0 indicates that there is no edge. The matrix shown below is called an adjacency matrix Table for figure.1 Matrix for figure.1 The adjacency matrix of the graph is an n n matrix in which for example the entry in row and column is the number of edges joining vertices and. nother graph, igure., is shown opposite. Note that three edges leave from. The graph is said to have multiple edges as there are two edges joining and. has one edge, which links to itself. This edge is called a loop. The table and matrix appear as shown below. Note: loop is recorded as one edge in an adjacency matrix igure. SMPL ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin

3 1 ssential urther Mathematics Module Networks and decision mathematics xample 1 Representing a graph by a table or matrix onstruct the table and matrix corresponding to the graph shown, which represents three houses,, and, connected to three utility outlets, gas (G), water (W) and electricity (). Solution G W G W G W igure. G W G W igure. is called a bipartite graph as the set of vertices is partitioned into two disjoint sets (,, ) and (gas, water, electricity) and each edge has a vertex in each set. bipartite graph is a graph whose set of vertices can be split into two subsets X and Y in such a way that each edge of the graph joins a vertex in X and a vertex in Y. t each non-isolated vertex,,inagraph there will be some edges joined to (incident with vertex ). The degree of vertex, written as deg() isthe number of edges incident with it. origure.: deg = deg = deg = Note: deg = Loops add two to the degree of avertex. SMPL simple graph is a graph with no loops or multiple edges. igure. is a simple graph. or a simple graph, the sum of the degrees of the graph is equal to twice the number of edges of the graph. the sum of the degrees of a simple graph is even. igure. ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin igure.

4 hapter Undirected graphs 17 origure.: Sum = deg() + deg() + deg() + deg() + deg() = = 1 orasimple graph, the entries for the corresponding table are either 1s or 0s. Note that the sum of the 1s = 1 = the number of edges. If is an isolated vertex (i.e. there are no edges incident to ) then deg() = 0. See igure.. graph is said to be degenerate if all its vertices are isolated. See igure igure. igure.7 Many applications of graphs involve getting from one vertex to another. In order to discuss this, the idea of a path is introduced. path in the graph in igure.8 from to could be, G, G,,,, G, G (shown in red). Not all G the edges or vertices in a path are required to be different. path can be thought of as a sequence of edges. igure.8 graph is said to be connected if there is a path between each pair of vertices. SMPL The graph in igure.9 is connected. The graph in igure. is not connected. circuit is a sequence of edges linking successive vertices that starts and finishes at the same vertex. In igure.9, one circuit is. nother circuit is. igure.9 ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin

5 18 ssential urther Mathematics Module Networks and decision mathematics subgraph of a graph consists of selected edges and vertices of the graph with the same links as the original graph and with the selected vertices including all the endpoints of the selected edges. igures.10a and.10b show two subgraphs of igure.9. igure.10a igure.10b igure.10c The graph shown in red in igure.10c is not a subgraph as it has an edge that does not exist in the original graph. xercise 1 This section of a road map can be considered as a graph, with towns as vertices and the roads connecting the towns as edges. a Give the degree of: i Town ii Town iii Town H b onstruct the table (matrix) for this graph. c Is this graph simple? Why? Town or each of the following graphs give the associated table (matrix). a b c e Which of the graphs in Question are: a simple? b connected? f g Town h d Town Town H Town SMPL ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin

6 hapter Undirected graphs 19 or each of the following, draw the graph for the given table (matrix). a b d e a raw three connected subgraphs, with four vertices, of the graph shown. (Note that there are many such subgraphs.) b What is the degree of vertex? c Give the sum of the degrees of the vertices of the graph. d Give a circuit from passing through vertices (including ).. Planar graphs and uler s formula c f Leonard uler (pronounced oiler ) was one of the most prolific mathematicians of all time. He contributed to mathematics in an amazing array of topics. His proof of the formula named after him is considered to be the beginning of the branch of mathematics called topology. The application of uler s formula is developed in this section. lectrical circuits can be represented by a graph, as in igure.11. SMPL igure.11 or certain electrical circuits it is advantageous to not have connections and crossing. igure.11 can be redrawn as shown in igure.1 so that these edges do not cross. igure.1 ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin

7 0 ssential urther Mathematics Module Networks and decision mathematics graph that can be drawn in such a way that no two edges meet (or have common points), except at the vertices where they are both incident, is called a planar graph. Not all graphs are planar. igure.1 cannot be redrawn so that the edges have no intersection points except at the vertices. It is true that all simple graphs with four or fewer vertices are planar. igure.1 onsider a connected planar graph shown in igure.1. This graph has vertices and 8 edges. f onnected planar graphs also have faces or regions. f f 1 f igure.1 has four faces: f 1, f, f and f,where f is an infinite face. There is a relationship between the number of vertices, edges and faces in a connected planar graph. igure.1 Let v denote the number of vertices. Let e denote the number of edges. Let f denote the number of faces. Note that in igure.1: v e + f = 8 + = This result holds for any connected planar graph and is known as uler s formula. xample uler s formula states: v e + f = SMPL Verifying uler s formula Verify uler s formula for the graph shown. f 1 f f Solution 1 The vertices are,,,,. There are vertices so v =. v = There are faces as shown on the diagram. f = on t forget the infinite face f 1 :So f =. The edges are,,,,, and. e = 7 There are 7 of them, so e = 7. v e + f = 7 + = ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin f

8 hapter Undirected graphs 1 xample Verifying uler s formula tetrahedron may be represented graphically by a connected planar graph. Verify uler s formula for the graph shown. Solution v =, f =, e = v e + f = + = xample Using uler s formula connected planar graph has vertices and 8 edges. How many faces does the graph have? raw a connected planar graph with vertices and 8 edges. Solution uler's formula: v e + f = v = ande= f = + f = f = xercise 1 or each of the following graphs: i state the values of v, e and f f f 1 f f ii verify uler s formula. a b c d Show that the following graphs are planar by redrawing them in a suitable form: a b c SMPL f ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin

9 ssential urther Mathematics Module Networks and decision mathematics oraplanar connected graph, find: a f, ifv = 8 and e = 10 b v, ife = 1 and f = c f, ifv = and e = 1 d e, ifv = 10 and f = 11 a Represent this cube as a planar graph. b Verify uler s formula for this graph.. omplete graphs complete graph is a graph with edges connecting all pairs of vertices. The complete graph with n vertices is denoted by K n. K K K Note: K and K are planar while K is not. n(n 1) The complete graph with n vertices, K n, has edges. orexample: ( 1) K has = edges ( 1) K has = 10 edges complete graph could be used to represent a round robin competition (a competition in which each side plays every other side once). orexample, for five teams,,,, and are shown. ach edge represents a match that has been played. The adjacency matrix has 1 s in all positions except the main diagonal. This graph could be drawn for six people at a party. ach edge indicates that a conversation took place. The adjacency matrix has 1s in all positions except the main diagonal SMPL ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin

10 hapter Undirected graphs xercise 1 competition consists of six teams. In the competition each team plays every other team. a How many matches are there? b Represent the competition with the complete graph K. c Represent the competition with an adjacency matrix. a How many edges does K 7 have? b raw K 7. How many handshakes could take place among 8 people. Represent this with a graph.. uler and Hamilton paths uler paths In a paper published in 17, Leonard uler solved the problem that had intrigued the citizens of Königsberg, which lay near the mouth of the Pregel River. The river divided the city into four parts, as shown in igure.1. There were seven bridges. Pregel River igure.1 The problem was posed as follows: ould we walk over each of the seven bridges once only and return to our starting point? uler represented this situation as shown in igure.1. uler showed that this graph cannot be traversed completely in a single cyclical trail. That is, no matter which vertex is chosen as the starting point it is impossible to cover the graph and come back to the chosen starting vertex while using each edge only once. igure.1 SMPL We recall that for a graph, a path is a sequence of edges. In igure.17, one path from to is e 1, e, e (red). nother path from to is e (green). e 1 e e e e igure.17 ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin

11 ssential urther Mathematics Module Networks and decision mathematics Recalling the definition of circuit in section.1: a circuit is a path that begins and finishes at a particular vertex. Inigure.18, one circuit is e 1, e, e, e, e, e (red). This circuit begins and finishes at. path that includes every edge just once is called an uler path. n uler circuit is an uler path that starts and finishes at the same vertex. Identifying uler paths and circuits e e 1 e e e e igure.18 useful way of identifying uler circuits is to look for a connected graph where all vertices have an even degree. The converse result also holds: if a graph has an uler circuit, then it is connected and each vertex has an even degree. Using this result, it can be seen that the graph for the Königsberg bridge problem does not contain an uler circuit as vertex has an odd degree. connected graph has an uler path starting at vertex and finishing at vertex if and are the only odd vertices of the graph. xample Identifying an uler circuit a xplain why the graph shown opposite has an uler circuit. b List an uler circuit for this graph. Solution a The graph has only even vertices. b nuler circuit is. xample Identifying an uler path a xplain why the graph opposite has an uler path between and. b List one possible uler path (there are several) between and. SMPL Solution a and are odd vertices. The remaining vertices are even. b. Hamilton paths Hamilton path is a path through a graph that passes through each vertex exactly once. Hamilton circuit is a Hamilton path which starts and finishes at the same vertex. ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin

12 hapter Undirected graphs It is easy to remember the difference between Hamilton paths (circuits) and uler paths (circuits). Hamilton graphs are defined in terms of vertices and uler graphs are defined in terms of edges. Unfortunately, unlike the condition for an uler circuit, there is no nice condition to identify when a graph is a Hamilton circuit. It is just a matter of trial and error. xample 7 Identifying a Hamilton circuit List a Hamilton circuit for the graph shown. Solution H G Hamilton circuit is G H. Not every graph that has a Hamilton circuit has an uler circuit, and also not every graph that has an uler circuit has a Hamilton circuit. The graph in xample 7 has a Hamilton circuit but not an uler circuit. The graph in igure.19 has an uler circuit but not a Hamilton circuit. xercise igure.19 1 a Which of the following graphs has: i an uler circuit? ii an uler path but not an uler circuit? b Name the uler circuits or paths found. a b c G H SMPL d e ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin

13 ssential urther Mathematics Module Networks and decision mathematics List a Hamilton circuit for each of the following. a b d G H G I e List a Hamilton path for this graph starting at and finishing at G.. Weighted graphs weighted graph is one where a number is associated with each edge. These numbers are called weights. xamples of weighted graphs arise when the vertices of a graph are towns on a map and the edges are the roads between the towns. The number assigned to each edge is the distance between the towns represented by the vertices of that edge. igure.0 is a weighted graph representing towns and the roads connecting them. Snugvill 7 1 ppleville 0 udstop Heavytown learview SMPL Melville igure.0 11 The numbers in a weighted graph may also represent times, fuel consumption, cost, and so on. The number attached to an edge is called the weight of that edge. c G H ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin

14 Trees tree is a connected graph that contains no circuits. igure.1 is a tree. tree has no multiple edges. The simplest tree is a single vertex. tree with n vertices has n 1 edges. Minimum spanning trees cable is needed to connect the communication systems of the four towns in figure.. It is convenient to lay the cable alongside existing roads but it is not necessary to lay the cable next to all roads. subgraph connecting all four towns can be chosen. It is sensible for such a subgraph to be a tree (in red in figure.) shown in figure.. hapter Undirected graphs 7 igure.1 igure. igure. spanning tree is a subgraph that contains all the vertices of the original graph and is a tree. minimum spanning tree for a weighted graph is a spanning tree for which the sum of the weights of the edges is as small as possible. igure. is a minimum spanning tree for figure.. SMPL Prim s algorithm Prim s algorithm is a set of rules to determine a minimum spanning tree for a graph. xamples of where Prim s algorithm applies include such problems as the following or a certain number of cities, a railroad network is to be developed and the cost of connecting any two given cities is known. ind how all the cities should be connected by rail to minimise total cost. Similar problems involve utility connections, e.g. water, gas, electricity. G ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin

15 8 ssential urther Mathematics Module Networks and decision mathematics Prim s algorithm: 1 hoose a vertex and connect it to a second vertex chosen so that the weight of the edge is as small as possible. In each step thereafter, take the edge with the lowest weight, producing a tree with the edges already selected. (If two edges have the same weight the choice can be arbitrary.) Repeat until all the vertices are connected and then stop. xample 8 pplying Prim s algorithm pply Prim s algorithm to obtain a minimum spanning tree for the graph shown. Write down its weight, and compare it to the weight of the original graph. Solution Step 1 Step Step Step The total weight is 17. The total weight of the original graph is 0. xercise 8 Step SMPL 1 ind a minimum spanning tree for each of the following graphs and give the total weight. a b G 17 7 ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin

16 c y trial and error find the shortest path from to. hapter Undirected graphs 9 d H G ind the shortest Hamilton path for the following graph, starting at. 7 SMPL G 8 ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin

17 0 ssential urther Mathematics Module Networks and decision mathematics Review Key ideas and chapter summary Graph Vertices (nodes) and edges djacent vertices djacency matrix Multiple edges and loops ipartite graph egree of a vertex Simple graph egenerate graph Path graph consists of a set of elements called vertices and a set of elements called edges. ach edge joins two vertices figure such as the one drawn opposite is called agraph. The points,,,, and are called the vertices or nodes of the graph and the lines connecting the vertices are called edges of the graph. The vertices and of a graph are adjacent vertices if they are joined by an edge The adjacency matrix of the graph is an n n matrix in which for example the entry in row and column is the number of edges joining vertices and.or the graph above the adjacency matrix is as shown The graph is said to have multiple edges as there are two edges joining and. has one edge, which links to itself. This edge is called a loop. bipartite graph is a graph whose set of vertices can be split into two subsets X and Y in such a way that each edge of the graph joins a vertex in X and a vertex in Y. t each non-isolated vertex,, inagraph there will be some edges joined to (adjacent with vertex ). The degree of vertex, written as deg()isthe number of edges incident with it. Loops are counted twice. SMPL onnected graph simple graph is a graph with no loops or multiple edges. graph is said to be degenerate if all its vertices are isolated. path can be thought of as a sequence of edges of the form, G, G,,,, G, G G graph is said to be connected if there is a path between each pair of vertices. ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin

18 hapter Undirected graphs 1 ircuit Subgraph Planar graph uler s formula omplete graph uler path uler circuit Hamilton path Hamilton circuit Weighted graphs Tree Spanning tree Minimum spanning tree Prim s algorithm circuit is a sequence of edges linking successive vertices that starts and finishes at the same vertex. subgraph of a graph consists of selected edges and vertices of the graph with the same links as the original graph and with the selected vertices including all the endpoints of the selected edges. graph that can be drawn in such a way that no two edges meet (or have common points), except at the vertices where they are both incident, is called a planar graph. uler s formula states that for any connected planar graph, v e + f =, where v = the number of vertices, e = the number of edges, and f = the number of faces. complete graph is a graph with edges connecting all pairs of vertices. path that includes every edge just once is called an uler path. n uler circuit is an uler path that starts and finishes at the same vertex. Hamilton path is a path through a graph that passes through each vertex exactly once. Hamilton circuit is a Hamilton path that starts and finishes at the same vertex. weighted graph is a graph where a number is associated with each edge. These numbers are called weights. tree is a connected graph that contains no circuits. tree has no multiple edges. The simplest tree is a single vertex. tree with n vertices has n 1 edges. spanning tree is a subgraph that contains all the vertices of the original graph and is a tree. minimum spanning tree for a weighted graph is a spanning tree for which the sum of the weights of the edges is as small as possible. Prim s algorithm is a set of rules to determine a minimum spanning tree for a graph. SMPL Review ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin

19 ssential urther Mathematics Module Networks and decision mathematics Review Skills check Having completed this chapter you should be able to: construct an adjacency matrix from a graph and draw the graph from an adjacency matrix determine whether a graph is simple, connected, planar or complete determine whether a graph has an uler circuit or path by trial and error, determine whether a graph has a Hamilton path or circuit find a minimum spanning tree of a graph Multiple-choice questions 1 The minimum number of edges for a graph with seven vertices to be connected is: 7 1 Which of the following graphs is a spanning tree for the 1 network shown? SMPL or the graph shown, which vertex has degree? Q S Q T S R U P U T R connected graph on 1 vertices divides the plane into 1 regions. The number of edges connecting the vertices in this graph will be: ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin

20 hapter Undirected graphs Which of the following graphs does not have an uler circuit? connected planar graph divides the plane into a number of regions. If the graph has eight vertices and these are linked by 1 edges, then the number of regions is: or the graph shown, which of the following paths is a Hamilton circuit? 8 orwhich one of the following graphs is the sum of the degrees of the vertices equal to 1? 9 The sum of the degrees of the vertices on the graph shown here is: 0 1 SMPL 10 or the graph shown, which additional arc could be added to the network so that the graph formed would contain an uler path? ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin Review

21 ssential urther Mathematics Module Networks and decision mathematics Review 11 or the graph shown here, the minimum length spanning tree has length: Of the following graphs, which one has both uler and Hamilton circuits? 1 Which one of the following graphs has an uler circuit? 7 SMPL 1 Which one of the following is a spanning tree for the graph shown here? ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin

22 hapter Undirected graphs Which one of the following graphs has an uler circuit? 1 1 Which one of the following graphs provides a counter-example to the statement: or a graph with seven vertices, if the degree of each vertex is greater than then the graph contains a Hamilton circuit? 17 orwhich one of the following graphs is the sum of the degrees of the vertices equal to 0? SMPL Review ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin

23 ssential urther Mathematics Module Networks and decision mathematics Review 18 Which one of the following paths is a Hamilton circuit for the graph shown here? PQRSTP PQRSTUVP PQUVRSTP PQRSTUVUTP PQRSTUVRVQUTP 19 our towns,,, and are linked by roads as shown. Which of the following graphs could be used to represent the network of roads? ach edge represents a route between two towns xtended-response questions 1 This question is about the vertices of a graph and the degree of a vertex. In Graph below, there are four vertices (the dots). Graph Graph Graph SMPL 1 a omplete the table for Graph. egree b Study Graphs, and and then consider the statement: Number of vertices In any graph the total number of vertices of odd degree is an even number. Is this statement true for Graphs, and? How many vertices of odd degree does each graph have? P U Q T V S R ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin

24 hapter Undirected graphs 7 c To Graph an extra edge is added joining two vertices of even degree. oes the above statement still hold true for this graph? xplain the reasons for your answer. d rom Graph an edge joining an odd degree vertex to an even degree vertex is removed. oes the above statement still hold true for this graph? xplain the reasons for your answer. onsider the graph shown here. a xplain why this is a planar graph. b or this graph, write down: i the number of vertices ii the number of edges iii the number of faces Note: the region outside the graph is counted as a face. c raw a spanning tree for this graph. d or the spanning tree drawn in c, write down i the number of vertices ii the number of edges iii the number of faces Let H denote a planar graph with n vertices. a If T denotes a spanning tree of H, specify: i the number of vertices in T ii the number of edges in T iii the number of faces in T b Hence verify that, for the graph T: number of vertices number of edges + number of faces =. The map shows six campsites,,,,, 9 and which are joined by paths. The numbers by the paths show lengths in kilometres of lake sections of the paths. 1 a i omplete the graph opposite which shows the shortest direct distances between 9 campsites. (The campsites are represented by vertices and paths are represented by 8 edges.) 7 ii telephone cable is to be laid to enable each 8 campsite to phone each other campsite. or environmental reasons, it is necessary to lay the cable along the existing paths. What is the minimum length of cable necessary to complete this task? (cont d.) SMPL Review ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin

25 8 ssential urther Mathematics Module Networks and decision mathematics Review iii ill in the missing entries for the matrix shown for the completed graph formed above b walker follows the route. i How far does this person walk? ii Why is the route not a Hamilton circuit? iii Write down a route that a walker could follow which is a Hamilton circuit. iv ind the distance walked in following this Hamilton circuit. c It is impossible to start at and return to by going along each path exactly once. n extra path joining two campsites can be constructed so that this is possible. Which two campsites need to be joined by a path to make this possible? SMPL ambridge University Press Uncorrected Sample pages Jones, vans, Lipson TI-Nspire & asio lasspad material in collaboration with rown and McMenamin

SAMPLE. Networks. A view of Königsberg as it was in Euler s day.

SAMPLE. Networks. A view of Königsberg as it was in Euler s day. ack to Menu >>> How are graphs used to represent networks? H P T R 10 Networks How do we analyse the information contained in graphs? How do we use graphs to represent everyday situations? 10.1 Graph theory

More information

Undirected graphs and networks

Undirected graphs and networks Gen. Maths h. 1(1) Page 1 Thursday, ecember 0, 1999 1:10 PM Undirected graphs and networks 1 V co covverage rea of study Units 1 & Geometry In this chapter 1 Vertices and edges 1 Planar graphs 1 ulerian

More information

Varying Applications (examples)

Varying Applications (examples) Graph Theory Varying Applications (examples) Computer networks Distinguish between two chemical compounds with the same molecular formula but different structures Solve shortest path problems between cities

More information

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

CHAPTER 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 information

Module 2: NETWORKS AND DECISION MATHEMATICS

Module 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 information

Further 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 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 information

Fundamental Properties of Graphs

Fundamental 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 information

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

CHAPTER 10 GRAPHS AND TREES. Copyright Cengage Learning. All rights reserved. CHAPTER 10 GRAPHS AND TREES Copyright Cengage Learning. All rights reserved. SECTION 10.1 Graphs: Definitions and Basic Properties Copyright Cengage Learning. All rights reserved. Graphs: Definitions and

More information

Euler and Hamilton circuits. Euler paths and circuits

Euler and Hamilton circuits. Euler paths and circuits 1 7 16 2013. uler and Hamilton circuits uler paths and circuits o The Seven ridges of Konigsberg In the early 1700 s, Konigsberg was the capital of ast Prussia. Konigsberg was later renamed Kaliningrad

More information

Introduction III. Graphs. Motivations I. Introduction IV

Introduction III. Graphs. Motivations I. Introduction IV Introduction I Graphs Computer Science & Engineering 235: Discrete Mathematics Christopher M. Bourke cbourke@cse.unl.edu Graph theory was introduced in the 18th century by Leonhard Euler via the Königsberg

More information

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

SCHOOL 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 information

Sec 2. Euler Circuits, cont.

Sec 2. Euler Circuits, cont. Sec 2. uler ircuits, cont. uler ircuits traverse each edge of a connected graph exactly once. Recall that all vertices must have even degree in order for an uler ircuit to exist. leury s lgorithm is a

More information

CPCS Discrete Structures 1

CPCS Discrete Structures 1 Let us switch to a new topic: Graphs CPCS 222 - Discrete Structures 1 Introduction to Graphs Definition: A simple graph G = (V, E) consists of V, a nonempty set of vertices, and E, a set of unordered pairs

More information

6.2. Paths and Cycles

6.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 information

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

GRAPHS, 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 information

Math 100 Homework 4 B A C E

Math 100 Homework 4 B A C E Math 100 Homework 4 Part 1 1. nswer the following questions for this graph. (a) Write the vertex set. (b) Write the edge set. (c) Is this graph connected? (d) List the degree of each vertex. (e) oes the

More information

Basics of Graph Theory

Basics of Graph Theory Basics of Graph Theory 1 Basic notions A simple graph G = (V, E) consists of V, a nonempty set of vertices, and E, a set of unordered pairs of distinct elements of V called edges. Simple graphs have their

More information

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

Graph 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

Undirected Network Summary

Undirected 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 information

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.

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. 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. The edge e connects u and v. The vertices u and v are

More information

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

Grade 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 information

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

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)) 10 Graphs 10.1 Graphs and Graph Models 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)) 2. an edge is present, say e = {u,

More information

A region is each individual area or separate piece of the plane that is divided up by the network.

A 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 information

Chapter 11: Graphs and Trees. March 23, 2008

Chapter 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 information

CS 311 Discrete Math for Computer Science Dr. William C. Bulko. Graphs

CS 311 Discrete Math for Computer Science Dr. William C. Bulko. Graphs CS 311 Discrete Math for Computer Science Dr. William C. Bulko Graphs 2014 Definitions Definition: A graph G = (V,E) consists of a nonempty set V of vertices (or nodes) and a set E of edges. Each edge

More information

An Interactive Introduction to Graph Theory

An Interactive Introduction to Graph Theory An Interactive Introduction to Graph Theory An Interactive Introduction to Graph Theory Chris K. Caldwell 1995 This the first of a series of interactive tutorials introducing the basic concepts of graph

More information

Section 3.4 Basic Results of Graph Theory

Section 3.4 Basic Results of Graph Theory 1 Basic Results of Graph Theory Section 3.4 Basic Results of Graph Theory Purpose of Section: To formally introduce the symmetric relation of a (undirected) graph. We introduce such topics as Euler Tours,

More information

Elements of Graph Theory

Elements of Graph Theory Elements of Graph Theory Quick review of Chapters 9.1 9.5, 9.7 (studied in Mt1348/2008) = all basic concepts must be known New topics we will mostly skip shortest paths (Chapter 9.6), as that was covered

More information

An Introduction to Graph Theory

An Introduction to Graph Theory An Introduction to Graph Theory CIS008-2 Logic and Foundations of Mathematics David Goodwin david.goodwin@perisic.com 12:00, Friday 17 th February 2012 Outline 1 Graphs 2 Paths and cycles 3 Graphs and

More information

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

Graphs (MTAT , 6 EAP) Lectures: Mon 14-16, hall 404 Exercises: Wed 14-16, hall 402 Graphs (MTAT.05.080, 6 EAP) Lectures: Mon 14-16, hall 404 Exercises: Wed 14-16, hall 402 homepage: http://courses.cs.ut.ee/2012/graafid (contains slides) For grade: Homework + three tests (during or after

More information

WUCT121. Discrete Mathematics. Graphs

WUCT121. 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 information

Majority and Friendship Paradoxes

Majority and Friendship Paradoxes Majority and Friendship Paradoxes Majority Paradox Example: Small town is considering a bond initiative in an upcoming election. Some residents are in favor, some are against. Consider a poll asking the

More information

Graph and Digraph Glossary

Graph 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 information

Graphs. Reading Assignment. Mandatory: Chapter 3 Sections 3.1 & 3.2. Peeking into Computer Science. Jalal Kawash 2010

Graphs. Reading Assignment. Mandatory: Chapter 3 Sections 3.1 & 3.2. Peeking into Computer Science. Jalal Kawash 2010 Graphs Mandatory: hapter 3 Sections 3.1 & 3.2 Reading ssignment 2 Graphs bstraction of ata 3 t the end of this section, you will be able to: 1.efine directed and undirected graphs 2.Use graphs to model

More information

TWO CONTRIBUTIONS OF EULER

TWO CONTRIBUTIONS OF EULER TWO CONTRIBUTIONS OF EULER SIEMION FAJTLOWICZ. MATH 4315 Eulerian Tours. Although some mathematical problems which now can be thought of as graph-theoretical, go back to the times of Euclid, the invention

More information

Graph Theory Mini-course

Graph Theory Mini-course Graph Theory Mini-course Anthony Varilly PROMYS, Boston University, Boston, MA 02215 Abstract Intuitively speaking, a graph is a collection of dots and lines joining some of these dots. Many problems in

More information

Assignment 4 Solutions of graph problems

Assignment 4 Solutions of graph problems Assignment 4 Solutions of graph problems 1. Let us assume that G is not a cycle. Consider the maximal path in the graph. Let the end points of the path be denoted as v 1, v k respectively. If either of

More information

Graphs And Algorithms

Graphs And Algorithms Graphs nd lgorithms Mandatory: hapter 3 Sections 3.1 & 3.2 Reading ssignment 2 1 Graphs bstraction of ata 3 t the end of this section, you will be able to: 1. efine directed and undirected graphs 2. Use

More information

Topic 10 Part 2 [474 marks]

Topic 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 information

Graph Theory CS/Math231 Discrete Mathematics Spring2015

Graph 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 information

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

Graph (1A) Young Won Lim 4/19/18 Graph (1A) Copyright (c) 2015 2018 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version

More information

Discrete Mathematics (2009 Spring) Graphs (Chapter 9, 5 hours)

Discrete Mathematics (2009 Spring) Graphs (Chapter 9, 5 hours) Discrete Mathematics (2009 Spring) Graphs (Chapter 9, 5 hours) Chih-Wei Yi Dept. of Computer Science National Chiao Tung University June 1, 2009 9.1 Graphs and Graph Models What are Graphs? General meaning

More information

11-5 Networks. Königsberg Bridge Problem

11-5 Networks. Königsberg Bridge Problem Section 11-5 Networks 1 11-5 Networks In the 1700s, the people of Königsberg, Germany (now Kaliningrad in Russia), used to enjoy walking over the bridges of the Pregel River. There were three landmasses

More information

Graphs. Pseudograph: multiple edges and loops allowed

Graphs. Pseudograph: multiple edges and loops allowed Graphs G = (V, E) V - set of vertices, E - set of edges Undirected graphs Simple graph: V - nonempty set of vertices, E - set of unordered pairs of distinct vertices (no multiple edges or loops) Multigraph:

More information

SUMMARY SHEET DECISION MATHS. Algorithms. Input A and B (positive integers) Let Q = int(b/a) Let R1 = B A Q

SUMMARY SHEET DECISION MATHS. Algorithms. Input A and B (positive integers) Let Q = int(b/a) Let R1 = B A Q the urther Mathematics network www.fmnetwork.org.uk V 07 SUMMRY SHT ISION MTHS lgorithms The main ideas are covered in Q dexcel MI OR The main ideas in this topic are Understanding and implementing a variety

More information

Graph Theory. Part of Texas Counties.

Graph Theory. Part of Texas Counties. Graph Theory Part of Texas Counties. We would like to visit each of the above counties, crossing each county only once, starting from Harris county. Is this possible? This problem can be modeled as a graph.

More information

Graphs Definitions. Gunnar Gotshalks. GraphDefinitions 1

Graphs Definitions. Gunnar Gotshalks. GraphDefinitions 1 Graphs Definitions GraphDefinitions 1 Examples of Graphs Street maps» Vertices are the intersections» Edges are the streets Power line network» Vertices are the houses & power stations» Edges are the power

More information

INTRODUCTION TO GRAPH THEORY. 1. Definitions

INTRODUCTION TO GRAPH THEORY. 1. Definitions INTRODUCTION TO GRAPH THEORY D. JAKOBSON 1. Definitions A graph G consists of vertices {v 1, v 2,..., v n } and edges {e 1, e 2,..., e m } connecting pairs of vertices. An edge e = (uv) is incident with

More information

Math 776 Graph Theory Lecture Note 1 Basic concepts

Math 776 Graph Theory Lecture Note 1 Basic concepts Math 776 Graph Theory Lecture Note 1 Basic concepts Lectured by Lincoln Lu Transcribed by Lincoln Lu Graph theory was founded by the great Swiss mathematician Leonhard Euler (1707-178) after he solved

More information

08. First and second degree equations

08. 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

Lesson 22: Basic Graph Concepts

Lesson 22: Basic Graph Concepts Lesson 22: asic Graph oncepts msc 175 iscrete Mathematics 1. Introduction graph is a mathematical object that is used to model different relations between objects and processes: Linked list Flowchart of

More information

Introduction to Graphs

Introduction to Graphs Graphs Introduction to Graphs Graph Terminology Directed Graphs Special Graphs Graph Coloring Representing Graphs Connected Graphs Connected Component Reading (Epp s textbook) 10.1-10.3 1 Introduction

More information

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

GRAPH THEORY AND COMBINATORICS ( Common to CSE and ISE ) UNIT 1

GRAPH THEORY AND COMBINATORICS ( Common to CSE and ISE ) UNIT 1 GRAPH THEORY AND COMBINATORICS ( Common to CSE and ISE ) Sub code : 06CS42 UNIT 1 Introduction to Graph Theory : Definition and Examples Subgraphs Complements, and Graph Isomorphism Vertex Degree, Euler

More information

Graphs. Introduction To Graphs: Exercises. Definitions:

Graphs. Introduction To Graphs: Exercises. Definitions: Graphs Eng.Jehad Aldahdooh Introduction To Graphs: Definitions: A graph G = (V, E) consists of V, a nonempty set of vertices (or nodes) and E, a set of edges. Each edge has either one or two vertices associated

More information

the Further Mathematics network V SUMMARY SHEET DECISION MATHS Algorithms Input A and B (positive integers)

the Further Mathematics network  V SUMMARY SHEET DECISION MATHS Algorithms Input A and B (positive integers) the urther Mathematics network www.fmnetwork.org.uk V 07 SUMMRY SHT ISION MTHS lgorithms The main ideas are covered in Q dexcel MI OR The main ideas in this topic are Understanding and implementing a variety

More information

Foundations of Discrete Mathematics

Foundations of Discrete Mathematics Foundations of Discrete Mathematics Chapters 9 By Dr. Dalia M. Gil, Ph.D. Graphs Graphs are discrete structures consisting of vertices and edges that connect these vertices. Graphs A graph is a pair (V,

More information

DEFINITION OF GRAPH GRAPH THEORY GRAPHS ACCORDING TO THEIR VERTICES AND EDGES EXAMPLE GRAPHS ACCORDING TO THEIR VERTICES AND EDGES

DEFINITION OF GRAPH GRAPH THEORY GRAPHS ACCORDING TO THEIR VERTICES AND EDGES EXAMPLE GRAPHS ACCORDING TO THEIR VERTICES AND EDGES DEFINITION OF GRAPH GRAPH THEORY Prepared by Engr. JP Timola Reference: Discrete Math by Kenneth H. Rosen A graph G = (V,E) consists of V, a nonempty set of vertices (or nodes) and E, a set of edges. Each

More information

CMSC 380. Graph Terminology and Representation

CMSC 380. Graph Terminology and Representation CMSC 380 Graph Terminology and Representation GRAPH BASICS 2 Basic Graph Definitions n A graph G = (V,E) consists of a finite set of vertices, V, and a finite set of edges, E. n Each edge is a pair (v,w)

More information

MT365 Examination 2017 Part 1 Solutions Part 1

MT365 Examination 2017 Part 1 Solutions Part 1 MT xamination 0 Part Solutions Part Q. G (a) Number of vertices in G =. Number of edges in G = (i) The graph G is simple no loops or multiple edges (ii) The graph G is not regular it has vertices of deg.,

More information

GRAPH THEORY AND LOGISTICS

GRAPH THEORY AND LOGISTICS GRAPH THEORY AND LOGISTICS Maja Fošner and Tomaž Kramberger University of Maribor Faculty of Logistics Mariborska cesta 2 3000 Celje Slovenia maja.fosner@uni-mb.si tomaz.kramberger@uni-mb.si Abstract This

More information

Network Topology and Graph

Network 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 information

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

Instant Insanity Instructor s Guide Make-it and Take-it Kit for AMTNYS 2006 Instant Insanity Instructor s Guide Make-it and Take-it Kit for AMTNYS 2006 THE KIT: This kit contains materials for two Instant Insanity games, a student activity sheet with answer key and this instructor

More information

MATH 103: Contemporary Mathematics Study Guide for Chapter 6: Hamilton Circuits and the TSP

MATH 103: Contemporary Mathematics Study Guide for Chapter 6: Hamilton Circuits and the TSP MTH 3: ontemporary Mathematics Study Guide for hapter 6: Hamilton ircuits and the TSP. nswer the questions above each of the following graphs: (a) ind 3 different Hamilton circuits for the graph below.

More information

5 Graphs

5 Graphs 5 Graphs jacques@ucsd.edu Some of the putnam problems are to do with graphs. They do not assume more than a basic familiarity with the definitions and terminology of graph theory. 5.1 Basic definitions

More information

Simple graph Complete graph K 7. Non- connected graph

Simple graph Complete graph K 7. Non- connected graph A graph G consists of a pair (V; E), where V is the set of vertices and E the set of edges. We write V (G) for the vertices of G and E(G) for the edges of G. If no two edges have the same endpoints we

More information

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

Algorithms: Graphs. Amotz Bar-Noy. Spring 2012 CUNY. Amotz Bar-Noy (CUNY) Graphs Spring / 95 Algorithms: Graphs Amotz Bar-Noy CUNY Spring 2012 Amotz Bar-Noy (CUNY) Graphs Spring 2012 1 / 95 Graphs Definition: A graph is a collection of edges and vertices. Each edge connects two vertices. Amotz

More information

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

CHAPTER 2. Graphs. 1. Introduction to Graphs and Graph Isomorphism CHAPTER 2 Graphs 1. Introduction to Graphs and Graph Isomorphism 1.1. The Graph Menagerie. Definition 1.1.1. A simple graph G = (V, E) consists of a set V of vertices and a set E of edges, represented

More information

Graph Theory. Connectivity, Coloring, Matching. Arjun Suresh 1. 1 GATE Overflow

Graph Theory. Connectivity, Coloring, Matching. Arjun Suresh 1. 1 GATE Overflow Graph Theory Connectivity, Coloring, Matching Arjun Suresh 1 1 GATE Overflow GO Classroom, August 2018 Thanks to Subarna/Sukanya Das for wonderful figures Arjun, Suresh (GO) Graph Theory GATE 2019 1 /

More information

Algorithms. Graphs. Algorithms

Algorithms. Graphs. Algorithms Algorithms Graphs Algorithms Graphs Definition: A graph is a collection of edges and vertices. Each edge connects two vertices. Algorithms 1 Graphs Vertices: Nodes, points, computers, users, items,...

More information

Part 1. Twice the number of edges = 2 9 = 18. Thus the Handshaking lemma... The sum of the vertex degrees = twice the number of edges holds.

Part 1. Twice the number of edges = 2 9 = 18. Thus the Handshaking lemma... The sum of the vertex degrees = twice the number of edges holds. MT6 Examination 16 Q1 (a) Part 1 Part1 Solutions (b) egree Sequence (,,,,, ) (c) Sum of the vertex degrees = + + + + + = 18 Twice the number of edges = 9 = 18. Thus the Handshaking lemma... The sum of

More information

Graph Overview (1A) Young Won Lim 5/9/18

Graph Overview (1A) Young Won Lim 5/9/18 Copyright (c) 2015 2018 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published

More information

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

Characterizing Graphs (3) Characterizing Graphs (1) Characterizing Graphs (2) Characterizing Graphs (4) S-72.2420/T-79.5203 Basic Concepts 1 S-72.2420/T-79.5203 Basic Concepts 3 Characterizing Graphs (1) Characterizing Graphs (3) Characterizing a class G by a condition P means proving the equivalence G G

More information

Worksheet for the Final Exam - Part I. Graphs

Worksheet 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 information

Brief 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? 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 information

Course Introduction / Review of Fundamentals of Graph Theory

Course Introduction / Review of Fundamentals of Graph Theory Course Introduction / Review of Fundamentals of Graph Theory Hiroki Sayama sayama@binghamton.edu Rise of Network Science (From Barabasi 2010) 2 Network models Many discrete parts involved Classic mean-field

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence Graph theory G. Guérard Department of Nouvelles Energies Ecole Supérieur d Ingénieurs Léonard de Vinci Lecture 1 GG A.I. 1/37 Outline 1 Graph theory Undirected and directed graphs

More information

Simple Graph. General Graph

Simple 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 information

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

Basic 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 information

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

(5.2) 151 Math Exercises. Graph Terminology and Special Types of Graphs. Malek Zein AL-Abidin King Saud University College of Science Department of Mathematics 151 Math Exercises (5.2) Graph Terminology and Special Types of Graphs Malek Zein AL-Abidin ه Basic Terminology First, we give some terminology

More information

Discrete mathematics II. - Graphs

Discrete mathematics II. - Graphs Emil Vatai April 25, 2018 Basic definitions Definition of an undirected graph Definition (Undirected graph) An undirected graph or (just) a graph is a triplet G = (ϕ, E, V ), where V is the set of vertices,

More information

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

Graph theory. Po-Shen Loh. June We begin by collecting some basic facts which can be proved via bare-hands techniques. Graph theory Po-Shen Loh June 013 1 Basic results We begin by collecting some basic facts which can be proved via bare-hands techniques. 1. The sum of all of the degrees is equal to twice the number of

More information

DS UNIT 4. Matoshri College of Engineering and Research Center Nasik Department of Computer Engineering Discrete Structutre UNIT - IV

DS UNIT 4. Matoshri College of Engineering and Research Center Nasik Department of Computer Engineering Discrete Structutre UNIT - IV Sr.No. Question Option A Option B Option C Option D 1 2 3 4 5 6 Class : S.E.Comp Which one of the following is the example of non linear data structure Let A be an adjacency matrix of a graph G. The ij

More information

CS6702 GRAPH THEORY AND APPLICATIONS 2 MARKS QUESTIONS AND ANSWERS

CS6702 GRAPH THEORY AND APPLICATIONS 2 MARKS QUESTIONS AND ANSWERS CS6702 GRAPH THEORY AND APPLICATIONS 2 MARKS QUESTIONS AND ANSWERS 1 UNIT I INTRODUCTION CS6702 GRAPH THEORY AND APPLICATIONS 2 MARKS QUESTIONS AND ANSWERS 1. Define Graph. A graph G = (V, E) consists

More information

Ma/CS 6a Class 8: Eulerian Cycles

Ma/CS 6a Class 8: Eulerian Cycles Ma/CS 6a Class 8: Eulerian Cycles By Adam Sheffer The Bridges of Königsberg Can we travel the city while crossing every bridge exactly once? 1 How Graph Theory was Born Leonhard Euler 1736 Eulerian Cycle

More information

Chapter 3: Paths and Cycles

Chapter 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 information

Instructor: Paul Zeitz, University of San Francisco

Instructor: Paul Zeitz, University of San Francisco Berkeley Math Circle Graph Theory and Ramsey Theory Instructor: Paul Zeitz, University of San Francisco (zeitz@usfca.edu) Definitions 1 A graph is a pair (V,E), where V is a finite set and E is a set of

More information

Figure 2.1: A bipartite graph.

Figure 2.1: A bipartite graph. Matching problems The dance-class problem. A group of boys and girls, with just as many boys as girls, want to dance together; hence, they have to be matched in couples. Each boy prefers to dance with

More information

Planar graphs. Chapter 8

Planar graphs. Chapter 8 Chapter 8 Planar graphs Definition 8.1. A graph is called planar if it can be drawn in the plane so that edges intersect only at vertices to which they are incident. Example 8.2. Different representations

More information

Eulerian Cycle (2A) Young Won Lim 5/25/18

Eulerian Cycle (2A) Young Won Lim 5/25/18 ulerian ycle (2) opyright (c) 2015 2018 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU ree ocumentation License, Version 1.2 or any later

More information

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

Assignments are handed in on Tuesdays in even weeks. Deadlines are: Tutorials at 2 3, 3 4 and 4 5 in M413b, on Tuesdays, in odd weeks. i.e. on the following dates. Tuesday the 28th January, 11th February, 25th February, 11th March, 25th March, 6th May. Assignments are

More information

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

Grades 7 & 8, Math Circles 31 October/1/2 November, Graph Theory Faculty of Mathematics Waterloo, Ontario N2L 3G1 Centre for Education in Mathematics and Computing Grades 7 & 8, Math Circles 31 October/1/2 November, 2017 Graph Theory Introduction Graph Theory is the

More information

Math.3336: Discrete Mathematics. Chapter 10 Graph Theory

Math.3336: Discrete Mathematics. Chapter 10 Graph Theory Math.3336: Discrete Mathematics Chapter 10 Graph Theory Instructor: Dr. Blerina Xhabli Department of Mathematics, University of Houston https://www.math.uh.edu/ blerina Email: blerina@math.uh.edu Fall

More information

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

Logic: The Big Picture. Axiomatizing Arithmetic. Tautologies and Valid Arguments. Graphs and Trees Axiomatizing Arithmetic Logic: The Big Picture Suppose we restrict the domain to the natural numbers, and allow only the standard symbols of arithmetic (+,, =, >, 0, 1). Typical true formulas include:

More information

Number Theory and Graph Theory

Number Theory and Graph Theory 1 Number Theory and Graph Theory Chapter 6 Basic concepts and definitions of graph theory By A. Satyanarayana Reddy Department of Mathematics Shiv Nadar University Uttar Pradesh, India E-mail: satya8118@gmail.com

More information

Chapter 9: Elementary Graph Algorithms Basic Graph Concepts

Chapter 9: Elementary Graph Algorithms Basic Graph Concepts hapter 9: Elementary Graph lgorithms asic Graph oncepts msc 250 Intro to lgorithms graph is a mathematical object that is used to model different situations objects and processes: Linked list Tree (partial

More information

An Introduction to Graph Theory

An Introduction to Graph Theory An Introduction to Graph Theory Evelyne Smith-Roberge University of Waterloo March 22, 2017 What is a graph? Definition A graph G is: a set V (G) of objects called vertices together with: a set E(G), of

More information

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

Math 778S Spectral Graph Theory Handout #2: Basic graph theory Math 778S Spectral Graph Theory Handout #: Basic graph theory Graph theory was founded by the great Swiss mathematician Leonhard Euler (1707-178) after he solved the Königsberg Bridge problem: Is it possible

More information

Graph Theory Problems Instructor: Natalya St. Clair. 1 The Seven Bridges of Königsberg Problem

Graph Theory Problems Instructor: Natalya St. Clair. 1 The Seven Bridges of Königsberg Problem Graph Theory Problems erkeley Math ircles 2015 Lecture Notes Graph Theory Problems Instructor: Natalya St. lair 1 The Seven ridges of Königsberg Problem Königsberg is an ancient city of Prussia, now Kalingrad,

More information

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

Introduction 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 information