MCA 202: Discrete Mathematics under construction Instructor Neelima Gupta

Slides:



Advertisements
Similar presentations
Chapter 8 Topics in Graph Theory
Advertisements

Instructor Neelima Gupta Table of Contents Approximation Algorithms.
Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
Walks, Paths and Circuits Walks, Paths and Circuits Sanjay Jain, Lecturer, School of Computing.
Graph-02.
 期中测验时间:本周五上午 9 : 40  教师 TA 答疑时间 : 周三晚上 6 : 00—8 : 30  地点:软件楼 315 房间,  教师 TA :李弋老师  开卷考试.
Introduction to Graphs
9.7 Planar Graphs. Intro problem- 3 houses and 3 utilities K 3,3 problem: Can 3 houses be connected to 3 utilities so that no 2 lines cross? Similarly,
CompSci 102 Discrete Math for Computer Science April 19, 2012 Prof. Rodger Lecture adapted from Bruce Maggs/Lecture developed at Carnegie Mellon, primarily.
1 Lecture 5 (part 2) Graphs II Euler and Hamiltonian Path / Circuit Reading: Epp Chp 11.2, 11.3.
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.
MCA 520: Graph Theory Instructor Neelima Gupta
Last time: terminology reminder w Simple graph Vertex = node Edge Degree Weight Neighbours Complete Dual Bipartite Planar Cycle Tree Path Circuit Components.
Applied Combinatorics, 4th Ed. Alan Tucker
Tucker, Applied Combinatorics, Section 1.4, prepared by Patti Bodkin
Is the following graph Hamiltonian- connected from vertex v? a). Yes b). No c). I have absolutely no idea v.
Homework collection Thursday 3/29 Read Pages 160 – 174 Page 185: 1, 3, 6, 7, 8, 9, 12 a-f, 15 – 20.
4/17/2017 Section 8.5 Euler & Hamilton Paths ch8.5.
Drawing of G. Planar Embedding of G Proposition Proof. 1. Consider a drawing of K 5 or K 3,3 in the plane. Let C be a spanning cycle. 2. If the.
MCA 520: Graph Theory Instructor Neelima Gupta
Curve Curve: The image of a continous map from [0,1] to R 2. Polygonal curve: A curve composed of finitely many line segments. Polygonal u,v-curve: A polygonal.
What is the first line of the backwards direction of this proof? 1.Assume G is a block. 2.Assume every pair of vertices lie on a common cycle. 3.Assume.
Graph Theory Chapter 6 Planar Graphs Ch. 6. Planar Graphs.
Slide 14-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
5.1  Routing Problems: planning and design of delivery routes.  Euler Circuit Problems: Type of routing problem also known as transversability problem.
Euler Paths & Euler Circuits
MCS 312: NP Completeness and Approximation algorithms Instructor Neelima Gupta
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSNB143 – Discrete Structure Topic 9 – Graph. Learning Outcomes Student should be able to identify graphs and its components. Students should know how.
CS 200 Algorithms and Data Structures
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
MAT 2720 Discrete Mathematics Section 8.7 Planar Graphs
Planar Graphs Graph Coloring
Unit – V Graph theory. Representation of Graphs Graph G (V, E,  ) V Set of vertices ESet of edges  Function that assigns vertices {v, w} to each edge.
5.8 Graph Matching  Example: Set of worker assign to a set of task  Four tasks are to be assigned to four workers.  – Worker 1 is qualified to do tasks.
Graph Theory and Applications
AND.
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
Eulerian Paths and Cycles. What is a Eulerian Path Given an graph. Find a path which uses every edge exactly once. This path is called an Eulerian Path.
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
 Quotient graph  Definition 13: Suppose G(V,E) is a graph and R is a equivalence relation on the set V. We construct the quotient graph G R in the follow.
Chapter 11 - Graph CSNB 143 Discrete Mathematical Structures.
Great Theoretical Ideas in Computer Science for Some.
COMPSCI 102 Introduction to Discrete Mathematics.
Instructor Neelima Gupta Table of Contents Introduction to Approximation Algorithms Factor 2 approximation algorithm for TSP Factor.
1. 期中测验时间和地点: 11 月 4 日, 上午 9:40—11 : 40 地点: 教室 2. 答疑时间和地点: 1)11 月 1 日 ( 周五 )13:00—15:00 软件楼 319 2)11 月 2 日和 3 日, 14:00—17:00 软件楼 3 楼 机房讨论室.
9.5 Euler and Hamilton graphs. 9.5: Euler and Hamilton paths Konigsberg problem.
1 Lecture 5 (part 2) Graphs II (a) Circuits; (b) Representation Reading: Epp Chp 11.2, 11.3
MCA 520: Graph Theory Instructor Neelima Gupta
Trees.
Graphs. Representations of graphs : undirected graph An undirected graph G have five vertices and seven edges An adjacency-list representation of G The.
An Introduction to Graph Theory
Outline 1 Properties of Planar Graphs 5/4/2018.
Applied Combinatorics, 4th Ed. Alan Tucker
Graph theory Definitions Trees, cycles, directed graphs.
Eulerian tours Miles Jones MTThF 8:30-9:50am CSE 4140 August 15, 2016.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
Can you draw this picture without lifting up your pen/pencil?
MAT 2720 Discrete Mathematics
Chapter 10.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 8th ed., by Kenneth H.
N(S) ={vV|uS,{u,v}E(G)}
Euler circuit Theorem 1 If a graph G has an Eulerian path, then it must have exactly two odd vertices. Theorem 2 If a graph G has an Eulerian circuit,
Gaph Theory Planar Graphs
Discrete Mathematics for Computer Science
Applied Combinatorics, 4th Ed. Alan Tucker
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Warm Up – 3/14 - Friday 100 seats are to be apportioned.
GRAPH THEORY Properties of Planar Graphs Ch9-1.
GRAPH THEORY Properties of Planar Graphs Ch9-1.
Presentation transcript:

MCA 202: Discrete Mathematics under construction Instructor Neelima Gupta

Table of Contents Eulerain Path and Circuits Hamiltonian Path and Circuits Planar Graphs

Thanks: Shammi-37 and Shivangi-38 (MCA 202) Eulerian Paths & Circuits Given an undirected graph G, a path is called an eulerian path if it spans all the vertices and scan each edge exactly once. Also, in an undirected graph G, a circuit is called an eulerian circuit if it spans all the vertices and scan each edge exactly once.

Thanks: Shammi-37 and Shivangi-38 (MCA 202) Examples :

Thanks: Shammi-37 and Shivangi-38 (MCA 202) Theorem: An undirected graph possesses an eulerian path iff all the vertices are of even degree except possibly for two vertices. Claim: A graph has an euler path (or circuit) if the number of odd degree vertices in the graph is two (or zero).

Thanks: Shammi-37 and Shivangi-38 (MCA 202) Proving by Induction: If euler path have only 1 edge, |EP| = 1 Similarly, claim is true for (e - 1) edges, |EP| = e – 1 Now, consider a path: By removing an edge v p -v q, the claim holds for v 1 to v q path. V1V1 V2V2 V3V3 V4V4 V VqVq VpVp

Thanks: Shammi-37 and Shivangi-38 (MCA 202) Now adding that edge v p to the initial path, the claim still follows as v 1 and v p are vertices with odd degrees. Hence, proved.

Thanks: Shammi-37 and Shivangi-38 (MCA 202) Converse: If the number of odd degree vertices in the graph is two (or zero), the graph has an euler path (or circuit). Start with an odd degree vertex, and we will end with another odd vertex. Hence, it has an euler path. V1V1 V3V3 V2V2 V8V8 V4V4 V5V5 V6V6 V7V7 Vertices:Degrees V 1 : 1, Odd V 2 : 2, Even V 3 : 2, Even V 4 : 2, Even V 5 : 2, Even V 6 : 2, Even V 7 : 2, Even V 4 : 3, Odd V 4 : 4, Even V 8 : 2, Even V 2 : 3, Odd

