SlideShare a Scribd company logo
1 of 18
CAREER COLLEGE BHOPAL
DEPARTMENT OF COMPUTER SCIENCE
TOPIC: GRAPH
COURSE: BCA 1ST YEAR
YEAR: 2022-2023
PAPER: PROGRAMMING METHOD & DATA STRUCTURES
NAME OF STUDENT:
ADITYA PRATAP SINGH
LEARNING OUTCOMES
• Student should be able to: Explain basic terminology of a graph ADT.
• Choosing the best format to display the graph representation.
• Accurately interpret data presentation on a graph .
• You are able to decide the order of vertices to be visit in the search process.
GRAPH ADT
• The graph abstract data type is defined as: Graph creates a new, empty
graph, add vertex adds an instance of vertex to the graph, add edge add a
new, directed edge to the graph that connects two vertices.
• A graph is a non-linear data structures consisting of vertices and edges.
The vertices are something also referred to as nodes and the edges are
lines or arcs that connect any two nodes in the graph.
TYPES OF GRAPH
• Undirected graph
• Directed graph
• Complete graph
• Regular graph
• Cycle graph
• Acyclic graph
• Weighted graph
UNDIRECTED GRAPH DIRECTED GRAPH
A set of objects that are connected
together, where all the edges are
bidirectional.
A graph in which the edges have a direction.
COMPLETE GRAPH REGULAR GRAPH
A simple undirected graph in which every
pair of distinct vertices is connected by a
unique edge.
A graph where each vertex has the same
number of neighbors.
CYCLIC GRAPH ACYCLIC GRAPH
A graph that contains at least one cycle is
known as a cyclic graph.
A graph that contains zero cycles is known as
an acyclic graph.
WEIGHTED GRAPH
A weighted graph is a graph in
which each branch is given
a numerical weight.
GRAPH REPRESENTATION
Graph representation is a way of analysing numerical data. It exhibits the
relation between data, ideas, information and concepts in a diagram. It is
easy to understand and it is one of the most important learning strategies. It
is always depends on the type of information in a particular domain.
TYPES OF GRAPH REPRESENTATION
• Line graphs
• Bar graphs
• Histograms
• Line plots
• Frequency table
• Circle graph
LINE GRAPH BAR GRAPH
0
1
2
3
4
5
6
Category 1 Category 2 Category 3 Category 4
Series 1 Series 2 Series 3
A line graph, also known as a line chart or
a line plot, is commonly drawn to show
information that changes over time.
A bar graph is a graphical representation of
information. It uses bars that extend to
different heights to depict value.
0% 20% 40% 60% 80% 100%
Category 1
Category 2
Category 3
Category 4
Chart Title
Series 1 Series 2 Series 3
HISTOGRAM LINE PLOTS
A histogram is a graph that shows the
frequency of numerical data using
rectangles.
A line plot is a graph that displays data using a
number line.
FREQUENCY TABLE CIRCLE GRAPH
Frequency tables are helpful to understand
which options occur more or less often in
the dataset.
A circle graph, or a pie chart, is used to
visualize information and data.
1st Qtr 2nd Qtr 3rd Qtr 4th Qtr
GRAPH TRAVERSALS
• A graph search technique visits every node exactly one in a systematic fashion.
Two standard graph search technique have been widely used:
• Depth-First search (DFS).
• Breadth-First search (BFS).
DIFFERENCE BETWEEN BFS & DFS
Sr. No. Key BFS DFS
1. DEFINITION BFS is stands for breadth first search DFS is stands for depth first search
2. DATA STRUCTURES BFS uses Queue to find the shortest
path
It is use stack to find the shortest path
3. SOURCE It is better when target is closer to
source
DFS is better when target is far from
source.
4. SUITABILITY FOR
DECISION TREE
As BFS considers all neighbour so it is
not suitable for decision tree used in
puzzle games
DFS is more suitable for decision tree
5. SPEED This is slower than DFS It is faster than BFS
6. TIME COMPLEXITY The complexity of BFS= O(V+E) where
V is vertices and E is edge
Time complexity of DFS is also O(V+E)
where V is vertices and E is edge
REFERENCE
• https://www.javatpoint.com
• www.google.com
• https://www.geeksforgeeks.com
DEPARTMENT OF COMPUTER SCIENCE
Coordinator
Dr. Swarna Sinha
HOD
Department Of Computer Science
Mentor
Dr. Kapil Saxena
Asst. Professor
Department Of Computer Science
Subject Teacher
Dr. Swarna Sinha
HOD
Department Of Computer Science
Credits / Aabhar
graph aditya.pptx

More Related Content

Similar to graph aditya.pptx

Vector data model
Vector data model Vector data model
Vector data model Pramoda Raj
 
Vector data model
Vector data modelVector data model
Vector data modelPramoda Raj
 
An Introduction to Graph Databases
An Introduction to Graph DatabasesAn Introduction to Graph Databases
An Introduction to Graph DatabasesInfiniteGraph
 
