CS 261 – Nov. 17 Graph properties – Bipartiteness – Isomorphic to another graph – Pseudograph, multigraph, subgraph Path Cycle – Hamiltonian – Euler.

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Chapter 8 Topics in Graph Theory
Chapter 9 Graphs.
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.
22C:19 Discrete Math Graphs Fall 2014 Sukumar Ghosh.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Graph-02.
13 May 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction.
1 Slides based on those of Kenneth H. Rosen Slides by Sylvia Sorkin, Community College of Baltimore County - Essex Campus Graphs.
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.
Section 2.1 Euler Cycles Vocabulary CYCLE – a sequence of consecutively linked edges (x 1,x2),(x2,x3),…,(x n-1,x n ) whose starting vertex is the ending.
Discrete Structures Chapter 7B Graphs Nurul Amelina Nasharuddin Multimedia Department.
Representing Graphs Wade Trappe. Lecture Overview Introduction Some Terminology –Paths Adjacency Matrix.
Discrete Structures Chapter 7A Graphs Nurul Amelina Nasharuddin Multimedia Department.
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,
Chapter 4 Graphs.
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.
GRAPH Learning Outcomes Students should be able to:
Graphs and Trees Graph theory Purpose: Overall goals
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,
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)
CSNB143 – Discrete Structure Topic 9 – Graph. Learning Outcomes Student should be able to identify graphs and its components. Students should know how.
Copyright © Zeph Grunschlag, More on Graphs.
1 CS104 : Discrete Structures Chapter V Graph Theory.
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.
Data Structures & Algorithms Graphs
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.
An Introduction to Graph Theory
Graph Theory and Applications
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
Lecture 52 Section 11.2 Wed, Apr 26, 2006
Chapter 6: Graphs 6.1 Euler Circuits
 Quotient graph  Definition 13: Suppose G(V,E) is a graph and R is a equivalence relation on the set V. We construct the quotient graph G R in the follow.
Basic properties Continuation
Chapter 11 - Graph CSNB 143 Discrete Mathematical Structures.
Chapter 9: Graphs.
CSC 252: Algorithms October 28, 2000 Homework #5: Graphs Victoria Manfredi (252a-ad) notes: -Definitions for each of the graph concepts are those presented.
Graphs Rosen, Chapter 8. NOT ONE OF THESE! One of these!
Week 11 - Wednesday.  What did we talk about last time?  Graphs  Paths and circuits.
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,
Lecture 5.3: Graph Isomorphism and Connectivity CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Zeph Grunschlag.
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.
An Introduction to Graph Theory
Graphs: Definitions and Basic Properties
Chapter 9 (Part 2): Graphs
Lecture 19: CONNECTIVITY Sections
Grade 11 AP Mathematics Graph Theory
Chapter 5 Fundamental Concept
Graphs Rosen, Chapter 8.
Graph theory Definitions Trees, cycles, directed graphs.
Discrete Structures – CNS2300
Can you draw this picture without lifting up your pen/pencil?
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
Decision Maths Graphs.
Graph Theory What is a graph?.
Representing Graphs Wade Trappe.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Applied Combinatorics, 4th Ed. Alan Tucker
Applied Discrete Mathematics Week 13: Graphs
Agenda Review Lecture Content: Shortest Path Algorithm
Presentation transcript:

CS 261 – Nov. 17 Graph properties – Bipartiteness – Isomorphic to another graph – Pseudograph, multigraph, subgraph Path Cycle – Hamiltonian – Euler

Bipartite Property that a graph may have Useful to find a variable’s usage in a program Bipartite = it is possible to partition the set of vertices into 2 subsets, such that within a subset no two vertices are adjacent – As a consequence, you won’t see triangles anywhere. – To determine: try to partition vertices. Adjacent vertices must go to different camps. Are these bipartite?

Isomorphism Meaning: same shape How can we tell if 2 graphs are essentially the same? Definition: the vertices can be put into a 1-1 correspondence. (  same adj matrix) Easier to disprove when not isomorphic. Checklist: – Same # vertices and same # edges – Same degree sequence – Connectedness (both are, or both are not) – Existence of cycles – Adjacency of conspicuous vertices – Consider the complement if e < n(n – 1) / 4

Examples Isomorphic since A, B, C, D correspond to W, Z, Y, X Check out adjacency of degree-2 vertices! Question: can a graph by isomorphic to its complement? BA Z X Y C W D

How many graphs… How many nonisomorphic graphs have 4 vertices and 3 edges? For this question, let’s expand the definition of “graph” to include – Loop(s) on a single vertex: pseudograph – Multiple edges between same pair of vertices: multigraph I think the answer is 20. Can you draw all of them? – 3 loops (3); 2 loops (5); 1 loop (4) – Parallel (3); parallel and loop (2) – Simple (3)

Subgraph Analogous to a subset To obtain a subgraph from an existing graph, feel free to remove edges/vertices. But you can’t remove a vertex if some edge needs it! What are the subgraphs of a triangle? It’s convenient to classify by the number of edges. – e = 0: You only have vertices. 8 subsets of 3 elements. – e = 1: Choose which vertex is not connected. For each case, you can even remove that vertex. – e = 2: Just choose which edge not to draw. – e = 3: The entire graph itself.

Paths and Cycles A path is simply a sequence of edges that allow us to “travel” from one vertex to another. – Formally, each edge’s first vertex must match the second vertex of the previous edge. And analogously, each edge’s second vertex must match the next edge’s first vertex. In other words, you can’t just list the edges in random order. Cycle = a path in which the first vertex is the same as the last vertex. There are 2 interesting types of cycles – Hamiltonian: passes thru every vertex once – Euler: includes every edge once

Hamiltonian Can refer to a path or a cycle that… – goes thru every vertex exactly once – And, in the case of a cycle, returns home. When does a graph contain one? – There needs to be a subgraph where all vertices have degree 2, such as a polygon. – The trick is to remove edges we don’t really need, and recognize edges that are essential. – Essential edges  we may be forced to visit a vertex twice. – Removing unnecessary edges  graph may become disconnected. *** Examples in book

Euler Can refer to a path or a cycle that… – Goes thru every edge exactly once Euler said it was impossible to cross all 7 bridges of Königsberg and return to the same point. Key: every vertex must have even degree