SlideShare a Scribd company logo
1 of 20
WELCOME TO OUR
PRESENTATION
PRESENTATION ON GRAPH
Group Members:
1. Hashibur Rahman Anik ID: 162-15-1032
2. Mohammad Salim Hosen ID: 162-15-1044
3. Rifat Rahman ID: 162-15-1049
4. Yeasin Hossain Emran ID: 162-15-1037
GRAPH THEORY
• A graph is a collection of vertices that are connected by edges. Some graphs can be
directed, which means the lines have an arrow and only go in one direction. some
graphs can have no edges at all, in others the edges could overlap, and there can be
many edges coming out of the same vertex.
• Example of Graph:
PROPERTIES OF GRAPH:
• Neighbors: Two vertices u and v in an undirected graph G are called adjacent (or
neighbors) in G if u and v are endpoints of an edge e of G.
• Neighborhood: The set of all neighbors of a vertex v of G = (V ,E), denoted by N(v), is
called the neighborhood of v.
• The degree of a vertex in an undirected graph is the number of edges incident with
it.
• A vertex of degree zero is called isolated.
• A vertex is pendant if and only if it has degree one.
• A path starting and ending at one vertex is called a loop on this vertex.
SOME TYPES OF GRAPH
Directed Graph Complete, Cycle
& Undirected
Graph
Wheel
Graph
Bipartite Graph
HANDSHAKING THEOREM:
• Let G = (V ,E) be an undirected graph with m edges. Then
• In any graph, the sum of all the vertex-degree is equal to twice the number of edges.
EXAMPLE OF HANDSHAKING THEOREM
• Suppose You have been invited to an birthday party. After a rousing celebration the
guests get ready to leave, and everyone shakes hands with everyone else. How many
handshakes are there in total?
• Suppose that, including yourself and the host, there are 5 people present.
• Each of the 5 people at the party shakes hands with 4 others.
• Some people may think that Each of the 5 people at the party shakes hands with 4
others. That makes 5 × 4 = 20 handshakes in total. But this is wrong.
HANDSHAKING THEOREM
• If we represent the handshakes using a graph: every person is a vertex, and every
handshake is an edge then there are 5 vertex and 4 edges. So now we can easily find
the number of handshakes using the handshaking formula.
• So the result will be, 2E = 4x5 and E = 10 handshakes in total
EULER PATH AND CIRCUIT
• An Euler path is a path that uses every edge in a graph with no
repeats. Being a path, it does not have to return to the starting
vertex.
• An Euler circuit is a circuit that uses every edge in a graph with
no repeats. Being a circuit it must start and end at the same
vertex.
EULER PATH AND CIRCUIT CONDITIONS:
• Euler Path:
• A graph will contain an Euler path if it contains at most two vertices of odd degree.
• Euler Circuit:
• A graph will Contain Euler Circuit if all vertices have even number of degree.
PATH: c, d, b, c, a, b CIRCUIT: a, g, c, b, g, e,
APPLICATION OF EULER CIRCUIT
• Suppose a police officer wants to patrol neighborhood on foot by walking as little
possible. The ideal solution for this could be a circuit that covers every street with no
repeats and the officer will be returned where he had started from.
If above graph is the area he could visit: A, B, C, D, E, B, E, F, A
HAMILTON PATH AND CIRCUIT
• A Hamilton path visits every vertex once with no
repeats, but does not have to start and end at the
same vertex.
• A Hamilton circuit is a circuit that visits every
vertex once with no repeats. Being a circuit it
must start and end at the same vertex.
HAMILTON PATH AND CIRCUIT CONDITIONS
• Path:
• No repeat vertex but touch all.
• It is not compulsory to touch all edges
• Circuit:
• No odd number of vertex
• Starting point and ending point should be same.
Path: a, b, c, d.
circuit: a, b, c, d, e, a.
HAMILTON CIRCUIT APPLICATION:
• Suppose a pizza delivery boy wants to serve pizza on each location then Hamilton
path or circuit is the best way to express this situation.
LINEAR ALGEBRA IN GRAPH THEORY
• Graphs can be sometimes very complicated. So one needs to find more practical
ways to represent them. Matrices are a very useful way of studying graphs, since
they turn the picture into numbers, and then one can use techniques from linear
algebra. Here is a example of adjacent matrix used in graph,
DIJKSTRA’S SHORTEST PATH ALGORITHM
• The objective of the algorithm is to find the shortest path from one source to
another.
• This algorithm has multiple application in real life. Mainly in computer networking
or commercial shipping. We use this algorithm when we send something from one
place to another. If there is multiple way to go there we find the shortest path.
• Each stop in the graph will be denoted as vertex and each link will be called edge
would have a specific weight.
EXAMPLE
• Suppose we want to go from A to H in above graph. So what would be the shortest
path from A to H. We can use Dijkstra’s algorithm to find it.
SOLUTION:
SHORTEST PATH
• When we solve the graph we find the shortest path from A to H
• Shortest Path: (A->C->D->E->G->F->H) value of 11
THANK YOU

