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.

Slides:



Advertisements
Similar presentations
Chapter 9 Graphs.
Advertisements

22C:19 Discrete Math Graphs Fall 2010 Sukumar Ghosh.
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.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 CHAPTER 4 - PART 2 GRAPHS 1.
 Graph Graph  Types of Graphs Types of Graphs  Data Structures to Store Graphs Data Structures to Store Graphs  Graph Definitions Graph Definitions.
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.
CSE 321 Discrete Structures Winter 2008 Lecture 25 Graph Theory.
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,
Selected Topics in Data Networking Graph Representation.
9.3 Representing Graphs and Graph Isomorphism
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 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,
GRAPHS CSE, POSTECH. Chapter 16 covers the following topics Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component,
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 9 (Part 2): Graphs  Graph Terminology (9.2)
aka “Undirected Graphs”
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.
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.
September1999 CMSC 203 / 0201 Fall 2002 Week #13 – 18/20/22 November 2002 Prof. Marie desJardins.
Chapter 5 Graphs  the puzzle of the seven bridge in the Königsberg,  on the Pregel.
Introduction to Graph Theory
An Introduction to Graph Theory
Graph Theory and Applications
Graphs 9.1 Graphs and Graph Models أ. زينب آل كاظم 1.
GRAPHS. Graph Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component, spanning tree Types of graphs: undirected,
Graphs Basic properties.
Chapter 9: Graphs.
CS 261 – Nov. 17 Graph properties – Bipartiteness – Isomorphic to another graph – Pseudograph, multigraph, subgraph Path Cycle – Hamiltonian – Euler.
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.
MAT 2720 Discrete Mathematics Section 8.1 Introduction
Chapter Chapter Summary Graphs and Graph Models Graph Terminology and Special Types of Graphs Representing Graphs and Graph Isomorphism Connectivity.
An Introduction to Graph Theory
Applied Discrete Mathematics Week 14: Trees
Chapter 9 (Part 2): Graphs
Lecture 19: CONNECTIVITY Sections
Applied Discrete Mathematics Week 13: Graphs
Special Graphs By: Sandeep Tuli Astt. Prof. CSE.
Copyright © Zeph Grunschlag,
Graph Graphs and graph theory can be used to model:
Graphs Hubert Chan (Chapter 9) [O1 Abstract Concepts]
Chapters 8.1 and 8.2 Based on slides by Y. Peng University of Maryland
Representing Graphs and
Grade 11 AP Mathematics Graph Theory
Chapter 5 Fundamental Concept
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 and Graph Models
Graphs Chapters 10.1 and 10.2 Based on slides by Y. Peng University of Maryland.
Graphs.
Based on slides by Y. Peng University of Maryland
Graphs, Trees and Algorithms 1
Chapters 8.1 and 8.2 Based on slides by Y. Peng University of Maryland
CS100: Discrete structures
Connectivity Section 10.4.
Discrete Mathematics Lecture 12: Graph Theory
Let us switch to a new topic:
Graphs By Rajanikanth B.
Graphs G = (V, E) V are the vertices; E are the edges.
GRAPHS G=<V,E> Adjacent vertices Undirected graph
Introduction to Graph Theory
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.
Presentation transcript:

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 problem (2) What do the vertices represent (3) What do the edges represent (4) What can graph theory say about your real-life problem? Can you formally state the graph theory problem(s)? Use large font (best minimum = 24 point, 18 OK) Figures are helpful. INCLUDE YOUR NAME and affiliation.

Application: Assign classes to professors Isabel Darcy University of Iowa, Mathematics/AMCS/Informatics http://homepage.divms.uiowa.edu/~idarcy MATH: 1020: 0EXW MATH: 2700: 0081 MATH: 4060: 0001 MATH: 5700: 0AAA MATH: 2550: 0230 MATH: 2550: 0235 Example: UI’s mathbio group (Spr 2018)

Application: Assign classes to professors Example: UI’s mathbio group (Spr 2018) MATH: 1020: 0EXW MATH: 2700: 0081 MATH: 4060: 0001 MATH: 5700: 0AAA MATH: 2550: 0230 MATH: 2550: 0235

Application: Assign classes to professors Example: UI’s mathbio group (Spr 2018) MATH: 1020: 0EXW MATH: 2700: 0081 MATH: 4060: 0001 MATH: 5700: 0AAA MATH: 2550: 0230 MATH: 2550: 0235 A vertex represents either a math professor or a section of a math course

Application: Assign classes to professors Example: UI’s mathbio group (Spr 2018) MATH: 1020: 0EXW MATH: 2700: 0081 MATH: 4060: 0001 MATH: 5700: 0AAA MATH: 2550: 0230 MATH: 2550: 0235 An edge connects a math professor to a section of a math course that professor would like to teach

Application: Assign classes to professors Example: UI’s mathbio group (Spr 2018) MATH: 1020: 0EXW MATH: 2700: 0081 MATH: 4060: 0001 MATH: 5700: 0AAA MATH: 2550: 0230 MATH: 2550: 0235 Graph theory problem: Select a subset of the edges so that each vertex representing a course section has degree 1 and each vertex representing a professor has degree 0, 1, or 2.

