SlideShare a Scribd company logo
GRAPH
What is graph
Graphs consist of
 points called vertices
 lines called edges
1. Edges connect two vertices.
2. Edges only intersect at vertices.
3. Edges joining a vertex to itself are
called loops.
Example
FlexoFlexo BenderBender LeelaLeela
FryFry AmyAmy
This is also a graph. The vertices just happen to have
people’s names.
Such a graph could represent friendships (or any kind of
relationship).
FarnsworthFarnsworth
ZoidbergZoidberg
Theory of Large Graphs
Large graphs
 Billion vertices
 Exact edges present not critical
Theoretical basis for study of large graphs
 Maybe theory of graph generation
 Invariant to small changes in definition
 Must be able to prove basic theorems
Type of graph
Weighted Graph
Undirected Graph
Directed Graph
Connected Graphs
Complete Graphs
TRAVERSING A GRAPH
1.DFS:
DFS means death first search, we use
here STACK
2.BFS:
BFS means breath first search, we use
here QUEUE
DFS
Print :C STACK:E,F,D
Print:D STACK:E,F
Print:F STACK:E,I
Print:I STACK:E,H
Print:H STACK:E,G
Print:E STACK:B
Print:B STACK;
C,D,F,I,H,G,E
A
B C D
E
F G
I H
ADJACENCY LIST
A B,C,D H F,G
B C I H
C E,F,D
D F
E I,B
F I
G F,D
A
B C D
E
F G
I H
BFS

FRONT=1 QUEUE=A
REAR=1 ORIG= NULL
FRONT=2 QUEUE=A,B,C,D
REAR=4 ORIG=NULL, A,A,A
FRONT=3 QUEUE=A,B,C,D
REAR=4 ORIG=NULL,A,A,A,C
…………
FRONT=5 QUEUE=A,B,C,D,E,F,I
REAR=7 QUEUE=NULL,A,A,A,C,C,E
NOW USING BACK TRACK:
I –E –C-A
A
B C D
E
F G
I H
Some applications of Graph
Theory
 Models for communications and electrical
networks
 Models for computer architectures
 Network optimization models for
operations analysis, including scheduling
and job assignment
 Analysis of Finite State Machines
 Parsing and code optimization in
compilers
Adjacency list structure
coding
Any Question..??
THANK YOU
Application of graph

More Related Content

Similar to Application of graph

Unit-6 Graph.ppsx ppt
Unit-6 Graph.ppsx                                       pptUnit-6 Graph.ppsx                                       ppt
Unit-6 Graph.ppsx ppt
DhruvilSTATUS
 
graph representation.pdf
graph representation.pdfgraph representation.pdf
graph representation.pdf
amitbhachne
 
Skiena algorithm 2007 lecture10 graph data strctures
Skiena algorithm 2007 lecture10 graph data strcturesSkiena algorithm 2007 lecture10 graph data strctures
Skiena algorithm 2007 lecture10 graph data strctureszukun
 
Spanningtreesppt
SpanningtreespptSpanningtreesppt
Spanningtreesppt
Jyoshna Cec Cse Staf bejjam
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2showslidedump
 
Graph Basic In Data structure
Graph Basic In Data structureGraph Basic In Data structure
Graph Basic In Data structure
Ikhlas Rahman
 

Similar to Application of graph (10)

Research
ResearchResearch
Research
 
Discrete2
Discrete2Discrete2
Discrete2
 
Discrete ad
Discrete adDiscrete ad
Discrete ad
 
Unit-6 Graph.ppsx ppt
Unit-6 Graph.ppsx                                       pptUnit-6 Graph.ppsx                                       ppt
Unit-6 Graph.ppsx ppt
 
graph representation.pdf
graph representation.pdfgraph representation.pdf
graph representation.pdf
 
Skiena algorithm 2007 lecture10 graph data strctures
Skiena algorithm 2007 lecture10 graph data strcturesSkiena algorithm 2007 lecture10 graph data strctures
Skiena algorithm 2007 lecture10 graph data strctures
 
Graph
GraphGraph
Graph
 
Spanningtreesppt
SpanningtreespptSpanningtreesppt
Spanningtreesppt
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2
 
Graph Basic In Data structure
Graph Basic In Data structureGraph Basic In Data structure
Graph Basic In Data structure
 

More from Zakaria Hossain

GPS tracking in Aircraft
GPS tracking in AircraftGPS tracking in Aircraft
GPS tracking in Aircraft
Zakaria Hossain
 
Home Automation System - Arduino
Home Automation System - ArduinoHome Automation System - Arduino
Home Automation System - Arduino
Zakaria Hossain
 
Real Time Motion Object Tracking Using GPU
Real Time Motion Object Tracking Using GPUReal Time Motion Object Tracking Using GPU
Real Time Motion Object Tracking Using GPU
Zakaria Hossain
 
Arduino Line following Car
Arduino Line following CarArduino Line following Car
Arduino Line following Car
Zakaria Hossain
 
