Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Select a community network system of your choice and model it using a graph data structure. Ensure that the network system chosen has at least

Select a community network system of your choice and model it using a graph data structure. Ensure that the network system chosen has at least nine (9) nodes (vertices) and the graph to be built is a strongly connected weighted directed graph (that is, there is at least one path between any two vertices to assure that every vertex is reachable from every other vertex). Store your graph data in a simple text file and ensure to confirm the implementation of your graph model by allowing the user to printout the graph after it has been built. Examples of community networks appropriate for modelling with a graph data structure within your community may include:

Fire hydrants

Playgrounds

Parks

Cable Cabinets

Stop signs / Stop Lights

Hydro / water meters

Bus stops

Etc.

Required:

a) Your graph network should have at least nine (9) vertices. Draw a labelled pictorial diagram of the network you are modeling. Vertices & edges should be labelled with the information that will be eventually implemented. (5 marks)

b) Ensure that your graph edges store appropriate weight information such as distance between nodes, time between nodes, cost to travel between nodes, bus# that travels between nodes etc. complete and submit the Adjacency List Structure corresponding to your pictorial diagram (5 marks)

c) Store your graph input data (corresponding to your pictorial model and your adjacency list structure) in a text file that will be used to test your implementation. graph input data file (5 marks)

d) Submit your C Program source file (.c)

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

Step: 3

blur-text-image

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

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

How do you compare the human to the machine for quality control?

Answered: 1 week ago