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.

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

CSE 211 Discrete Mathematics
Chapter 9 Graphs.
22C:19 Discrete Math Graphs Fall 2010 Sukumar Ghosh.
22C:19 Discrete Math Graphs Fall 2014 Sukumar Ghosh.
13 May 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction.
 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
Discrete Structures Chapter 7A Graphs Nurul Amelina Nasharuddin Multimedia Department.
CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker.
1 Section 8.4 Connectivity. 2 Paths In an undirected graph, a path of length n from u to v, where n is a positive integer, is a sequence of edges e 1,
W. D. Grover TRLabs & University of Alberta © Wayne D. Grover 2002, 2003 Graph theory and routing (initial background) E E Lecture 4.
Problem: Induced Planar Graphs Tim Hayes Mentor: Dr. Fiorini.
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
22C:19 Discrete Math Graphs Spring 2014 Sukumar Ghosh.
9.2 Graph Terminology and Special Types Graphs
GRAPH Learning Outcomes Students should be able to:
Graphs CS /02/05 Graphs Slide 2 Copyright 2005, by the authors of these slides, and Ateneo de Manila University. All rights reserved Definition.
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,
1 ELEC692 Fall 2004 Lecture 1b ELEC692 Lecture 1a Introduction to graph theory and algorithm.
Module #19: Graph Theory: part I Rosen 5 th ed., chs. 8-9 내년 3 월 ? 교환 학생 프로그램 영어 점수 미리미리 준비하세요.
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.
CSE, IIT KGP Graph Theory: Introduction Pallab Dasgupta Dept. of CSE, IIT
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 9 (Part 2): Graphs  Graph Terminology (9.2)
ساختمانهای گسسته دانشگاه صنعتی شاهرود – فروردین 1392.
1 CS104 : Discrete Structures Chapter V Graph Theory.
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Introduction Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering,
GRAPHS THEROY. 2 –Graphs Graph basics and definitions Vertices/nodes, edges, adjacency, incidence Degree, in-degree, out-degree Subgraphs, unions, isomorphism.
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.
Basic Notions on Graphs. The House-and-Utilities Problem.
September1999 CMSC 203 / 0201 Fall 2002 Week #13 – 18/20/22 November 2002 Prof. Marie desJardins.
1 Graphs Theory UNIT IV. 2Contents  Basic terminology,  Multi graphs and weighted graphs  Paths and circuits  Shortest path in weighted graph  Hamiltonian.
ساختمانهای گسسته دانشگاه صنعتی شاهرود – فروردین 1392.
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. 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.
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
GRAPHS. Graph Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component, spanning tree Types of graphs: undirected,
Introduction to Graph Theory
Graph Theory Unit: 4.
CSE, IIT KGP Graph Theory: Introduction Pallab Dasgupta Dept. of CSE, IIT
Chapter 9: Graphs.
Introduction to Graph Theory By: Arun Kumar (Asst. Professor) (Asst. Professor)
Graph Concepts and Algorithms Using LEDA By Caroline Moore and Carmen Frerichs (252a-at and 252a-ao) each graph in the presentation was created using gw_basic_graph_algorithms.
Graph Concepts Illustrated Using The Leda Library Amanuel Lemma CS252 Algorithms.
CSC 252: Algorithms October 28, 2000 Homework #5: Graphs Victoria Manfredi (252a-ad) notes: -Definitions for each of the graph concepts are those presented.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
Graph Terms By Susan Ott. Vertices Here are 7 vertices without any edges Each Vertex is labeled a different color and number.
David Stotts Computer Science Department UNC Chapel Hill.
Leda Demos By: Kelley Louie Credits: definitions from Algorithms Lectures and Discrete Mathematics with Algorithms by Albertson and Hutchinson graphics.
CSC 252 Pallavi Moorthy Homework 5. 1.) Vertices, edges From cd../../handout/demo/graph_alg/gw_shortest_path.
Chapter 9 (Part 2): Graphs
Graphs Hubert Chan (Chapter 9) [O1 Abstract Concepts]
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.
Graph.
Graphs Examples on some basic graph concepts and definitions All graphics are taken from the LEDA demos: basic_graph_algorithms, gw_shortest_paths, graphwin.
Decision Maths Graphs.
MAT 2720 Discrete Mathematics
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Copyright © Cengage Learning. All rights reserved.
Introduction to 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.
GRAPHS.
Presentation transcript:

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 V. Here G is the graph and V is called the set of nodes. So a graph G(V, E) is a set of objects V (of any type), which are called nodes or sometimes vertices. And E is actually the set of pairs, which are called edges or sometimes called links. The edges may be unordered pairs {a,b} or ordered pairs (a,b). With unordered pairs {a,b} and {b, a} are equivalent. But with ordered pairs the order matters so (a,b) is not the same as (b,a). Graphs

2 12/2/2015 MATH 224 – Discrete Mathematics Undirected Graph Edges = {{0,2}, {1,2}, {1,3}, {1,4}, {2,4}, {2,5}, …}