Cloud of things (IoT + Cloud Computing)
Cloud of things (IoT + Cloud Computing)Cloud of things (IoT + Cloud Computing)
Cloud of things (IoT + Cloud Computing)
Zakaria Hossain
 
Online event solution
Online event solutionOnline event solution
Online event solution
Zakaria Hossain
 
24/7 Weather forecast app (mobile)
24/7 Weather forecast app (mobile)24/7 Weather forecast app (mobile)
24/7 Weather forecast app (mobile)
Zakaria Hossain
 
Setting up a web server in Linux (Ubuntu)
Setting up a web server in Linux (Ubuntu)Setting up a web server in Linux (Ubuntu)
Setting up a web server in Linux (Ubuntu)
Zakaria Hossain
 
Presentation about Blockchain technology
Presentation about Blockchain technologyPresentation about Blockchain technology
Presentation about Blockchain technology
Zakaria Hossain
 
What is variable? What is data type, header file? ভেরিয়েবল কি? ডেটা টাইপ, হেড...
What is variable? What is data type, header file? ভেরিয়েবল কি? ডেটা টাইপ, হেড...What is variable? What is data type, header file? ভেরিয়েবল কি? ডেটা টাইপ, হেড...
What is variable? What is data type, header file? ভেরিয়েবল কি? ডেটা টাইপ, হেড...
Zakaria Hossain
 
Travelling to South Africa
Travelling to South AfricaTravelling to South Africa
Travelling to South Africa
Zakaria Hossain
 
System Analysis and Design
System Analysis and DesignSystem Analysis and Design
System Analysis and Design
Zakaria Hossain
 
Ludo (snack-ladder) game project presentation
Ludo (snack-ladder) game project presentationLudo (snack-ladder) game project presentation
Ludo (snack-ladder) game project presentation
Zakaria Hossain
 
Types of variables in statistics
Types of variables in statisticsTypes of variables in statistics
Types of variables in statistics
Zakaria Hossain
 
Uses of economics in computer science
Uses of economics in computer scienceUses of economics in computer science
Uses of economics in computer science
Zakaria Hossain
 
Presentaion on Bio-Informatics
Presentaion on Bio-InformaticsPresentaion on Bio-Informatics
Presentaion on Bio-Informatics
Zakaria Hossain
 
Calendar Project Presentation In Microprocessor and Assembly Language
Calendar Project Presentation In Microprocessor and Assembly LanguageCalendar Project Presentation In Microprocessor and Assembly Language
Calendar Project Presentation In Microprocessor and Assembly Language
Zakaria Hossain
 
Different types of Shoring Algorithms with Animation
Different types of Shoring Algorithms with AnimationDifferent types of Shoring Algorithms with Animation
Different types of Shoring Algorithms with Animation
Zakaria Hossain
 
Subentting, Supernetting and VLSM presentation
Subentting, Supernetting and VLSM presentationSubentting, Supernetting and VLSM presentation
Subentting, Supernetting and VLSM presentation
Zakaria Hossain
 
Lagrange's equation with one application
Lagrange's equation with one applicationLagrange's equation with one application
Lagrange's equation with one application
Zakaria Hossain
 

More from Zakaria Hossain (20)

GPS tracking in Aircraft
GPS tracking in AircraftGPS tracking in Aircraft
GPS tracking in Aircraft
 
Home Automation System - Arduino
Home Automation System - ArduinoHome Automation System - Arduino
Home Automation System - Arduino
 
Real Time Motion Object Tracking Using GPU
Real Time Motion Object Tracking Using GPUReal Time Motion Object Tracking Using GPU
Real Time Motion Object Tracking Using GPU
 
Arduino Line following Car
Arduino Line following CarArduino Line following Car
Arduino Line following Car
 
Cloud of things (IoT + Cloud Computing)
Cloud of things (IoT + Cloud Computing)Cloud of things (IoT + Cloud Computing)
Cloud of things (IoT + Cloud Computing)
 
Online event solution
Online event solutionOnline event solution
Online event solution
 
24/7 Weather forecast app (mobile)
24/7 Weather forecast app (mobile)24/7 Weather forecast app (mobile)
24/7 Weather forecast app (mobile)
 
Setting up a web server in Linux (Ubuntu)
Setting up a web server in Linux (Ubuntu)Setting up a web server in Linux (Ubuntu)
Setting up a web server in Linux (Ubuntu)
 
Presentation about Blockchain technology
Presentation about Blockchain technologyPresentation about Blockchain technology
Presentation about Blockchain technology
 
What is variable? What is data type, header file? ভেরিয়েবল কি? ডেটা টাইপ, হেড...
What is variable? What is data type, header file? ভেরিয়েবল কি? ডেটা টাইপ, হেড...What is variable? What is data type, header file? ভেরিয়েবল কি? ডেটা টাইপ, হেড...
What is variable? What is data type, header file? ভেরিয়েবল কি? ডেটা টাইপ, হেড...
 
