SlideShare a Scribd company logo
1 of 2
Provide what are being asked on the following.
The roads represented by this graph are all unpaved. The lengths of the roads
between pairs of towns are represented by edge weights.
21. Given the graph above find the visit order of DFS(G) and BFS (K).10 pts.
a. Construct the diagram
b. show the visit order of the diagram.
22. Which roads should be paved so that there is a path of paved roads
between each pair of towns so that a minimum road length is paved? 15 pts.
a. Construct MST from v1 for this graph using Prim's algorithm and solve
the to minimum cost.
b. Construct MST for this graph using Kruskal algorithm solve the to
minimum cost.
23. Determine the shortest path from vertex A to all other vertices in the
network. 15 pts.
a. Solve the problem using the formula D[n] = min(D[n], D[w] + C[w,n])
b. Plot the result of each iteration in a form of table.
c. Draw the diagram showing the total weight in every vertices

More Related Content

What's hot

Slope formulatemplatecx
Slope formulatemplatecxSlope formulatemplatecx
Slope formulatemplatecxMedia4math
 
C programming on the determination of shear force, bending moment, shear stre...
C programming on the determination of shear force, bending moment, shear stre...C programming on the determination of shear force, bending moment, shear stre...
C programming on the determination of shear force, bending moment, shear stre...Mamun Mehedee
 
Computer Aided Design: Layout Compaction
Computer Aided Design: Layout CompactionComputer Aided Design: Layout Compaction
Computer Aided Design: Layout CompactionTeam-VLSI-ITMU
 
pgRouting 2.0 presentation 2013
pgRouting 2.0 presentation 2013pgRouting 2.0 presentation 2013
pgRouting 2.0 presentation 2013Daniel Kastl
 
10. quadratic standardformsliderstouchpad
10. quadratic standardformsliderstouchpad10. quadratic standardformsliderstouchpad
10. quadratic standardformsliderstouchpadMedia4math
 
study Latent Doodle Space
study Latent Doodle Spacestudy Latent Doodle Space
study Latent Doodle SpaceChiamin Hsu
 

What's hot (12)

Karnaugh map
Karnaugh mapKarnaugh map
Karnaugh map
 
Slope formulatemplatecx
Slope formulatemplatecxSlope formulatemplatecx
Slope formulatemplatecx
 
C programming on the determination of shear force, bending moment, shear stre...
C programming on the determination of shear force, bending moment, shear stre...C programming on the determination of shear force, bending moment, shear stre...
C programming on the determination of shear force, bending moment, shear stre...
 
Computer Aided Design: Layout Compaction
Computer Aided Design: Layout CompactionComputer Aided Design: Layout Compaction
Computer Aided Design: Layout Compaction
 
DCF - K map
DCF - K mapDCF - K map
DCF - K map
 
pgRouting 2.0 presentation 2013
pgRouting 2.0 presentation 2013pgRouting 2.0 presentation 2013
pgRouting 2.0 presentation 2013
 
K map.
K map.K map.
K map.
 
Special graph
Special graphSpecial graph
Special graph
 
Juan matlab
Juan matlabJuan matlab
Juan matlab
 
Graph theory ppt
Graph theory pptGraph theory ppt
Graph theory ppt
 
10. quadratic standardformsliderstouchpad
10. quadratic standardformsliderstouchpad10. quadratic standardformsliderstouchpad
10. quadratic standardformsliderstouchpad
 
study Latent Doodle Space
study Latent Doodle Spacestudy Latent Doodle Space
study Latent Doodle Space
 

Viewers also liked (20)

Field Study 3 Episode 4
Field Study 3 Episode 4Field Study 3 Episode 4
Field Study 3 Episode 4
 
Field Study 3 Episode 3
Field Study 3 Episode 3Field Study 3 Episode 3
Field Study 3 Episode 3
 
Field Study 4 Episode 4
Field Study 4 Episode 4Field Study 4 Episode 4
Field Study 4 Episode 4
 
Fs 3
Fs 3Fs 3
Fs 3
 
Methodology
MethodologyMethodology
Methodology
 
