Graph Theory Chapter 6 from Johnsonbaugh Article(6.1, 6.2)

Slides:



Advertisements
Similar presentations
Thursday, March 14 Introduction to Network Flows
Advertisements

Chapter 8 Topics in Graph Theory
Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
22C:19 Discrete Math Graphs Fall 2010 Sukumar Ghosh.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Graph-02.
Introduction to Graphs
Introduction This chapter explores graphs and their applications in computer science This chapter explores graphs and their applications in computer science.
 Graph Graph  Types of Graphs Types of Graphs  Data Structures to Store Graphs Data Structures to Store Graphs  Graph Definitions Graph Definitions.
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 21: Graphs.
Graphs Intro G.Kamberova, Algorithms Graphs Introduction Gerda Kamberova Department of Computer Science Hofstra University.
Centre for Wireless Communications Overview of Graph Theory Ad Hoc Networking Instructor: Carlos Pomalaza-Ráez Fall 2003 University of Oulu, Finland.
Computational Methods for Management and Economics Carla Gomes Module 9a Network Models Terminology (Slides adapted from J.Orlin’s)
Representing Graphs Wade Trappe. Lecture Overview Introduction Some Terminology –Paths Adjacency Matrix.
CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker.
Princeton University COS 423 Theory of Algorithms Spring 2002 Kevin Wayne Greed: Shortest Path s 3 t
Chapter 11 Graphs and Trees This handout: Terminology of Graphs Eulerian Cycles.
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
22C:19 Discrete Math Graphs Spring 2014 Sukumar Ghosh.
GRAPH Learning Outcomes Students should be able to:
Data Structures Using C++ 2E
Maximum Flow Chapter 26.
Graph Theoretic Concepts. What is a graph? A set of vertices (or nodes) linked by edges Mathematically, we often write G = (V,E)  V: set of vertices,
Chapter 2 Graph Algorithms.
Graph Theory Topics to be covered:
Module #19: Graph Theory: part I Rosen 5 th ed., chs. 8-9 내년 3 월 ? 교환 학생 프로그램 영어 점수 미리미리 준비하세요.
Introduction to Graphs. Introduction Graphs are a generalization of trees –Nodes or verticies –Edges or arcs Two kinds of graphs –Directed –Undirected.
Lecture 10: Graphs Graph Terminology Special Types of Graphs
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 9 (Part 2): Graphs  Graph Terminology (9.2)
Chapter 6 Graph Theory R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001.
1 CS104 : Discrete Structures Chapter V Graph Theory.
. 1 Transportation and Assignment Problems. . 2 Applications Physical analog of nodes Physical analog of arcs Flow Communication systems phone exchanges,
9.1 Introduction to Graphs
Week 11 - Monday.  What did we talk about last time?  Binomial theorem and Pascal's triangle  Conditional probability  Bayes’ theorem.
Graphs What are Graphs? General meaning in everyday math: A plot or chart of numerical data using a coordinate system. Technical meaning in discrete.
Graphs Discrete Structure CS203. Adjacency Matrix We already saw a way of representing relations on a set with a Boolean matrix: R digraph(R) M R1234.
1 12/2/2015 MATH 224 – Discrete Mathematics Formally a graph is just a collection of unordered or ordered pairs, where for example, if {a,b} G if a, b.
CSS106 Introduction to Elementary Algorithms
Overview of Graph Theory. Some applications of Graph Theory Models for communications and electrical networks Models for computer architectures Network.
Topics Paths and Circuits (11.2) A B C D E F G.
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.
An Introduction to Graph Theory
Lecture 10: Graph-Path-Circuit
Introduction to Graphs. This Lecture In this part we will study some basic graph theory. Graph is a useful concept to model many problems in computer.
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
Discrete Structures CISC 2315 FALL 2010 Graphs & Trees.
Shortest Path Algorithm 2 Prof. Sin-Min Lee Department of Computer Science.
CSE 421 Algorithms Richard Anderson Winter 2009 Lecture 5.
Graph Theory Unit: 4.
Chapter 9: Graphs.
CSCE 3110 Data Structures & Algorithm Analysis Graphs (I) Reading: Chap.9, Weiss.
Introduction to Graph Theory By: Arun Kumar (Asst. Professor) (Asst. Professor)
Chapter 20: Graphs. Objectives In this chapter, you will: – Learn about graphs – Become familiar with the basic terminology of graph theory – Discover.
Graphs Rosen, Chapter 8. NOT ONE OF THESE! One of these!
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.
Maximum Flow Chapter 26.
Graphs: Definitions and Basic Properties
Chapter 5 Fundamental Concept
Graph theory Definitions Trees, cycles, directed graphs.
Agenda Lecture Content: Introduction to Graph Path and Cycle
Max Flow – Min Cut Problem
Modeling and Simulation NETW 707
Graph Theory.
Graphs Discrete Structure CS203.
Graphs Discrete Structure CS203.
Lecture 10: Graphs Graph Terminology Special Types of Graphs
Chapter 10 Graphs and Trees
Introduction to Graph Theory
Presentation transcript:

Graph Theory Chapter 6 from Johnsonbaugh Article(6.1, 6.2)

History Konisgsberg problem Wyoming Inspectores problem

Konigsberg bridge problem

Solution to Konisgbers problem Presented by Euler Representation of problem as a graph Presence of Euler Cycle…??

