Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A Graph is a non - linear data structure consisting of nodes and edges. The nodes are sometimes also referred to as vertices and the

A Graph is a non-linear data structure consisting of nodes and edges. The nodes are sometimes
also referred to as vertices and the edges are lines or arcs that connect any two nodes in the graph.
Graphs are used to solve many real-life problems. Graphs are used to represent networks. The
networks may include paths in a city or telephone network or circuit network. Graphs are also used
in social networks like LinkedIn, Facebook. For example, in Facebook, each person is represented
with a vertex (or node). Each node is a structure and contains information like person id, name,
gender, locale etc.
Using the graph data table below, complete the required tasks as directed:
Required:
Construct the undirected graph. City 1 is the source vertex.
Using Bellmaford Algorithm Find the single source shortest path - list the vertices.
Show all possible working.
b. Draw the single source shortest path.
c. What is the total cost of travelling from City 1 to City 9?
Using Prim's Algorithm: a. Find the minimum cost spanning tree - list the vertices. Show all
possible working.
b. Draw the minimum spanning tree
c. Calculate the minimum cost
Using Kruskal's Algorithm: a. Find the minimum cost spanning tree - list the vertices. Show all
possible working.
b. Draw the minimum spanning tree
c. Calculate the minimum cost
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Accounting And Auditing Research And Databases Practitioner's Desk Reference

Authors: Thomas R. Weirich, Natalie Tatiana Churyk, Thomas C. Pearson

1st Edition

1118334426, 978-1118334423

More Books

Students also viewed these Databases questions