More Related Content

What's hot

Graphs: Hamiltonian Path and Circuit
 Graphs: Hamiltonian Path and Circuit Graphs: Hamiltonian Path and Circuit
Graphs: Hamiltonian Path and CircuitLiwayway Memije-Cruz
 
3.9.3 Similar Triangle Properties
3.9.3 Similar Triangle Properties3.9.3 Similar Triangle Properties
3.9.3 Similar Triangle Propertiessmiller5
 
3.8.3 Similar Triangle Properties
3.8.3 Similar Triangle Properties3.8.3 Similar Triangle Properties
3.8.3 Similar Triangle Propertiessmiller5
 
8.similar triangles
8.similar triangles8.similar triangles
8.similar trianglesKrishna Gali
 
Lesson 13 algebraic curves
Lesson 13    algebraic curvesLesson 13    algebraic curves
Lesson 13 algebraic curvesJean Leano
 
Hamilton circuits7 19and22
Hamilton circuits7 19and22Hamilton circuits7 19and22
Hamilton circuits7 19and22shivam19942
 
Similar triangles
Similar trianglesSimilar triangles
Similar trianglesryanmatt1
 
CLASS IX MATHS 6 areas of parallelogram and triangles
CLASS IX MATHS 6 areas of parallelogram and trianglesCLASS IX MATHS 6 areas of parallelogram and triangles
CLASS IX MATHS 6 areas of parallelogram and trianglesRc Os
 
Euler paths and circuits
Euler paths and circuitsEuler paths and circuits
Euler paths and circuits03446940736
 
Parallelogram by Hana Hazem
Parallelogram by Hana HazemParallelogram by Hana Hazem
Parallelogram by Hana HazemAzza Belal
 
Tracing of cartesian curve
Tracing of cartesian curveTracing of cartesian curve
Tracing of cartesian curveKaushal Patel
 
3.8.4 Triangle Similarity
3.8.4 Triangle Similarity3.8.4 Triangle Similarity
3.8.4 Triangle Similaritysmiller5
 
CLASS IX MATHS Area of parallelogram
CLASS IX MATHS Area of parallelogramCLASS IX MATHS Area of parallelogram
CLASS IX MATHS Area of parallelogramRc Os
 
Depth first traversal(data structure algorithms)
Depth first traversal(data structure algorithms)Depth first traversal(data structure algorithms)
Depth first traversal(data structure algorithms)bhuvaneshwariA5
 

What's hot (20)

Graphs: Hamiltonian Path and Circuit
 Graphs: Hamiltonian Path and Circuit Graphs: Hamiltonian Path and Circuit
Graphs: Hamiltonian Path and Circuit
 
Euler graph
Euler graphEuler graph
Euler graph
 
3.9.3 Similar Triangle Properties
3.9.3 Similar Triangle Properties3.9.3 Similar Triangle Properties
3.9.3 Similar Triangle Properties
 
Journal 3
Journal 3Journal 3
Journal 3
 
Plane Geometry
Plane GeometryPlane Geometry
Plane Geometry
 
3.8.3 Similar Triangle Properties
3.8.3 Similar Triangle Properties3.8.3 Similar Triangle Properties
3.8.3 Similar Triangle Properties
 
8.similar triangles
8.similar triangles8.similar triangles
8.similar triangles
 
Curve tracing
Curve tracingCurve tracing
Curve tracing
 
Lesson 13 algebraic curves
Lesson 13    algebraic curvesLesson 13    algebraic curves
Lesson 13 algebraic curves
 
Hamilton circuits7 19and22
Hamilton circuits7 19and22Hamilton circuits7 19and22
Hamilton circuits7 19and22
 
Similar triangles
Similar trianglesSimilar triangles
Similar triangles
 
CLASS IX MATHS 6 areas of parallelogram and triangles
CLASS IX MATHS 6 areas of parallelogram and trianglesCLASS IX MATHS 6 areas of parallelogram and triangles
CLASS IX MATHS 6 areas of parallelogram and triangles
 
Euler paths and circuits
Euler paths and circuitsEuler paths and circuits
Euler paths and circuits
 
Parallelogram by Hana Hazem
Parallelogram by Hana HazemParallelogram by Hana Hazem
Parallelogram by Hana Hazem
 
012 euclidean geometry[1]
012 euclidean geometry[1]012 euclidean geometry[1]
012 euclidean geometry[1]
 
Tracing of cartesian curve
Tracing of cartesian curveTracing of cartesian curve
Tracing of cartesian curve
 
3.8.4 Triangle Similarity
3.8.4 Triangle Similarity3.8.4 Triangle Similarity
3.8.4 Triangle Similarity
 
CLASS IX MATHS Area of parallelogram
CLASS IX MATHS Area of parallelogramCLASS IX MATHS Area of parallelogram
CLASS IX MATHS Area of parallelogram
 
Graph theory Eulerian graph
Graph theory Eulerian graphGraph theory Eulerian graph
Graph theory Eulerian graph
 
Depth first traversal(data structure algorithms)
Depth first traversal(data structure algorithms)Depth first traversal(data structure algorithms)
Depth first traversal(data structure algorithms)
 

Similar to Presentation on Graph (20)

koningsbergproblem-140215072342-phpapp02 (1).pptx
koningsbergproblem-140215072342-phpapp02 (1).pptxkoningsbergproblem-140215072342-phpapp02 (1).pptx
koningsbergproblem-140215072342-phpapp02 (1).pptx
 
Distruct week 15 graphs theory (updated)
Distruct week 15 graphs theory (updated)Distruct week 15 graphs theory (updated)
Distruct week 15 graphs theory (updated)
 
distructweek15graphstheoryupdated-160227143444.pdf
distructweek15graphstheoryupdated-160227143444.pdfdistructweek15graphstheoryupdated-160227143444.pdf
distructweek15graphstheoryupdated-160227143444.pdf
 
Ds lec 5_chap4
Ds lec 5_chap4Ds lec 5_chap4
Ds lec 5_chap4
 
Koningsberg bridge problem
Koningsberg  bridge  problemKoningsberg  bridge  problem
Koningsberg bridge problem
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
 
Graph 1
Graph 1Graph 1
Graph 1
 
Presentation on graphs
Presentation on graphsPresentation on graphs
Presentation on graphs
 
UNIT III.pptx
UNIT III.pptxUNIT III.pptx
UNIT III.pptx
 
ppt 1.pptx
ppt 1.pptxppt 1.pptx
ppt 1.pptx
 
ANALYTIC-GEOMETRY(4).pptx
ANALYTIC-GEOMETRY(4).pptxANALYTIC-GEOMETRY(4).pptx
ANALYTIC-GEOMETRY(4).pptx
 
Graph
GraphGraph
Graph
 
Unit V - ppt.pptx
Unit V - ppt.pptxUnit V - ppt.pptx
Unit V - ppt.pptx
 
Fleurys abas abbasli_
Fleurys abas  abbasli_Fleurys abas  abbasli_
Fleurys abas abbasli_
 
Graph ds
Graph dsGraph ds
Graph ds
 
Deeps
DeepsDeeps
Deeps
 
Graph
GraphGraph
Graph
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Topics.pdf
Topics.pdfTopics.pdf
Topics.pdf
 
Unit VI - Graphs.ppt
Unit VI - Graphs.pptUnit VI - Graphs.ppt
Unit VI - Graphs.ppt
 

More from Salim Hosen

Restaurant management system
Restaurant management systemRestaurant management system
Restaurant management systemSalim Hosen
 
Presentation on computer ram
Presentation on computer ramPresentation on computer ram
Presentation on computer ramSalim Hosen
 
Presentation on Bio Informatics
Presentation on Bio InformaticsPresentation on Bio Informatics
Presentation on Bio InformaticsSalim Hosen
 
Presentation on iot restaurant project
Presentation on iot restaurant projectPresentation on iot restaurant project
Presentation on iot restaurant projectSalim Hosen
 
Famous Quotes of Famous People
Famous Quotes of Famous PeopleFamous Quotes of Famous People
Famous Quotes of Famous PeopleSalim Hosen
 
