Graph Theory Relations, graphs

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

22C:19 Discrete Math Graphs Fall 2010 Sukumar Ghosh.
Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
22C:19 Discrete Math Graphs Fall 2014 Sukumar Ghosh.
Graph-02.
Graph Theory: Euler Circuits Christina Mende Math 480 April 15, 2013.
Lecture 21 Paths and Circuits CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Section 14.1 Intro to Graph Theory. Beginnings of Graph Theory Euler’s Konigsberg Bridge Problem (18 th c.)  Can one walk through town and cross all.
BY: MIKE BASHAM, Math in Scheduling. The Bridges of Konigsberg.
Euler Circuits and Paths
Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 21: Graphs.
How is this going to make us 100K Applications of Graph Theory.
Graphs. Graph A “graph” is a collection of “nodes” that are connected to each other Graph Theory: This novel way of solving problems was invented by a.
Euler and Hamilton Paths
Chapter 11 Graphs and Trees This handout: Terminology of Graphs Eulerian Cycles.
22C:19 Discrete Math Graphs Spring 2014 Sukumar Ghosh.
Graphs and Euler cycles Let Maths take you Further…
The Bridge Obsession Problem By Vamshi Krishna Vedam.
GRAPH Learning Outcomes Students should be able to:
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
EECS 203: It’s the end of the class and I feel fine. Graphs.
© Nuffield Foundation 2011 Nuffield Free-Standing Mathematics Activity Chinese postman problems What route can I take to avoid going along the same street.
Euler and Hamilton Paths
Chinese postman problem
Can you connect the dots as shown without taking your pen off the page or drawing the same line twice.
It's a world-wide webby wonderland.. Graphs are often used to represent real-world information and real-world structures. Graph Theory was even invented.
CS 200 Algorithms and Data Structures
5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life.
COSC 2007 Data Structures II Chapter 14 Graphs I.
Aim: What is an Euler Path and Circuit?
Graphs Edge(arc) Vertices can be even or odd or undirected (two-way) Edges can be directed (one-way) This graph is connected. Degree(order) = 3 Odd vertex.
1.5 Graph Theory. Graph Theory The Branch of mathematics in which graphs and networks are used to solve problems.
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
Euler Paths and Circuits. The original problem A resident of Konigsberg wrote to Leonard Euler saying that a popular pastime for couples was to try.
Lecture 11: 9.4 Connectivity Paths in Undirected & Directed Graphs Graph Isomorphisms Counting Paths between Vertices 9.5 Euler and Hamilton Paths Euler.
Graphs Upon completion you will be able to:
1) Find and label the degree of each vertex in the graph.
Euler and Hamiltonian Graphs
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
1 Euler and Hamilton paths Jorge A. Cobb The University of Texas at Dallas.
Grade 11 AP Mathematics Graph Theory Definition: A graph, G, is a set of vertices v(G) = {v 1, v 2, v 3, …, v n } and edges e(G) = {v i v j where 1 ≤ i,
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
STARTER: CAN YOU FIND A WAY OF CROSSING ALL THE BRIDGES EXACTLY ONCE? Here’s what this question would look like drawn as a graph.
Homework 8 Graph G is given by the figure below.
EECS 203 Lecture 19 Graphs.
Euler and Hamiltonian Graphs
Data Structures Graphs - Terminology
Euler and Hamiltonian Graphs
Graph theory Definitions Trees, cycles, directed graphs.
Agenda Lecture Content: Introduction to Graph Path and Cycle
Konigsberg’s Seven Bridges
EECS 203 Lecture 20 More Graphs.
Can you draw this picture without lifting up your pen/pencil?
Euler Circuits and Paths
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
Graph Theory.
Graphs Chapter 13.
Foundations of Discrete Mathematics
Nuffield Free-Standing Mathematics Activity
Walks, Paths, and Circuits
Konigsberg- in days past.
Graph Theory What is a graph?.
Euler Circuits and Paths
Discrete Mathematics Lecture 13_14: Graph Theory and Tree
Graphs G = (V, E) V are the vertices; E are the edges.
Euler and Hamiltonian Graphs
CHAPTER 15 Graph Theory.
Chapter 10 Graphs and Trees
GRAPHS.
Presentation transcript:

Graph Theory Relations, graphs Degree sequence, isomorphism, Eulerian graphs Trees Computer networks, circuit design, data structures

A little bit of History: Graph Theory Königsberg (Kalinigrad) was a city in Russia situated on the Pregel River, which served as the residence of the dukes of Prussia in the 16th century. In the eighteenth century, seven bridges connected the four regions. Königsberg people used to take long walks through town on Sundays.

They wondered whether it was possible to start at one location in the town, travel across all the bridges without crossing any bridge twice and return to the starting point. This problem was first solved by the prolific Swiss mathematician Leonhard Euler, who, as a consequence of his solution invented the branch of mathematics now known as graph theory.

Basic concepts of graph theory A graph(undirected graph) is a collection of points called vertices, joined by lines called edges: Kuala Lumpur Ipoh Alor setar Johor Bahru P.Pinang We represent the graph as G=(V,E)   ·        In a graph G, if there exists a path consisting of n edges between two vertices Pi and Pj, then we say that there exists an n-walks from Pi to Pj. For instance, there are three different 2-walks between the points P2 and P7 on the above graph G1.

A digraph (directed graph) consists of a set of V of vertices (or nodes) and a set of E of edges (or arcs) such that each edge is associated with an ordered pair of vertices. If there is a unique edge e associated with the ordered pair (v,w) of vertices, we write e=(v,w) which denotes an edge from v to w. The arcs are the ordered pairs of vertices. The directed edges are indicated by arrows.

the number of edges having that vertex as an end point. Degree of vertex the number of edges having that vertex as an end point. Path in a graph a sequence of vertices, each adjacent to the next, and a choice of an edge between each of them, so that no edge is chosen more than once. Cycle/Circuit in a graph a path which begins and ends with the same vertex. Simple circuit/path if the vertices are all distinct   ·        In a graph G, if there exists a path consisting of n edges between two vertices Pi and Pj, then we say that there exists an n-walks from Pi to Pj. For instance, there are three different 2-walks between the points P2 and P7 on the above graph G1.

Euler Path and Circuits a path in a graph G is called an Euler path if it includes every edge exactly once. An Euler circuit is an Euler path that is a circuit. E 2 4 D 3 C B 1 5 A   ·        In a graph G, if there exists a path consisting of n edges between two vertices Pi and Pj, then we say that there exists an n-walks from Pi to Pj. For instance, there are three different 2-walks between the points P2 and P7 on the above graph G1.

Euler circuit and Euler path An Euler circuit in a graph G is a simple circuit containing every edge of G, and has same first and last vertices. A connected graph has an Euler circuit if each of its vertices has even degree.

Euler path An Euler Path in G is a simple path containing every edge of G, and has different first and last vertices. A connected graph has an Euler path but not an Euler circuit if it has exactly two vertices of odd degree.

Example: Is it an Euler path and/or Euler circuit? b a * the path a,b,c,d is an Euler circuit. * All the edges are included * Each edge is included exactly once * each of its vertices has even degree (degree of two). d c

Example: Is it an Euler path and/or Euler circuit? has neither an Euler path nor circuit

Example: is it an Euler path and/or Euler circuit? b f a there is a n Euler path a,b,c,d,e,f, but not an Euler circuit. it has exactly two vertices of odd degree.

Shortest Path and Distance Shortest path – path that has minimum length Shortest path Algorithm.--the algorithm was discovered by Edsger Dijkstra in 1959. Many problems can be modeled using graphs with weights assigned to their edges. We set up the basic graph model by representing cities by vertices and flights by edges. Problem involving distances can be modeled by assigning distance (example in km) to the edges. Problems involving flight time can be modeled by assigning flight times to edges. Problems involving fares can be modeled by assigning fares to the edges.

Example What is the length of shortest path between a and z in the weighted graph ? b c 3 4 2 z The shortest path from a to z, namely a,d,e,z., with length of 6. a 3 1 2 3 d e 3 d b The shortest path from a to z, namely a,c,b,d,e,z., with length of 13. 4 6 1 z 8 4 a 3 2 c 10 e