SEMINAR Presentation ppt.pptx
SEMINAR Presentation ppt.pptxSEMINAR Presentation ppt.pptx
SEMINAR Presentation ppt.pptxWageYado
 
SEMINAR Presentation ppt.pptx
SEMINAR Presentation ppt.pptxSEMINAR Presentation ppt.pptx
SEMINAR Presentation ppt.pptxWageYado
 
Visualization Idioms with D3.js
Visualization Idioms with D3.jsVisualization Idioms with D3.js
Visualization Idioms with D3.jsPriyanshiVerma62
 
141222 graphulo ingraphblas
141222 graphulo ingraphblas141222 graphulo ingraphblas
141222 graphulo ingraphblasMIT
 
141205 graphulo ingraphblas
141205 graphulo ingraphblas141205 graphulo ingraphblas
141205 graphulo ingraphblasgraphulo
 
Graphs(Biostatistics and Research Methodology) B.pharmacy(8th sem.)
Graphs(Biostatistics and Research Methodology) B.pharmacy(8th sem.)Graphs(Biostatistics and Research Methodology) B.pharmacy(8th sem.)
Graphs(Biostatistics and Research Methodology) B.pharmacy(8th sem.)Pranjal Saxena
 
Graph analysis over relational database
Graph analysis over relational databaseGraph analysis over relational database
Graph analysis over relational databaseGraphRM
 
Data Visualization (1).pptx
Data Visualization (1).pptxData Visualization (1).pptx
Data Visualization (1).pptxcfiskillzz159
 
Advantages and Limitations for Diagrams and Graphs
Advantages and Limitations for Diagrams and GraphsAdvantages and Limitations for Diagrams and Graphs
Advantages and Limitations for Diagrams and GraphsHardik Bhaavani
 
EASS-PPT-Q2-Lesson-5-Non-Prose-Text..pdf
EASS-PPT-Q2-Lesson-5-Non-Prose-Text..pdfEASS-PPT-Q2-Lesson-5-Non-Prose-Text..pdf
EASS-PPT-Q2-Lesson-5-Non-Prose-Text..pdfmarygracebalobo403
 
135. Graphic Presentation
135. Graphic Presentation135. Graphic Presentation
135. Graphic PresentationLAKSHMANAN S
 
introduction to statistics
introduction to statisticsintroduction to statistics
introduction to statisticsBasit00786
 
UNIT_4_data visualization.pptx
UNIT_4_data visualization.pptxUNIT_4_data visualization.pptx
UNIT_4_data visualization.pptxBhagyasriPatel2
 
Data Visualization in Excel
Data Visualization in ExcelData Visualization in Excel
Data Visualization in ExcelFEG
 

Similar to graph aditya.pptx (20)

data handling
 data handling data handling
data handling
 
Vector data model
Vector data model Vector data model
Vector data model
 
Vector data model
Vector data modelVector data model
Vector data model
 
An Introduction to Graph Databases
An Introduction to Graph DatabasesAn Introduction to Graph Databases
An Introduction to Graph Databases
 
SEMINAR Presentation ppt.pptx
SEMINAR Presentation ppt.pptxSEMINAR Presentation ppt.pptx
SEMINAR Presentation ppt.pptx
 
SEMINAR Presentation ppt.pptx
SEMINAR Presentation ppt.pptxSEMINAR Presentation ppt.pptx
SEMINAR Presentation ppt.pptx
 
Visualization Idioms with D3.js
Visualization Idioms with D3.jsVisualization Idioms with D3.js
Visualization Idioms with D3.js
 
141222 graphulo ingraphblas
141222 graphulo ingraphblas141222 graphulo ingraphblas
141222 graphulo ingraphblas
 
141205 graphulo ingraphblas
141205 graphulo ingraphblas141205 graphulo ingraphblas
141205 graphulo ingraphblas
 
Graphs(Biostatistics and Research Methodology) B.pharmacy(8th sem.)
Graphs(Biostatistics and Research Methodology) B.pharmacy(8th sem.)Graphs(Biostatistics and Research Methodology) B.pharmacy(8th sem.)
Graphs(Biostatistics and Research Methodology) B.pharmacy(8th sem.)
 
Graph analysis over relational database
Graph analysis over relational databaseGraph analysis over relational database
Graph analysis over relational database
 
Data Visualization (1).pptx
Data Visualization (1).pptxData Visualization (1).pptx
Data Visualization (1).pptx
 
Advantages and Limitations for Diagrams and Graphs
Advantages and Limitations for Diagrams and GraphsAdvantages and Limitations for Diagrams and Graphs
Advantages and Limitations for Diagrams and Graphs
 
EASS-PPT-Q2-Lesson-5-Non-Prose-Text..pdf
EASS-PPT-Q2-Lesson-5-Non-Prose-Text..pdfEASS-PPT-Q2-Lesson-5-Non-Prose-Text..pdf
EASS-PPT-Q2-Lesson-5-Non-Prose-Text..pdf
 
135. Graphic Presentation
135. Graphic Presentation135. Graphic Presentation
135. Graphic Presentation
 
introduction to statistics
introduction to statisticsintroduction to statistics
introduction to statistics
 
Graphs in Biostatistics
Graphs in Biostatistics Graphs in Biostatistics
Graphs in Biostatistics
 
UNIT_4_data visualization.pptx
UNIT_4_data visualization.pptxUNIT_4_data visualization.pptx
UNIT_4_data visualization.pptx
 
Presentation CET.pptx
Presentation CET.pptxPresentation CET.pptx
Presentation CET.pptx
 
Data Visualization in Excel
Data Visualization in ExcelData Visualization in Excel
Data Visualization in Excel
 

Recently uploaded

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
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
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 

Recently uploaded (20)

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
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
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
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
 

graph aditya.pptx

  • 1. CAREER COLLEGE BHOPAL DEPARTMENT OF COMPUTER SCIENCE TOPIC: GRAPH COURSE: BCA 1ST YEAR YEAR: 2022-2023 PAPER: PROGRAMMING METHOD & DATA STRUCTURES NAME OF STUDENT: ADITYA PRATAP SINGH
  • 2. LEARNING OUTCOMES • Student should be able to: Explain basic terminology of a graph ADT. • Choosing the best format to display the graph representation. • Accurately interpret data presentation on a graph . • You are able to decide the order of vertices to be visit in the search process.
  • 3. GRAPH ADT • The graph abstract data type is defined as: Graph creates a new, empty graph, add vertex adds an instance of vertex to the graph, add edge add a new, directed edge to the graph that connects two vertices. • A graph is a non-linear data structures consisting of vertices and edges. The vertices are something also referred to as nodes and the edges are lines or arcs that connect any two nodes in the graph.
  • 4. TYPES OF GRAPH • Undirected graph • Directed graph • Complete graph • Regular graph • Cycle graph • Acyclic graph • Weighted graph
  • 5. UNDIRECTED GRAPH DIRECTED GRAPH A set of objects that are connected together, where all the edges are bidirectional. A graph in which the edges have a direction.
  • 6. COMPLETE GRAPH REGULAR GRAPH A simple undirected graph in which every pair of distinct vertices is connected by a unique edge. A graph where each vertex has the same number of neighbors.
  • 7. CYCLIC GRAPH ACYCLIC GRAPH A graph that contains at least one cycle is known as a cyclic graph. A graph that contains zero cycles is known as an acyclic graph.
  • 8. WEIGHTED GRAPH A weighted graph is a graph in which each branch is given a numerical weight.
  • 9. GRAPH REPRESENTATION Graph representation is a way of analysing numerical data. It exhibits the relation between data, ideas, information and concepts in a diagram. It is easy to understand and it is one of the most important learning strategies. It is always depends on the type of information in a particular domain.
  • 10. TYPES OF GRAPH REPRESENTATION • Line graphs • Bar graphs • Histograms • Line plots • Frequency table • Circle graph
  • 11. LINE GRAPH BAR GRAPH 0 1 2 3 4 5 6 Category 1 Category 2 Category 3 Category 4 Series 1 Series 2 Series 3 A line graph, also known as a line chart or a line plot, is commonly drawn to show information that changes over time. A bar graph is a graphical representation of information. It uses bars that extend to different heights to depict value. 0% 20% 40% 60% 80% 100% Category 1 Category 2 Category 3 Category 4 Chart Title Series 1 Series 2 Series 3
  • 12. HISTOGRAM LINE PLOTS A histogram is a graph that shows the frequency of numerical data using rectangles. A line plot is a graph that displays data using a number line.
  • 13. FREQUENCY TABLE CIRCLE GRAPH Frequency tables are helpful to understand which options occur more or less often in the dataset. A circle graph, or a pie chart, is used to visualize information and data. 1st Qtr 2nd Qtr 3rd Qtr 4th Qtr
  • 14. GRAPH TRAVERSALS • A graph search technique visits every node exactly one in a systematic fashion. Two standard graph search technique have been widely used: • Depth-First search (DFS). • Breadth-First search (BFS).
  • 15. DIFFERENCE BETWEEN BFS & DFS Sr. No. Key BFS DFS 1. DEFINITION BFS is stands for breadth first search DFS is stands for depth first search 2. DATA STRUCTURES BFS uses Queue to find the shortest path It is use stack to find the shortest path 3. SOURCE It is better when target is closer to source DFS is better when target is far from source. 4. SUITABILITY FOR DECISION TREE As BFS considers all neighbour so it is not suitable for decision tree used in puzzle games DFS is more suitable for decision tree 5. SPEED This is slower than DFS It is faster than BFS 6. TIME COMPLEXITY The complexity of BFS= O(V+E) where V is vertices and E is edge Time complexity of DFS is also O(V+E) where V is vertices and E is edge
  • 17. DEPARTMENT OF COMPUTER SCIENCE Coordinator Dr. Swarna Sinha HOD Department Of Computer Science Mentor Dr. Kapil Saxena Asst. Professor Department Of Computer Science Subject Teacher Dr. Swarna Sinha HOD Department Of Computer Science Credits / Aabhar