September1999 CMSC 203 / 0201 Fall 2002 Week #13 – 18/20/22 November 2002 Prof. Marie desJardins.

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Chapter 8 Topics in Graph Theory
Chapter 9 Graphs.
22C:19 Discrete Math Graphs Fall 2010 Sukumar Ghosh.
Graph-02.
 期中测验时间:本周五上午 9 : 40  教师 TA 答疑时间 : 周三晚上 6 : 00—8 : 30  地点:软件楼 315 房间,  教师 TA :李弋老师  开卷考试.
1 Slides based on those of Kenneth H. Rosen Slides by Sylvia Sorkin, Community College of Baltimore County - Essex Campus Graphs.
1 Section 8.2 Graph Terminology. 2 Terms related to undirected graphs Adjacent: 2 vertices u & v in an undirected graph G are adjacent (neighbors) in.
SE561 Math Foundations Week 11 Graphs I
Graph Theory in CS Route Search in Online Map Services
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,
Applied Discrete Mathematics Week 12: Trees
KNURE, Software department, Ph , N.V. Bilous Faculty of computer sciences Software department, KNURE Discrete.
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
Let us switch to a new topic:
22C:19 Discrete Math Graphs Spring 2014 Sukumar Ghosh.
Applied Discrete Mathematics Week 10: Equivalence Relations
9.2 Graph Terminology and Special Types Graphs
GRAPH Learning Outcomes Students should be able to:
Graphs Chapter 10.
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,
1 Graphs Chapters 9.1 and 9.2 University of Maryland Chapters 9.1 and 9.2 Based on slides by Y. Peng University of Maryland.
GRAPHS CSE, POSTECH. Chapter 16 covers the following topics Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component,
Module #19: Graph Theory: part I Rosen 5 th ed., chs. 8-9 내년 3 월 ? 교환 학생 프로그램 영어 점수 미리미리 준비하세요.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 9 (Part 2): Graphs  Graph Terminology (9.2)
1 CS104 : Discrete Structures Chapter V Graph Theory.
September1999 CMSC 203 / 0201 Fall 2002 Week #8 – 14/16 October 2002 Prof. Marie desJardins.
Based on slides by Y. Peng University of Maryland
9.1 Introduction to Graphs
GRAPHS THEROY. 2 –Graphs Graph basics and definitions Vertices/nodes, edges, adjacency, incidence Degree, in-degree, out-degree Subgraphs, unions, isomorphism.
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.
Graphs What are Graphs? General meaning in everyday math: A plot or chart of numerical data using a coordinate system. Technical meaning in discrete.
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.
CS 103 Discrete Structures Lecture 20
Graph Theory and Applications
Lecture 10: Graph-Path-Circuit
CSCI 115 Chapter 8 Topics in Graph Theory. CSCI 115 §8.1 Graphs.
And before you really hate (mathematical) relations and begin to break your (social) relations, let’s switch to a new topic: Graphs Discrete Structures.
GRAPHS. Graph Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component, spanning tree Types of graphs: undirected,
 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.
Discrete Structures CISC 2315 FALL 2010 Graphs & Trees.
1 Graphs Terminology By: Sandeep Tuli Astt. Prof. CSE.
Chapter 9: Graphs.
CS 261 – Nov. 17 Graph properties – Bipartiteness – Isomorphic to another graph – Pseudograph, multigraph, subgraph Path Cycle – Hamiltonian – Euler.
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!
Chap 7 Graph Def 1: Simple graph G=(V,E) V : nonempty set of vertices E : set of unordered pairs of distinct elements of V called edges Def 2: Multigraph.
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.
1 Graphs Chapters 10.1 and 10.2 University of Maryland Chapters 10.1 and 10.2 Based on slides by Y. Peng University of Maryland.
Chapter Chapter Summary Graphs and Graph Models Graph Terminology and Special Types of Graphs Representing Graphs and Graph Isomorphism Connectivity.
Chapter 9 (Part 2): Graphs
Lecture 19: CONNECTIVITY Sections
Applied Discrete Mathematics Week 13: Graphs
Special Graphs By: Sandeep Tuli Astt. Prof. CSE.
Graphs Hubert Chan (Chapter 9) [O1 Abstract Concepts]
Chapters 8.1 and 8.2 Based on slides by Y. Peng University of Maryland
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.
Graphs Chapters 10.1 and 10.2 Based on slides by Y. Peng University of Maryland.
Chapters 8.1 and 8.2 Based on slides by Y. Peng University of Maryland
Relations (sections 7.1 – 7.5)
Summary 3 Discrete Probability (sections )
CS100: Discrete structures
Let us switch to a new topic:
Graphs G = (V, E) V are the vertices; E are the edges.
Applied Discrete Mathematics Week 13: Graphs
Presentation transcript:

September1999 CMSC 203 / 0201 Fall 2002 Week #13 – 18/20/22 November 2002 Prof. Marie desJardins

September1999 MON 11/18 EQUIVALENCE RELATIONS (6.5)