Some applications of Graph Theory Models for communications and electrical networks Models for computer architectures(Manufacturing) Network optimization models for operations analysis, including scheduling and job assignment Analysis of Finite State Machines Parsing and code optimization in compilers

Application to Ad Hoc Networking Networks can be represented by graphs The mobile nodes are vertices The communication links are edges Vertices Edges Routing protocols often use shortest path algorithms

Elementary Concepts A graph G(V,E) is two sets of object  Vertices (or nodes), set V  Edges, set E A graph is represented with dots or circles (vertices) joined by lines (edges) The magnitude of graph G is characterized by number of vertices |V| (called the order of G) and number of edges |E| (size of G) The running time of algorithms are measured in terms of the order and size

Graphs: Examples a c d b Let V={a,b,c,d} and E={{a,b},{a,c},{b,c},{c,d}}

Graphs ↔ Networks Graph (Network) Vertexes (Nodes) Edges (Arcs) Flow Communications Telephones exchanges, computers, satellites Cables, fiber optics, microwave relays Voice, video, packets Circuits Gates, registers, processors WiresCurrent Mechanical JointsRods, beams, springsHeat, energy Hydraulic Reservoirs, pumping stations, lakes PipelinesFluid, oil Financial Stocks, currencyTransactionsMoney Transportation Airports, rail yards, street intersections Highways, railbeds, airway routes Freight, vehicles, passengers

Undirected Graph V = { 1, 2, 3, 4}, | V | = 4 E = {(1,2), (2,3), (2,4), (4,1)}, | E |=4 An edge e  E of an undirected graph is represented as an unordered pair (u,v)=(v,u), where u, v  V. Also assume that u ≠ v

Directed Graph An edge e  E of a directed graph is represented as an ordered pair (u,v), where u, v  V. Here u is the initial vertex and v is the terminal vertex. Also assume here that u ≠ v V = { 1, 2, 3, 4}, | V | = 4 E = {(1,2), (2,3), (2,4), (4,1), (4,2)}, | E |=5

Definitions… Parallel edge Loop Isolated vertex Simple graph

Degree of a Vertex Degree of a vertex in an undirected graph is the number of edges incident on it. In a directed graph, the out degree of a vertex is the number of edges leaving it and the in degree is the number of edges entering it The degree of vertex 2 is 3 The in degree of vertex 2 is 2 and the in degree of vertex 4 is 1

Weighted Graph A weighted graph is a graph for which each edge has an associated weight, usually given by a weight function w: E  R

Walks and Paths V5V5 V4V4 V3V3 V2V2 V1V1 V6V6 4 1 A path is a sequences of edges that begins at a vertex of a graph and travels along edges of the graph always connecting pairs of adjacent vertices. A simple cycle is an walk (v 1, v 2,..., v L ) where v 1 =v L with no other nodes repeated and L>=3, e.g. (V 1, V 2,V 5, V 4,V 1 ) A simple path is a walk with no repeated nodes, e.g. (V 1, V 4,V 5, V 2,V 3 ) A graph is called cyclic if it contains a cycle; otherwise it is called acyclic

Definitions.. Cycle(circuit) Simple cycle Length of a path

Similarity Graph Example The n-cube hyperbola

Complete Graphs A D C B 4 nodes and (4*3)/2 edges V nodes and V*(V-1)/2 edges C A B 3 nodes and 3*2 edges V nodes and V*(V-1) edges A complete graph is an undirected/directed graph in which every pair of vertices is adjacent. If (u, v ) is an edge in a graph G, we say that vertex v is adjacent to vertex u.

Connected Graphs A D E F BC A B C D An undirected graph is connected if you can get from any node to any other by following a sequence of edges OR any two nodes are connected by a path A directed graph is strongly connected if there is a directed path from any node to any other node

Subgraph components

Bipartite Graph A bipartite graph is an undirected graph G = (V,E) in which V can be partitioned into 2 sets V1 and V2 such that ( u,v)  E implies either u  V1 and v  V2 OR v  V1 and u  V2. u1u1 u2u2 u3u3 u4u4 v1v1 v2v2 v3v3 V1V1 V2V2 An example of bipartite graph application to telecommunication problems can be found in, C.A. Pomalaza-Ráez, “A Note on Efficient SS/TDMA Assignment Algorithms,” IEEE Transactions on Communications, September 1988, pp For another example of bipartite graph applications see the slides in the Addendum section

Euler cycle and Konigsberg problem Returning to Konigsberg Bridge problem There will be no euler cycle if there are an odd number of edges incident on vertex A Theorem:”If a graph has an Euler cycle, then G is connected and every vertex has even degree. Theorem:” If G is a connected graph and every vertex has even degree, then G has an Euler cycle

Theorem:” If G is a graph with m edges and vertices{v1, v2,……, v3} then In particular, the sum of the degrees of all the vertices in a graph is even.

Euler Cycle How to find an Euler Cycle….. Euler Path: “An Euler Path in G is a simple path containing every edge in G”

Some theorems and corollaries about graphs Corollary: “In any graph, there are an even number of vertices of odd degree” Theorem:” A graph has a path with no repeated edges from v to w( v is not equal to w) containing all the edges and vertices if and only if it is connected and v and w are the only vertices having odd degree. Theorem:” If graph G contains a cycle from v to v, G contains a simple cycle from v to v.

Announcements!!!! Assignment: Calculate the running time for Bubble Sort Algorithm Home Work: (Exercise 6.1 and 6.2 relevent questions) Quiz(in Next Lecture from todays lecture topics)