Travelling to South Africa
Travelling to South AfricaTravelling to South Africa
Travelling to South Africa
 
System Analysis and Design
System Analysis and DesignSystem Analysis and Design
System Analysis and Design
 
Ludo (snack-ladder) game project presentation
Ludo (snack-ladder) game project presentationLudo (snack-ladder) game project presentation
Ludo (snack-ladder) game project presentation
 
Types of variables in statistics
Types of variables in statisticsTypes of variables in statistics
Types of variables in statistics
 
Uses of economics in computer science
Uses of economics in computer scienceUses of economics in computer science
Uses of economics in computer science
 
Presentaion on Bio-Informatics
Presentaion on Bio-InformaticsPresentaion on Bio-Informatics
Presentaion on Bio-Informatics
 
Calendar Project Presentation In Microprocessor and Assembly Language
Calendar Project Presentation In Microprocessor and Assembly LanguageCalendar Project Presentation In Microprocessor and Assembly Language
Calendar Project Presentation In Microprocessor and Assembly Language
 
Different types of Shoring Algorithms with Animation
Different types of Shoring Algorithms with AnimationDifferent types of Shoring Algorithms with Animation
Different types of Shoring Algorithms with Animation
 
Subentting, Supernetting and VLSM presentation
Subentting, Supernetting and VLSM presentationSubentting, Supernetting and VLSM presentation
Subentting, Supernetting and VLSM presentation
 
Lagrange's equation with one application
Lagrange's equation with one applicationLagrange's equation with one application
Lagrange's equation with one application
 

Recently uploaded

Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
Ethernet Routing and switching chapter 1.ppt
Ethernet Routing and switching chapter 1.pptEthernet Routing and switching chapter 1.ppt
Ethernet Routing and switching chapter 1.ppt
azkamurat
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
ihlasbinance2003
 
Low power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniquesLow power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniques
nooriasukmaningtyas
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Soumen Santra
 
Online aptitude test management system project report.pdf
Online aptitude test management system project report.pdfOnline aptitude test management system project report.pdf
Online aptitude test management system project report.pdf
Kamal Acharya
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
PauloRodrigues104553
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
Kamal Acharya
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
symbo111
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
awadeshbabu
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
yokeleetan1
 

Recently uploaded (20)

Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
Ethernet Routing and switching chapter 1.ppt
Ethernet Routing and switching chapter 1.pptEthernet Routing and switching chapter 1.ppt
Ethernet Routing and switching chapter 1.ppt
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
 
Low power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniquesLow power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniques
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
 
Online aptitude test management system project report.pdf
Online aptitude test management system project report.pdfOnline aptitude test management system project report.pdf
Online aptitude test management system project report.pdf
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
 

Application of graph

  • 2. What is graph Graphs consist of  points called vertices  lines called edges 1. Edges connect two vertices. 2. Edges only intersect at vertices. 3. Edges joining a vertex to itself are called loops.
  • 3. Example FlexoFlexo BenderBender LeelaLeela FryFry AmyAmy This is also a graph. The vertices just happen to have people’s names. Such a graph could represent friendships (or any kind of relationship). FarnsworthFarnsworth ZoidbergZoidberg
  • 4. Theory of Large Graphs Large graphs  Billion vertices  Exact edges present not critical Theoretical basis for study of large graphs  Maybe theory of graph generation  Invariant to small changes in definition  Must be able to prove basic theorems
  • 5. Type of graph Weighted Graph Undirected Graph Directed Graph Connected Graphs Complete Graphs
  • 6. TRAVERSING A GRAPH 1.DFS: DFS means death first search, we use here STACK 2.BFS: BFS means breath first search, we use here QUEUE
  • 7. DFS Print :C STACK:E,F,D Print:D STACK:E,F Print:F STACK:E,I Print:I STACK:E,H Print:H STACK:E,G Print:E STACK:B Print:B STACK; C,D,F,I,H,G,E A B C D E F G I H
  • 8. ADJACENCY LIST A B,C,D H F,G B C I H C E,F,D D F E I,B F I G F,D A B C D E F G I H
  • 9. BFS  FRONT=1 QUEUE=A REAR=1 ORIG= NULL FRONT=2 QUEUE=A,B,C,D REAR=4 ORIG=NULL, A,A,A FRONT=3 QUEUE=A,B,C,D REAR=4 ORIG=NULL,A,A,A,C ………… FRONT=5 QUEUE=A,B,C,D,E,F,I REAR=7 QUEUE=NULL,A,A,A,C,C,E NOW USING BACK TRACK: I –E –C-A A B C D E F G I H
  • 10. Some applications of Graph Theory  Models for communications and electrical networks  Models for computer architectures  Network optimization models for operations analysis, including scheduling and job assignment  Analysis of Finite State Machines  Parsing and code optimization in compilers
  • 11.

Editor's Notes

  1. Zakaria Hossain