September1999 October 1999 Concepts/Vocabulary  Equivalence relation: Relation that is reflexive, symmetric, and transitive (e.g., people born on the same day, strings that are the same length)  Equivalence class: Set of all elements “equivalent to” a given element x (i.e., [x] = {y: (x,y)  R}).  Partition: disjoint nonempty subsets of S that have S as their union  The equivalence classes of a set form a partition of the set

September1999 October 1999 Examples  Exercise 6.5.4: Define three equivalence relations on the set of students in this class.  Exercise : A partition P 1 is a refinement of a partition P 2 if every set in P 1 is a subset of some set in P 2.  (27) Show that the partition formed from the congruence classes modulo 6 is a refinement of the partition formed from the congruence classes modulo 3.  (28) Suppose that R 1 and R 2 are equivalence relations on a set A. Let P 1 and P 2 be the partitions that correspond to R 1 and R 2, respectively. Show that R 1  R 2 iff P 1 is a refinement of P 2.

September1999 October 1999 Examples II  * Exercise : Consider the set of all colorings of the 2x2 chessboard where each of the four squares is colored either red or blue. Define the relation R on this set such that (C 1, C 2 ) is in R iff C 2 can be obtained from C 1 either by rotating the chessboard or by rotating it and then reflecting it.  (a) Show that R is an equivalence relation.  (b) What are the equivalence classes of R?

September1999 WED 11/20 GRAPHS ( )

September1999 October 1999 Concepts / Vocabulary [7.1]  Simple graph G = (V, E) – vertices V, edges E  A multigraph can have multiple edges between the same pair of vertices  A pseudograph can also have loops (from a vertex to itself)  In an undirected graph, the edges are unordered pairs  In a directed graph, the edges are ordered pairs  You should be familiar with all of these types of graphs, but for problem solving, you will only be using simple directed and undirected graphs

September1999 October 1999 Concepts/Vocabulary [6.2]  Adjacent, neighbors, connected, endpoints, incident  Degree of a vertex (number of edges), in-degree, out-degree; isolated, pendant vertices  Complete graph K n  Cycle C n (can also say that a graph contains a cycle)  Bipartite graphs, complete bipartite graphs K m, n  Wheels, n-Cubes (don’t need to know these)  Subgraph, union

September1999 October 1999 Examples  Exercise 7.1.2: What kind of graph can be used to model a highway system between major cities where  (a) there is an edge between the vertices representing cities if there is an interstate highway between them?  (b) there is an edge between the vertices representing cities for each interstate highway between them?  (c) there is an edge between the vertices representing cities for each interstate highway between them, and there is a loop at the vertex representing a city if there is an interstate highway that circles this city?

September1999 October 1999 Examples II  Exercise : The intersection graph of a collection of sets A 1, A 2, …, A n has a vertex for each set, and an edge connecting two vertices if the corresponding sets have a nonempty intersection. Construct the intersection graph for these sets:  (a) A 1 = {0, 2, 4, 6, 8}, A 2 = {0, 1, 2, 3, 4}, A 3 = {1, 3, 5, 7, 9}, A 4 = {5, 6, 7, 8, 9}, A 5 = {0, 1, 8, 9}  (b) A 1 = {…, -4, -3, -2, -1, 0}, A 2 = {…, -2, -1, 0, 1, 2, …}, A 3 = {…, -6, -4, -2, 0, 2, 4, 6, …}, A 4 = {…, -5, -3, -1, 1, 3, 5, …}, A 5 = {…, -6, -3, 0, 3, 6, …}

September1999 October 1999 Examples III  Exercise : How many vertices and how many edges do the following graphs have?  (a) K n  (b) C n  (d) K m, n  Exercise : How many edges does a graph have if it has vertices of degree 4, 3, 3, 2, 2?  Exercise : How many subgraphs with at least one vertex does K 3 have?

September1999 FRI 11/22 GRAPH STRUCTURE ( )

September1999 October 1999 Concepts/Vocabulary  Adjacency list, adjacency matrix, incidence matrix  Isomorphism, invariant properties  Paths, path length, circuits/cycles, simple paths/circuits  Connected graphs, connected components  Strong connectivity, weak connectivity  Cut vertices, cut edges  Euler circuit, Euler path  Hamilton path, Hamilton circuit  For this section (7.5), need to know terminology but not proofs

September1999 October 1999 Examples  Exercise 7.3.1/5/26: Represent the given graph with an adjacency list, an adjacency matrix, and an incidence matrix. A CD B

September1999 October 1999 Examples II  Exercise /38/41: Determine whether the given pairs of graphs are isomorphic.  A simple graph G is called self-complementary if G and  G are isomorphic.  Exercise : Show that the following graph is self- complementary. A CD B

September1999 October 1999 Examples III  Exercise (a), (a): Are the simple graphs with the given adjacency matrices / incidence matrices isomorphic?  Exercise 7.4.1: Is the list of vertices a path in the graph? Which paths are circuits? What are the lengths of those that are paths?  Exercise : Find all of the cut vertices of the given graphs.  Exercise 7.5.2: Does the graph have an Euler circuit?  Exercise : Can you cross all the bridges exactly once and reurn to the starting point?