Skip to content

anushkarajora11/DSA-Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

IIT Kanpur Campus Route Planner

This project implements a shortest path navigation system for the IIT Kanpur campus using Dijkstra’s Algorithm in C++.
The program computes the shortest distance and optimal route between two campus locations by modeling the campus map as a weighted graph.


Project Overview

  • Campus locations are represented as nodes
  • Roads/walkways are represented as edges with distances
  • The shortest path between a source and destination is computed using Dijkstra’s Algorithm
  • Both the minimum distance and the actual path are displayed

Campus Locations Modeled

Node ID Location
0 Hall 3
1 Hall 5
2 Lecture Hall Complex (LHC)
3 Library
4 Academic Block

Technologies Used

  • Language: C++
  • Data Structures: Graphs (Adjacency List)
  • Algorithms: Dijkstra’s Algorithm (Greedy)
  • STL Containers: vector, pair, priority_queue

Algorithm Used

The project uses Dijkstra’s Algorithm to find the shortest path in a weighted graph by:

  1. Initializing all distances as infinity
  2. Using a min-heap priority queue to always process the closest unvisited node
  3. Relaxing edges to update shorter distances
  4. Tracking parents to reconstruct the shortest path

Time Complexity:
O((V + E) log V)


How to Run

  1. Compile the program:
    g++ iitk_route_planner.cpp 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages