SlideShare a Scribd company logo
7.1. Preliminaries &
Graph Terminology
 Reference: A Course in Discrete Mathematical
                   Structures by LR Vermani

               Budi Irmawati-NAIST’s student
2
Isomorphic

      G (V,E)                             G’(V’,E’)
      x   (x,y)   α=VV’       x’ =α(x)
      y           β=EE’       y’ =α(y)      (x’,y’) = β(x,y)

      z                        z’ =α(z)


  4         3                                                   d
                           c
                                                      c
                           d
  1         2     a              b           a                  b
3

Multigraph
Graph that has multiple
edges connecting the same
vertices




Directed Multigraph
Directed graph that is
multigraph




Simple/Linear Graph
graph which no loop and only
have one edge between two
vertices
4

Weighted graph
Graph which each of its
edges are weighted.
Ordered quadruple (V,E,f,g)
or triple (V,E,f) or triple (V,E,f)
V : non-empty set of vertices
E : set/multiset of edges
f : function with domain V
g : map with domain E
5
Bipartite
                   V
Graph                    V1       V2       sub graph 1
                       (male)   (female)   Each vertex in V1 incident
                                           with an vertex in V2
                         a1       b1

                         a2       b2

                         ⋮         ⋮
                         an       bn




                   V                       sub graph 2
                                           Every vertex in V1 may not
                         V1       V2       incident with a vertex in V2
                       (male)   (female)
                                           Some vertex in V1 or V2 are
                         a1       b1       isolated

            disjoint     a2       b2        disjoint
                         ⋮         ⋮
                         an       bn
6
Bipartite
Graph                       Fig. 7.33
                            V1 = {a,b,g}
                            V2 = {c,d,e,f}




                            Fig. 7.34
                            V = V1      V2
                            V1    V2 =
                            V1
                            V2
            not bipartite
7
Bipartite
            Complete Bipartite
Graph       Graph
            V = V1   V2
            V1   V2 =
            V1
            V2
            Every vertex in V1 adjacent
            every vertex in V2 and vice
            versa




            Km,n
            Complete bipartite graph
            which V1 order m and V2
            order n
            The number of edges is mn
            instead of n(n-1)/2
            Every vertex adjacent to
            every vertex in other
            subgraph
8
Bipartite Graph

         simple graph: two vertices – one edge          simple graph: at least three vertices (possibly)



   always bipartite                                trivial graph; three isolated
                                                     vertices

                                                    only have one edge
                                                                                                           always
                                                    have two edges, or                                    bipartite

                                                    have three edges
9




Example 7.2
Cube with 6 faces. Every cube are colored using 4 colors.
Is it possible to stack the cubes to form column so that no color
apears twice
10




 1   2   3   4
a R G W B
b G W B R
c W R B G
                 Example 7.2
d G B W R        Cube with 6 faces. Every cube are colored using 4 colors.
                 Is it possible to stack the cubes to form column so that no color
                 apears twice
11




     Possible
     crossing
one person
a couple
three ladies
three gents
couple & gent



                Example 7.3
                How to cross a river for:
                5 couples
                1 boat for 3 persons
                wife + husband if there a man
12




Example 7.4
How to cross a river for:
5 couples
1 boat for at most 4 persons
wife + husband if there a man
13




Example 7.5
A man, a dog, a sheep, a basket of cabbage
Only can carry one item in crossing a river
Cabbage cannot stay with a sheep and a dog cannot stay with a sheep
How to cross it ?
14

Example 7.6
G = (V,E) is undirected graph with k components
o(V) = n, o(E) = m
Prove that m ≥ n - k


   G’ = (V’,E’) where o(V’) = s ≥ 2.
    Vertex v1. G’ is connected graph.

   v1 adjacent to v2, v2 to v3, and so on.
    Chain v1v2, v2v3, …, vs-1vs.
     at least s-1 edges in G’
    For o(V’) = 1, o(E’) ≥ o(V’) – 1
15



         Example 7.6

   For k components, (E1,V1), (E2,V2), …, (Ek,Vk)

   Ei    Ej =        for i   j

   E = E1       E2     … Ek and V = V1   V2   … Vk

   o(E) = o(E1)+o(E2)+…+o(Ek)
        ≥ (o(V1)-1)+(o(V2)-1)+…+(o(Vk)-1))
        = o(v1)+o(V2)+…+o(Vk) – k
        = o(V) - k

More Related Content

What's hot

Graphs In Data Structure
Graphs In Data StructureGraphs In Data Structure
Graphs In Data Structure
Anuj Modi
 
Distruct week 15 graphs theory (updated)
Distruct week 15 graphs theory (updated)Distruct week 15 graphs theory (updated)
Distruct week 15 graphs theory (updated)
Robert Almazan
 
Graph theory
Graph theoryGraph theory
Graph theory
Lifeparticle
 
Data structure computer graphs
Data structure computer graphsData structure computer graphs
Data structure computer graphs
Kumar
 
introduction to graph theory
introduction to graph theoryintroduction to graph theory
introduction to graph theory
Chuckie Balbuena
 
