Graphs and Trees This handout: Total degree of a graph Applications of Graphs.

Slides:



Advertisements
Similar presentations
Analysis of Algorithms CS 477/677
Advertisements

Chapter 8 Topics in Graph Theory
Simple Graph Warmup. Cycles in Simple Graphs A cycle in a simple graph is a sequence of vertices v 0, …, v n for some n>0, where v 0, ….v n-1 are distinct,
Problem Solving Well-formed predicate calculus expressions provide a means of describing objects and relations in a problem domain and inference rule.
1 SE-561 Formal Methods in Software Petri Nets - I.
Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Graph-02.
Introduction to Graphs
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.
Transform & Conquer Lecture 08 ITS033 – Programming & Algorithms
State Spaces Introduction to Artificial Intelligence Dr. Robin Burke.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
Network Optimization Problems: Models and Algorithms This handout: Minimum Spanning Tree Problem.
Graphs and Trees This handout: Trees Minimum Spanning Tree Problem.
Representing Graphs Wade Trappe. Lecture Overview Introduction Some Terminology –Paths Adjacency Matrix.
Discrete Structures Chapter 7A Graphs Nurul Amelina Nasharuddin Multimedia Department.
CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker.
The Mathematics of Networks Chapter 7. Trees A tree is a graph that –Is connected –Has no circuits Tree.
Chapter 11 Graphs and Trees This handout: Terminology of Graphs Eulerian Cycles.
Graphs and Trees This handout: Terminology of Graphs Applications of Graphs.
MTH118 Sanchita Mal-Sarkar. Routing Problems The fundamental questions: Is there any proper route for the particular problem? If there are many possible.
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
1/22/03Tucker, Applied Combinatorics, Section EDGE COUNTING TUCKER, APPLIED COMBINATORICS, SECTION 1.3, GROUP B Michael Duquette & Amanda Dargie.
Eulerian Graphs CSE 331 Section 2 James Daly. Reminders Project 3 is out Covers graphs Due Friday.
Euler Paths and Circuits. The original problem A resident of Konigsberg wrote to Leonard Euler saying that a popular pastime for couples was to try.
GRAPH Learning Outcomes Students should be able to:
Algorithms for Network Optimization Problems This handout: Minimum Spanning Tree Problem Approximation Algorithms Traveling Salesman Problem.
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.
Spring 2015 Mathematics in Management Science Euler’s Theorems Euler Circuits & Paths ECT & EPT Burning Bridges Fleury’s Algorithm.
Graph Theory Topics to be covered:
5.1  Routing Problems: planning and design of delivery routes.  Euler Circuit Problems: Type of routing problem also known as transversability problem.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
10 Matchings in Graphs 10.1 A Dancing Problem
Can you connect the dots as shown without taking your pen off the page or drawing the same line twice.
7.1 and 7.2: Spanning Trees. A network is a graph that is connected –The network must be a sub-graph of the original graph (its edges must come from the.
1 Topics Intro. to Graphs (11.1) A B C D EF G. 2 Definition (p.650) A graph G = V(G) + E(G) A set of vertices (or nodes), V(G) = {v 1, v 2, …, v n } A.
CSNB143 – Discrete Structure Topic 9 – Graph. Learning Outcomes Student should be able to identify graphs and its components. Students should know how.
Knowledge and search, page 1 CSI 4106, Winter 2005 Knowledge and search Points Properties of knowledge  Completeness  Objectivity  Certainty  Formalizability.
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, Puzzles, & Map Coloring
5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life.
CSS106 Introduction to Elementary Algorithms
Introduction to Graph Theory
AND.
Associated Matrices of Vertex Edge Graphs Euler Paths and Circuits Block Days April 30, May 1 and May
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
Chapter 11 - Graph CSNB 143 Discrete Mathematical Structures.
Great Theoretical Ideas in Computer Science for Some.
1) Find and label the degree of each vertex in the graph.
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
COMPSCI 102 Introduction to Discrete Mathematics.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
Trees.
Excursions in Modern Mathematics Sixth Edition
CSNB 143 Discrete Mathematical Structures
Graphs: Definitions and Basic Properties
Minimum Pk-total weight of simple connected graphs
Discrete Math: Hamilton Circuits
Can you draw this picture without lifting up your pen/pencil?
Graph Theory What is a graph?.
Representing Graphs Wade Trappe.
Euler and Hamilton Paths
Graphs G = (V, E) V are the vertices; E are the edges.
Applied Combinatorics, 4th Ed. Alan Tucker
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Chapter 10 Graphs and Trees
5 The Mathematics of Getting Around
Presentation transcript:

Graphs and Trees This handout: Total degree of a graph Applications of Graphs

Graph properties Definition: The total degree of a graph is the sum of the degrees of all its nodes. Theorem: If G is any graph, then the total degree of G equals twice the number of edges of G: the total degree of G = 2 (the number of edges of G) Corollary 1: The total degree of a graph is even. Corollary 2: In any graph there are an even number of vertices of odd degree. Application to an Acquaintance Graph: Is it possible in a group of five people for each to be friends with exactly three others?

Terminology of Graph: Paths A path between two nodes is a sequence of distinct nodes and edges connecting these nodes. Example: Two nodes are called connected if there is a path between them. Fact: For any two nodes a and b of a graph, there is an efficient way to determine whether a and b are connected or not. a b

An application of graphs in solving a puzzle  From an initial position on the left bank of a river, a ferryman wants to transport a wolf, a goat, and a cabbage to the right bank. Ferryman’s boat is only big enough to transport one object at a time, other than himself. For obvious reasons, the wolf cannot be left alone with the goat; the goat cannot be left alone with the cabbage.  How should the ferryman proceed?

An application of graphs in solving a puzzle To solve the puzzle, create the following graph:  Create a node for each allowable arrangement. E.g., ( fg | wc ) is an allowable arrangement since the ferryman and the goat are on the left bank, and the wolf and the cabbage are on the right bank.  Create an edge between two nodes if it is possible to go from the arrangement of one node to the arrangement of the other node by a single ferry trip. E.g., there is an arc between nodes ( fgw | c ) and ( w | fgc ) because the transition from the first node to the second node can be realized by a single trip of the ferryman with the goat from the left bank to the right bank.

An application of graphs in solving a puzzle The resulting graph is: To transport everything from the left bank to the right bank, we need to find a path from node ( fwgc | ) to node ( | fwgc ) in the graph. There are two this kind of paths. One of them: (fwgc | )  (wc | fg)  (fwc | g)  (w | fgc)  (fwg | c)  (g | fwc)  (fg | wc)  ( | fwgc) fwgc |fwg | cfwc | g fgc | wfg | wc wc | fgw | fgcg | fwc c | fwg| fwgc