SlideShare uma empresa Scribd logo
1 de 5
Baixar para ler offline
IOSR Journal of Computer Engineering (IOSR-JCE)
e-ISSN: 2278-0661,p-ISSN: 2278-8727, Volume 17, Issue 5, Ver. I (Sep. – Oct. 2015), PP 26-30
www.iosrjournals.org
DOI: 10.9790/0661-17512630 www.iosrjournals.org 26 | Page
Public conveyance system for shortest path nding for real road
network
Agam Mathur[1]
,Mayuresh Jakhotia[2]
,Anish Lavalekar[3]
,Nikita Magar[4]
[1];[2];[3];[4]
Computer Department,VIIT,Pune University
Abstract: This article analyzes problems of determining the shortest path and optimal route amongst the given
stoppages. The model of the problem is presented as a directional graph, where nodes are pickup points (termed
as stoppage point in database) and crossings outside stoppage points and edges are roads among stoppage
points and crossings. Each node has some information attached to it: stoppageId, stoppageName, latitude,
longitude and numberOfPassengers of the stop, maintenance organizations, and mark(s) of the crossing(s). All
pickup points are connected by roads. These roads are considered as the edges of the graph. Edges also have
information attached to it: roadId, source, destination, distance, time etc.We have selected Floyd Warshall
algorithm to nd the shortest path between two stoppages. This algorithm works in two stages: in rst stage, it nds
the shortest path between all stoppages, and in second stage it nds optimized route to visit some of these
stoppages. The solution is displayed in the form of shortest distance and time between two locations. The
program is written in java language. It uses 3 tables as input from database : nodes, vehicle details and road.
This paper gives implementation outcome of Floyd Warshall algorithm to solve the all pairs shortestpath
problem for directed road graph system. We have considered an example of a map of Pune.
Keyword: Adjacency matrix,intermediate path,optimal route, shortest path,transitive closure
I. Introduction
Now days in the current scenario companies and schools provide transportation facilities to their
employees and students from their organizations to their respective houses and vice versa. The purpose of this
article is to present an interface between a traveling agency and its traveller so that, the subscribers can keep a
track of the service they have subscribed.A key problem in public conveyance system is the computation of
shortest paths between di erent locations for a given region. Sometimes this computation has to be done in real
time. During the literature survey we found how di cult it is to nd the shortest path covering all pickup points
and how to allocate available transport vehicles to these speci c routes manually. There is always a need to nd
optimal path for their operational viability. So, just the idea that our system will help in e cient allocation of
vehicles and shortest route creation to save time and fuel consumption. The system scope is to design such
system for a small area of the city.
II. Algorithms To Find Shortest Path
There are various algorithms[9]
present in literature to nd shortest path between two points from source
location to destination location such as Dijkstra's, Bellman ford, A*, Johnson's and Floyd-Warshall algorithm.
After conducting extensive research on the existing shortest path algorithms, it was observed that Floyd -
Warshall shortest path algorithm is the most appropriate for calculating short-est paths in real-road networks
since it involves calculation of shortest path between all pair vertices. Also, this is the fastest and simplest
algorithm.
III. Methods
1.The Floyd Warshall algorithm
The Floyd - Warshall algorithm[2];[4];[5];[7];[9]
(also known as Floyd's algorithm, Roy - Warshall
algorithm, Roy - Floyd algorithm, or the WFI algorithm).This algorithm is a graph analysis algorithm, which is
used for nding transitive closure of a relation R and also for nding shortest paths in a
weighted graph. Weighted graph may be with positive or negative edge weights (but with
no negative cycles).
It is a all pair shortest path algorithm ,so single execution of the Floyd Warshall algorithm nds lengths
of all the shortest paths between each and every pair of vertices present in the graph ,thus it does not returns
details of the path themselves. To nd all pair of vertices in a graph Floyd Warshall algorithm will be used. This
algorithm is competitive for dense graphs and uses adjacency matrices as opposed to adjacency lists
Consider an instance for TSP is given by W as, Represent the directed, edge weighted graph in
adjacency matrix form.
(0)
=wij
Public conveyance system for shortest path nding for real road network
DOI: 10.9790/0661-17512630 www.iosrjournals.org 27 | Page
W= matrix of weights =2
w
11 w
12 w
13
3w
21 w
22 w
23
4 w
31 w
32 w
33 5
: wij is the weight of edge (i, j), or in nity if there is no such edge.
: Return a matrix D, where each entry dij is d(i,j). Could also return a predecessor matrix, P,
where each entry pij is the predecessor of j on the shortest path from i.Adjacency may consist of two types of
values any number for weighted edge value,zero value for self loop of a node and some in nity value which
shows there is no path present between two nodes in the graph. Consider intermediate vertices of a path:
Figure 1: Intermediate vertices of path.
Consider we know the length of the shortest path between nodes i and j whose intermediate vertices are
only those with numbers 1, 2, ..., k-1. Now to extend this from k-1 to k.Here we need to nd path which will be
the shortest path between vertices i and j. we can use following two possible ways:
Two possibilities:
1. Going through the vertex k does n0
t help the path through vertices 1...k-1 is still the shortest.
2. There is a shorter path consisting of two sub paths, one from i to k and one from k to j. Each sub path passes
only through vertices numbered 1 to k-1 Thus, dij
(k)
=min(dij
(k 1)
,dik
(k 1)
+dkj
(k 1)
)
Also, dij (since there are no intermediate vertices.) When k = jVj, we 0
re done. Let n be jVj, the number of
vertices. To nd all n2
of shortestPath(i,j,k) (for all i and j) from those of shortestPath(i,j,k 1) requires 2n2
operations. Since we begin with shortestPath(i,j,0) = edgeCost(i,j) and compute the sequence of n matrices
shortestPath(i,j,1), shortestPath(i,j,2),:::, shortestPath(i,j,n), the total number of operations used is n : 2n2
= 2n2
.
Therefore, the complexity of the algorithm is (n3
).[5],[6]
Here Floyd Warshall algorithm consider all nodes as the index of matrix and take adjacency matrix as a
input considering elements in the matrix as the values of edges of directed graph.Then it
Figure 2: Alternative Intermediate vertices of path using Floyd Warshall algorithm.
will nd transitive closure for a given adjacency matrix which will consist of shortest path betweeen each and
every vertices present in the graph.
IV. Implementation And Results
The Floyd Warshall algorithm has been tested on an example map of particular region considering one
common source. E.g.Pune city with consideration of DPS school as common source for all destina-tions. We
have started the search from DPS school, covering all nodes in the map of Pune city which are present in our
database.
Public conveyance system for shortest path nding for real road network
DOI: 10.9790/0661-17512630 www.iosrjournals.org 28 | Page
Figure 3: Table of nodes.
Figure 4: Table of road.
Figure 5: Table of vehicle details.
Our database consists of three tabular entities nodes( gure.3), road( gure.4) and vehicle
details(Figure.5). The table nodes consist of the details about the stoppages. It consists of the elds stoppage id,
stop-
page name, latitude, longitude and no of student. The table road consist of the information about the
road which consist of elds road id, source id, destination id, distance and time in which source and destination
are referred to stoppage id in nodes table. The third table vehicle details consist of the information about the
vehicles. It consist of vehicle id, registration no and seating capacity.
After creating a database we nd the shortest path between all stoppages using Floyd Warshall al-
gorithm. This algorithm needs adjacency matrix as input considering all stoppages as vertices. Then we use this
matrix for further requirement of Floyd Warshall. In next step Floyd Warshall create transitive closure matrix
which consist of shortest distance between all stoppages as it is an all-pair shortest path algorithm. After nding
shortest path between required pair of stoppages, system is able to display the shortest path from required source
for di erent vehicles. There may be the situation occurs that the same stoppage consist of more than one routes
with same distance from common stoppage point. In such situation, instead of distance we consider the time as a
factor to nd the shortest path from the current stoppage point. Algorithm Floyd Warshall only gives the shortest
path between two stoppages but we required the shortest intermediate path between any two vertices so we
perform bubble sort on the Floyd Warshall output and stored the shortest intermediate path in the queue.
Public conveyance system for shortest path nding for real road network
DOI: 10.9790/0661-17512630 www.iosrjournals.org 29 | Page
Figure 6: output of Floyd Warshall.
After creating shortest path we allocate vehicles according to the capacity of vehicles and number of
students present at each stoppage point. If number of student at particular stop is zero then that place will not
consider as stoppage. If number of stop at particular stop is greater than the capacity of bus then system will
allocate two buses for same stoppages. Then system will display the total amount of distance and time required
to cover shortest path for each vehicle.
Figure 7: Vehicle allocation according to shortest path and capacity of bus.
Before starting search for shortest path we allocate students according to vehicle route id and vehicle
capacity etc. After testing our system it is found that it is not only capable of nding multiple routes but also
shortest path between any pair of stoppages by taking consideration of factors like time and distance which can
a ect the system.
V. Conclusion
With the help of Floyd Warshall algorithm,it is possible to conduct transportation analysis con-cerning
given geographical region.Sometimes, this type of analysis has to be completed in real time. As a consequence,
these analysis tasks demand high performance shortest path algorithms, that run fastest on real road networks.
This system provides user friendly interface.It not only gives the shortest path between the stoppages
but also provides the details about the distance,time etc.required to reach from source to desti-nation.
Additionally, it provides the information about the vehicle like vehicle route , capacity of vehicle etc. according
to the number of passengers it allocates to the vehicle.
Acknowledgement
We take this opportunity to express our deepest sense of gratitude and sincere thanks to those who have
helped us in completing this article. We express sincere thanks to our guide Prof. V. A. Mishra who has given
us valuable suggestions, excellent guidance, continuous encouragement and taken keen interest in the
completion of this work. Her kind help and constant inspiration will even help us in future. We wish to express
true sense of gratitude towards Prof. Y.V.Dongre who at very discrete step in study of this paper contributed his
valuable guidance and help to solve every problem that arose.
Public conveyance system for shortest path nding for real road network
DOI: 10.9790/0661-17512630 www.iosrjournals.org 30 | Page
References
[1]. Fast Shortest Path Algorithms for Large Road Networks Faramroze Engineer Department of Engineering Science University of
Auckland New Zealand
[2]. Heuristic shortest path algorithms for transportation applications: State of the art L. Fua,*, D. Sunb, L.R. Rilettc aDepartment of
Civil Engineering, University of Waterloo, Waterloo, ON, Canada N2L 3G1 bCollege of Automation, Chongqing University,
Chongqing, 400044, China cMid-America Transportation Center, University of Nebraska-Lincoln, W339 Nebraska Hall, P.O.
Box 880531, Lincoln, NE 68588-0531, USA
[3]. Mining the Shortest Path within a Travel Time Constraint in Road Network Environments Eric Hsueh-Chan Lu, Chia-Ching Lin,
and Vincent S. Tseng Department of Computer Science and Information Engineering National Cheng-Kung University Tainan,
Taiwan, R.O.C.
[4]. Design and implememntation of multiparameter Dijkstra0 s(MPD) algorithm:A shortest path algorithm for real-road
networks.(September 2011) 1Nishtha keswani,2Dinesh Gopalani 1asistant professor,central universal of Rajsthan, India 2asistant
professor, Malviya National Institute Of Technology, Jaipur. (IJAER) 2011, Vol. No. 2, Issue No. III, Septem-ber 2011
[5]. Shortest path algorithms,Wikipedia, the free encyclopedia en.wikipedia.org/wiki/Shortest path problem
[6]. T.H. Cormen, C.E. Leiserson, R.L. Rivest and C. tein.MIT Press/McGraw-Hill, ISBN: 0-262-03293-7.I Chapter 25 All-Pairs
Shortest Paths
[7]. Algorithm lectures note on shortest path Je Erickson http://www.cs.uiuc.edu/ je e/teaching/algorithms/ I Lecture 20 All-pairs
shortest paths
[8]. Open Shortest Path First (OSPF) Conformance and Performance Testing
[9]. Shortest Path Finding Algorithms for Real Road Network. Agam Mathur, Mayuresh Jakhotia, Anish Lavalekar, Nikita Magar 1,
2, 3,4Computer Department, VIIT, Pune University IJLTEMAS Volume III, Issue X, October 2014

Mais conteúdo relacionado

Mais procurados

DESIGN AND IMPLEMENTATION OF PATH PLANNING ALGORITHM
DESIGN AND IMPLEMENTATION OF PATH PLANNING ALGORITHM DESIGN AND IMPLEMENTATION OF PATH PLANNING ALGORITHM
DESIGN AND IMPLEMENTATION OF PATH PLANNING ALGORITHM
NITISH K
 
Design and implementation of path planning algorithm for wheeled mobile robot...
Design and implementation of path planning algorithm for wheeled mobile robot...Design and implementation of path planning algorithm for wheeled mobile robot...
Design and implementation of path planning algorithm for wheeled mobile robot...
eSAT Journals
 

Mais procurados (18)

dynamic traffic grooming in elastic optical network made from a reserch paper
dynamic traffic grooming in elastic optical network made from a reserch paperdynamic traffic grooming in elastic optical network made from a reserch paper
dynamic traffic grooming in elastic optical network made from a reserch paper
 
DESIGN AND IMPLEMENTATION OF PATH PLANNING ALGORITHM
DESIGN AND IMPLEMENTATION OF PATH PLANNING ALGORITHM DESIGN AND IMPLEMENTATION OF PATH PLANNING ALGORITHM
DESIGN AND IMPLEMENTATION OF PATH PLANNING ALGORITHM
 