Application: Assign classes to professors Problem description: Math professors at UI are asked to provide an ordered list of classes that they would like to teach in a particular semester. The goal is to assign classes to these professors which fit their preferences as much as possible. Vertices: The set of professors union the set of classes. I.e., each math professor is represented by a vertex and each section of a math class is represented by a vertex. That is a vertex will represent either a math professor or a section of a math class. Edges: An edge is drawn between a vertex representing a math professor and all sections of a math class if that professor has listed that math class as one of the courses they would like to teach.

Application: Assign classes to professors Example: UI’s mathbio group (Spr 2018) 2 1 1 2 MATH: 1020: 0EXW MATH: 2700: 0081 MATH: 4060: 0001 MATH: 5700: 0AAA MATH: 2550: 0230 MATH: 2550: 0235 Math professors at UI are asked to provide an ordered list of classes that they would like to teach in a particular semester. Weighted graph

Application: Assign classes to professors Example: UI’s mathbio group (Spr 2018) 2 1 1 2 MATH: 1020: 0EXW MATH: 2700: 0081 MATH: 4060: 0001 MATH: 5700: 0AAA MATH: 2550: 0230 MATH: 2550: 0235 Math professors at UI are asked to provide an ordered list of classes that they would like to teach in a particular semester. Weighted graph What is the real problem?

Bipartite graphs In a simple graph G, if V can be partitioned into two disjoint sets V1 and V2 such that every edge in the graph connects a vertex in V1 and a vertex V2 (so that no edge in G connects either two vertices in V1 or two vertices in V2) Application example: Representing Relations Representation example: V1 = {v1, v2, v3} and V2 = {v4, v5, v6}, v4 v1 v5 v2 v6 v3 V2 V1

Graph with 7 nodes and 16 edges Graphs Graph with 7 nodes and 16 edges Nodes / Vertices Undirected Edges Directed https://www.csc2.ncsu.edu/faculty/nfsamato/practical-graph-mining-with-R/

https://www.distributed-systems.net/index.php/books/gtcn/

Definitions – Graph Type Edges Multiple Edges Allowed ? Loops Allowed ? Simple Graph undirected No Multigraph Yes Depends on book (yes for us) Pseudograph Directed Graph directed Directed Multigraph Modified from https://utdallas.edu/~praba/graph.ppt

Simple graphs – special cases Complete graph: Kn, is the simple graph that contains exactly one edge between each pair of distinct vertices. K2 K1 K4 K3 Modified from https://utdallas.edu/~praba/graph.ppt

Bipartite graphs Modified from https://utdallas.edu/~praba/graph.ppt In a simple graph G, if V can be partitioned into two disjoint sets V1 and V2 such that every edge in the graph connects a vertex in V1 and a vertex V2 (so that no edge in G connects either two vertices in V1 or two vertices in V2) Application example: Representing Relations Representation example: V1 = {v1, v2, v3} and V2 = {v4, v5, v6}, v1 v2 v3 v4 v5 v6 V1 V2 https://www.distributed-systems.net/index.php/books/gtcn/

Complete Bipartite graphs Km,n is the graph that has its vertex set portioned into two subsets of m and n vertices, respectively There is an edge between two vertices if and only if one vertex is in the first subset and the other vertex is in the second subset. K2,3 K3,3 Modified from https://utdallas.edu/~praba/graph.ppt

N(1) = {2, 5} N(2) = {1, 3, 5} Degree of vertex 1 is 4 https://en.wikipedia.org/wiki/Adjacency_matrix Degree of vertex 1 is 4 https://www.distributed-systems.net/index.php/books/gtcn/

If every vertex has the same degree, the graph is called regular. A sequence is graphic iff it is the degree sequence for a simple graph. If every vertex has the same degree, the graph is called regular. In a k-regular graph each vertex has degree k. Thus its degree sequence is [k, k, …, k] https://www.distributed-systems.net/index.php/books/gtcn/

https://www.distributed-systems.net/index.php/books/gtcn/

The complement of a graph G, denoted as G is the graph obtained from G by removing all its edges and joining exactly those vertices that were not adjacent in G. It should be clear that if we take a graph G and its complement G “together,” we obtain a complete graph. https://www.distributed-systems.net/index.php/books/gtcn/

Adjacency matrix: A[i, j] = the number of edges joining vertex vi and vj. https://en.wikipedia.org/wiki/Adjacency_matrix https://www.distributed-systems.net/index.php/books/gtcn/

M[i, j] = the number of times that edge ej is incident with vertex vi. Incidence matrix: M[i, j] = the number of times that edge ej is incident with vertex vi. 2 1 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 1 1 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 1 OR https://en.wikipedia.org/wiki/Adjacency_matrix 2 1 0 0 0 0 0 1 0 1 1 0 0 0 1 0 0 0 1 1 0 0 0 0 OR … 0 0 0 1 1 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 1 0 0

(A) (B) (C) B https://www.csc2.ncsu.edu/faculty/nfsamato/practical-graph-mining-with-R/

Graph Isomorphism C (A) (B) (C) Which graphs are isomorphic? https://www.csc2.ncsu.edu/faculty/nfsamato/practical-graph-mining-with-R/