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.

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Chapter 8 Topics in Graph Theory
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.
Chapter 7 Graph Theory 7.1 Modeling with graphs and finding Euler circuits. Learning Objectives: Know how to use graphs as models and how to determine.
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.
Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
Representing Graphs Wade Trappe. Lecture Overview Introduction Some Terminology –Paths Adjacency Matrix.
Approximation Algorithms for the Traveling Salesperson Problem.
Introduction to Networks HON207. Graph Theory In mathematics and computer science, graph theory is the study of graphs, mathematical structures used to.
MATH 310, FALL 2003 (Combinatorial Problem Solving) Lecture 5,Wednesday, September 10.
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
Graphs and Euler cycles Let Maths take you Further…
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
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.
The Bridge Obsession Problem By Vamshi Krishna Vedam.
GRAPH Learning Outcomes Students should be able to:
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Chapter 2 Graph Algorithms.
© Nuffield Foundation 2011 Nuffield Free-Standing Mathematics Activity Chinese postman problems What route can I take to avoid going along the same street.
Spanning Trees Introduction to Spanning Trees AQR MRS. BANKS Original Source: Prof. Roger Crawfis from Ohio State University.
Can you connect the dots as shown without taking your pen off the page or drawing the same line twice.
7.1 and 7.2: Spanning Trees. A network is a graph that is connected –The network must be a sub-graph of the original graph (its edges must come from the.
Module 5 – Networks and Decision Mathematics Chapter 23 – Undirected Graphs.
Euler and Hamilton Paths. Euler Paths and Circuits The Seven bridges of Königsberg a b c d A B C D.
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.
CSS106 Introduction to Elementary Algorithms
Lecture19: Graph III Bohyung Han CSE, POSTECH CSED233: Data Structures (2014F)
1 Approximation Algorithm Updated on 2012/12/25. 2 Approximation Algorithm Up to now, the best algorithm for solving an NP-complete problem requires exponential.
Introduction to Graph Theory
Aim: What is an Euler Path and Circuit?
1.5 Graph Theory. Graph Theory The Branch of mathematics in which graphs and networks are used to solve problems.
© Jalal Kawash 2010 Graphs Peeking into Computer Science.
Graph Theory. A branch of math in which graphs are used to solve a problem. It is unlike a Cartesian graph that we used throughout our younger years of.
Lecture 10: Graph-Path-Circuit
Graphs. Graphs Similar to the graphs you’ve known since the 5 th grade: line graphs, bar graphs, etc., but more general. Those mathematical graphs are.
Associated Matrices of Vertex Edge Graphs Euler Paths and Circuits Block Days April 30, May 1 and May
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.
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
Lecture 52 Section 11.2 Wed, Apr 26, 2006
Lecture 11: 9.4 Connectivity Paths in Undirected & Directed Graphs Graph Isomorphisms Counting Paths between Vertices 9.5 Euler and Hamilton Paths Euler.
Chapter 6: Graphs 6.1 Euler Circuits
Review Euler Graph Theory: DEFINITION: A NETWORK IS A FIGURE MADE UP OF POINTS (VERTICES) CONNECTED BY NON-INTERSECTING CURVES (ARCS). DEFINITION: A VERTEX.
Graphs Upon completion you will be able to:
M Clements Formal Network Theory. Introduction Practical problem – The Seven Bridges of Königsberg Network graphs Nodes & edges Degrees Rules/ axioms.
Chapter 20: Graphs. Objectives In this chapter, you will: – Learn about graphs – Become familiar with the basic terminology of graph theory – Discover.
1) Find and label the degree of each vertex in the graph.
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 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
Data Structures Graphs - Terminology
Minimum Spanning Tree Chapter 13.6.
CSE 373, Copyright S. Tanimoto, 2001 Graphs 1 -
Euler Paths and Circuits
Graph theory Definitions Trees, cycles, directed graphs.
Konigsberg’s Seven Bridges
Can you draw this picture without lifting up your pen/pencil?
Connected Components Minimum Spanning Tree
Graph Theory.
Graphs Chapter 13.
A path that uses every vertex of the graph exactly once.
Konigsberg- in days past.
Graph Theory What is a graph?.
Euler and Hamilton Paths
Graph Theory Relations, graphs
CHAPTER 15 Graph Theory.
Presentation transcript:

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 Swiss mathematician, Leonhard Euler

Königsberg Bridge Problem Euler was considering the layout of the bridges in the city Königsberg. The city was unusual in that it was built on an island in the river Pregel The problem Euler was considering was to determine if it was possible for one to walk over all seven bridges exactly once and end up exactly where one started.

a d bc Graph of Bridges of Königsberg

Graph Notation A graph is a set of nodes or vertices V that are joined by a set of edges E. V = {A,B,C} E={e 1, e 2, e 3 } Graph G = (V,E) A C B e3 e2 e1

Directed and Undirected Graphs A graph is called a directed graph if the edge from vertex v 1 to vertex v 2 can only be traveled in that specific direction, and not in the reverse direction. Directed edges are represented as an ordered pair (v 1, v 2 )

Directed Graph Edge Set E = {(r, u), (u, r), (w, r), (u, w)} Vertex Set V = {u, r,w}

Complete Graph A graph in which every vertex is connected by an edge to every other vertex A complete graph on n vertices has n vertices and n(n − 1) / 2 edges

a be c f d 1.How many vertices are there? 2.How many edges are there? 3.Is this a directed or undirected graph? 4.Is this a complete graph? 5.What are the set of vertices V and the set of edges E?

Walks, Trails, and Circuits A walk is any sequence of vertices and edges starting at some vertex v 0 and ending at a vertex v n. A trail is a walk in which no edge is traversed more than once. A circuit is a walk that begins and ends at the same vertex. A graph is connected if there is a walk from any vertex v 1 to any other vertex v 2.

Euler Circuits Euler trail is a trail that includes every vertex in the graph. An Euler circuit is an Euler trail that begins and ends at the same vertex. If any vertex in a graph is of odd degree (odd number of edges), the graph does not have an Euler circuit.

Weighted Graphs Philadelphia Washington DC New York Boston

Spanning Tree A spanning tree is a special kind of subgraph of graph G that includes all the vertices that are in G (not necessarily all the edges) and in which there are no cycles or loops possible.

Minimum Spanning Tree (MST) A spanning tree that has the least weight of all the spanning trees of G. Prim's Algorithm for the Minimum Spanning Tree 1.Write all the edges in the graph in order from smallest to biggest weight. 2.Working from smallest to biggest, add each edge into the MST only if it does not make a cycle. Stop when all the vertices are in the graph and the graph is connected (there are no isolated vertices).