Giter Club home page Giter Club logo

road_network_design's Introduction

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

road_network_design's People

Contributors

saarthakmaini avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.