Central moments of traffic delay at a signalized intersection
Central moments of traffic delay at a signalized intersectionCentral moments of traffic delay at a signalized intersection
Central moments of traffic delay at a signalized intersection
 
Artificial Intelligence in Robot Path Planning
Artificial Intelligence in Robot Path PlanningArtificial Intelligence in Robot Path Planning
Artificial Intelligence in Robot Path Planning
 
Amj fuzzy slides
Amj fuzzy slidesAmj fuzzy slides
Amj fuzzy slides
 
Shortest path analysis
Shortest path analysis Shortest path analysis
Shortest path analysis
 
Fuzzy Model Presentation
Fuzzy Model Presentation Fuzzy Model Presentation
Fuzzy Model Presentation
 
Robust and Real Time Detection of Curvy Lanes (Curves) Having Desired Slopes ...
Robust and Real Time Detection of Curvy Lanes (Curves) Having Desired Slopes ...Robust and Real Time Detection of Curvy Lanes (Curves) Having Desired Slopes ...
Robust and Real Time Detection of Curvy Lanes (Curves) Having Desired Slopes ...
 
Exact Cell Decomposition of Arrangements used for Path Planning in Robotics
Exact Cell Decomposition of Arrangements used for Path Planning in RoboticsExact Cell Decomposition of Arrangements used for Path Planning in Robotics
Exact Cell Decomposition of Arrangements used for Path Planning in Robotics
 
FOLLOWING CAR ALGORITHM WITH MULTI AGENT RANDOMIZED SYSTEM
FOLLOWING CAR ALGORITHM WITH MULTI AGENT RANDOMIZED SYSTEMFOLLOWING CAR ALGORITHM WITH MULTI AGENT RANDOMIZED SYSTEM
FOLLOWING CAR ALGORITHM WITH MULTI AGENT RANDOMIZED SYSTEM
 
Knowledge Based Genetic Algorithm for Robot Path Planning
Knowledge Based Genetic Algorithm for Robot Path PlanningKnowledge Based Genetic Algorithm for Robot Path Planning
Knowledge Based Genetic Algorithm for Robot Path Planning
 
Design and implementation of path planning algorithm for wheeled mobile robot...
Design and implementation of path planning algorithm for wheeled mobile robot...Design and implementation of path planning algorithm for wheeled mobile robot...
Design and implementation of path planning algorithm for wheeled mobile robot...
 
Design and implementation of path planning algorithm for wheeled mobile robot...
Design and implementation of path planning algorithm for wheeled mobile robot...Design and implementation of path planning algorithm for wheeled mobile robot...
Design and implementation of path planning algorithm for wheeled mobile robot...
 
TOD
TODTOD
TOD
 
INTEGRATION OF GIS AND OPTIMIZATION ROUTINES FOR THE VEHICLE ROUTING PROBLEM
INTEGRATION OF GIS AND OPTIMIZATION ROUTINES FOR THE VEHICLE ROUTING PROBLEMINTEGRATION OF GIS AND OPTIMIZATION ROUTINES FOR THE VEHICLE ROUTING PROBLEM
INTEGRATION OF GIS AND OPTIMIZATION ROUTINES FOR THE VEHICLE ROUTING PROBLEM
 
Integration Of Gis And Optimization Routines For The Vehicle Routing Problem
Integration Of Gis And Optimization Routines For The Vehicle Routing ProblemIntegration Of Gis And Optimization Routines For The Vehicle Routing Problem
Integration Of Gis And Optimization Routines For The Vehicle Routing Problem
 
FINDING FREQUENT SUBPATHS IN A GRAPH
FINDING FREQUENT SUBPATHS IN A GRAPHFINDING FREQUENT SUBPATHS IN A GRAPH
FINDING FREQUENT SUBPATHS IN A GRAPH
 
Simulation of Urban Mobility (Sumo) For Evaluating Qos Parameters For Vehicul...
Simulation of Urban Mobility (Sumo) For Evaluating Qos Parameters For Vehicul...Simulation of Urban Mobility (Sumo) For Evaluating Qos Parameters For Vehicul...
Simulation of Urban Mobility (Sumo) For Evaluating Qos Parameters For Vehicul...
 

Destaque

Destaque (20)

Antimicrobial Screening of Vanga Vennai and Mathan Thailam for Diabetic Foot ...
Antimicrobial Screening of Vanga Vennai and Mathan Thailam for Diabetic Foot ...Antimicrobial Screening of Vanga Vennai and Mathan Thailam for Diabetic Foot ...
Antimicrobial Screening of Vanga Vennai and Mathan Thailam for Diabetic Foot ...
 
Correlation Coefficient Based Average Textual Similarity Model for Informatio...
Correlation Coefficient Based Average Textual Similarity Model for Informatio...Correlation Coefficient Based Average Textual Similarity Model for Informatio...
Correlation Coefficient Based Average Textual Similarity Model for Informatio...
 
B1303031220
B1303031220B1303031220
B1303031220
 
B012640917
B012640917B012640917
B012640917
 
L1303017175
L1303017175L1303017175
L1303017175
 
O1303018789
O1303018789O1303018789
O1303018789
 
I010634450
I010634450I010634450
I010634450
 
C1303041215
C1303041215C1303041215
C1303041215
 
Low Power Energy Harvesting & Supercapacitor Storage
Low Power Energy Harvesting & Supercapacitor StorageLow Power Energy Harvesting & Supercapacitor Storage
Low Power Energy Harvesting & Supercapacitor Storage
 
Applying a Model Based Testing for a Controller Design in Fault Detection, I...
Applying a Model Based Testing for a Controller Design in Fault  Detection, I...Applying a Model Based Testing for a Controller Design in Fault  Detection, I...
Applying a Model Based Testing for a Controller Design in Fault Detection, I...
 
D01112030
D01112030D01112030
D01112030
 
Development of a D.C Circuit Analysis Software Using Microsoft Visual C#.Net
Development of a D.C Circuit Analysis Software Using Microsoft Visual C#.NetDevelopment of a D.C Circuit Analysis Software Using Microsoft Visual C#.Net
Development of a D.C Circuit Analysis Software Using Microsoft Visual C#.Net
 
A novel approach for Multi-Tier security for XML based documents
A novel approach for Multi-Tier security for XML based  documentsA novel approach for Multi-Tier security for XML based  documents
A novel approach for Multi-Tier security for XML based documents
 
Hardy-Steklov operator on two exponent Lorentz spaces for non-decreasing func...
Hardy-Steklov operator on two exponent Lorentz spaces for non-decreasing func...Hardy-Steklov operator on two exponent Lorentz spaces for non-decreasing func...
Hardy-Steklov operator on two exponent Lorentz spaces for non-decreasing func...
 
C010321217
C010321217C010321217
C010321217
 
Cellular digitized map on Google Earth
Cellular digitized map on Google EarthCellular digitized map on Google Earth
Cellular digitized map on Google Earth
 
E0432933
E0432933E0432933
E0432933
 
Educational Process Mining-Different Perspectives
Educational Process Mining-Different PerspectivesEducational Process Mining-Different Perspectives
Educational Process Mining-Different Perspectives
 
G1304014050
G1304014050G1304014050
G1304014050
 
L010618188
L010618188L010618188
L010618188
 

Semelhante a E017512630

The shortest not necessarily the best other path on the basis of the optimal ...
The shortest not necessarily the best other path on the basis of the optimal ...The shortest not necessarily the best other path on the basis of the optimal ...
The shortest not necessarily the best other path on the basis of the optimal ...
eSAT Publishing House
 
B04010 03 0914
B04010 03 0914B04010 03 0914
B04010 03 0914
IJMER
 
Vehicle Headway Distribution Models on Two-Lane Two-Way Undivided Roads
Vehicle Headway Distribution Models on Two-Lane Two-Way Undivided RoadsVehicle Headway Distribution Models on Two-Lane Two-Way Undivided Roads
Vehicle Headway Distribution Models on Two-Lane Two-Way Undivided Roads
AM Publications
 
Itzhak Benenson - OGiC - Shortest path and service area algorithms and their ...
Itzhak Benenson - OGiC - Shortest path and service area algorithms and their ...Itzhak Benenson - OGiC - Shortest path and service area algorithms and their ...
Itzhak Benenson - OGiC - Shortest path and service area algorithms and their ...
swenney
 

Semelhante a E017512630 (20)

The shortest not necessarily the best. other path on the basis of the optimal...
The shortest not necessarily the best. other path on the basis of the optimal...The shortest not necessarily the best. other path on the basis of the optimal...
The shortest not necessarily the best. other path on the basis of the optimal...
 
The shortest not necessarily the best other path on the basis of the optimal ...
The shortest not necessarily the best other path on the basis of the optimal ...The shortest not necessarily the best other path on the basis of the optimal ...
The shortest not necessarily the best other path on the basis of the optimal ...
 
Urban Bus Route Planning Using Reverse Labeling Dijkstra Algorithm for Tempor...
Urban Bus Route Planning Using Reverse Labeling Dijkstra Algorithm for Tempor...Urban Bus Route Planning Using Reverse Labeling Dijkstra Algorithm for Tempor...
Urban Bus Route Planning Using Reverse Labeling Dijkstra Algorithm for Tempor...
 
(Icca 2014) shortest path analysis in social graphs
(Icca 2014) shortest path analysis in social graphs(Icca 2014) shortest path analysis in social graphs
(Icca 2014) shortest path analysis in social graphs
 
06_AJMS_334_21.pdf
06_AJMS_334_21.pdf06_AJMS_334_21.pdf
06_AJMS_334_21.pdf
 
Traveling Eco-Salesman
Traveling Eco-SalesmanTraveling Eco-Salesman
Traveling Eco-Salesman
 
AN EFFECT OF USING A STORAGE MEDIUM IN DIJKSTRA ALGORITHM PERFORMANCE FOR IDE...
AN EFFECT OF USING A STORAGE MEDIUM IN DIJKSTRA ALGORITHM PERFORMANCE FOR IDE...AN EFFECT OF USING A STORAGE MEDIUM IN DIJKSTRA ALGORITHM PERFORMANCE FOR IDE...
AN EFFECT OF USING A STORAGE MEDIUM IN DIJKSTRA ALGORITHM PERFORMANCE FOR IDE...
 
B04010 03 0914
B04010 03 0914B04010 03 0914
B04010 03 0914
 
Amtr the ant based qos aware multipath temporally ordered routing algorithm ...
Amtr  the ant based qos aware multipath temporally ordered routing algorithm ...Amtr  the ant based qos aware multipath temporally ordered routing algorithm ...
Amtr the ant based qos aware multipath temporally ordered routing algorithm ...
 
AMTR: THE ANT BASED QOS AWARE MULTIPATH TEMPORALLY ORDERED ROUTING ALGORITHM ...
AMTR: THE ANT BASED QOS AWARE MULTIPATH TEMPORALLY ORDERED ROUTING ALGORITHM ...AMTR: THE ANT BASED QOS AWARE MULTIPATH TEMPORALLY ORDERED ROUTING ALGORITHM ...
AMTR: THE ANT BASED QOS AWARE MULTIPATH TEMPORALLY ORDERED ROUTING ALGORITHM ...
 
Vehicle Headway Distribution Models on Two-Lane Two-Way Undivided Roads
Vehicle Headway Distribution Models on Two-Lane Two-Way Undivided RoadsVehicle Headway Distribution Models on Two-Lane Two-Way Undivided Roads
Vehicle Headway Distribution Models on Two-Lane Two-Way Undivided Roads
 
