Skip to content

This is a project which determines the best configuration to define a Road Network Design using the Minimum Spanning Tree Concept

Notifications You must be signed in to change notification settings

SaarthakMaini/Road_Network_Design

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Road Network Design

Algorithm : Kruskal's Algorithm
Approach : Greedy Approach
Programming Language : C++

Objective

The objective of this project is to design a road network that efficiently connects various locations in a given area using the Kruskal's algorithm to make a Minimum Spanning Tree. This project aims to create a cost-effective road network that connects all locations with the minimum possible cost.

Methodology

The project will begin by identifying the various locations in the area and representing them as vertices in a weighted graph.

The roads between the locations will be represented as edges in the graph, and the weight of each edge will represent the cost of building a road between two locations.

Kruskal's Algorithm will be applied to the graph to find the minimum spanning tree or the minimum cost tree that connects all the locations.

The minimum spanning tree will be a subgraph of the original graph that contains all the vertices but has the minimum possible total weight.

Once, the minimum spanning tree is obtained , it will be used to design the road network.

The edges in the minimum spanning tree will represent the roads that should be built. The vertices will represent the locations where the roads should be connected and to show the path clearly, we are using a tool called GraphViz and using file handling to shift the output of the C++ program to the file with .dot extension.

Expected Outcome

The expected outcome of this project is to design a road network that connects all locations in a given area with the minimum possible cost. The road network will be efficient and cost effective, ensuring that people and goods can move around the area with ease

Flow Chart

The flow chart represents the various steps of the project:

image

Example

Lets try to determine the set of roads which need to be included in the network of 6 cities provided which would lead to a Minimum Cost Of Production.

The 6 cities considered are :

  • Mumbai
  • Delhi
  • Kolkata
  • Bengaluru
  • Chennai
  • Hyderabad

Terminal Output Depicting The Edges In The Minimum Spanning Tree Along With It's Cost

Original Graph Minimum Spanning Tree

Conclusion

Road network design using minimum spanning tree is a graph theory approach that can be used to design a cost-effective road network that connects various locations in an area.

The approach ensures that all the locations are connected with the minimum possible cost , resulting in an efficient road network that benefits the community.

Video Playlist

In this video playlist I give in-depth explaination about the project, build it live and demonstrate it's functionality in detail

About

This is a project which determines the best configuration to define a Road Network Design using the Minimum Spanning Tree Concept

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages