Skip to content

This is CPP code for real time use case of Dijkstras algorithm to find the shortest path from source to every destination

License

Notifications You must be signed in to change notification settings

Mak-3/Dijkstras-algorithm-HYDmetro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dijkstras-algorithm-HYDmetro

INTRODUCTION: This C++ code implements real time use case of Dijkstras algorithm to find the shortest path from source to every destination.There are 56 metro stations in Hyderabad. Considering each station an integer value starting from 0 is assigned,when the user enters the source station Dijkstras algorithm is applied and least no of stations from the source to every other station is calculated and displayed.

COMPLEXITY: The time complexity of Dijkstras algorithm is O(V^2),where V is the number of vertices in the graph.The space complexity of Dijkstras algorithm is O(V)

Please follow the link for the same project developed in java: https://github.com/ASMA-GIT/Hyderabad-Metro-DijkstraAlgo

STATION CODES

    Node number                                       Station Name
    
        0                                              LBnagar
        1                                              Victoria_memorial
        2                                              Chaitanyapuri
        3                                              Dilshukhnagar
        4                                              Moosrambagh
        5                                              New Market
        6                                              Malakpet
        7                                              MG BusStation
        8                                              Osmania_medical
        9                                              GandhiBhavan
        10                                             Assembly
        11                                             Lakdikapool
        12                                             Khairtabad
        13                                             Irrummanzil
        14                                             Panjagutta
        15                                             Ameerpet
        16                                             SRnagar
        17                                             ESIhospital
        18                                             Erragadda
        20                                             Bharatnagar
        21                                             Moosapet
        22                                             DR_BRambedkar
        23                                             Kukatpally
        24                                             KPHBcolony
        25                                             JNTUcollege
        26                                             Miyapur
        27                                             Sultanbazar
        28                                             Narayanguda
        29                                             Chikkadpali
        30                                             RTCxroads
        31                                             Musheerabad
        32                                             Gandhihospital
        33                                             SecundrabadWest
        34                                             Paradeground
        35                                             Nagole
        36                                             Uppal
        37                                             stadium
        38                                             NGRI
        39                                             Habsiguda
        40                                             Tarnaka
        41                                             Mettuguda
        42                                             SecuderabadeEast
        43                                             Paradise
        44                                             Rasoolpura
        45                                             PrakashNagar
        46                                             Begumpet
        47                                             MathuraNagar
        48                                             Yusufguda
        49                                             Jubliehills
        50                                             JH-checkpost
        51                                             Peddamagudi
        52                                             Madhapur
        53                                             Dugamcheruvu
        54                                             Hitechcity
        55                                             Raidurg

Releases

No releases published

Packages

No packages published

Languages