K046036367
K046036367K046036367
K046036367
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)
 
Network Analysis
Network AnalysisNetwork Analysis
Network Analysis
 
H0343059064
H0343059064H0343059064
H0343059064
 
Itzhak Benenson - OGiC - Shortest path and service area algorithms and their ...
Itzhak Benenson - OGiC - Shortest path and service area algorithms and their ...Itzhak Benenson - OGiC - Shortest path and service area algorithms and their ...
Itzhak Benenson - OGiC - Shortest path and service area algorithms and their ...
 
A STUDY AND IMPLEMENTATION OF THE TRANSIT ROUTE NETWORK DESIGN PROBLEM FOR A ...
A STUDY AND IMPLEMENTATION OF THE TRANSIT ROUTE NETWORK DESIGN PROBLEM FOR A ...A STUDY AND IMPLEMENTATION OF THE TRANSIT ROUTE NETWORK DESIGN PROBLEM FOR A ...
A STUDY AND IMPLEMENTATION OF THE TRANSIT ROUTE NETWORK DESIGN PROBLEM FOR A ...
 
A study and implementation of the transit route network design problem for a ...
A study and implementation of the transit route network design problem for a ...A study and implementation of the transit route network design problem for a ...
A study and implementation of the transit route network design problem for a ...
 
Shortest route finding using an object oriented database approach
Shortest route finding using an object oriented database approachShortest route finding using an object oriented database approach
Shortest route finding using an object oriented database approach
 
Link-and Node-Disjoint Evaluation of the Ad Hoc on Demand Multi-path Distance...
Link-and Node-Disjoint Evaluation of the Ad Hoc on Demand Multi-path Distance...Link-and Node-Disjoint Evaluation of the Ad Hoc on Demand Multi-path Distance...
Link-and Node-Disjoint Evaluation of the Ad Hoc on Demand Multi-path Distance...
 

Mais de IOSR Journals

Mais de IOSR Journals (20)

A011140104
A011140104A011140104
A011140104
 
M0111397100
M0111397100M0111397100
M0111397100
 
L011138596
L011138596L011138596
L011138596
 
K011138084
K011138084K011138084
K011138084
 
J011137479
J011137479J011137479
J011137479
 
I011136673
I011136673I011136673
I011136673
 
G011134454
G011134454G011134454
G011134454
 
H011135565
H011135565H011135565
H011135565
 
F011134043
F011134043F011134043
F011134043
 
E011133639
E011133639E011133639
E011133639
 
D011132635
D011132635D011132635
D011132635
 
C011131925
C011131925C011131925
C011131925
 
B011130918
B011130918B011130918
B011130918
 
A011130108
A011130108A011130108
A011130108
 
I011125160
I011125160I011125160
I011125160
 
H011124050
H011124050H011124050
H011124050
 
G011123539
G011123539G011123539
G011123539
 
F011123134
F011123134F011123134
F011123134
 
E011122530
E011122530E011122530
E011122530
 
D011121524
D011121524D011121524
D011121524
 

Último

Último (20)

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 

E017512630

  • 1. IOSR Journal of Computer Engineering (IOSR-JCE) e-ISSN: 2278-0661,p-ISSN: 2278-8727, Volume 17, Issue 5, Ver. I (Sep. – Oct. 2015), PP 26-30 www.iosrjournals.org DOI: 10.9790/0661-17512630 www.iosrjournals.org 26 | Page Public conveyance system for shortest path nding for real road network Agam Mathur[1] ,Mayuresh Jakhotia[2] ,Anish Lavalekar[3] ,Nikita Magar[4] [1];[2];[3];[4] Computer Department,VIIT,Pune University Abstract: This article analyzes problems of determining the shortest path and optimal route amongst the given stoppages. The model of the problem is presented as a directional graph, where nodes are pickup points (termed as stoppage point in database) and crossings outside stoppage points and edges are roads among stoppage points and crossings. Each node has some information attached to it: stoppageId, stoppageName, latitude, longitude and numberOfPassengers of the stop, maintenance organizations, and mark(s) of the crossing(s). All pickup points are connected by roads. These roads are considered as the edges of the graph. Edges also have information attached to it: roadId, source, destination, distance, time etc.We have selected Floyd Warshall algorithm to nd the shortest path between two stoppages. This algorithm works in two stages: in rst stage, it nds the shortest path between all stoppages, and in second stage it nds optimized route to visit some of these stoppages. The solution is displayed in the form of shortest distance and time between two locations. The program is written in java language. It uses 3 tables as input from database : nodes, vehicle details and road. This paper gives implementation outcome of Floyd Warshall algorithm to solve the all pairs shortestpath problem for directed road graph system. We have considered an example of a map of Pune. Keyword: Adjacency matrix,intermediate path,optimal route, shortest path,transitive closure I. Introduction Now days in the current scenario companies and schools provide transportation facilities to their employees and students from their organizations to their respective houses and vice versa. The purpose of this article is to present an interface between a traveling agency and its traveller so that, the subscribers can keep a track of the service they have subscribed.A key problem in public conveyance system is the computation of shortest paths between di erent locations for a given region. Sometimes this computation has to be done in real time. During the literature survey we found how di cult it is to nd the shortest path covering all pickup points and how to allocate available transport vehicles to these speci c routes manually. There is always a need to nd optimal path for their operational viability. So, just the idea that our system will help in e cient allocation of vehicles and shortest route creation to save time and fuel consumption. The system scope is to design such system for a small area of the city. II. Algorithms To Find Shortest Path There are various algorithms[9] present in literature to nd shortest path between two points from source location to destination location such as Dijkstra's, Bellman ford, A*, Johnson's and Floyd-Warshall algorithm. After conducting extensive research on the existing shortest path algorithms, it was observed that Floyd - Warshall shortest path algorithm is the most appropriate for calculating short-est paths in real-road networks since it involves calculation of shortest path between all pair vertices. Also, this is the fastest and simplest algorithm. III. Methods 1.The Floyd Warshall algorithm The Floyd - Warshall algorithm[2];[4];[5];[7];[9] (also known as Floyd's algorithm, Roy - Warshall algorithm, Roy - Floyd algorithm, or the WFI algorithm).This algorithm is a graph analysis algorithm, which is used for nding transitive closure of a relation R and also for nding shortest paths in a weighted graph. Weighted graph may be with positive or negative edge weights (but with no negative cycles). It is a all pair shortest path algorithm ,so single execution of the Floyd Warshall algorithm nds lengths of all the shortest paths between each and every pair of vertices present in the graph ,thus it does not returns details of the path themselves. To nd all pair of vertices in a graph Floyd Warshall algorithm will be used. This algorithm is competitive for dense graphs and uses adjacency matrices as opposed to adjacency lists Consider an instance for TSP is given by W as, Represent the directed, edge weighted graph in adjacency matrix form. (0) =wij
  • 2. Public conveyance system for shortest path nding for real road network DOI: 10.9790/0661-17512630 www.iosrjournals.org 27 | Page W= matrix of weights =2 w 11 w 12 w 13 3w 21 w 22 w 23 4 w 31 w 32 w 33 5 : wij is the weight of edge (i, j), or in nity if there is no such edge. : Return a matrix D, where each entry dij is d(i,j). Could also return a predecessor matrix, P, where each entry pij is the predecessor of j on the shortest path from i.Adjacency may consist of two types of values any number for weighted edge value,zero value for self loop of a node and some in nity value which shows there is no path present between two nodes in the graph. Consider intermediate vertices of a path: Figure 1: Intermediate vertices of path. Consider we know the length of the shortest path between nodes i and j whose intermediate vertices are only those with numbers 1, 2, ..., k-1. Now to extend this from k-1 to k.Here we need to nd path which will be the shortest path between vertices i and j. we can use following two possible ways: Two possibilities: 1. Going through the vertex k does n0 t help the path through vertices 1...k-1 is still the shortest. 2. There is a shorter path consisting of two sub paths, one from i to k and one from k to j. Each sub path passes only through vertices numbered 1 to k-1 Thus, dij (k) =min(dij (k 1) ,dik (k 1) +dkj (k 1) ) Also, dij (since there are no intermediate vertices.) When k = jVj, we 0 re done. Let n be jVj, the number of vertices. To nd all n2 of shortestPath(i,j,k) (for all i and j) from those of shortestPath(i,j,k 1) requires 2n2 operations. Since we begin with shortestPath(i,j,0) = edgeCost(i,j) and compute the sequence of n matrices shortestPath(i,j,1), shortestPath(i,j,2),:::, shortestPath(i,j,n), the total number of operations used is n : 2n2 = 2n2 . Therefore, the complexity of the algorithm is (n3 ).[5],[6] Here Floyd Warshall algorithm consider all nodes as the index of matrix and take adjacency matrix as a input considering elements in the matrix as the values of edges of directed graph.Then it Figure 2: Alternative Intermediate vertices of path using Floyd Warshall algorithm. will nd transitive closure for a given adjacency matrix which will consist of shortest path betweeen each and every vertices present in the graph. IV. Implementation And Results The Floyd Warshall algorithm has been tested on an example map of particular region considering one common source. E.g.Pune city with consideration of DPS school as common source for all destina-tions. We have started the search from DPS school, covering all nodes in the map of Pune city which are present in our database.
  • 3. Public conveyance system for shortest path nding for real road network DOI: 10.9790/0661-17512630 www.iosrjournals.org 28 | Page Figure 3: Table of nodes. Figure 4: Table of road. Figure 5: Table of vehicle details. Our database consists of three tabular entities nodes( gure.3), road( gure.4) and vehicle details(Figure.5). The table nodes consist of the details about the stoppages. It consists of the elds stoppage id, stop- page name, latitude, longitude and no of student. The table road consist of the information about the road which consist of elds road id, source id, destination id, distance and time in which source and destination are referred to stoppage id in nodes table. The third table vehicle details consist of the information about the vehicles. It consist of vehicle id, registration no and seating capacity. After creating a database we nd the shortest path between all stoppages using Floyd Warshall al- gorithm. This algorithm needs adjacency matrix as input considering all stoppages as vertices. Then we use this matrix for further requirement of Floyd Warshall. In next step Floyd Warshall create transitive closure matrix which consist of shortest distance between all stoppages as it is an all-pair shortest path algorithm. After nding shortest path between required pair of stoppages, system is able to display the shortest path from required source for di erent vehicles. There may be the situation occurs that the same stoppage consist of more than one routes with same distance from common stoppage point. In such situation, instead of distance we consider the time as a factor to nd the shortest path from the current stoppage point. Algorithm Floyd Warshall only gives the shortest path between two stoppages but we required the shortest intermediate path between any two vertices so we perform bubble sort on the Floyd Warshall output and stored the shortest intermediate path in the queue.
  • 4. Public conveyance system for shortest path nding for real road network DOI: 10.9790/0661-17512630 www.iosrjournals.org 29 | Page Figure 6: output of Floyd Warshall. After creating shortest path we allocate vehicles according to the capacity of vehicles and number of students present at each stoppage point. If number of student at particular stop is zero then that place will not consider as stoppage. If number of stop at particular stop is greater than the capacity of bus then system will allocate two buses for same stoppages. Then system will display the total amount of distance and time required to cover shortest path for each vehicle. Figure 7: Vehicle allocation according to shortest path and capacity of bus. Before starting search for shortest path we allocate students according to vehicle route id and vehicle capacity etc. After testing our system it is found that it is not only capable of nding multiple routes but also shortest path between any pair of stoppages by taking consideration of factors like time and distance which can a ect the system. V. Conclusion With the help of Floyd Warshall algorithm,it is possible to conduct transportation analysis con-cerning given geographical region.Sometimes, this type of analysis has to be completed in real time. As a consequence, these analysis tasks demand high performance shortest path algorithms, that run fastest on real road networks. This system provides user friendly interface.It not only gives the shortest path between the stoppages but also provides the details about the distance,time etc.required to reach from source to desti-nation. Additionally, it provides the information about the vehicle like vehicle route , capacity of vehicle etc. according to the number of passengers it allocates to the vehicle. Acknowledgement We take this opportunity to express our deepest sense of gratitude and sincere thanks to those who have helped us in completing this article. We express sincere thanks to our guide Prof. V. A. Mishra who has given us valuable suggestions, excellent guidance, continuous encouragement and taken keen interest in the completion of this work. Her kind help and constant inspiration will even help us in future. We wish to express true sense of gratitude towards Prof. Y.V.Dongre who at very discrete step in study of this paper contributed his valuable guidance and help to solve every problem that arose.
  • 5. Public conveyance system for shortest path nding for real road network DOI: 10.9790/0661-17512630 www.iosrjournals.org 30 | Page References [1]. Fast Shortest Path Algorithms for Large Road Networks Faramroze Engineer Department of Engineering Science University of Auckland New Zealand [2]. Heuristic shortest path algorithms for transportation applications: State of the art L. Fua,*, D. Sunb, L.R. Rilettc aDepartment of Civil Engineering, University of Waterloo, Waterloo, ON, Canada N2L 3G1 bCollege of Automation, Chongqing University, Chongqing, 400044, China cMid-America Transportation Center, University of Nebraska-Lincoln, W339 Nebraska Hall, P.O. Box 880531, Lincoln, NE 68588-0531, USA [3]. Mining the Shortest Path within a Travel Time Constraint in Road Network Environments Eric Hsueh-Chan Lu, Chia-Ching Lin, and Vincent S. Tseng Department of Computer Science and Information Engineering National Cheng-Kung University Tainan, Taiwan, R.O.C. [4]. Design and implememntation of multiparameter Dijkstra0 s(MPD) algorithm:A shortest path algorithm for real-road networks.(September 2011) 1Nishtha keswani,2Dinesh Gopalani 1asistant professor,central universal of Rajsthan, India 2asistant professor, Malviya National Institute Of Technology, Jaipur. (IJAER) 2011, Vol. No. 2, Issue No. III, Septem-ber 2011 [5]. Shortest path algorithms,Wikipedia, the free encyclopedia en.wikipedia.org/wiki/Shortest path problem [6]. T.H. Cormen, C.E. Leiserson, R.L. Rivest and C. tein.MIT Press/McGraw-Hill, ISBN: 0-262-03293-7.I Chapter 25 All-Pairs Shortest Paths [7]. Algorithm lectures note on shortest path Je Erickson http://www.cs.uiuc.edu/ je e/teaching/algorithms/ I Lecture 20 All-pairs shortest paths [8]. Open Shortest Path First (OSPF) Conformance and Performance Testing [9]. Shortest Path Finding Algorithms for Real Road Network. Agam Mathur, Mayuresh Jakhotia, Anish Lavalekar, Nikita Magar 1, 2, 3,4Computer Department, VIIT, Pune University IJLTEMAS Volume III, Issue X, October 2014