Presentation on IOT (Internet Of Things)
Presentation on IOT (Internet Of Things)Presentation on IOT (Internet Of Things)
Presentation on IOT (Internet Of Things)Salim Hosen
 
Presentation on Variance
Presentation on VariancePresentation on Variance
Presentation on VarianceSalim Hosen
 
Presentation on Digital Image Processing
Presentation on Digital Image ProcessingPresentation on Digital Image Processing
Presentation on Digital Image ProcessingSalim Hosen
 
Intellectual Property Presentation
Intellectual Property PresentationIntellectual Property Presentation
Intellectual Property PresentationSalim Hosen
 
Android Studio Overview
Android Studio OverviewAndroid Studio Overview
Android Studio OverviewSalim Hosen
 
Presentation on Greedy Algorithm
Presentation on Greedy AlgorithmPresentation on Greedy Algorithm
Presentation on Greedy AlgorithmSalim Hosen
 
Presentation Data Link Layer and Network Layer
Presentation Data Link Layer and Network LayerPresentation Data Link Layer and Network Layer
Presentation Data Link Layer and Network LayerSalim Hosen
 
Presentation on RAM
Presentation on RAMPresentation on RAM
Presentation on RAMSalim Hosen
 
Presentation on BJT
Presentation on BJTPresentation on BJT
Presentation on BJTSalim Hosen
 
Application of Differential Equation
Application of Differential EquationApplication of Differential Equation
Application of Differential EquationSalim Hosen
 
Presentation on Relational Schema (Database)
Presentation on Relational Schema (Database)Presentation on Relational Schema (Database)
Presentation on Relational Schema (Database)Salim Hosen
 
Intellectual property
Intellectual propertyIntellectual property
Intellectual propertySalim Hosen
 

More from Salim Hosen (17)

Restaurant management system
Restaurant management systemRestaurant management system
Restaurant management system
 
Presentation on computer ram
Presentation on computer ramPresentation on computer ram
Presentation on computer ram
 
Presentation on Bio Informatics
Presentation on Bio InformaticsPresentation on Bio Informatics
Presentation on Bio Informatics
 
Presentation on iot restaurant project
Presentation on iot restaurant projectPresentation on iot restaurant project
Presentation on iot restaurant project
 
Famous Quotes of Famous People
Famous Quotes of Famous PeopleFamous Quotes of Famous People
Famous Quotes of Famous People
 
Presentation on IOT (Internet Of Things)
Presentation on IOT (Internet Of Things)Presentation on IOT (Internet Of Things)
Presentation on IOT (Internet Of Things)
 
Presentation on Variance
Presentation on VariancePresentation on Variance
Presentation on Variance
 
Presentation on Digital Image Processing
Presentation on Digital Image ProcessingPresentation on Digital Image Processing
Presentation on Digital Image Processing
 
Intellectual Property Presentation
Intellectual Property PresentationIntellectual Property Presentation
Intellectual Property Presentation
 
Android Studio Overview
Android Studio OverviewAndroid Studio Overview
Android Studio Overview
 
Presentation on Greedy Algorithm
Presentation on Greedy AlgorithmPresentation on Greedy Algorithm
Presentation on Greedy Algorithm
 
Presentation Data Link Layer and Network Layer
Presentation Data Link Layer and Network LayerPresentation Data Link Layer and Network Layer
Presentation Data Link Layer and Network Layer
 
Presentation on RAM
Presentation on RAMPresentation on RAM
Presentation on RAM
 
Presentation on BJT
Presentation on BJTPresentation on BJT
Presentation on BJT
 
Application of Differential Equation
Application of Differential EquationApplication of Differential Equation
Application of Differential Equation
 
Presentation on Relational Schema (Database)
Presentation on Relational Schema (Database)Presentation on Relational Schema (Database)
Presentation on Relational Schema (Database)
 
Intellectual property
Intellectual propertyIntellectual property
Intellectual property
 

Recently uploaded

Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 

Recently uploaded (20)

Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 

