Graph (1A) Young Won Lim 4/19/18

Similar documents
Graph Overview (1A) Young Won Lim 5/9/18

Eulerian Cycle (2A) Young Won Lim 4/26/18

Eulerian Cycle (2A) Walk : vertices may repeat, edges may repeat (closed or open) Trail: vertices may repeat, edges cannot repeat (open)

Planar Graph (7A) Young Won Lim 5/21/18

Planar Graph (7A) Young Won Lim 6/20/18

Eulerian Cycle (2A) Young Won Lim 5/11/18

Eulerian Cycle (2A) Young Won Lim 5/25/18

Introduction III. Graphs. Motivations I. Introduction IV

Graph Theory. Part of Texas Counties.

Varying Applications (examples)

Course Introduction / Review of Fundamentals of Graph Theory

CS 311 Discrete Math for Computer Science Dr. William C. Bulko. Graphs

6.2. Paths and Cycles

Elements of Graph Theory

Graphs. Pseudograph: multiple edges and loops allowed

Chapter 1 Graph Theory

Lecture 5: Graphs. Rajat Mittal. IIT Kanpur

Graph Theory CS/Math231 Discrete Mathematics Spring2015

Algorithms: Graphs. Amotz Bar-Noy. Spring 2012 CUNY. Amotz Bar-Noy (CUNY) Graphs Spring / 95

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. An Introduction to Graph Theory

11.4 Bipartite Multigraphs

Algorithms. Graphs. Algorithms

Minimum Spanning Tree (5A) Young Won Lim 5/11/18

Computational Discrete Mathematics

GRAPHS, GRAPH MODELS, GRAPH TERMINOLOGY, AND SPECIAL TYPES OF GRAPHS

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 7

1. a graph G = (V (G), E(G)) consists of a set V (G) of vertices, and a set E(G) of edges (edges are pairs of elements of V (G))

CS 2336 Discrete Mathematics

Module 2: NETWORKS AND DECISION MATHEMATICS

Graph and Digraph Glossary

Section 3.4 Basic Results of Graph Theory

Math 776 Graph Theory Lecture Note 1 Basic concepts

Mathematics and Statistics, Part A: Graph Theory Problem Sheet 1, lectures 1-4

BIL694-Lecture 1: Introduction to Graphs

Further Mathematics 2016 Module 2: NETWORKS AND DECISION MATHEMATICS Chapter 9 Undirected Graphs and Networks

Number Theory and Graph Theory

Fundamental Properties of Graphs

DS UNIT 4. Matoshri College of Engineering and Research Center Nasik Department of Computer Engineering Discrete Structutre UNIT - IV

Chapter 14 Section 3 - Slide 1

Worksheet for the Final Exam - Part I. Graphs

The Konigsberg Bridge Problem

An Interactive Introduction to Graph Theory

Undirected Network Summary

Discrete Mathematics for CS Spring 2008 David Wagner Note 13. An Introduction to Graphs

Definition For vertices u, v V (G), the distance from u to v, denoted d(u, v), in G is the length of a shortest u, v-path. 1

Assignments are handed in on Tuesdays in even weeks. Deadlines are:

Chapter 3: Paths and Cycles

Assignment 4 Solutions of graph problems

Section 8.2 Graph Terminology. Undirected Graphs. Definition: Two vertices u, v in V are adjacent or neighbors if there is an edge e between u and v.

Instant Insanity Instructor s Guide Make-it and Take-it Kit for AMTNYS 2006

v V Question: How many edges are there in a graph with 10 vertices each of degree 6?

INTRODUCTION TO GRAPH THEORY. 1. Definitions

How can we lay cable at minimum cost to make every telephone reachable from every other? What is the fastest route between two given cities?

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao,David Tse Note 8

Discrete Mathematics (2009 Spring) Graphs (Chapter 9, 5 hours)

Math.3336: Discrete Mathematics. Chapter 10 Graph Theory

Graphs and Isomorphisms

Discrete mathematics

Lecture 3: Recap. Administrivia. Graph theory: Historical Motivation. COMP9020 Lecture 4 Session 2, 2017 Graphs and Trees

Basics of Graph Theory

Math 778S Spectral Graph Theory Handout #2: Basic graph theory

Graph Theory. Connectivity, Coloring, Matching. Arjun Suresh 1. 1 GATE Overflow

Graphs Definitions. Gunnar Gotshalks. GraphDefinitions 1

Rosen, Discrete Mathematics and Its Applications, 6th edition Extra Examples

Functions (4A) Young Won Lim 5/8/17

Graph Overview (1A) Young Won Lim 5/11/18

An Introduction to Graph Theory

CMSC 380. Graph Terminology and Representation

CS70 - Lecture 6. Graphs: Coloring; Special Graphs. 1. Review of L5 2. Planar Five Color Theorem 3. Special Graphs:

Math 170- Graph Theory Notes

About the Tutorial. Audience. Prerequisites. Disclaimer & Copyright. Graph Theory

Computer Science 280 Fall 2002 Homework 10 Solutions

Ma/CS 6b Class 5: Graph Connectivity

Characterizing Graphs (3) Characterizing Graphs (1) Characterizing Graphs (2) Characterizing Graphs (4)

Introduction to Graphs

CHAPTER 10 GRAPHS AND TREES. Alessandro Artale UniBZ - artale/z

WUCT121. Discrete Mathematics. Graphs

Brief History. Graph Theory. What is a graph? Types of graphs Directed graph: a graph that has edges with specific directions

Chapter 11: Graphs and Trees. March 23, 2008

Majority and Friendship Paradoxes

Graph Theory. ICT Theory Excerpt from various sources by Robert Pergl

Functions (4A) Young Won Lim 3/16/18

Discrete mathematics II. - Graphs

Graph Theory. 1 Introduction to Graphs. Martin Stynes Department of Mathematics, UCC January 26, 2011

Euler and Hamilton paths. Jorge A. Cobb The University of Texas at Dallas

Topic 10 Part 2 [474 marks]

CS 441 Discrete Mathematics for CS Lecture 26. Graphs. CS 441 Discrete mathematics for CS. Final exam

EECS 203 Lecture 20. More Graphs

Network Topology and Graph

Discrete mathematics

Binary Search Tree (3A) Young Won Lim 6/2/18

CPS 102: Discrete Mathematics. Quiz 3 Date: Wednesday November 30, Instructor: Bruce Maggs NAME: Prob # Score. Total 60

Questions? You are given the complete graph of Facebook. What questions would you ask? (What questions could we hope to answer?)

Crossing bridges. Crossing bridges Great Ideas in Theoretical Computer Science. Lecture 12: Graphs I: The Basics. Königsberg (Prussia)

Graph theory. Po-Shen Loh. June We begin by collecting some basic facts which can be proved via bare-hands techniques.

Today. Types of graphs. Complete Graphs. Trees. Hypercubes.

The Complexity of Algorithms (3A) Young Won Lim 4/3/18

5 Graphs

Outline. Introduction. Representations of Graphs Graph Traversals. Applications. Definitions and Basic Terminologies

Binary Search Tree (2A) Young Won Lim 5/17/18

Transcription:

Graph (1A)

Copyright (c) 2015 2018 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". Please send corrections (or suggestions) to youngwlim@hotmail.com. This document was produced by using LibreOffice and Octave.

Some class of graphs (1) Complete graph A complete graph is a graph in which each pair of vertices is joined by an edge. A complete graph contains all possible edges. Connected graph In an undirected graph, an unordered pair of vertices {x, y} is called connected if a path leads from x to y. Otherwise, the unordered pair is called disconnected. Bipartite graph A bipartite graph is a graph in which the vertex set can be partitioned into two sets, W and X, so that no two vertices in W share a common edge and no two vertices in X share a common edge. Alternatively, it is a graph with a chromatic number of 2. https://en.wikipedia.org/wiki/graph_(discrete_mathematics) Graph (5A) 3

Complete Graphs https://en.wikipedia.org/wiki/complete_graph Graph (5A) 4

Connected Graphs This graph becomes disconnected when the right-most node in the gray area on the left is removed This graph becomes disconnected when the dashed edge is removed. With vertex 0 this graph is disconnected, the rest of the graph is connected. https://en.wikipedia.org/wiki/connectivity_(graph_theory) Graph (5A) 5

Bipartite Graphs Example of a bipartite graph without cycles A complete bipartite graph with m = 5 and n = 3 A graph with an odd cycle transversal of size 2: removing the two blue bottom vertices leaves a bipartite graph. https://en.wikipedia.org/wiki/bipartite_graph Graph (5A) 6

Complete Graphs https://en.wikipedia.org/wiki/gallery_of_named_graphs Graph (5A) 7

Complete Bipartite Graphs https://en.wikipedia.org/wiki/gallery_of_named_graphs Graph (5A) 8

Star Graphs https://en.wikipedia.org/wiki/gallery_of_named_graphs Graph (5A) 9

Wheel Graphs https://en.wikipedia.org/wiki/gallery_of_named_graphs Graph (5A) 10

Some class of graphs (2) Planar graph A planar graph is a graph whose vertices and edges can be drawn in a plane such that no two of the edges intersect. Cycle graph A cycle graph or circular graph of order n 3 is a graph in which the vertices can be listed in an order v1, v2,, vn such that the edges are the {vi, vi+1} where i = 1, 2,, n 1, plus the edge {vn, v1}. Cycle graphs can be characterized as connected graphs in which the degree of all vertices is 2. If a cycle graph occurs as a subgraph of another graph, it is a cycle or circuit in that graph. Tree A tree is a connected graph with no cycles. https://en.wikipedia.org/wiki/graph_(discrete_mathematics) Graph (5A) 11