Graph isomorphism
Graph isomorphismGraph isomorphism
Graph isomorphism
Core Condor
 
Graph theory
Graph  theoryGraph  theory
Graph theory
Manash Kumar Mondal
 

What's hot (7)

Graphs In Data Structure
Graphs In Data StructureGraphs In Data Structure
Graphs In Data Structure
 
Distruct week 15 graphs theory (updated)
Distruct week 15 graphs theory (updated)Distruct week 15 graphs theory (updated)
Distruct week 15 graphs theory (updated)
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Data structure computer graphs
Data structure computer graphsData structure computer graphs
Data structure computer graphs
 
introduction to graph theory
introduction to graph theoryintroduction to graph theory
introduction to graph theory
 
Graph isomorphism
Graph isomorphismGraph isomorphism
Graph isomorphism
 
Graph theory
Graph  theoryGraph  theory
Graph theory
 

Similar to D math graph

Ass. (3)graph d.m
Ass. (3)graph d.mAss. (3)graph d.m
Ass. (3)graph d.m
Syed Umair
 
Lecture 1--Graph Algorithms -- Basics.pptx
Lecture 1--Graph Algorithms -- Basics.pptxLecture 1--Graph Algorithms -- Basics.pptx
Lecture 1--Graph Algorithms -- Basics.pptx
ChandanGiri21
 
Graphs In Data Structure
Graphs In Data StructureGraphs In Data Structure
Graphs In Data Structure
Anuj Modi
 
Ppt of graph theory
Ppt of graph theoryPpt of graph theory
Ppt of graph theory
ArvindBorge
 
Graph
GraphGraph
Graphs.pdf
Graphs.pdfGraphs.pdf
Graphs.pdf
pubggaming58982
 
Lecture8 data structure(graph)
Lecture8 data structure(graph)Lecture8 data structure(graph)
Graph in Discrete mathemaetics.pptx
Graph in Discrete mathemaetics.pptxGraph in Discrete mathemaetics.pptx
Graph in Discrete mathemaetics.pptx
ujjwalmatoliya
 
graph theory
graph theorygraph theory
graph theory
Shashank Singh
 
Elements of Graph Theory for IS.pptx
Elements of Graph Theory for IS.pptxElements of Graph Theory for IS.pptx
Elements of Graph Theory for IS.pptx
miki304759
 
Data structure - Graph
Data structure - GraphData structure - Graph
Data structure - Graph
Madhu Bala
 
Graph ds
Graph dsGraph ds
Solidmodelling
SolidmodellingSolidmodelling
Solidmodelling
Gopi Chand
 
Class01_Computer_Contest_Level_3_Notes_Sep_07 - Copy.pdf
Class01_Computer_Contest_Level_3_Notes_Sep_07 - Copy.pdfClass01_Computer_Contest_Level_3_Notes_Sep_07 - Copy.pdf
Class01_Computer_Contest_Level_3_Notes_Sep_07 - Copy.pdf
ChristianKapsales1
 
Matrix representation of graph
Matrix representation of graphMatrix representation of graph
Matrix representation of graph
Rounak Biswas
 
ch8.3-8.4.ppt
ch8.3-8.4.pptch8.3-8.4.ppt
ch8.3-8.4.ppt
Deepali Hejib
 
graph.ppt
graph.pptgraph.ppt
graph.pptx
graph.pptxgraph.pptx
graph.pptx
hijigaf
 
Graph Representation, DFS and BFS Presentation.pptx
Graph Representation, DFS and BFS Presentation.pptxGraph Representation, DFS and BFS Presentation.pptx
Graph Representation, DFS and BFS Presentation.pptx
bashirabdullah789
 
Isograph
IsographIsograph

Similar to D math graph (20)

Ass. (3)graph d.m
Ass. (3)graph d.mAss. (3)graph d.m
Ass. (3)graph d.m
 
Lecture 1--Graph Algorithms -- Basics.pptx
Lecture 1--Graph Algorithms -- Basics.pptxLecture 1--Graph Algorithms -- Basics.pptx
Lecture 1--Graph Algorithms -- Basics.pptx
 
Graphs In Data Structure
Graphs In Data StructureGraphs In Data Structure
Graphs In Data Structure
 
Ppt of graph theory
Ppt of graph theoryPpt of graph theory
Ppt of graph theory
 
Graph
GraphGraph
Graph
 
Graphs.pdf
Graphs.pdfGraphs.pdf
Graphs.pdf
 
Lecture8 data structure(graph)
Lecture8 data structure(graph)Lecture8 data structure(graph)
Lecture8 data structure(graph)
 
Graph in Discrete mathemaetics.pptx
Graph in Discrete mathemaetics.pptxGraph in Discrete mathemaetics.pptx
Graph in Discrete mathemaetics.pptx
 
graph theory
graph theorygraph theory
graph theory
 
Elements of Graph Theory for IS.pptx
Elements of Graph Theory for IS.pptxElements of Graph Theory for IS.pptx
Elements of Graph Theory for IS.pptx
 
Data structure - Graph
Data structure - GraphData structure - Graph
Data structure - Graph
 
Graph ds
Graph dsGraph ds
Graph ds
 