Field Study 3 Episode1
Field Study 3 Episode1Field Study 3 Episode1
Field Study 3 Episode1
 
Fs1.episode2 sarah jane cabilino
Fs1.episode2 sarah jane cabilinoFs1.episode2 sarah jane cabilino
Fs1.episode2 sarah jane cabilino
 
Field Study 3 Episode 1
Field Study 3 Episode 1Field Study 3 Episode 1
Field Study 3 Episode 1
 
Field Study 3 Episode 1
Field Study 3 Episode 1Field Study 3 Episode 1
Field Study 3 Episode 1
 
Field Study 3 Episode 2
Field Study 3 Episode 2Field Study 3 Episode 2
Field Study 3 Episode 2
 
Banto
BantoBanto
Banto
 
Field Study 4 Episode 1
Field Study 4 Episode 1Field Study 4 Episode 1
Field Study 4 Episode 1
 
Field Study 3 Episode 3
Field Study 3 Episode 3Field Study 3 Episode 3
Field Study 3 Episode 3
 
Field Study 4 Episode 8
Field Study 4 Episode 8Field Study 4 Episode 8
Field Study 4 Episode 8
 
Fs2.episode1 sarah jane cabilino
Fs2.episode1 sarah jane cabilinoFs2.episode1 sarah jane cabilino
Fs2.episode1 sarah jane cabilino
 
Field Study 3 Episode 2
Field Study 3 Episode 2Field Study 3 Episode 2
Field Study 3 Episode 2
 
Fs2.episode2 sarah jane cabilino
Fs2.episode2 sarah jane cabilinoFs2.episode2 sarah jane cabilino
Fs2.episode2 sarah jane cabilino
 
Field Study 3 Episode 6
Field Study 3 Episode 6Field Study 3 Episode 6
Field Study 3 Episode 6
 
FS3 Episode 1
FS3 Episode 1FS3 Episode 1
FS3 Episode 1
 
Fs 3 episode3
Fs 3 episode3Fs 3 episode3
Fs 3 episode3
 

Similar to Graph t heory

Class 9 Cbse Maths Sample Paper Term 2 Model 1
Class 9 Cbse Maths Sample Paper Term 2 Model 1Class 9 Cbse Maths Sample Paper Term 2 Model 1
Class 9 Cbse Maths Sample Paper Term 2 Model 1Sunaina Rawat
 
maths sample paper class 9 SA2
maths sample paper class 9 SA2maths sample paper class 9 SA2
maths sample paper class 9 SA2Garvit19
 
Surface representation
Surface representationSurface representation
Surface representationSunith Guraddi
 
Project2
Project2Project2
Project2?? ?
 
student-problem-solutions.pdf
student-problem-solutions.pdfstudent-problem-solutions.pdf
student-problem-solutions.pdfssuser4d4e5a
 
student-problem-solutions.PDF
student-problem-solutions.PDFstudent-problem-solutions.PDF
student-problem-solutions.PDFKarminderSingh7
 
Ec2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.orgEc2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.organnaunivedu
 
Lec 04 - Gate-level Minimization
Lec 04 - Gate-level MinimizationLec 04 - Gate-level Minimization
Lec 04 - Gate-level MinimizationVajira Thambawita
 
Year 12 Maths A Textbook - Chapter 7
Year 12 Maths A Textbook - Chapter 7Year 12 Maths A Textbook - Chapter 7
Year 12 Maths A Textbook - Chapter 7westy67968
 
Matrices and row operations 12123 and applications of matrices
Matrices and row operations 12123 and applications of matricesMatrices and row operations 12123 and applications of matrices
Matrices and row operations 12123 and applications of matricesmayaGER
 
parameterized complexity for graph Motif
parameterized complexity for graph Motifparameterized complexity for graph Motif
parameterized complexity for graph MotifAMR koura
 

Similar to Graph t heory (20)

Class 9 Cbse Maths Sample Paper Term 2 Model 1
Class 9 Cbse Maths Sample Paper Term 2 Model 1Class 9 Cbse Maths Sample Paper Term 2 Model 1
Class 9 Cbse Maths Sample Paper Term 2 Model 1
 
