13 May 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction.

Slides:



Advertisements
Similar presentations
Chapter 8 Topics in Graph Theory
Advertisements

Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
8.3 Representing Relations Connection Matrices Let R be a relation from A = {a 1, a 2,..., a m } to B = {b 1, b 2,..., b n }. Definition: A n m  n connection.
Graph-02.
Review Binary Search Trees Operations on Binary Search Tree
Chapter 8, Part I Graph Algorithms.
 Graph Graph  Types of Graphs Types of Graphs  Data Structures to Store Graphs Data Structures to Store Graphs  Graph Definitions Graph Definitions.
Decision Maths Graphs Wiltshire Graphs A graph is just a diagram made up of “dots” and “lines”. These are all graphs. The dots are called “nodes” or.
Applied Discrete Mathematics Week 12: Trees
Introduction to Graphs
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.
Applied Discrete Mathematics Week 12: Trees
KNURE, Software department, Ph , N.V. Bilous Faculty of computer sciences Software department, KNURE Discrete.
9.3 Representing Graphs and Graph Isomorphism
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
Let us switch to a new topic:
Applied Discrete Mathematics Week 10: Equivalence Relations
GRAPH Learning Outcomes Students should be able to:
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,
GRAPHS CSE, POSTECH. Chapter 16 covers the following topics Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component,
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.
© 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.
Based on slides by Y. Peng University of Maryland
1 April 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Formal.
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Introduction Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering,
03 May 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction.
Graphs.  Definition A simple graph G= (V, E) consists of vertices, V, a nonempty set of vertices, and E, a set of unordered pairs of distinct elements.
Week 11 - Monday.  What did we talk about last time?  Binomial theorem and Pascal's triangle  Conditional probability  Bayes’ theorem.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Chapter 1 Fundamental Concepts Introduction to Graph Theory Douglas B. West July 11, 2002.
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.
Chapter 5 Graphs  the puzzle of the seven bridge in the Königsberg,  on the Pregel.
1 Graphs Theory UNIT IV. 2Contents  Basic terminology,  Multi graphs and weighted graphs  Paths and circuits  Shortest path in weighted graph  Hamiltonian.
An Introduction to Graph Theory
Graphs A ‘Graph’ is a diagram that shows how things are connected together. It makes no attempt to draw actual paths or routes and scale is generally inconsequential.
Graph Theory and Applications
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
CS 261 – Nov. 17 Graph properties – Bipartiteness – Isomorphic to another graph – Pseudograph, multigraph, subgraph Path Cycle – Hamiltonian – Euler.
Week 11 - Wednesday.  What did we talk about last time?  Graphs  Paths and circuits.
(CSC 102) Lecture 30 Discrete Structures. Graphs.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
Leda Demos By: Kelley Louie Credits: definitions from Algorithms Lectures and Discrete Mathematics with Algorithms by Albertson and Hutchinson graphics.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 10.
Applied Discrete Mathematics Week 14: Trees
Graph Theory An Introduction.
Chapter 9 (Part 2): Graphs
Introduction to Graphs
Lecture 19: CONNECTIVITY Sections
Applied Discrete Mathematics Week 13: Graphs
Special Graphs By: Sandeep Tuli Astt. Prof. CSE.
Grade 11 AP Mathematics Graph Theory
Graph theory Definitions Trees, cycles, directed graphs.
Agenda Lecture Content: Introduction to Graph Path and Cycle
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 10 Graphs Slides are adopted from “Discrete.
Introduction to Graphs
Based on slides by Y. Peng University of Maryland
Lecture 15: Graph Theory II
CS100: Discrete structures
Connectivity Section 10.4.
Decision Maths Graphs.
Representing Graphs Wade Trappe.
Applied Discrete Mathematics Week 13: Graphs
Based on slides by Y. Peng University of Maryland
HW 3 (Due Wednesday Feb 6) Create slide(s) for your 1 minute presentation on a graph theory application. Make sure your slide(s) include (1) Define the.
Agenda Review Lecture Content: Shortest Path Algorithm
Introduction to Graphs
Presentation transcript:

13 May 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction to Discrete Mathematics Graph Theory Part2

13 May 2009Instructor: Tasneem Darwish2 Outlines Definitions and Examples Paths and Cycles Isomorphism of Graphs Trees

