Discrete Mathematics Lecture 12: Graph Theory

Slides:



Advertisements
Similar presentations
Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
Advertisements

Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Review Binary Search Trees Operations on Binary Search Tree
13 May 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction.
Discrete Mathematics and Its Applications
Discrete Structures Chapter 7A Graphs Nurul Amelina Nasharuddin Multimedia Department.
KNURE, Software department, Ph , N.V. Bilous Faculty of computer sciences Software department, KNURE Discrete.
9.2 Graph Terminology and Special Types Graphs
GRAPH Learning Outcomes Students should be able to:
Graphs Chapter 10.
Copyright © Cengage Learning. All rights reserved. CHAPTER 10 GRAPHS AND TREES.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
1 Topics Intro. to Graphs (11.1) A B C D EF G. 2 Definition (p.650) A graph G = V(G) + E(G) A set of vertices (or nodes), V(G) = {v 1, v 2, …, v n } A.
© 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.
(CSC 102) Lecture 28 Discrete Structures. Graphs.
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.
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.
1 Graphs Theory UNIT IV. 2Contents  Basic terminology,  Multi graphs and weighted graphs  Paths and circuits  Shortest path in weighted graph  Hamiltonian.
Introduction to Graph Theory
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.
An Introduction to Graph Theory
Relation. Combining Relations Because relations from A to B are subsets of A x B, two relations from A to B can be combined in any way two sets can be.
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
Basic properties Continuation
Graphs Basic properties.
1 Graphs Terminology By: Sandeep Tuli Astt. Prof. CSE.
Introduction to Graph Theory By: Arun Kumar (Asst. Professor) (Asst. Professor)
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 10.
MAT 2720 Discrete Mathematics Section 8.1 Introduction
Subject Four Graphs Data Structures. What is a graph? A data structure that consists of a set of nodes (vertices) and a set of edges that relate the nodes.
Chapter Chapter Summary Graphs and Graph Models Graph Terminology and Special Types of Graphs Representing Graphs and Graph Isomorphism Connectivity.
Applied Discrete Mathematics Week 14: Trees
Applied Discrete Mathematics Week 13: Graphs
Graphs: Definitions and Basic Properties
Chapter 9 (Part 2): Graphs
Introduction to Graphs
Lecture 19: CONNECTIVITY Sections
Applied Discrete Mathematics Week 13: Graphs
Basic Concepts Graphs For more notes and topics visit:
Special Graphs By: Sandeep Tuli Astt. Prof. CSE.
Graph theory Definitions Trees, cycles, directed graphs.
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
Matrix Representation of Graph
Introduction to Graph Theory
Graphs and Graph Models
Based on slides by Y. Peng University of Maryland
Can you draw this picture without lifting up your pen/pencil?
Lecture 15: Graph Theory II
CS100: Discrete structures
Chapter 10.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 7th ed., by Kenneth H.
Decision Maths Graphs.
Discrete Mathematics Lecture 6: Set and Function
Discrete Mathematics Lecture 13_14: Graph Theory and Tree
Let us switch to a new topic:
Copyright © Cengage Learning. All rights reserved.
Graphs By Rajanikanth B.
Lecture 10: Graphs Graph Terminology Special Types of Graphs
Graphs G = (V, E) V are the vertices; E are the edges.
Chapter 10.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 8th ed., by Kenneth H.
Discrete Mathematics for Computer Science
CHAPTER 15 Graph Theory.
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.
Applied Discrete Mathematics Week 13: Graphs
Chapter 10.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 7th ed., by Kenneth H.
Agenda Review Lecture Content: Shortest Path Algorithm
Introduction to Graphs
Presentation transcript:

Discrete Mathematics Lecture 12: Graph Theory By: Nur Uddin, Ph.D

Introduction Graph theory are not graphs drawn with x and y axes. In this topic, the word ‘graph’ refers to a structure consisting of points (called ‘vertices’), some of which may be joined to other vertices by lines (called ‘edges’) to form a network.

Definition A graph consists of a non-empty set of points, called vertices (singular: vertex), and a set of lines or curves, called edges, such that every edge is attached at each end to a vertex.

Definition An edge is said to be incident to the vertices to which it is attached. For example, the edge e1 is incident to the vertices v1 and v2 in the graph. Two vertices that are joined by an edge are said to be adjacent. In the graph in Figure 10.1, v1 and v2 are adjacent, while v1 and v3 are not adjacent.

Graph representation (Examples) A graph could represent a road system, in which the edges are the roads and the vertices are the towns and road junctions. A graph could represent computer laboratories in a local area network (LAN), with the edges representing the links in the network. More abstract interpretations are also possible.

Definition If a graph is in one piece, it is said to be connected. It is permissible for a graph to have no edges; such graphs are called null graphs. A graph may have loops (an edge from one vertex to the same vertex). A graph may also have parallel edges (two or more edges linking the same pair of vertices) A graph with directed edges is called a directed graph. A graph is said to be simple if it has no loops and no parallel edges.

Drawing a graph all that matters is which vertices are adjacent (joined by an edge) and which are not; the precise location of the vertices and the lengths and shapes of the edges are irrelevant. make the relationship between these two graphs clearer, corresponding vertices are labelled with the same letter. Graphs that are essentially the same are called isomorphic.

Simple graph A graph is said to be simple if it has no loops and no parallel edges. If a simple graph has one vertex, then it must have no edges. If a simple graph has two vertices, then either there is an edge joining the vertices or there is not. With three vertices, things start to get more complicated.

Degree of a vertex The degree of a vertex v in a graph is the number of edges incident to v, with a loop counting 2 towards the degree of the vertex to which it is incident. The degree of v is denoted by deg(v). A vertex with degree 0 is said to be isolated.

Exercise 1

Degree of a vertex

Complete graph A simple graph is complete if each vertex of the graph is adjacent to every other vertex. There is essentially only one complete graph with any given number of vertices. The complete graph with five vertices is shown as follows:

Number Complete graph We can obtain a formula for the number of edges in the complete graph with n vertices, using the following reasoning. Each edge in the graph corresponds to a selection of two distinct vertices from the set of n vertices, without taking order into account. This selection can be carried out in [n(n – 1)]/2 ways.

Matrix representation of a graph

Example 1 Construct the adjacency matrix of the following graph Adjacency matrix of any graph is symmetric.

Draw the graph of the following adjacency matrix