Planar Graphs A planar graph and its dual https://en.wikipedia.org/wiki/planar_graph Graph (5A) 12

Cycle Graphs https://en.wikipedia.org/wiki/cycle_graph https://en.wikipedia.org/wiki/gallery_of_named_graphs Graph (5A) 13

Tree Graphs https://en.wikipedia.org/wiki/cycle_graph Graph (5A) 14

Hypercube A hypercube can be defined by increasing the numbers of dimensions of a shape: 0 A point is a hypercube of dimension zero. 1 If one moves this point one unit length, it will sweep out a line segment, which is a unit hypercube of dimension one. 2 If one moves this line segment its length in a perpendicular direction from itself; it sweeps out a 2-dimensional square. 3 If one moves the square one unit length in the direction perpendicular to the plane it lies on, it will generate a 3-dimensional cube. 4 If one moves the cube one unit length into the fourth dimension, it generates a 4- dimensional unit hypercube (a unit tesseract). Tesseract https://en.wikipedia.org/wiki/hypercube Graph (5A) 15

Gray Code Tesseract https://en.wikipedia.org/wiki/gray_code Graph (5A) 16

Adjacency Lists https://en.wikipedia.org/wiki/adjacency_list Graph (5A) 17

Incidence Matrix https://en.wikipedia.org/wiki/incidence_matrix Graph (5A) 18

Adjacency Matrix https://en.wikipedia.org/wiki/adjacency_matrix Graph (5A) 19

Hamiltonian Path https://en.wikipedia.org/wiki/path_(graph_theory) Graph (5A) 20

Minimum Spanning Tree https://en.wikipedia.org/wiki/minimum_spanning_tree Graph (5A) 21

Seven Bridges of Königsberg The problem was to devise a walk through the city that would cross each of those bridges once and only once. https://en.wikipedia.org/wiki/seven_bridges_of_k%c3%b6nigsberg Graph (5A) 22

Shortest path problem https://en.wikipedia.org/wiki/shortest_path_problem Graph (5A) 23

Traveling salesman problem https://en.wikipedia.org/wiki/travelling_salesman_problem Graph (5A) 24

Euler Cycle Any connected graph with even degree vertices An Euler cycle A proof by induction on the number of edges in G A connected graph G with even degree vertices only and k edges (k < n) An Euler cycle Assume this is true A connected graph G with even degree vertices only and n edges An Euler cycle Then this holds true Johnsonbough, Discrete Mathematics Graph (5A) 25

Euler Cycle Any connected graph with even degree vertices which has n edge An Euler cycle Any connected graph with even degree vertices which has n-1 edge Any connected graph with even degree vertices which has n-2 edge An Euler cycle An Euler cycle Any connected graph with even degree vertices which has 2 edge Any connected graph with even degree vertices which has 1 edge An Euler cycle An Euler cycle Johnsonbough, Discrete Mathematics Graph (5A) 26

Euler Cycle Base Cases n = 0 edge n = 1 edge all even degree vertices n = 2 edge an Euler cycle Johnsonbough, Discrete Mathematics Graph (5A) 27

Euler Cycle decrease the number of edges by one A connected graph G with even degree vertices only and n edges (k < n) e 1 e 2 v 1 v 2 v 3 all even degree vertices P: a path from v to v 1 A connected graph G' with even degree vertices only and n-1 edges (k < n) P': a portion of the path P that are in G' e v 1 v 2 v 3 all even degree vertices Johnsonbough, Discrete Mathematics Graph (5A) 28

Euler Cycle a path from v to v 1 Case 1: P ends at v 1 Case 2: P ends at v 2 Case 3: P ends at v 3 v 1 v 2 v 3 v 1 v 2 v 3 v 1 v 2 v 3 P P P v v v v 1 v 2 v 3 v 1 v 2 v 3 v 1 v 2 v 3 P ' P ' P ' v v v Johnsonbough, Discrete Mathematics Graph (5A) 29

Euler Cycle F B H E D C I J G ABCDEFGHIJK A K en.wikipedia.org Graph (5A) 30

Euler Cycle G G' v 1 v 3 v 1 v 3 v 2 v 2 2 components Graph (5A) 31

Euler Cycle G G' v 1 v 3 v 1 v 3 v 2 v 2 1 component Graph (5A) 32

Euler Cycle G G' v 1 v 3 v 1 v 3 v 2 v 2 2 components Graph (5A) 33

Euler Cycle G G' v 1 v 3 v 1 v 3 v 2 v 2 1 component Graph (5A) 34

References [1] http://en.wikipedia.org/ [2]