Solidmodelling
SolidmodellingSolidmodelling
Solidmodelling
 
Class01_Computer_Contest_Level_3_Notes_Sep_07 - Copy.pdf
Class01_Computer_Contest_Level_3_Notes_Sep_07 - Copy.pdfClass01_Computer_Contest_Level_3_Notes_Sep_07 - Copy.pdf
Class01_Computer_Contest_Level_3_Notes_Sep_07 - Copy.pdf
 
Matrix representation of graph
Matrix representation of graphMatrix representation of graph
Matrix representation of graph
 
ch8.3-8.4.ppt
ch8.3-8.4.pptch8.3-8.4.ppt
ch8.3-8.4.ppt
 
graph.ppt
graph.pptgraph.ppt
graph.ppt
 
graph.pptx
graph.pptxgraph.pptx
graph.pptx
 
Graph Representation, DFS and BFS Presentation.pptx
Graph Representation, DFS and BFS Presentation.pptxGraph Representation, DFS and BFS Presentation.pptx
Graph Representation, DFS and BFS Presentation.pptx
 
Isograph
IsographIsograph
Isograph
 

Recently uploaded

Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 

Recently uploaded (20)

Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 

D math graph

  • 1. 7.1. Preliminaries & Graph Terminology Reference: A Course in Discrete Mathematical Structures by LR Vermani Budi Irmawati-NAIST’s student
  • 2. 2 Isomorphic G (V,E) G’(V’,E’) x (x,y) α=VV’ x’ =α(x) y β=EE’ y’ =α(y) (x’,y’) = β(x,y) z z’ =α(z) 4 3 d c c d 1 2 a b a b
  • 3. 3 Multigraph Graph that has multiple edges connecting the same vertices Directed Multigraph Directed graph that is multigraph Simple/Linear Graph graph which no loop and only have one edge between two vertices
  • 4. 4 Weighted graph Graph which each of its edges are weighted. Ordered quadruple (V,E,f,g) or triple (V,E,f) or triple (V,E,f) V : non-empty set of vertices E : set/multiset of edges f : function with domain V g : map with domain E
  • 5. 5 Bipartite V Graph V1 V2 sub graph 1 (male) (female) Each vertex in V1 incident with an vertex in V2 a1 b1 a2 b2 ⋮ ⋮ an bn V sub graph 2 Every vertex in V1 may not V1 V2 incident with a vertex in V2 (male) (female) Some vertex in V1 or V2 are a1 b1 isolated disjoint a2 b2 disjoint ⋮ ⋮ an bn
  • 6. 6 Bipartite Graph Fig. 7.33 V1 = {a,b,g} V2 = {c,d,e,f} Fig. 7.34 V = V1 V2 V1 V2 = V1 V2 not bipartite
  • 7. 7 Bipartite Complete Bipartite Graph Graph V = V1 V2 V1 V2 = V1 V2 Every vertex in V1 adjacent every vertex in V2 and vice versa Km,n Complete bipartite graph which V1 order m and V2 order n The number of edges is mn instead of n(n-1)/2 Every vertex adjacent to every vertex in other subgraph
  • 8. 8 Bipartite Graph simple graph: two vertices – one edge simple graph: at least three vertices (possibly)  always bipartite  trivial graph; three isolated vertices  only have one edge always  have two edges, or bipartite  have three edges
  • 9. 9 Example 7.2 Cube with 6 faces. Every cube are colored using 4 colors. Is it possible to stack the cubes to form column so that no color apears twice
  • 10. 10 1 2 3 4 a R G W B b G W B R c W R B G Example 7.2 d G B W R Cube with 6 faces. Every cube are colored using 4 colors. Is it possible to stack the cubes to form column so that no color apears twice
  • 11. 11 Possible crossing one person a couple three ladies three gents couple & gent Example 7.3 How to cross a river for: 5 couples 1 boat for 3 persons wife + husband if there a man
  • 12. 12 Example 7.4 How to cross a river for: 5 couples 1 boat for at most 4 persons wife + husband if there a man
  • 13. 13 Example 7.5 A man, a dog, a sheep, a basket of cabbage Only can carry one item in crossing a river Cabbage cannot stay with a sheep and a dog cannot stay with a sheep How to cross it ?
  • 14. 14 Example 7.6 G = (V,E) is undirected graph with k components o(V) = n, o(E) = m Prove that m ≥ n - k  G’ = (V’,E’) where o(V’) = s ≥ 2. Vertex v1. G’ is connected graph.  v1 adjacent to v2, v2 to v3, and so on. Chain v1v2, v2v3, …, vs-1vs.  at least s-1 edges in G’ For o(V’) = 1, o(E’) ≥ o(V’) – 1
  • 15. 15 Example 7.6  For k components, (E1,V1), (E2,V2), …, (Ek,Vk)  Ei Ej = for i j  E = E1 E2 … Ek and V = V1 V2 … Vk  o(E) = o(E1)+o(E2)+…+o(Ek) ≥ (o(V1)-1)+(o(V2)-1)+…+(o(Vk)-1)) = o(v1)+o(V2)+…+o(Vk) – k = o(V) - k