Graphs and 2-Way Bounding Discrete Structures (CS 173) Madhusudan Parthasarathy, University of Illinois 1 /File:7_bridgesID.png.

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

CS 336 March 19, 2012 Tandy Warnow.
CS 253: Algorithms Chapter 22 Graphs Credit: Dr. George Bebis.
Analysis of Algorithms CS 477/677
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.
Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
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.
Introduction to Graphs
Lecture 21 Paths and Circuits CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
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.
Last time: terminology reminder w Simple graph Vertex = node Edge Degree Weight Neighbours Complete Dual Bipartite Planar Cycle Tree Path Circuit Components.
Representing Graphs Wade Trappe. Lecture Overview Introduction Some Terminology –Paths Adjacency Matrix.
Graph Colouring Lecture 20: Nov 25.
CSE 321 Discrete Structures Winter 2008 Lecture 25 Graph Theory.
Graphs. Graph A “graph” is a collection of “nodes” that are connected to each other Graph Theory: This novel way of solving problems was invented by a.
MATH 310, FALL 2003 (Combinatorial Problem Solving) Lecture 10, Monday, September 22.
Chapter 11 Graphs and Trees This handout: Terminology of Graphs Eulerian Cycles.
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:
Graph Theory Topics to be covered:
1 CS104 : Discrete Structures Chapter V Graph Theory.
CS 200 Algorithms and Data Structures
Connected Components Fun with graphs, searching, and queues.
Graph Colouring L09: Oct 10. This Lecture Graph coloring is another important problem in graph theory. It also has many applications, including the famous.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Basic Notions on Graphs. The House-and-Utilities Problem.
Lecture 14: Graph Theory I Discrete Mathematical Structures: Theory and Applications.
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.
Graphs and Isomorphisms Discrete Structures (CS 173) Madhusudan Parthasarathy, University of Illinois Backyards of Old Houses in Antwerp in the Snow Van.
September1999 CMSC 203 / 0201 Fall 2002 Week #13 – 18/20/22 November 2002 Prof. Marie desJardins.
Introduction to Graph Theory
1.5 Graph Theory. Graph Theory The Branch of mathematics in which graphs and networks are used to solve problems.
Graph Colouring Lecture 20: Nov 25. This Lecture Graph coloring is another important problem in graph theory. It also has many applications, including.
Discrete Mathematical Structures: Theory and Applications
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.
CSCI 115 Chapter 8 Topics in Graph Theory. CSCI 115 §8.1 Graphs.
Chap. 11 Graph Theory and Applications 1. Directed Graph 2.
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
1.Quiz 5 due tomorrow afternoon in E309 from 1pm to 4pm. 2.Homework grades will be based on ten graded homework assignments (dropping the lowest one).
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
Lecture 11: 9.4 Connectivity Paths in Undirected & Directed Graphs Graph Isomorphisms Counting Paths between Vertices 9.5 Euler and Hamilton Paths Euler.
Chapter 6: Graphs 6.1 Euler Circuits
Introduction to Graph Theory
Graph Theory Unit: 4.
Chapter 20: Graphs. Objectives In this chapter, you will: – Learn about graphs – Become familiar with the basic terminology of graph theory – Discover.
1) Find and label the degree of each vertex in the graph.
CS 261 – Nov. 17 Graph properties – Bipartiteness – Isomorphic to another graph – Pseudograph, multigraph, subgraph Path Cycle – Hamiltonian – Euler.
COMPSCI 102 Introduction to Discrete Mathematics.
(CSC 102) Lecture 30 Discrete Structures. Graphs.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
Homework 8 Graph G is given by the figure below.
Graphs Hubert Chan (Chapter 9) [O1 Abstract Concepts]
Great Theoretical Ideas In Computer Science
Graph Theory CSRU1400, Fall 2007 Ellen Zhang.
Graph theory Definitions Trees, cycles, directed graphs.
Graph.
Lecture 15: Graph Theory II
Discrete Mathematics Lecture 13_14: Graph Theory and Tree
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Chapter 10 Graphs and Trees
Agenda Review Lecture Content: Shortest Path Algorithm
Presentation transcript:

Graphs and 2-Way Bounding Discrete Structures (CS 173) Madhusudan Parthasarathy, University of Illinois 1 /File:7_bridgesID.png

Last Lecture: Graphs How to represent graphs? What are the properties of a graph? – Degrees, special types When are two graphs isomorphic, having the same structure? 2

Isomorphism example 3 a b c d e overhead

Today’s lecture Subgraphs How do we characterize connectivity and walks in graphs? What is graph coloring and what is it good for? What are bipartite graphs and why are they important? Methods and applications for 2-way bounding 4

Subgraphs 5

Subgraphs and isomorphisms 6

Bridges of Konigsberg Possible to cross all bridges exactly one and end up where you started? 7 Image source: First theorem of graph theory!

Terminology of walks walk: sequence of connected nodes/edges closed walk: start and end point are the same path: walk with no node used more than once 8 b d a e c f overhead

Terminology of walks cycle: closed walk with 3+ nodes, no nodes except the first/last used more than once acyclic: graph without cycles Euler circuit: closed walk that uses each edge exactly once 9 b d a e c f overhead

Bridges of Konigsberg Possible to cross all bridges exactly one and end up where you started? 10 overhead

11

More connectivity terminology The distance of two nodes is the minimum number of edges that forms a walk from one node to the other. The diameter of a graph is the maximum distance between any two nodes in a graph. 12

More connectivity terminology A graph is connected if there is a walk between any two nodes. A connected component is a subset of nodes that are connected to each other but not connected to any other nodes. 13 overhead

Connected components application Many applications for finding connected pixels corresponding to boundaries or regions 14

Coloring graph coloring: a labeling of nodes such that no two adjacent nodes have the same label chromatic number: the minimum number of labels required for a coloring 15 overhead cycles, wheels, complete, grid

Applications of coloring Making a map How many exam variations to make so that neighbors have different copies? 16 overhead

Applications of coloring Choosing a wardrobe 17 overhead

Bipartite graphs 18 overhead

Application: bipartite graph matching The National Residency Matching Program – Med students give their preferences for residency jobs – Residency locations give their preferences for Med students – Solve for the maximum matching 19 overhead

Application: bipartite graph matching Computer vision – Get soft correspondence between points, with a cost of matching each point on left to each point on right – Find the “match” with the lowest cost (find a subset of edges that do not share an endpoint) 20

Two-way bounding: graph coloring 21 What is the chromatic number?

Two-way bounding: marker making How many 3x3” crosses can be cut out of a 12x15” sheet of paper? 22 overhead

23

Two-way bounding: set equality 24

Things to remember Terminology for graph connectivity – Walk, path, cycle, acyclic, closed, Euler circuit, distance, diameter, connected components Graph coloring and how to apply it How to use two-way bounding in a variety of settings 25

Next class Induction 26