Presentation on Graph

  • 2. PRESENTATION ON GRAPH Group Members: 1. Hashibur Rahman Anik ID: 162-15-1032 2. Mohammad Salim Hosen ID: 162-15-1044 3. Rifat Rahman ID: 162-15-1049 4. Yeasin Hossain Emran ID: 162-15-1037
  • 3. GRAPH THEORY • A graph is a collection of vertices that are connected by edges. Some graphs can be directed, which means the lines have an arrow and only go in one direction. some graphs can have no edges at all, in others the edges could overlap, and there can be many edges coming out of the same vertex. • Example of Graph:
  • 4. PROPERTIES OF GRAPH: • Neighbors: Two vertices u and v in an undirected graph G are called adjacent (or neighbors) in G if u and v are endpoints of an edge e of G. • Neighborhood: The set of all neighbors of a vertex v of G = (V ,E), denoted by N(v), is called the neighborhood of v. • The degree of a vertex in an undirected graph is the number of edges incident with it. • A vertex of degree zero is called isolated. • A vertex is pendant if and only if it has degree one. • A path starting and ending at one vertex is called a loop on this vertex.
  • 5. SOME TYPES OF GRAPH Directed Graph Complete, Cycle & Undirected Graph Wheel Graph Bipartite Graph
  • 6. HANDSHAKING THEOREM: • Let G = (V ,E) be an undirected graph with m edges. Then • In any graph, the sum of all the vertex-degree is equal to twice the number of edges.
  • 7. EXAMPLE OF HANDSHAKING THEOREM • Suppose You have been invited to an birthday party. After a rousing celebration the guests get ready to leave, and everyone shakes hands with everyone else. How many handshakes are there in total? • Suppose that, including yourself and the host, there are 5 people present. • Each of the 5 people at the party shakes hands with 4 others. • Some people may think that Each of the 5 people at the party shakes hands with 4 others. That makes 5 × 4 = 20 handshakes in total. But this is wrong.
  • 8. HANDSHAKING THEOREM • If we represent the handshakes using a graph: every person is a vertex, and every handshake is an edge then there are 5 vertex and 4 edges. So now we can easily find the number of handshakes using the handshaking formula. • So the result will be, 2E = 4x5 and E = 10 handshakes in total
  • 9. EULER PATH AND CIRCUIT • An Euler path is a path that uses every edge in a graph with no repeats. Being a path, it does not have to return to the starting vertex. • An Euler circuit is a circuit that uses every edge in a graph with no repeats. Being a circuit it must start and end at the same vertex.
  • 10. EULER PATH AND CIRCUIT CONDITIONS: • Euler Path: • A graph will contain an Euler path if it contains at most two vertices of odd degree. • Euler Circuit: • A graph will Contain Euler Circuit if all vertices have even number of degree. PATH: c, d, b, c, a, b CIRCUIT: a, g, c, b, g, e,
  • 11. APPLICATION OF EULER CIRCUIT • Suppose a police officer wants to patrol neighborhood on foot by walking as little possible. The ideal solution for this could be a circuit that covers every street with no repeats and the officer will be returned where he had started from. If above graph is the area he could visit: A, B, C, D, E, B, E, F, A
  • 12. HAMILTON PATH AND CIRCUIT • A Hamilton path visits every vertex once with no repeats, but does not have to start and end at the same vertex. • A Hamilton circuit is a circuit that visits every vertex once with no repeats. Being a circuit it must start and end at the same vertex.
  • 13. HAMILTON PATH AND CIRCUIT CONDITIONS • Path: • No repeat vertex but touch all. • It is not compulsory to touch all edges • Circuit: • No odd number of vertex • Starting point and ending point should be same. Path: a, b, c, d. circuit: a, b, c, d, e, a.
  • 14. HAMILTON CIRCUIT APPLICATION: • Suppose a pizza delivery boy wants to serve pizza on each location then Hamilton path or circuit is the best way to express this situation.
  • 15. LINEAR ALGEBRA IN GRAPH THEORY • Graphs can be sometimes very complicated. So one needs to find more practical ways to represent them. Matrices are a very useful way of studying graphs, since they turn the picture into numbers, and then one can use techniques from linear algebra. Here is a example of adjacent matrix used in graph,
  • 16. DIJKSTRA’S SHORTEST PATH ALGORITHM • The objective of the algorithm is to find the shortest path from one source to another. • This algorithm has multiple application in real life. Mainly in computer networking or commercial shipping. We use this algorithm when we send something from one place to another. If there is multiple way to go there we find the shortest path. • Each stop in the graph will be denoted as vertex and each link will be called edge would have a specific weight.
  • 17. EXAMPLE • Suppose we want to go from A to H in above graph. So what would be the shortest path from A to H. We can use Dijkstra’s algorithm to find it.
  • 19. SHORTEST PATH • When we solve the graph we find the shortest path from A to H • Shortest Path: (A->C->D->E->G->F->H) value of 11