Test 1
Test 1Test 1
Test 1
 
maths sample paper class 9 SA2
maths sample paper class 9 SA2maths sample paper class 9 SA2
maths sample paper class 9 SA2
 
Dijkstra.ppt
Dijkstra.pptDijkstra.ppt
Dijkstra.ppt
 
Algorithm Exam Help
Algorithm Exam Help Algorithm Exam Help
Algorithm Exam Help
 
Programming Exam Help
Programming Exam Help Programming Exam Help
Programming Exam Help
 
Algorithms Design Exam Help
Algorithms Design Exam HelpAlgorithms Design Exam Help
Algorithms Design Exam Help
 
Thesis_Draft_Nurkhaidarov
Thesis_Draft_NurkhaidarovThesis_Draft_Nurkhaidarov
Thesis_Draft_Nurkhaidarov
 
Algorithms Design Assignment Help
Algorithms Design Assignment HelpAlgorithms Design Assignment Help
Algorithms Design Assignment Help
 
Surface representation
Surface representationSurface representation
Surface representation
 
Project2
Project2Project2
Project2
 
student-problem-solutions.pdf
student-problem-solutions.pdfstudent-problem-solutions.pdf
student-problem-solutions.pdf
 
student-problem-solutions.PDF
student-problem-solutions.PDFstudent-problem-solutions.PDF
student-problem-solutions.PDF
 
Ec2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.orgEc2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.org
 
Lec 04 - Gate-level Minimization
Lec 04 - Gate-level MinimizationLec 04 - Gate-level Minimization
Lec 04 - Gate-level Minimization
 
Suspension_report
Suspension_reportSuspension_report
Suspension_report
 
Year 12 Maths A Textbook - Chapter 7
Year 12 Maths A Textbook - Chapter 7Year 12 Maths A Textbook - Chapter 7
Year 12 Maths A Textbook - Chapter 7
 
Matrices and row operations 12123 and applications of matrices
Matrices and row operations 12123 and applications of matricesMatrices and row operations 12123 and applications of matrices
Matrices and row operations 12123 and applications of matrices
 
parameterized complexity for graph Motif
parameterized complexity for graph Motifparameterized complexity for graph Motif
parameterized complexity for graph Motif
 
Computation Assignment Help
Computation Assignment Help Computation Assignment Help
Computation Assignment Help
 

Recently uploaded

High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...soniya singh
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Cantervoginip
 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanMYRABACSAFRA2
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDRafezzaman
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
Top 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In QueensTop 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In Queensdataanalyticsqueen03
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]📊 Markus Baersch
 
Heart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis ProjectHeart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis ProjectBoston Institute of Analytics
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024thyngster
 
Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 217djon017
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default  Presentation : Data Analysis Project PPTPredictive Analysis for Loan Default  Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPTBoston Institute of Analytics
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...Boston Institute of Analytics
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFAAndrei Kaleshka
 
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改yuu sss
 

Recently uploaded (20)

High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Canter
 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population Mean
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
Top 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In QueensTop 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In Queens
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]
 
Heart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis ProjectHeart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis Project
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
 
Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default  Presentation : Data Analysis Project PPTPredictive Analysis for Loan Default  Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFA
 
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
 

Graph t heory

  • 1. Provide what are being asked on the following. The roads represented by this graph are all unpaved. The lengths of the roads between pairs of towns are represented by edge weights. 21. Given the graph above find the visit order of DFS(G) and BFS (K).10 pts. a. Construct the diagram b. show the visit order of the diagram. 22. Which roads should be paved so that there is a path of paved roads between each pair of towns so that a minimum road length is paved? 15 pts. a. Construct MST from v1 for this graph using Prim's algorithm and solve the to minimum cost. b. Construct MST for this graph using Kruskal algorithm solve the to minimum cost. 23. Determine the shortest path from vertex A to all other vertices in the network. 15 pts.
  • 2. a. Solve the problem using the formula D[n] = min(D[n], D[w] + C[w,n]) b. Plot the result of each iteration in a form of table. c. Draw the diagram showing the total weight in every vertices