3 12/2/2015 MATH 224 – Discrete Mathematics Directed Graph Edges = {(0,2), (1,2), (3,1), (1,4), (2,4), (4,2), …}

4 12/2/2015 MATH 224 – Discrete Mathematics Simple Graphs Multiple edges between pairs of nodes and self loops are not allowed in simple graphs Multiple Edges Self Loop

5 12/2/2015 MATH 224 – Discrete Mathematics Paths Paths are a sequence of nodes, e.g., 0, 2, 5, 3, where no node is repeated and consecutive nodes correspond to an edge.

6 12/2/2015 MATH 224 – Discrete Mathematics Not a Path (called a walk) Note that some nodes are repeated: 1, 2, 4, 1, 3, 5

7 12/2/2015 MATH 224 – Discrete Mathematics Cycle A cycle is a sequence of nodes, e.g., 1, 2, 4, 5, 3, 1, where consecutive nodes correspond to an edge and the only node that is repeated is the first and last node.

8 12/2/2015 MATH 224 – Discrete Mathematics Cycle Graph A cycle graph consists of a single cycle.

9 12/2/2015 MATH 224 – Discrete Mathematics Trees Trees are acyclic (no cycles) graphs that are connected (a path between every pair of edges). In an N node tree, how many edges are there?

10 12/2/2015 MATH 224 – Discrete Mathematics Not a Tree Cycle

11 12/2/2015 MATH 224 – Discrete Mathematics Not a Tree Cycle This graph is not a tree because it has a cycle and is not connected. There is no path between 0 and 4 for example. What other pairs of nodes are not connected?

12 12/2/2015 MATH 224 – Discrete Mathematics Not a Tree A graph with two components. Two subgraphs that are connected. What are the nodes in each component?

13 12/2/2015 MATH 224 – Discrete Mathematics Isomorphic Graphs Two graphs are called isomorphic if they are the same if renaming the nodes will result in identical graphs. Vertex 1 Corresponds to Vertex

14 12/2/2015 MATH 224 – Discrete Mathematics Isomorphic Graphs ? Are these two graphs isomorphic? Graph A Graph B

15 12/2/2015 MATH 224 – Discrete Mathematics Graph A Graph B Graph B with node 4 moved to the upper right, 2 moved to the upper center and 0 moved to the lower center position. Now Graphs A and B look the same except for labeling. Are these two graphs isomorphic? Yes! Graph B’s nodes have been moved to show the isomorphism.

16 12/2/2015 MATH 224 – Discrete Mathematics Graph Properties - Degree The degree of a node in an undirected graph is the number of edges incident to that node What is the degree of node4? Of node 0? Of node 2?

17 12/2/2015 MATH 224 – Discrete Mathematics Graph Properties – Complete Graphs How is the degree of a graph related to the number of edges? The minimum number of edges in a graph is 0. A graph with the maximum number of edges is called a complete graph. The graph below is a complete undirected graph with four nodes. What is the degree of each node in an N node complete Graph? What is the sum of the degrees in an N node complete Graph? How many edges are there in an N node complete Graph?

18 12/2/2015 MATH 224 – Discrete Mathematics Graph Properties – Bipartite Graphs Bipartite graphs are graphs whose nodes can be divided into two disjoint sets, called partitions, in which there are no edges between nodes within a partition. A complete bipartite graph has all possible edges. So for example, if one partition has K nodes and the other has M nodes, nodes in the K node partition will have degree M and the nodes in the M node partition will have degree K. How many edges will there be in a complete bipartite graph with partitions of size K and M?

19 12/2/2015 MATH 224 – Discrete Mathematics Graph Properties – Bipartite Graphs Bipartite graphs have a number of interesting properties. For example, any cycle in a bipartite graph must have an even number of edges. Note the cycle in red below (0,4,3,5,0)

20 12/2/2015 MATH 224 – Discrete Mathematics Graph Properties – Hypercube Hypercubes have interesting properties that make them useful for some forms of parallel computing. The text illustrates hypercubes for n = 1, 2, 3 on Page 549. The figure below illustrates a 4-cube. How many nodes are in an n-cube for n > 0? How many edges?

21 12/2/2015 MATH 224 – Discrete Mathematics Graph Properties – Planar Graphs Planar graphs are graphs that may be drawn on a 2-dimensional plane without having any of the edges intersect. Below are several planar graphs that are also complete graphs. Try to draw a complete 5 node graph without having any edges intersect. Can you do that?

22 12/2/2015 MATH 224 – Discrete Mathematics Graph Properties – Planar Graphs A complete 5 node graph is not planar. Planar graphs are important in circuit board design. With a single layer circuit board the graph needs representing the circuit needs to be planar so that traces do not intersect. In order to build more complicated circuits multiple layer boards are often needed. In order to connect the edge in red to node a it will have to cross one or more of the other edges unless it is allowed to go outside of the plane. a