Hamiltonian Path/ Circuit It is a path/circuit that passes through each of the vertices in graph exactly once. This is more constraint compare to Euler path. There is no polynomial time solution for Hamiltonian path. Thanks: Sonam 39 and Stuti 40 (MCA 202)

Hamiltonian path Thanks: Sonam 39 and Stuti 40 (MCA 202)

Theorem: If in a Graph G, the sum of the degrees for each pair of vertices in G is n-1 or larger, where n is the number of vertices in the graph, then there exists a Hamiltonian path in G. Thanks: Sonam 39 and Stuti 40 (MCA 202)

v1v1 v3v3 v2v2 v j-1 v j v p Figures for Proof :

Thanks: Sonam 39 and Stuti 40 (MCA 202) v1v1 v k-1 v2v2 v j-1 v j v p v k v x (a)

Thanks: Sonam 39 and Stuti 40 (MCA 202) v1v1 v k-1 v2v2 v j-1 v j v p v k v x (b)

Planar Graph Thanks: Sonam 39 and Stuti 40 (MCA 202)

PLANAR GRAPHS A graph is said to be planar graph if it can be drawn on a 2-D plane in such a way that no edges cross one other Example:- Thanks: Sonam 39 and Stuti 40 (MCA 202) A DC B

In a planar graph, edge is only a concept of connectivity. Edge from vertex A to vertex C can also be drawn as follow:- A AB D CD C B Thanks: Sonam 39 and Stuti 40 (MCA 202)

Not A Planar Graph A D C B ED E AC B There is no other way to connect edge AD and EC Thanks: Sonam 39 and Stuti 40 (MCA 202)

Region : Edges belonging to : Region 1 – AC,CB,AB Region 2 – CB,CD,AB Region 3 – AB,BD,DA Region 4 – CD,DA,AC A B C D 3 4 Thanks: Sonam 39 and Stuti 40 (MCA 202) 1 2

Theorem: For any connected planar graph, v - e + r = 2 where v, e and r are the number of vertices, edges, and regions of the graph, respectively Thanks: Sonam 39 and Stuti 40 (MCA 202)

Proof : By induction on number of edges. For e = 1, Number of vertices (v) = 2 Number of region(r) = 1 (outside) Putting in formula, v – e + r = = 2 Hence, it holds for e=1. We’ll assume it holds for graph with n-1 edges. Thanks: Sonam 39 and Stuti 40 (MCA 202)

Suppose, we have connected graph G with e edges. We’ll remove one edge. CASE 1: If removing an edge leads to two disconnected graph G’’ G’ (e2, v2, r2) (e1, v1, r1) Removed edge Thanks: Sonam 39 and Stuti 40 (MCA 202)

Since, Both G' and G'' have e < n-1. Therefore, using induction hypothesis, v1 – e1 + r1 = 2 and v2 – e2+ r2 = 2 Adding above two equations,  v1 – e1 + r1 + v2 – e2 + r2 =2 + 2  (v1 + v2) - (e1 + e2)+ r1 + r2 = 4  v - (e -1) + r + 1 = 4(one extra region after removing one edge)  v – e + r + 2 = 4  v – e + r = 2 Hence, it holds for all graph with n edges. Thanks: Sonam 39 and Stuti 40 (MCA 202)

CASE 2: If removing an edge leads doesn’t lead to disconnected graph G’ Removed edge (e’, v’, r’) Thanks: Sonam 39 and Stuti 40 (MCA 202)

Since, G’ have e < n-1. Therefore, v'– e'+ r' = 2 For graph G', v' = v e' = e -1 r' = r – 1 (subtracting region created by removed edge)  v' + e' + r' =2  v – ( e – 1 ) + r – 1 = 2  v – e + r = 2 Hence, it holds for all graph with n edges. Thanks: Sonam 39 and Stuti 40 (MCA 202)