1/13/03Tucker, Applied Combinatorics, Sec.1.1 1 Tucker, Applied Combinatorics, Sec. 1.1, Jo E-M A Graph is a set of vertices (dots) with edges (lines)

Slides:



Advertisements
Similar presentations
Applied Combinatorics, 4th Ed. Alan Tucker
Advertisements

04/12/2005Tucker, Sec Applied Combinatorics, 4 th Ed. Alan Tucker Section 4.4 Algorithmic Matching Prepared by Joshua Schoenly and Kathleen McNamara.
SE561 Math Foundations Week 11 Graphs I
02/01/05Tucker, Sec Applied Combinatorics, 4th Ed. Alan Tucker Section 1.3 Edge Counting Prepared by Joshua Schoenly and Kathleen McNamara.
Tucker, Applied Combinatorics, Section 1.4, prepared by Patti Bodkin
1/25/2005Tucker, Sec Applied Combinatorics, 4th Ed. Alan Tucker Section 1.2 Isomorphism Prepared by Jo Ellis-Monaghan.
Graph Theory in CS Route Search in Online Map Services
Copyright © Zeph Grunschlag, Paths and Connectivity Zeph Grunschlag.
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,
4/17/2017 Section 8.5 Euler & Hamilton Paths ch8.5.
3/24/03Tucker, Section 4.31 Tucker, Applied Combinatorics, Sec. 4.3, prepared by Jo E-M Bipartite GraphMatching Some Definitions X-Matching Maximal Matching.
Selected Topics in Data Networking Graph Representation.
Applied Discrete Mathematics Week 12: Trees
MCA 520: Graph Theory Instructor Neelima Gupta
D1: Matchings.
1/25/05Tucker, Sec.1.11 Applied Combinatorics, 4th Ed. Alan Tucker Section 1.1 Graph Models Prepared by Jo Ellis-Monaghan.
Chapter 7 Graphing Linear Equations
1/22/03Tucker, Applied Combinatorics, Section EDGE COUNTING TUCKER, APPLIED COMBINATORICS, SECTION 1.3, GROUP B Michael Duquette & Amanda Dargie.
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 Excursions in Modern Mathematics Sixth Edition Peter Tannenbaum.
7.1 Introduction to Graph Theory
Graph Theory Topics to be covered:
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.
Week 11 - Monday.  What did we talk about last time?  Binomial theorem and Pascal's triangle  Conditional probability  Bayes’ theorem.
Graph Colouring L09: Oct 10. This Lecture Graph coloring is another important problem in graph theory. It also has many applications, including the famous.
Basic Notions on Graphs. The House-and-Utilities Problem.
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.
COSC 2007 Data Structures II Chapter 14 Graphs I.
September1999 CMSC 203 / 0201 Fall 2002 Week #13 – 18/20/22 November 2002 Prof. Marie desJardins.
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.
Lecture 10: Graph-Path-Circuit
Lecture 5.4: Paths and Connectivity CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Zeph Grunschlag.
Graphs 9.1 Graphs and Graph Models أ. زينب آل كاظم 1.
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
Homework #5 Due: October 31, 2000 Christine Kang Graph Concepts and Algorithms.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
Basic properties Continuation
Homework - hints Problem 1. Node weights  Edge weights
Chapter 9: Graphs.
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.
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.
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.
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.
Excursions in Modern Mathematics Sixth Edition
Lecture 5.4: Paths and Connectivity
Graphs: Definitions and Basic Properties
Copyright © Zeph Grunschlag,
Graph Graphs and graph theory can be used to model:
Redraw these graphs so that none of the line intersect except at the vertices B C D E F G H.
CSE 373, Copyright S. Tanimoto, 2001 Graphs 1 -
Grade 11 AP Mathematics Graph Theory
Graph theory Definitions Trees, cycles, directed graphs.
Graphs.
Spanning Trees Discrete Mathematics.
CSE 373, Copyright S. Tanimoto, 2002 Graphs 1 -
Relations and Digraphs
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.
5 The Mathematics of Getting Around
GRAPHS G=<V,E> Adjacent vertices Undirected graph
Applied Combinatorics, 4th Ed. Alan Tucker
Warm Up – 3/17 - Monday A) List the set of vertices.
Applied Discrete Mathematics Week 13: Graphs
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:

1/13/03Tucker, Applied Combinatorics, Sec Tucker, Applied Combinatorics, Sec. 1.1, Jo E-M A Graph is a set of vertices (dots) with edges (lines) connecting them. E.g. #1: Two vertices are adjacent if there is a line between them. The vertices A and B above are adjacent because the edge AB is between them. The edge AB could also have been written as BA. An edge is incident to each of the vertices which are its end points. The degree of a vertex is the number of edges sticking out from it. A B C D

1/13/03Tucker, Applied Combinatorics, Sec A B C D A multiple edge A loop A B C D No loops or multiple edges are allowed in this book (other people allow them, sometimes calling them multigraphs or pseudographs). Eg. #2: A directed graph (a.k.a. an oriented graph, or a digraph) is a graph with little arrows on the edges. Eg. #3: Here the order of the letters when you write the edge is important. The directed (or oriented) edge from the vertex A to the vertex B is written. A is the tail of, and B is the head.

1/13/03Tucker, Applied Combinatorics, Sec A path in a graph is just a list of vertices (none of them repeated) with an edge between each vertex in the list and the one after it. Note: in some applications, repeated vertices are allowed, and sometimes the word trail is used to distinguish a path where repeated vertices are allowed. You almost never are allowed to go back over an edge. But… if you have an application where it makes sense to repeat edges, just make up a new word and definition and do what you need to! A circuit (or cycle) is a path that goes back to the vertex it started at. Typically, a path or cycle in a digraph only traverses the edges in the directions of the arrows. However, there are things called antipaths and anticircuits where you traverse the edges in alternating directions. DBAC is a path in the graph below, and ABCA is a circuit. (Sometimes if it is clear from context that you are talking about a circuit, the last vertex isn’t repeated.) A B C D

1/13/03Tucker, Applied Combinatorics, Sec A set of vertices in a graph which have no edges connecting any of them is called an independent set of vertices. An edge cover of a graph is a set of vertices in the graph so that every edge in the graph is incident with at least one of the vertices in the set. For example, {B, C} is an edge cover of the graph below. In a digraph, the analogy to an edge cover is called a vertex basis. Here the set of vertices is such that every edge in the graph has one of those vertices as its tail. To be a vertex basis though, the set of vertices must be as small as possible to cover the graph. A B C D A B C D

1/13/03Tucker, Applied Combinatorics, Sec b 1 a 2 c A bipartite graph is a graph where you can separate all the vertices into two subsets so that all the edges go between a vertex in one subset and a vertex in the other, with no edges between vertices in the same subset. E.g. #4 (the notation for the complete bipartite graph on the right is K 3,2 ): An interval graph is a special kind of graph which represents a bunch of overlapping (i.e. intersecting) intervals. If you have a bunch of overlapping intervals, you make a vertex for each interval, and put an edge between them if their intervals overlap. The graph on the left in E.g. #4 is an interval graph for these intervals: 1 2 a b c 1 2 a b c

1/13/03Tucker, Applied Combinatorics, Sec a b c Not all graphs are interval graphs though. If we put another edge, b2, in the graph from example #4, we no longer have an interval graph. Eg. #5: There is no way to draw the interval for b so that it overlaps the interval for 2, but not the interval for a. It is true in general that if a graph contains an n-cycle for n greater than 3, then it cannot be an interval graph.

1/13/03Tucker, Applied Combinatorics, Sec a e i b c d f j g h k WORKED EXAMPLE: Book example 4. Put a cop on selected corners so that every street is watched. Use as few cops as possible. Ie., find a minimal edge cover for this graph. There are 14 edges, and 6 vertices of degree 3 and 5 vertices of degree 2. A cop on a three way-corner can watch at most 3 streets, so to cover 14 edges we need at least 5 cops. Note that to cover the subgraph formed by {a, b, e, f, i, j}, we need to use three vertices, either b, e, j, or a, f, i. If we use the former though, we get two extra edges, bc and ik, covered for free. So try this, and then look at the rest of the graph. The two remaining degree 3 vertices are c and h, so they would cover the most, so try them first. Hey…, yahoo, it works! The discussion in the book shows that in fact this is the only way to watch all the streets with only 5 cops. Notice that the corners that don’t get cops form an independent set of vertices, i.e. there are no edges connecting any of them. This is always true: If one set of vertices is independent, all the rest of the vertices will form an edge cover and vice versa.

1/13/03Tucker, Applied Combinatorics, Sec FOR CLASS TO TRY: Do the rest of this example: find a way to position a minimal number of cops so that every corner is watched. a e i b c d f j g h k Hint: Need at least three cops, since a degree 3 vertex can only watch 4 corners (itself and three other vertices), and there are 11 vertices to watch. One solution is e, c, k.