MGF 1107 CH 15 LECTURE NOTES Denson. Section 15.1

Similar documents
Chapter 6: Graph Theory

Euler Paths and Euler Circuits

Networks and Paths. The study of networks in mathematics began in the middle 1700 s with a famous puzzle called the Seven Bridges of Konigsburg.

Social Media Mining. Graph Essentials

Class One: Degree Sequences

IE 680 Special Topics in Production Systems: Networks, Routing and Logistics*

V. Adamchik 1. Graph Theory. Victor Adamchik. Fall of 2005

The number of marks is given in brackets [ ] at the end of each question or part question. The total number of marks for this paper is 72.

Graph Theory Lecture 3: Sum of Degrees Formulas, Planar Graphs, and Euler s Theorem Spring 2014 Morgan Schreffler Office: POT 902

Graph Theory Origin and Seven Bridges of Königsberg -Rhishikesh

Graph Theory Problems and Solutions

136 CHAPTER 4. INDUCTION, GRAPHS AND TREES

Sum of Degrees of Vertices Theorem

Arrangements And Duality

Introduction to Graph Theory

Outline. NP-completeness. When is a problem easy? When is a problem hard? Today. Euler Circuits

Discrete Mathematics & Mathematical Reasoning Chapter 10: Graphs

Chinese postman problem

Midterm Practice Problems

CMPSCI611: Approximating MAX-CUT Lecture 20

CS311H. Prof: Peter Stone. Department of Computer Science The University of Texas at Austin

CSE 326, Data Structures. Sample Final Exam. Problem Max Points Score 1 14 (2x7) 2 18 (3x6) Total 92.

Graph Theory and Complex Networks: An Introduction. Chapter 06: Network analysis

Cpt S 223. School of EECS, WSU

MATHEMATICAL THOUGHT AND PRACTICE. Chapter 7: The Mathematics of Networks The Cost of Being Connected

Analysis of Algorithms, I

The Clar Structure of Fullerenes

Handout #Ch7 San Skulrattanakulchai Gustavus Adolphus College Dec 6, Chapter 7: Digraphs

Connectivity and cuts

MATHEMATICS Unit Decision 1

Small Maximal Independent Sets and Faster Exact Graph Coloring

UPPER BOUNDS ON THE L(2, 1)-LABELING NUMBER OF GRAPHS WITH MAXIMUM DEGREE

An Introduction to The A* Algorithm

On planar regular graphs degree three without Hamiltonian cycles 1

Graph Theory and Complex Networks: An Introduction. Chapter 06: Network analysis. Contents. Introduction. Maarten van Steen. Version: April 28, 2014

Data Structures. Chapter 8

Graph theory and network analysis. Devika Subramanian Comp 140 Fall 2008

Discrete Mathematics Problems

Priority Based Enhancement of Online Power-Aware Routing in Wireless Sensor Network. Ronit Nossenson Jerusalem College of Technology

Freight Sequencing to Improve Hub Operations in the Less-Than-Truckload Freight Transportation Industry

Problem Set 7 Solutions

3. Eulerian and Hamiltonian Graphs

PROTOTYPE TO DESIGN A LEASED LINE TELEPHONE NETWORK CONNECTING LOCATIONS TO MINIMIZE THE INSTALLATION COST

WOLLONGONG COLLEGE AUSTRALIA. Diploma in Information Technology

GRAPH THEORY LECTURE 4: TREES

Week_11: Network Models

Examination paper for MA0301 Elementær diskret matematikk

Approximation Algorithms

Pythagorean Theorem: Proof and Applications

Decision Mathematics 1 TUESDAY 22 JANUARY 2008

SHARP BOUNDS FOR THE SUM OF THE SQUARES OF THE DEGREES OF A GRAPH

BOUNDARY EDGE DOMINATION IN GRAPHS

Finding and counting given length cycles

Network (Tree) Topology Inference Based on Prüfer Sequence

Extremal Wiener Index of Trees with All Degrees Odd

Geometry and Measurement

NP-Completeness. CptS 223 Advanced Data Structures. Larry Holder School of Electrical Engineering and Computer Science Washington State University

Seminar. Path planning using Voronoi diagrams and B-Splines. Stefano Martina


Angle - a figure formed by two rays or two line segments with a common endpoint called the vertex of the angle; angles are measured in degrees

SPERNER S LEMMA AND BROUWER S FIXED POINT THEOREM

MATHEMATICS Unit Decision 1

A Review And Evaluations Of Shortest Path Algorithms

8.1 Min Degree Spanning Tree

Optimized e-transportation System customized to user need

Euclidean Minimum Spanning Trees Based on Well Separated Pair Decompositions Chaojun Li. Advised by: Dave Mount. May 22, 2014

SCAN: A Structural Clustering Algorithm for Networks

COMBINATORIAL PROPERTIES OF THE HIGMAN-SIMS GRAPH. 1. Introduction

Network Metrics, Planar Graphs, and Software Tools. Based on materials by Lala Adamic, UMichigan

Systems and Algorithms for Big Data Analytics

Data Structures and Algorithms Written Examination

On the independence number of graphs with maximum degree 3

Mathematics for Algorithm and System Analysis

Bicolored Shortest Paths in Graphs with Applications to Network Overlay Design

CSE331: Introduction to Networks and Security. Lecture 8 Fall 2006

6.3 Conditional Probability and Independence

Max Flow, Min Cut, and Matchings (Solution)

Solutions to Homework 6

Optimal 3D Angular Resolution for Low-Degree Graphs

ALGEBRA. sequence, term, nth term, consecutive, rule, relationship, generate, predict, continue increase, decrease finite, infinite

SEMITOTAL AND TOTAL BLOCK-CUTVERTEX GRAPH

Graph Theory: Penn State Math 485 Lecture Notes. Christopher Griffin

NUMBER. Level 2 questions. 1. Ling is going to write these numbers in order. What number must she write in the white box?

Decision Mathematics D1 Advanced/Advanced Subsidiary. Tuesday 5 June 2007 Afternoon Time: 1 hour 30 minutes

Every tree contains a large induced subgraph with all degrees odd

A Study of Sufficient Conditions for Hamiltonian Cycles

Just the Factors, Ma am

Course on Social Network Analysis Graphs and Networks

Complex Networks Analysis: Clustering Methods

Connected Identifying Codes for Sensor Network Monitoring

Lesson 33: Example 1 (5 minutes)

Network/Graph Theory. What is a Network? What is network theory? Graph-based representations. Friendship Network. What makes a problem graph-like?

2. (a) Explain the strassen s matrix multiplication. (b) Write deletion algorithm, of Binary search tree. [8+8]

Max Flow. Lecture 4. Optimization on graphs. C25 Optimization Hilary 2013 A. Zisserman. Max-flow & min-cut. The augmented path algorithm

Shortest Inspection-Path. Queries in Simple Polygons

WAN Wide Area Networks. Packet Switch Operation. Packet Switches. COMP476 Networked Computer Systems. WANs are made of store and forward switches.

Short cycle covers of graphs with minimum degree three

Zachary Monaco Georgia College Olympic Coloring: Go For The Gold

6.02 Practice Problems: Routing

Computational Approach for Assessment of Critical Infrastructure in Network Systems

Transcription:

1 Section 15.1 Consider the house plan below. This graph represents the house. Consider the mail route below. This graph represents the mail route.

2 Definitions 1. Graph a structure that describes relationships. - Shows how objects are related. - Parts of a graph are: i. Vertices a finite set of points ii. Edge Line segment or curve that starts and ends at a vertex. iii. Loop An edge that starts and ends at the same vertex. 2. Degree of a Vertex the number of edges that meet at a particular vertex. - Count the number of line segments and cures attached to the vertex. 3. Even vertex a vertex with an even number of edges. 4. Odd vertex a vertex with an odd number of edges. 5. Adjacent vertices There is at least one edge connecting the two vertices. Example:

3 Example: Consider the state map below. Draw a graph where the vertices represent states and common borders represent edges. a) What is the degree of Washington? b) Is the degree of the vertex Idaho even or odd? c) Are Oregon and Wyoming adjacent vertices? d) Describe how to travel from Washington to Wyoming. 6. Path A sequence of adjacent vertices and edges connecting them. - Same vertex can be listed more than once. - Same edges can only be listed once. - Separate values with a comma. 7. Circuit A path that begins and ends at the same vertex. Example: You take a scenic vacation from WA through ID, MT, WY, OR, and then home. - All circuits are paths. - Not all paths are circuits.

4 8. Connected Graph There is at least one path connecting any two vertices on the graph. Example: 9. Disconnected path There is not at least one path connecting every vertex. Example: Example: 10. Components The separate pieces on a disconnected graph. 11. Bridge An edge that can be removed to leave a disconnected path. Example

5 12. Equivalent Graphs Two graphs with i. THE SAME NUMBER OF VERTICES, and ii. VERTICES THAT ARE CONNECTED IN THE SAME WAY. Example: Show that the two graphs are equivalent. Then draw a third equivalent graph.

6 Example: Draw a graph that models the city below. Create a path that allows the residents to walk across all bridges without crossing the same bridge twice.

7 Example: a) Draw a graph that models the connecting relationships in the floor plan. Use vertices to represent the rooms and the outside, and edges to represent the connecting doors. b) Use the graph to determine if it is possible to find a path that uses each door only once. If possible, trace out the route on the floor plan.

8 Example: The figure shows a map of a portion of New York City with the bridge and tunnel connections. Use a graph to determine if it is possible to visit Manhattan, Long Island, Staten Island, and New Jersey using each bridge tunnel only once.

9 Section 15.2 Euler Path A path that travels each edge only once. Euler Circuit An Euler path that begins and ends at the same vertex. Examples:

10 Euler s Theorem: 1. No odd vertices All vertices are even. There is at least one Euler Path. Start at any vertex. There is at least one Euler Circuit. 2. Two odd vertices There is at least one Euler Path. Start at the odd vertex, end at the other odd vertex. There is no Euler Circuit. 3. More than two odd vertices There is no Euler Path. There is no Euler Circuit.

11 Example: Label each vertex as even or odd. Then apply Euler s Theorem.

12 Fleury s Algorithm 1. Check that a Euler Path/Euler Circuit exists using Euler s Theorem. 2. Pick a starting point. All even vertices: Pick any vertex (Euler Circuit) Two odd vertices: Choose one of the two odd vertices (Euler Path) 3. Travel by an edge to another vertex. Choose edges that do not form bridges. Travel the bridges only if there is no other choice. Number the edges traveled. Erase traveled edges and replace them with dashed lines. Example: For each graph determine: a) Does the graph have a Euler Path, Euler Circuit, or neither? b) If so, trace the path using Fleury s Algorithm.

13 Example: The map shows the bridges and tunnels that connect in NYC. Use a graph to determine if you can visit Manhattan, Long Island, Staten Island, and New Jersey using each bridge/tunnel only once.

14 Example: Use Fleury s Algorithm to find an Euler circuit.

15 Section 15.3 Hamilton Path Path that passes through each vertex of a graph once. Hamilton Circuit A Hamilton path beginning and ending at the same vertex. Comment: A graph can have both an Euler and Hamilton path, neither, or just one of the two. Example a) Find a Hamilton path beginning at A and ending at D. b) Find a Hamilton circuit beginning at B.

16 Complete Graph There is an edge between every vertex. Example Not an Example Every complete path with more than three vertices has a Hamilton circuit. There are (n-1)! Hamilton circuits in a complete graph with n vertices. Example: a) Modify the graph by adding the least number of edges so that the resulting graph is complete. b) How many Hamilton circuits are possible? c) Give two Hamilton circuits for the modified graph in part (a). d) Modify the given graph by removing the least number of edges so that the resulting graph has a Euler circuit.

17 Weights A number attached to the edge of a graph that often represents values such as distance, time, or cost. Example: You have three errands to run, in no particular order. You will start and end at your apartment. The table gives the distance, in miles, between any two of these locations. Apartment Best Buy Publix Sports Authority Apartment * 2 4.5 2.5 Best Buy 2 * 3 4 Publix 4.5 3 * 3.5 Sports Authority 2.5 4 3.5 * a) Create a complete, weighted graph that models the information in the table. b) What is the distance to travel from your Apartment, to Best Buy, to Publix, to Sports Authority, and then back to your Apartment? c) How many Hamilton Circuits are possible?

18 Optimal Hamilton Circuit A complete, weighted graph whose sum is a minimum. There are Two Methods to find an optimal Hamilton Circuit: A. Brute Force Method 1. Model the problem with a complete, weighted graph. 2. List all possible Hamilton circuits. 3. Find the sum of weights of the edges for each Hamilton Circuit. 4. Choose the Hamilton circuit with minimal weight. B. Nearest Neighbor Method 1. Model the problem with a complete, weighted graph. 2. Pick the starting vertex. 3. From the current vertex, pick an edge with the smallest weight. Move to that vertex. 4. Repeat this process until all vertices are visited. 5. Return to the starting point.

19 Example: You have three errands to run, in no particular order. You will start and end at your apartment. The table gives the distance, in miles, between any two of these locations. d) Use the Brute Force method to find the shortest route. e) Use the Nearest Neighbor method to approximate the shortest distance.

20 Section 15.4 Tree A connected graph with no circuits. 1. There is only one path joining any two vertices. 2. Every edge is a bridge. 3. A tree with n vertices must have (n-1) edges. 4. NO CIRCUITS Example: Which graph is a tree? Explain why the other two graphs are not trees. a) b) c)

21 Subgraph A graph with the same vertices and some of the edges removed. Example: Which graph is a subgraph of the other? Spanning Tree A subgraph that: 1. Contains all of the connected graph s vertices. 2. Is connected. 3. Contains no circuits. Example: Find a spanning tree for the graph below.

22 Example: Find a spanning tree for the graph below. Minimum Spanning Tree for a weighted graph The spanning tree with the smallest possible total weight. To find, apply Kruskal s Algorithm: 1. Find the edge with the lowest weight. (If there is a tie, randomly pick one.) Mark this edge in red. 2. Find the next smallest. (If there is a tie, randomly choose an edge). Mark this edge in red. 3. Find the next smallest edge that does not create a circuit. (If there is a tie, randomly pick an edge). Mark this edge in red. 4. Repeat until all vertices are included.

23 Example: Apply Kruskal s Algorithm to each graph below. Give the total weight.

24 Example: Use Kruskal s Algorithm to find the minimum spanning tree. Give the total weight.