13 May 2009Instructor: Tasneem Darwish3 A simple graph is a graph which has no loops and every pair of vertices is connected by a unique edge. Definitions and Examples

13 May 2009Instructor: Tasneem Darwish4 The complete graph Kn with n vertices can be described as follows:  It has vertex set V = {v1, v2,...,vn}  The graph Kn is clearly regular with degree n − 1. Definitions and Examples

13 May 2009Instructor: Tasneem Darwish5 The properties of a bipartite graph where the vertex set V has the partition {V1,V2}, are as follows:  The graph need not be simple.  each edge must join a vertex of V1 to a vertex of V2.  Given v1 ∈ V1 and v2 ∈ V2, there may be more than one edge joining them or no edge joining them.  There are no loops in the graph. Definitions and Examples

13 May 2009Instructor: Tasneem Darwish6 The complete bipartite graph on n and m vertices, denoted Kn,m, has |V1| = n and |V2| = m. and it must be simple. Definitions and Examples

13 May 2009Instructor: Tasneem Darwish7 The adjacency matrix is necessarily symmetric If there are no loops at v i then its degree is the sum of the entries in the i th column (or i th row) of the matrix Definitions and Examples

13 May 2009Instructor: Tasneem Darwish8 Examples The following is the adjacency matrix A of the graph represented in the figure. For this graph two properties can be concluded:  by considering the leading diagonal we note that there is only one loop—from v1 to itself.  the last row (or column) of zeros indicates that v4 is an isolated vertex connected to no vertices at all (including itself). Definitions and Examples

13 May 2009Instructor: Tasneem Darwish9 Examples The null graph with n vertices has the n × n zero matrix as its adjacency matrix, since there are no edges whatsoever. 3.A complete graph has adjacency matrix with zeros along the leading diagonal and ones everywhere else. Definitions and Examples

13 May 2009Instructor: Tasneem Darwish10 ∑ is a subgraph of Γ if we can obtain a diagram for ∑ by erasing some of the vertices and/or edges from a diagram of Γ Definitions and Examples

13 May 2009Instructor: Tasneem Darwish11 Example 10.4 Graphs ∑ and Γ have vertex sets V Γ = {v1, v2, v3, v4, v5} and V ∑ = {v1, v2, v4, v5} and respective adjacency matrices ∑ is a subgraph of Γ Definitions and Examples

13 May 2009Instructor: Tasneem Darwish12 Paths and Cycles

13 May 2009Instructor: Tasneem Darwish13 An edge sequence is any finite sequence of edges which can be traced on the diagram of the graph without removing pen from paper. An edge sequence may repeat edges and go round loops several times. In a path we are not allowed to ‘travel along’ the same edge more than once In a simple path we do not ‘visit’ the same vertex or the same edge more than once. The edge sequence or path is closed if we begin and end the ‘journey’ at the same place. Paths and Cycles

13 May 2009Instructor: Tasneem Darwish14 Examples Let Γ be the graph represented below; examples of edge sequences in Γ are: (i) e1, e3, e4, e5, e3; (ii) e3, e3; (iii) e2, e3, e4; (iv) e4, e3; (v) e4, e5, e2. (i) is a closed edge sequence (ii) is a closed sequence (iii) is a cycle (iv) is a simple path from v2 to v1. (v) is a path with initial and final vertices v2, v1 respectively Paths and Cycles

13 May 2009Instructor: Tasneem Darwish15 An arbitrary graph naturally splits up into a number of connected subgraphs, called its (connected) components Examples 10.6 Each of the following graphs has two component Paths and Cycles

13 May 2009Instructor: Tasneem Darwish16 Examples 10.7 In the complete bipartite graph K 4,4 the vertices have been partitioned into the sets {1, 2, 3, 4} and {a, b, c, d}. The graph is connected and every vertex has degree 4, so K 4,4 is Eulerian One Eulerian path beginning at the vertex 1 has the following vertex sequence: 1, a, 2, b, 3, c, 4, d, 1, c, 2, d, 3, a, 4, b, 1 Paths and Cycles

13 May 2009Instructor: Tasneem Darwish17 Example 10.8 The following figure illustrates Hamiltonian cycles in two graphs. Paths and Cycles