Exercises for Discrete Maths

Similar documents
γ(ɛ) (a, b) (a, d) (d, a) (a, b) (c, d) (d, d) (e, e) (e, a) (e, e) (a) Draw a picture of G.

Introduction III. Graphs. Motivations I. Introduction IV

Math.3336: Discrete Mathematics. Chapter 10 Graph Theory

CHAPTER 2. Graphs. 1. Introduction to Graphs and Graph Isomorphism

Unit 7 Day 4 Notes: graph coloring, Graph theory review & Quiz

MA 111 Review for Exam 3

INTRODUCTION TO GRAPH THEORY. 1. Definitions

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

Math 15 - Spring Homework 2.6 Solutions 1. (2.6 # 20) The following graph has 45 vertices. In Sagemath, we can define it like so:

Graphs (MTAT , 6 EAP) Lectures: Mon 14-16, hall 404 Exercises: Wed 14-16, hall 402

Math236 Discrete Maths with Applications

WUCT121. Discrete Mathematics. Graphs

Week 8: The fundamentals of graph theory; Planar Graphs 25 and 27 October, 2017

Circuits and Paths. April 13, 2014

GRAPH THEORY: AN INTRODUCTION

DEFINITION OF GRAPH GRAPH THEORY GRAPHS ACCORDING TO THEIR VERTICES AND EDGES EXAMPLE GRAPHS ACCORDING TO THEIR VERTICES AND EDGES

Intermediate Math Circles Wednesday, February 22, 2017 Graph Theory III

An Introduction to Graph Theory

Lecture 5: Graphs. Rajat Mittal. IIT Kanpur

Graph Theory Questions from Past Papers

Trees and Tree Encodings

Introduction to Graphs

Grades 7 & 8, Math Circles 31 October/1/2 November, Graph Theory

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

MC 302 GRAPH THEORY 10/1/13 Solutions to HW #2 50 points + 6 XC points

Graphs. Pseudograph: multiple edges and loops allowed

Math 443/543 Graph Theory Notes

Majority and Friendship Paradoxes

Week 11: Eulerian and Hamiltonian graphs; Trees. 15 and 17 November, 2017

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

An Introduction to Graph Theory

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

Varying Applications (examples)

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.

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

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

Paths, Circuits, and Connected Graphs

MATH 101: Introduction to Contemporary Mathematics

Elements of Graph Theory

University of Toronto Department of Mathematics

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

Chapter 8 Topics in Graph Theory

Discrete mathematics

(5.2) 151 Math Exercises. Graph Terminology and Special Types of Graphs. Malek Zein AL-Abidin

The University of Sydney MATH2969/2069. Graph Theory Tutorial 2 (Week 9) 2008

Week 9: Planar and non-planar graphs. 1st and 3rd of November, 2017

HOMEWORK 4 SOLUTIONS. Solution: The Petersen graph contains a cycle of odd length as a subgraph. Hence,

March 20/2003 Jayakanth Srinivasan,

Basics of Graph Theory

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

-Discrete Math 504 Homework Assignment #8 TO: Dr. Jim Gleason FROM: Deborah Britt, ACCLAIM Cohort 2 Date: March 1, 2005

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 7

13. (a) G,G. A circuit of length 1 is a loop. 14. (a) E,E. (c) A,B,C,A. 16. (a) BF, FG

Grades 7 & 8, Math Circles 31 October/1/2 November, Graph Theory

NANYANG TECHNOLOGICAL UNIVERSITY SEMESTER II EXAMINATION MH 1301 DISCRETE MATHEMATICS TIME ALLOWED: 2 HOURS

Extremal Graph Theory: Turán s Theorem

Graph Theory Day Four

Math 100 Homework 4 B A C E

PRIMES Circle: High School Math Enrichment at MIT

Proposition 1. The edges of an even graph can be split (partitioned) into cycles, no two of which have an edge in common.

Graphs and Algorithms

Math 443/543 Graph Theory Notes

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

Topic 10 Part 2 [474 marks]

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

Week 10: Colouring graphs, and Euler s paths. 14 and 16 November, 2018

BIL694-Lecture 1: Introduction to Graphs

Computer Science 280 Fall 2002 Homework 10 Solutions

MC302 GRAPH THEORY SOLUTIONS TO HOMEWORK #1 9/19/13 68 points + 6 extra credit points

Math 485, Graph Theory: Homework #3

Discrete Mathematics

Number Theory and Graph Theory

Foundations of Discrete Mathematics

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

Discrete Mathematics I So Practice Sheet Solutions 1

Solutions to Exercises 9

MATH 103: Contemporary Mathematics Study Guide for Chapter 6: Hamilton Circuits and the TSP

2. CONNECTIVITY Connectivity

Solutions to In-Class Problems Week 4, Fri

ASSIGNMENT 4 SOLUTIONS

Intermediate Math Circles Wednesday, February 8, 2017 Graph Theory I

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

11.2 Eulerian Trails

Notebook Assignments

Objective 1.02 Understand Numbering Systems

Math 311. Trees Name: A Candel CSUN Math

Assignment 4 Solutions of graph problems

Junior Circle Meeting 3 Circuits and Paths. April 18, 2010

1. The following graph is not Eulerian. Make it into an Eulerian graph by adding as few edges as possible.

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Midterm 1

MATH10001 Mathematical Workshop. Graphs, Trees and Algorithms Part 2. Trees. From Trees to Prüfer Codes

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

Week 11: Eulerian and Hamiltonian graphs; Trees. 21 and 23 November, 2018

Week 7: Introduction to Graph Theory. 24 and 26 October, 2018

Math 575 Exam 3. (t). What is the chromatic number of G?

Graphs and Algorithms 2015

MAT 145: PROBLEM SET 4

Yimin Math Centre. Year 10 Term 2 Homework. 3.1 Graphs in the number plane The minimum and maximum value of a quadratic function...

Senior Math Circles November 25, 2009 Graph Theory II

Graphs. Introduction To Graphs: Exercises. Definitions:

Transcription:

Exercises for Discrete Maths Discrete Maths Teacher: Alessandro Artale Teaching Assistants: Elena Botoeva, Daniele Porello http://www.inf.unibz.it/~artale/dml/dml.htm Week 6 Computer Science Free University of Bozen-Bolzano Disclaimer. The course exercises are meant for the students of the course of Discrete Mathematics and Logic at the Free University of Bozen-Bolzano.

Graph Theory 1 Exercise Set 10.2: Euler Circuits In the following cases, answer to this question: Does the graph have an Euler circuit? Justify your answers. Recall that: An Euler circuit for G is a circuit that contains every vertex and every edge of G. (That is, an Euler circuit for G is a sequence of adjacent vertices and edges in G that has at least one edge, starts and ends at the same vertex, uses every vertex of G at least once, and uses every edge of G exactly once.) Theorem 10.2.4. A graph G has an Euler circuit if, and only if, G is connected and every vertex of G has positive even degree. Exercise 9. a. G is a connected graph with five vertices of degrees 2, 2, 3, 3, and 4. Answer. No, since there are vertices with odd degrees. b. G is a connected graph with five vertices of degrees 2, 2, 4, 4, and 6. Answer. Yes, since all degrees are even and the graph is connected. c. G is a graph with five vertices of degrees 2, 2, 4, 4, and 6. Answer. Not necessarily. Take a graph G with vertices A, B, C, D, E, each with a loop. Let G have two edges connecting A and B, and two other edges connecting A and C. Then G has five vertices of degrees 2, 2, 4, 4, 6, and it is not connected. Thus it does not have an Euler circuit. c (sligthly modified). G is a graph without parallel edges and with five vertices of degrees 2, 2, 4, 4, and 6. Answer. Since the graph has no parallel edges, the vertex of degree 6 must have 4 distinct connected vertices, and a loop. Then the graph is connected with vertices of positive degrees only. Therefore the graph has an Euler circuit.

2 Exercise 12 & 13 (Homework). Check if the graphs in Fig. 1 and Fig. 2 have an Euler circuit. If the graph does not have an Euler circuit, explain why not. If it does have an Euler circuit, describe one. Figure 1. Graph for Exercise 12 Figure 2. Graph for Exercise 13 Answer. Answer. Ex.12: Yes. One Euler circuit is e4e5e6e3e2e7e8e1. Ex.13: No, since it has vertices with odd degree.

3 Exercise Set 10.4: Graph Isomorphisms Determine whether the graphs shown are isomorphic or not. Figure 3. Graph for Exercise 1 Exercise 1. Answer. They are isomorphic. Figure 4. Graph for Exercise 2 Exercise 2. Answer. They are not since deg is an invariant and deg(v2) = 5 and there is not w in G with such a degree. Figure 5. Graph for Exercise 6 Exercise 6 (Homework). Answer. Yes they are isomorphic.

4 Figure 6. Graph for Exercise 7 Exercise 7 (Homework). Answer. Yes they are. Pull w 2 below w 3. Take the mapping v1 w1, v2 w3, v4 w4, v3 w2. It preserves the edge relation, i.e., if there is an edge between v n and v m then there is an edge between the images of v n and v m. Figure 7. Graph for Exercise 8 Exercise 8. Answer. The two graphs are not isomorphic. G has a circuit of length 3 while G does not.

5 Figure 8. Graph for Exercise 9 Exercise 9 (Homework). Answer. a u b v f z c y e w d x Yes. The function is the following: Figure 9. Graph for Exercise 10 Exercise 10 (Homework). Answer. The graph are isomorphic. Firstly pull a and c down. Then move e to the left of g. The mapping is now easier to spot. Exercise 14. Draw all non-isomorphic simple graphs with three vertices. Solution. See Figure 10.

6 Figure 10. Solution for Exercise 14 Exercise Set 10.5: Trees Exercise 3. What is the total degree of a tree with n vertices? Why? Solution. 2n 2 (For any n N, any tree with n vertices has n 1 edges; the degree of a tree/graph is 2 number of edges). Exercise 8. Is there a tree with 9 vertices and 9 edges? Answer. No, due to the previous theorem: any tree with n vertices has n 1 edges. Exercise 12 (Homework). Is there a tree with 5 vertices and total degree 8? Answer. The tree has 4 = 5 1 edges, and hence total degree 2 4 = 8. Yes, there can be such a tree. For instance, one has two leaves (each with degree 1). The other vertices are internal of degree 2 and connected to each other and the other two vertices. Exercise Set 10.6: Binary Trees In each of the following exercises, either draw a graph with the given specifications, or explain why no such graph exists. Exercise 11. A binary tree with height 3 and 9 terminal vertices. Solution. Remember the following: if T is any binary tree with height h and t terminal vertices, then 9 = t 2 h = 8. So no.

Exercise 12. A full binary tree, 8 internal vertices (k), and 7 terminal vertices. Solution. Remember the following: If T is a full binary tree with k > 0 internal vertices, then T has a total of 2k + 1 vertices and has k + 1 terminal vertices. So the number of terminal vertices is k + 1 = 8 + 1. So no. Exercise 18 (Homework). Tree, 5 vertices, total degree 10. Solution. No. By Ex. 3, Set 10.5, the total degree of a tree with n vertices is 2n-2. Hence 10 = 2 5 2 which is false. 7