SlideShare a Scribd company logo
1 of 7
Download to read offline
International Journal of Managing Information Technology (IJMIT) Vol.6, No.1, February 2014
DOI : 10.5121/ijmit.2014.6102 15
AN IMPROVED SPFA ALGORITHM FOR SINGLE-
SOURCE SHORTEST PATH PROBLEM USING
FORWARD STAR DATA STRUCTURE
Xin Zhou
Department of Economic Engineering, Kyushu University,
Fukuoka 812-8581, Japan
ABSTRACT
We present an improved SPFA algorithm for the single source shortest path problem. For a random graph,
the empirical average time complexity is O(|E|), where |E| is the number of edges of the input network.
SPFA maintains a queue of candidate vertices and add a vertex to the queue only if that vertex is relaxed.
In the improved SPFA, MinPoP principle is employed to improve the quality of the queue. We theoretically
analyse the advantage of this new algorithm and experimentally demonstrate that the algorithm is efficient.
KEYWORDS
SPFA; single source; shortest path; queue; MinPoP principle
1. INTRODUCTION
The shortest path problem, which focuses on finding a shortest path from a source node to other
nodes, is a fundamental network optimization problem that has been applied in many domains
including transportation, routing, communications and management. It is also one of the most
fundamental operations on graphs. Recently, several types of shortest path problems have been
investigated. For instance, Ada Wai-Chee et al.[1] proposed an efficient index, namely, an
independent-set based labeling scheme for P2P distance querying; Takuya Akiba et al.[2]
presented a new method for shortest path distance queries, their method pre-computes distance
labels for vertices by performing a breadth-first search from every vertex; Andy Diwen Zhu et
al.[3] brought out Arterial Hierarchy(AH), an index structure that narrows the gap between theory
and practice in answering shortest path and distance queries on road network; an innovative
interactive method was proposed to address the Resource Constrained Shortest Path
Problem(RCSPP)[4];a set of novel techniques centered around Hub-accelerator framework were
introduced[5], which are used to compute the k-degree shortest path(finding the shortest path
between two vertices if their distance is within k).
The single-source shortest path problems have been studied intensively. DRAGAN VASILJEVIC
et al.[6] gave a novel linear algorithms for the single-source shortest path problem, the worse case
time complexity is
O(m + Clog C), where m is the number of edges and C is the ratio of the largest and the smallest
edge weight; Christine Rizkallah[7] put forward a formal proof that a well-known axiomatic
characterization of the single-source shortest path problem is correct.
In this paper, we propose a new algorithm for single-source shortest path distance queries. It is an
improvement of SPFA. It uses Forward Star data structure to store the edges, and employs
International Journal of Managing Information Technology (IJMIT) Vol.6, No.1, February 2014
16
MinPoP principle to optimize the doubly-linked queue. MinPoP, that is, finding the vertex with
the minimum distance to the source node and pop the vertex to the front of the queue.
The paper is organized as follows. Section 2 reviews SPFA algorithm and its SLF optimization
algorithm. Section 3 describes the improved SPFA algorithm. Section 4 is the experimental
analysis. Section 5 concludes this paper.
2. DESCRIPTION
Given a weighted directed graph G = (V, E) and a source vertex s, the SPFA algorithm finds the
shortest path from s to each vertex v in the graph. The length of the shortest path from s to v is
stored in d(v) for each vertex v.
Below is the description of SPFA algorithm[8]. Here Q is a first-in, first-out queue of candidate
vertices, and w(u, v) is the edge weight of (u, v).
Shortest-Path-Faster-Algorithm(G, s)
1 for each vertex v ≠s in V(G)
2 d(v) ← ∞
3 d(s) ← 0
4 push s into Q
5 while Q is not empty
6 u ← pop Q
7 for each edge (u, v) in E(G)
8 if d(u) + w(u, v) < d(v) then
9 d(v) ← d(u) + w(u, v)
10 if v is not in Q then
11 push v into Q
Small Label First (SLF) optimization. Instead of always pushing vertex v to the end of the queue,
we compare d(v) to d(front(Q)), and insert v to the front of the queue if d(v) is smaller. Here Q is
a doubly-linked queue of candidate vertices. The description of this technique is (after pushing v
to the end of the queue in line 11):
procedure Small-Label-First(G, Q)
if d(back(Q)) < d(front(Q)) then
u ← pop back of Q
push u into front of Q
Another optimization technique is Forward Star data structure which uses struct array to store
edges, edges starting from the same source node are linked in the array. The struct array is
constructed in the process of adding edges when reading in network data. The description of this
principle is:
procedure Initialization
…
foreach number i in array EH
i ← -1
…
…
procedure Addedge(a, b, w, tot, ET, EH)
the tot-th edge of array ET ← an edge with source node a, end node
b, weight w, pointer to next edge - the a-th number of array EH
the a-th number of array EH ← tot
tot ← tot+1
In the process of adding edge, tot is the current total number of edges, ET is a struct array, every
element of the array is an edge struct which includes the edge’s source node, the edge’s end node,
International Journal of Managing Information Technology (IJMIT) Vol.6, No.1, February 2014
17
weight, and the pointer to next edge, the a-th number of EH is used to represent the pointer. EH is
an integer array, in the initialization step, each number in EH is initialized to -1. -1 means the end
of storage of edges which start from one specified source node.
Compared to another vertex storage structure- adjacent table, forward star is more efficient for
SPFA.
3. AN IMPROVED SPFA ALGORITHM
We propose a MinPoP principle. From all the d (d is the distance from the single source node to
the current node), we label the node with the minimum d and move it into front of Q. Here Q is a
doubly-linked queue of candidate vertices. The description of the improved SPFA algorithm is:
Improved-SPFA-Algorithm(G, s)
1 for each vertex v ≠s in V(G)
2 d(v) ← ∞
3 d(s) ← 0
4 min ← ∞
5 push s into front of Q
6 while Q is not empty
7 node p ← null
8 u ← pop Q
9 for each edge (u, v) in E(G)
10 if d(u) + w(u, v) < d(v) then
11 d(v) ← d(u) + w(u, v)
12 if v is not in Q then
13 push v into back of Q
14 if( d(v) < min ) then
15 min ← d(v)
16 label v as p
17 move p into front of Q
The average time complexity of this algorithm is O(|E|), where |E| is the number of edges of the
input network.
When Forward Star data structure is used to store edges, for a specified source node s, all of its
adjacent edges are added into the edge struct array ET one by one from the original network data,
so if the weights of edges starting from s are in an ascending order, the improved algorithm is a
little more efficient than SPFA and its SLF optimization algorithm. Because the weights of edges
from s in ET are in a descending order, so the d(v) is in a decreasing trend, SLF needs to update
the front of Q many times, however, MinPoP only updates the front of Q once. MinPoP and SLF
have the similar strategy of selecting a priority node into the front of Q, SLF continually push
new node v if d(v) < d(front(Q)), MinPoP labels the node with the minimum d, if d< min, move it
into front of Q.
4. EXPERIMENTAL ANALYSIS
We evaluate the performance of our method and compare with existing methods. All methods
tested were programmed in C++ and compiled with the same compiler. All experiments were run
on a computer with an Intel 2.16 GHz CPU, 888MB RAM, running Windows XP OS.
International Journal of Managing Information Technology (IJMIT) Vol.6, No.1, February 2014
18
4.1. Direct graphs with ascending data
We use simulation data to do the experiments. In section3, we discussed that the improved SPFA
algorithm is suitable for a network in which weights of edges from a specified node are in an
ascending order. We simulate the networks for different N (N is the number of nodes, N= 3k, 5k,
8k and 10k). The probability of existing edges between two different nodes is 0.1. The number of
edges is shown in Table 1.
Table 1. Number of edges
N 3k 5k 8k 10k
|E| 900k 2.5M 6.4M 10M
In our program, we read in data from a data file. The read-in time is shown as follows.
Table 2. Read-in data time (unit: ms)
N 3k 5k 8k 10k
Time 828 2235 5984 13172
Assume we compute the distance from node 1 to node n, where n is the number of nodes. The
experimental result is shown in figure 1. Here, FS means SPFA using Forward Star data structure,
FS_SLF is algorithm with SLF optimization, FS_MINPOP is algorithm with MinPoP
optimization. The result shows MinPoP has better running time performance.
Direct graph
0
50
100
150
200
250
N=3000 N=5000 N=8000 N=10000
algorithm
computing
time(unit:
ms)
FS
FS_SLF
FS_MINPOP
Figure 1. Comparison of computing time in a direct graph with ascending data
4.2. Undirected graphs with random data
The SPFA algorithm can also be applied to an undirected graph by replacing each undirected
edge with two directed edge of opposite directions. We simulate the networks for different N (N=
3k, 5k, 8k and 10k) with different P which represents the probability of existing edges between
two different nodes. The read-in data time is shown in Table 3.
International Journal of Managing Information Technology (IJMIT) Vol.6, No.1, February 2014
19
Table 3. Read-in data time (unit: ms)
P 0.1 0.2 0.3
N=3k 469 1015 1360
N=5k 1375 2578 4156
N=8k 3657 7703 10547
N=10k 9640 14234 15500
Assume we compute the distance from node 1 to node n, where n is the number of nodes. The
experimental results are shown in figure 2-5.
Undirect graph(N=3k)
0
50
100
150
200
250
0.1 0.2 0.3
edge existing probability
algorithm
computing
time(unit:ms)
FS
FS_SLF
FS_MINPOP
Figure 2. Comparison of computing time in an undirected graph with N=3k
Undiret graph(N=5k)
0
100
200
300
400
500
600
700
800
0.1 0.2 0.3
edge existing probability
a
lgori
thm
comp
utin
g
tim
e(un
it:m
s)
FS
FS_SLF
FS_MINPOP
Figure 3. Comparison of computing time in an undirected graph with N=5k
International Journal of Managing Information Technology (IJMIT) Vol.6, No.1, February 2014
20
Undirect graph(N=8k)
0
500
1000
1500
2000
2500
0.1 0.2 0.3
edge existing probability
algorithm
computing
time(unit:ms)
FS
FS_SLF
FS_MINPOP
Figure 4. Comparison of computing time in an undirected graph with N=8k
Undirect graph(N=10k)
0
500
1000
1500
2000
2500
3000
3500
4000
0.1 0.2 0.3
edge existing probability
algorithm
computing
time(unit:ms)
FS
FS_SLF
FS_MINPOP
Figure 5. Comparison of computing time in an undirected graph with N=10k
The results show that our improved SPFA algorithm can be applied to undirected graphs with
comparative good running time performance.
5. COMPARISION
The Shortest Path Faster Algorithm (SPFA) is an improvement of the Bellman–Ford algorithm
which computes single-source shortest paths in a weighted graph. The algorithm is suitable for
graphs that contain negative-weight edges, and it can work well on random sparse graphs.
However, the worst-case complexity of SPFA is the same as that of Bellman–Ford, so for graphs
with nonnegative edge weights, Dijkstra algorithm is preferred.
International Journal of Managing Information Technology (IJMIT) Vol.6, No.1, February 2014
21
In this paper, we propose an improved SPFA algorithm which has optimization innovation on
traditional SPFA algorithm. When the graph is large, the times of data movement will be less, and
the performance of algorithm will be better.
6. CONCLUSIONS
In this paper, we introduced an effective MinPoP-based SPFA algorithm for shortest path
distance computation in large graphs, both directed and undirected. There are two major ideas in
our approach. Firstly, we combine Forward Star data structure with optimization techniques. This
method is very efficient for SPFA. Secondly, for every loop of scanning the edges which start
from the same source node, we label the node with the minimum distance d, and move the node
into the front of Q after the loop. Experiments demonstrate our improved SPFA algorithm is a
correct and efficient algorithm.
ACKNOWLEDGEMENTS
This research is supported by China Scholarship Council’s State Scholarship Fund.
REFERENCES
[1] Ada Wai-Chee Fu, Huanhuan Wu, James Cheng, Shumo Chu, Raymond Chi-Wing Wong: IS-
LABEL: an Independent-Set based Labeling Scheme for Point-to-Point Distance Querying on Large
Graphs CoRR abs/1211.2367 (2012)
[2] Takuya Akiba, Yoichi Iwata, Yuichi Yoshida: Fast Exact Shortest-Path Distance Queries on Large
Networks by Pruned Landmark Labeling CoRR abs/1304.4661 (2013)
[3] Andy Diwen Zhu, Hui Ma, Xiaokui Xiao, Siqiang Luo, Youze Tang, Shuigeng Zhou: Shortest Path
and Distance Queries on Road Networks: Towards Bridging Theory and Practice CoRR
abs/1304.2576 (2013)
[4] Luigi Di Puglia Pugliese, Francesca Guerriero: A Reference Point Approach for the Resource
Constrained Shortest Path Problems. Transportation Science (TRANSCI) 47(2):247-265 (2013)
[5] Ruoming Jin, Ning Ruan, Bo You, Haixun Wang: Hub-Accelerator: Fast and Exact Shortest Path
Computation in Large Social Networks CoRR.abs/1305.0507 (2013)
[6] Dragan Vasiljevic, Milos Danilovic: A Novel Linear Algorithm for Shortest Paths in Networks.
APJOR 30(2) (2013)
[7] Christine Rizkallah: An Axiomatic Characterization of the Single-Source Shortest Path Problem.
Archive of Formal Proofs (AFP) 2013 (2013)
[8] Fanding Duan: A Faster Algorithm for Shortest Path-SPFA. Journal of Southwest Jiao Tong
University. 29(2):207-212 (1994)

More Related Content

What's hot

Aaex4 group2(中英夾雜)
Aaex4 group2(中英夾雜)Aaex4 group2(中英夾雜)
Aaex4 group2(中英夾雜)Shiang-Yun Yang
 
Improving initial generations in pso algorithm for transportation network des...
Improving initial generations in pso algorithm for transportation network des...Improving initial generations in pso algorithm for transportation network des...
Improving initial generations in pso algorithm for transportation network des...ijcsit
 
Safety Verification of Deep Neural Networks_.pdf
Safety Verification of Deep Neural Networks_.pdfSafety Verification of Deep Neural Networks_.pdf
Safety Verification of Deep Neural Networks_.pdfPolytechnique Montréal
 
Pilot Contamination Mitigation for Wideband Massive MIMO: Number of Cells Vs ...
Pilot Contamination Mitigation for Wideband Massive MIMO: Number of Cells Vs ...Pilot Contamination Mitigation for Wideband Massive MIMO: Number of Cells Vs ...
Pilot Contamination Mitigation for Wideband Massive MIMO: Number of Cells Vs ...T. E. BOGALE
 
Numerical approach for Hamilton-Jacobi equations on a network: application to...
Numerical approach for Hamilton-Jacobi equations on a network: application to...Numerical approach for Hamilton-Jacobi equations on a network: application to...
Numerical approach for Hamilton-Jacobi equations on a network: application to...Guillaume Costeseque
 
Thesis : &quot;IBBET : In Band Bandwidth Estimation for LAN&quot;
Thesis : &quot;IBBET : In Band Bandwidth Estimation for LAN&quot;Thesis : &quot;IBBET : In Band Bandwidth Estimation for LAN&quot;
Thesis : &quot;IBBET : In Band Bandwidth Estimation for LAN&quot;Vishalkumarec
 
(DL hacks輪読) How to Train Deep Variational Autoencoders and Probabilistic Lad...
(DL hacks輪読) How to Train Deep Variational Autoencoders and Probabilistic Lad...(DL hacks輪読) How to Train Deep Variational Autoencoders and Probabilistic Lad...
(DL hacks輪読) How to Train Deep Variational Autoencoders and Probabilistic Lad...Masahiro Suzuki
 
A calculus of mobile Real-Time processes
A calculus of mobile Real-Time processesA calculus of mobile Real-Time processes
A calculus of mobile Real-Time processesPolytechnique Montréal
 
Macrocanonical models for texture synthesis
Macrocanonical models for texture synthesisMacrocanonical models for texture synthesis
Macrocanonical models for texture synthesisValentin De Bortoli
 
Mathematical analysis of Graph and Huff amn coding
Mathematical analysis of Graph and Huff amn codingMathematical analysis of Graph and Huff amn coding
Mathematical analysis of Graph and Huff amn codingDr Anjan Krishnamurthy
 
Approximation algorithms
Approximation algorithmsApproximation algorithms
Approximation algorithmsGanesh Solanke
 
Big Data Analysis with Signal Processing on Graphs
Big Data Analysis with Signal Processing on GraphsBig Data Analysis with Signal Processing on Graphs
Big Data Analysis with Signal Processing on GraphsMohamed Seif
 
NIPS2017 Few-shot Learning and Graph Convolution
NIPS2017 Few-shot Learning and Graph ConvolutionNIPS2017 Few-shot Learning and Graph Convolution
NIPS2017 Few-shot Learning and Graph ConvolutionKazuki Fujikawa
 

What's hot (15)

Aaex4 group2(中英夾雜)
Aaex4 group2(中英夾雜)Aaex4 group2(中英夾雜)
Aaex4 group2(中英夾雜)
 
Improving initial generations in pso algorithm for transportation network des...
Improving initial generations in pso algorithm for transportation network des...Improving initial generations in pso algorithm for transportation network des...
Improving initial generations in pso algorithm for transportation network des...
 
Safety Verification of Deep Neural Networks_.pdf
Safety Verification of Deep Neural Networks_.pdfSafety Verification of Deep Neural Networks_.pdf
Safety Verification of Deep Neural Networks_.pdf
 
Efficient projections
Efficient projectionsEfficient projections
Efficient projections
 
Pilot Contamination Mitigation for Wideband Massive MIMO: Number of Cells Vs ...
Pilot Contamination Mitigation for Wideband Massive MIMO: Number of Cells Vs ...Pilot Contamination Mitigation for Wideband Massive MIMO: Number of Cells Vs ...
Pilot Contamination Mitigation for Wideband Massive MIMO: Number of Cells Vs ...
 
Numerical approach for Hamilton-Jacobi equations on a network: application to...
Numerical approach for Hamilton-Jacobi equations on a network: application to...Numerical approach for Hamilton-Jacobi equations on a network: application to...
Numerical approach for Hamilton-Jacobi equations on a network: application to...
 
Thesis : &quot;IBBET : In Band Bandwidth Estimation for LAN&quot;
Thesis : &quot;IBBET : In Band Bandwidth Estimation for LAN&quot;Thesis : &quot;IBBET : In Band Bandwidth Estimation for LAN&quot;
Thesis : &quot;IBBET : In Band Bandwidth Estimation for LAN&quot;
 
(DL hacks輪読) How to Train Deep Variational Autoencoders and Probabilistic Lad...
(DL hacks輪読) How to Train Deep Variational Autoencoders and Probabilistic Lad...(DL hacks輪読) How to Train Deep Variational Autoencoders and Probabilistic Lad...
(DL hacks輪読) How to Train Deep Variational Autoencoders and Probabilistic Lad...
 
A calculus of mobile Real-Time processes
A calculus of mobile Real-Time processesA calculus of mobile Real-Time processes
A calculus of mobile Real-Time processes
 
Macrocanonical models for texture synthesis
Macrocanonical models for texture synthesisMacrocanonical models for texture synthesis
Macrocanonical models for texture synthesis
 
Mathematical analysis of Graph and Huff amn coding
Mathematical analysis of Graph and Huff amn codingMathematical analysis of Graph and Huff amn coding
Mathematical analysis of Graph and Huff amn coding
 
Approximation algorithms
Approximation algorithmsApproximation algorithms
Approximation algorithms
 
Gtti 10032021
Gtti 10032021Gtti 10032021
Gtti 10032021
 
Big Data Analysis with Signal Processing on Graphs
Big Data Analysis with Signal Processing on GraphsBig Data Analysis with Signal Processing on Graphs
Big Data Analysis with Signal Processing on Graphs
 
NIPS2017 Few-shot Learning and Graph Convolution
NIPS2017 Few-shot Learning and Graph ConvolutionNIPS2017 Few-shot Learning and Graph Convolution
NIPS2017 Few-shot Learning and Graph Convolution
 

Similar to An improved spfa algorithm for single source shortest path problem using forward star data structure

Automated Information Retrieval Model Using FP Growth Based Fuzzy Particle Sw...
Automated Information Retrieval Model Using FP Growth Based Fuzzy Particle Sw...Automated Information Retrieval Model Using FP Growth Based Fuzzy Particle Sw...
Automated Information Retrieval Model Using FP Growth Based Fuzzy Particle Sw...AIRCC Publishing Corporation
 
SLIDING WINDOW SUM ALGORITHMS FOR DEEP NEURAL NETWORKS
SLIDING WINDOW SUM ALGORITHMS FOR DEEP NEURAL NETWORKSSLIDING WINDOW SUM ALGORITHMS FOR DEEP NEURAL NETWORKS
SLIDING WINDOW SUM ALGORITHMS FOR DEEP NEURAL NETWORKSIJCI JOURNAL
 
A comparison of efficient algorithms for scheduling parallel data redistribution
A comparison of efficient algorithms for scheduling parallel data redistributionA comparison of efficient algorithms for scheduling parallel data redistribution
A comparison of efficient algorithms for scheduling parallel data redistributionIJCNCJournal
 
Investigation on the Pattern Synthesis of Subarray Weights for Low EMI Applic...
Investigation on the Pattern Synthesis of Subarray Weights for Low EMI Applic...Investigation on the Pattern Synthesis of Subarray Weights for Low EMI Applic...
Investigation on the Pattern Synthesis of Subarray Weights for Low EMI Applic...IOSRJECE
 
PSF_Introduction_to_R_Package_for_Pattern_Sequence (1)
PSF_Introduction_to_R_Package_for_Pattern_Sequence (1)PSF_Introduction_to_R_Package_for_Pattern_Sequence (1)
PSF_Introduction_to_R_Package_for_Pattern_Sequence (1)neeraj7svp
 
RADIAL BASIS FUNCTION PROCESS NEURAL NETWORK TRAINING BASED ON GENERALIZED FR...
RADIAL BASIS FUNCTION PROCESS NEURAL NETWORK TRAINING BASED ON GENERALIZED FR...RADIAL BASIS FUNCTION PROCESS NEURAL NETWORK TRAINING BASED ON GENERALIZED FR...
RADIAL BASIS FUNCTION PROCESS NEURAL NETWORK TRAINING BASED ON GENERALIZED FR...cseij
 
Seminar Report (Final)
Seminar Report (Final)Seminar Report (Final)
Seminar Report (Final)Aruneel Das
 
An Ant Algorithm for Solving QoS Multicast Routing Problem
An Ant Algorithm for Solving QoS Multicast Routing ProblemAn Ant Algorithm for Solving QoS Multicast Routing Problem
An Ant Algorithm for Solving QoS Multicast Routing ProblemCSCJournals
 
multi threaded and distributed algorithms
multi threaded and distributed algorithms multi threaded and distributed algorithms
multi threaded and distributed algorithms Dr Shashikant Athawale
 
TMPA-2015: Implementing the MetaVCG Approach in the C-light System
TMPA-2015: Implementing the MetaVCG Approach in the C-light SystemTMPA-2015: Implementing the MetaVCG Approach in the C-light System
TMPA-2015: Implementing the MetaVCG Approach in the C-light SystemIosif Itkin
 
A comparison-of-first-and-second-order-training-algorithms-for-artificial-neu...
A comparison-of-first-and-second-order-training-algorithms-for-artificial-neu...A comparison-of-first-and-second-order-training-algorithms-for-artificial-neu...
A comparison-of-first-and-second-order-training-algorithms-for-artificial-neu...Cemal Ardil
 
Performance of Matching Algorithmsfor Signal Approximation
Performance of Matching Algorithmsfor Signal ApproximationPerformance of Matching Algorithmsfor Signal Approximation
Performance of Matching Algorithmsfor Signal Approximationiosrjce
 
Square transposition: an approach to the transposition process in block cipher
Square transposition: an approach to the transposition process in block cipherSquare transposition: an approach to the transposition process in block cipher
Square transposition: an approach to the transposition process in block cipherjournalBEEI
 
FINDING FREQUENT SUBPATHS IN A GRAPH
FINDING FREQUENT SUBPATHS IN A GRAPHFINDING FREQUENT SUBPATHS IN A GRAPH
FINDING FREQUENT SUBPATHS IN A GRAPHIJDKP
 
FPGA Implementation of A New Chien Search Block for Reed-Solomon Codes RS (25...
FPGA Implementation of A New Chien Search Block for Reed-Solomon Codes RS (25...FPGA Implementation of A New Chien Search Block for Reed-Solomon Codes RS (25...
FPGA Implementation of A New Chien Search Block for Reed-Solomon Codes RS (25...IJERA Editor
 
Sequential and parallel algorithm to find maximum flow on extended mixed netw...
Sequential and parallel algorithm to find maximum flow on extended mixed netw...Sequential and parallel algorithm to find maximum flow on extended mixed netw...
Sequential and parallel algorithm to find maximum flow on extended mixed netw...csandit
 
SEQUENTIAL AND PARALLEL ALGORITHM TO FIND MAXIMUM FLOW ON EXTENDED MIXED NETW...
SEQUENTIAL AND PARALLEL ALGORITHM TO FIND MAXIMUM FLOW ON EXTENDED MIXED NETW...SEQUENTIAL AND PARALLEL ALGORITHM TO FIND MAXIMUM FLOW ON EXTENDED MIXED NETW...
SEQUENTIAL AND PARALLEL ALGORITHM TO FIND MAXIMUM FLOW ON EXTENDED MIXED NETW...cscpconf
 

Similar to An improved spfa algorithm for single source shortest path problem using forward star data structure (20)

Automated Information Retrieval Model Using FP Growth Based Fuzzy Particle Sw...
Automated Information Retrieval Model Using FP Growth Based Fuzzy Particle Sw...Automated Information Retrieval Model Using FP Growth Based Fuzzy Particle Sw...
Automated Information Retrieval Model Using FP Growth Based Fuzzy Particle Sw...
 
SLIDING WINDOW SUM ALGORITHMS FOR DEEP NEURAL NETWORKS
SLIDING WINDOW SUM ALGORITHMS FOR DEEP NEURAL NETWORKSSLIDING WINDOW SUM ALGORITHMS FOR DEEP NEURAL NETWORKS
SLIDING WINDOW SUM ALGORITHMS FOR DEEP NEURAL NETWORKS
 
A comparison of efficient algorithms for scheduling parallel data redistribution
A comparison of efficient algorithms for scheduling parallel data redistributionA comparison of efficient algorithms for scheduling parallel data redistribution
A comparison of efficient algorithms for scheduling parallel data redistribution
 
Investigation on the Pattern Synthesis of Subarray Weights for Low EMI Applic...
Investigation on the Pattern Synthesis of Subarray Weights for Low EMI Applic...Investigation on the Pattern Synthesis of Subarray Weights for Low EMI Applic...
Investigation on the Pattern Synthesis of Subarray Weights for Low EMI Applic...
 
PSF_Introduction_to_R_Package_for_Pattern_Sequence (1)
PSF_Introduction_to_R_Package_for_Pattern_Sequence (1)PSF_Introduction_to_R_Package_for_Pattern_Sequence (1)
PSF_Introduction_to_R_Package_for_Pattern_Sequence (1)
 
RADIAL BASIS FUNCTION PROCESS NEURAL NETWORK TRAINING BASED ON GENERALIZED FR...
RADIAL BASIS FUNCTION PROCESS NEURAL NETWORK TRAINING BASED ON GENERALIZED FR...RADIAL BASIS FUNCTION PROCESS NEURAL NETWORK TRAINING BASED ON GENERALIZED FR...
RADIAL BASIS FUNCTION PROCESS NEURAL NETWORK TRAINING BASED ON GENERALIZED FR...
 
Seminar Report (Final)
Seminar Report (Final)Seminar Report (Final)
Seminar Report (Final)
 
An Ant Algorithm for Solving QoS Multicast Routing Problem
An Ant Algorithm for Solving QoS Multicast Routing ProblemAn Ant Algorithm for Solving QoS Multicast Routing Problem
An Ant Algorithm for Solving QoS Multicast Routing Problem
 
multi threaded and distributed algorithms
multi threaded and distributed algorithms multi threaded and distributed algorithms
multi threaded and distributed algorithms
 
TMPA-2015: Implementing the MetaVCG Approach in the C-light System
TMPA-2015: Implementing the MetaVCG Approach in the C-light SystemTMPA-2015: Implementing the MetaVCG Approach in the C-light System
TMPA-2015: Implementing the MetaVCG Approach in the C-light System
 
A comparison-of-first-and-second-order-training-algorithms-for-artificial-neu...
A comparison-of-first-and-second-order-training-algorithms-for-artificial-neu...A comparison-of-first-and-second-order-training-algorithms-for-artificial-neu...
A comparison-of-first-and-second-order-training-algorithms-for-artificial-neu...
 
Analysis_molf
Analysis_molfAnalysis_molf
Analysis_molf
 
Performance of Matching Algorithmsfor Signal Approximation
Performance of Matching Algorithmsfor Signal ApproximationPerformance of Matching Algorithmsfor Signal Approximation
Performance of Matching Algorithmsfor Signal Approximation
 
Square transposition: an approach to the transposition process in block cipher
Square transposition: an approach to the transposition process in block cipherSquare transposition: an approach to the transposition process in block cipher
Square transposition: an approach to the transposition process in block cipher
 
50120130406039
5012013040603950120130406039
50120130406039
 
FINDING FREQUENT SUBPATHS IN A GRAPH
FINDING FREQUENT SUBPATHS IN A GRAPHFINDING FREQUENT SUBPATHS IN A GRAPH
FINDING FREQUENT SUBPATHS IN A GRAPH
 
L010628894
L010628894L010628894
L010628894
 
FPGA Implementation of A New Chien Search Block for Reed-Solomon Codes RS (25...
FPGA Implementation of A New Chien Search Block for Reed-Solomon Codes RS (25...FPGA Implementation of A New Chien Search Block for Reed-Solomon Codes RS (25...
FPGA Implementation of A New Chien Search Block for Reed-Solomon Codes RS (25...
 
Sequential and parallel algorithm to find maximum flow on extended mixed netw...
Sequential and parallel algorithm to find maximum flow on extended mixed netw...Sequential and parallel algorithm to find maximum flow on extended mixed netw...
Sequential and parallel algorithm to find maximum flow on extended mixed netw...
 
SEQUENTIAL AND PARALLEL ALGORITHM TO FIND MAXIMUM FLOW ON EXTENDED MIXED NETW...
SEQUENTIAL AND PARALLEL ALGORITHM TO FIND MAXIMUM FLOW ON EXTENDED MIXED NETW...SEQUENTIAL AND PARALLEL ALGORITHM TO FIND MAXIMUM FLOW ON EXTENDED MIXED NETW...
SEQUENTIAL AND PARALLEL ALGORITHM TO FIND MAXIMUM FLOW ON EXTENDED MIXED NETW...
 

More from IJMIT JOURNAL

MULTIMODAL COURSE DESIGN AND IMPLEMENTATION USING LEML AND LMS FOR INSTRUCTIO...
MULTIMODAL COURSE DESIGN AND IMPLEMENTATION USING LEML AND LMS FOR INSTRUCTIO...MULTIMODAL COURSE DESIGN AND IMPLEMENTATION USING LEML AND LMS FOR INSTRUCTIO...
MULTIMODAL COURSE DESIGN AND IMPLEMENTATION USING LEML AND LMS FOR INSTRUCTIO...IJMIT JOURNAL
 
Novel R&D Capabilities as a Response to ESG Risks-Lessons From Amazon’s Fusio...
Novel R&D Capabilities as a Response to ESG Risks-Lessons From Amazon’s Fusio...Novel R&D Capabilities as a Response to ESG Risks-Lessons From Amazon’s Fusio...
Novel R&D Capabilities as a Response to ESG Risks-Lessons From Amazon’s Fusio...IJMIT JOURNAL
 
International Journal of Managing Information Technology (IJMIT) ** WJCI Indexed
International Journal of Managing Information Technology (IJMIT) ** WJCI IndexedInternational Journal of Managing Information Technology (IJMIT) ** WJCI Indexed
International Journal of Managing Information Technology (IJMIT) ** WJCI IndexedIJMIT JOURNAL
 
International Journal of Managing Information Technology (IJMIT) ** WJCI Indexed
International Journal of Managing Information Technology (IJMIT) ** WJCI IndexedInternational Journal of Managing Information Technology (IJMIT) ** WJCI Indexed
International Journal of Managing Information Technology (IJMIT) ** WJCI IndexedIJMIT JOURNAL
 
NOVEL R & D CAPABILITIES AS A RESPONSE TO ESG RISKS- LESSONS FROM AMAZON’S FU...
NOVEL R & D CAPABILITIES AS A RESPONSE TO ESG RISKS- LESSONS FROM AMAZON’S FU...NOVEL R & D CAPABILITIES AS A RESPONSE TO ESG RISKS- LESSONS FROM AMAZON’S FU...
NOVEL R & D CAPABILITIES AS A RESPONSE TO ESG RISKS- LESSONS FROM AMAZON’S FU...IJMIT JOURNAL
 
A REVIEW OF STOCK TREND PREDICTION WITH COMBINATION OF EFFECTIVE MULTI TECHNI...
A REVIEW OF STOCK TREND PREDICTION WITH COMBINATION OF EFFECTIVE MULTI TECHNI...A REVIEW OF STOCK TREND PREDICTION WITH COMBINATION OF EFFECTIVE MULTI TECHNI...
A REVIEW OF STOCK TREND PREDICTION WITH COMBINATION OF EFFECTIVE MULTI TECHNI...IJMIT JOURNAL
 
INTRUSION DETECTION SYSTEM USING CUSTOMIZED RULES FOR SNORT
INTRUSION DETECTION SYSTEM USING CUSTOMIZED RULES FOR SNORTINTRUSION DETECTION SYSTEM USING CUSTOMIZED RULES FOR SNORT
INTRUSION DETECTION SYSTEM USING CUSTOMIZED RULES FOR SNORTIJMIT JOURNAL
 
MEDIATING AND MODERATING FACTORS AFFECTING READINESS TO IOT APPLICATIONS: THE...
MEDIATING AND MODERATING FACTORS AFFECTING READINESS TO IOT APPLICATIONS: THE...MEDIATING AND MODERATING FACTORS AFFECTING READINESS TO IOT APPLICATIONS: THE...
MEDIATING AND MODERATING FACTORS AFFECTING READINESS TO IOT APPLICATIONS: THE...IJMIT JOURNAL
 
EFFECTIVELY CONNECT ACQUIRED TECHNOLOGY TO INNOVATION OVER A LONG PERIOD
EFFECTIVELY CONNECT ACQUIRED TECHNOLOGY TO INNOVATION OVER A LONG PERIODEFFECTIVELY CONNECT ACQUIRED TECHNOLOGY TO INNOVATION OVER A LONG PERIOD
EFFECTIVELY CONNECT ACQUIRED TECHNOLOGY TO INNOVATION OVER A LONG PERIODIJMIT JOURNAL
 
International Journal of Managing Information Technology (IJMIT) ** WJCI Indexed
International Journal of Managing Information Technology (IJMIT) ** WJCI IndexedInternational Journal of Managing Information Technology (IJMIT) ** WJCI Indexed
International Journal of Managing Information Technology (IJMIT) ** WJCI IndexedIJMIT JOURNAL
 
4th International Conference on Cloud, Big Data and IoT (CBIoT 2023)
4th International Conference on Cloud, Big Data and IoT (CBIoT 2023)4th International Conference on Cloud, Big Data and IoT (CBIoT 2023)
4th International Conference on Cloud, Big Data and IoT (CBIoT 2023)IJMIT JOURNAL
 
TRANSFORMING SERVICE OPERATIONS WITH AI: A CASE FOR BUSINESS VALUE
TRANSFORMING SERVICE OPERATIONS WITH AI: A CASE FOR BUSINESS VALUETRANSFORMING SERVICE OPERATIONS WITH AI: A CASE FOR BUSINESS VALUE
TRANSFORMING SERVICE OPERATIONS WITH AI: A CASE FOR BUSINESS VALUEIJMIT JOURNAL
 
DESIGNING A FRAMEWORK FOR ENHANCING THE ONLINE KNOWLEDGE-SHARING BEHAVIOR OF ...
DESIGNING A FRAMEWORK FOR ENHANCING THE ONLINE KNOWLEDGE-SHARING BEHAVIOR OF ...DESIGNING A FRAMEWORK FOR ENHANCING THE ONLINE KNOWLEDGE-SHARING BEHAVIOR OF ...
DESIGNING A FRAMEWORK FOR ENHANCING THE ONLINE KNOWLEDGE-SHARING BEHAVIOR OF ...IJMIT JOURNAL
 
BUILDING RELIABLE CLOUD SYSTEMS THROUGH CHAOS ENGINEERING
BUILDING RELIABLE CLOUD SYSTEMS THROUGH CHAOS ENGINEERINGBUILDING RELIABLE CLOUD SYSTEMS THROUGH CHAOS ENGINEERING
BUILDING RELIABLE CLOUD SYSTEMS THROUGH CHAOS ENGINEERINGIJMIT JOURNAL
 
A REVIEW OF STOCK TREND PREDICTION WITH COMBINATION OF EFFECTIVE MULTI TECHNI...
A REVIEW OF STOCK TREND PREDICTION WITH COMBINATION OF EFFECTIVE MULTI TECHNI...A REVIEW OF STOCK TREND PREDICTION WITH COMBINATION OF EFFECTIVE MULTI TECHNI...
A REVIEW OF STOCK TREND PREDICTION WITH COMBINATION OF EFFECTIVE MULTI TECHNI...IJMIT JOURNAL
 
NETWORK MEDIA ATTENTION AND GREEN TECHNOLOGY INNOVATION
NETWORK MEDIA ATTENTION AND GREEN TECHNOLOGY INNOVATIONNETWORK MEDIA ATTENTION AND GREEN TECHNOLOGY INNOVATION
NETWORK MEDIA ATTENTION AND GREEN TECHNOLOGY INNOVATIONIJMIT JOURNAL
 
INCLUSIVE ENTREPRENEURSHIP IN HANDLING COMPETING INSTITUTIONAL LOGICS FOR DHI...
INCLUSIVE ENTREPRENEURSHIP IN HANDLING COMPETING INSTITUTIONAL LOGICS FOR DHI...INCLUSIVE ENTREPRENEURSHIP IN HANDLING COMPETING INSTITUTIONAL LOGICS FOR DHI...
INCLUSIVE ENTREPRENEURSHIP IN HANDLING COMPETING INSTITUTIONAL LOGICS FOR DHI...IJMIT JOURNAL
 
DEEP LEARNING APPROACH FOR EVENT MONITORING SYSTEM
DEEP LEARNING APPROACH FOR EVENT MONITORING SYSTEMDEEP LEARNING APPROACH FOR EVENT MONITORING SYSTEM
DEEP LEARNING APPROACH FOR EVENT MONITORING SYSTEMIJMIT JOURNAL
 
MULTIMODAL COURSE DESIGN AND IMPLEMENTATION USING LEML AND LMS FOR INSTRUCTIO...
MULTIMODAL COURSE DESIGN AND IMPLEMENTATION USING LEML AND LMS FOR INSTRUCTIO...MULTIMODAL COURSE DESIGN AND IMPLEMENTATION USING LEML AND LMS FOR INSTRUCTIO...
MULTIMODAL COURSE DESIGN AND IMPLEMENTATION USING LEML AND LMS FOR INSTRUCTIO...IJMIT JOURNAL
 

More from IJMIT JOURNAL (20)

MULTIMODAL COURSE DESIGN AND IMPLEMENTATION USING LEML AND LMS FOR INSTRUCTIO...
MULTIMODAL COURSE DESIGN AND IMPLEMENTATION USING LEML AND LMS FOR INSTRUCTIO...MULTIMODAL COURSE DESIGN AND IMPLEMENTATION USING LEML AND LMS FOR INSTRUCTIO...
MULTIMODAL COURSE DESIGN AND IMPLEMENTATION USING LEML AND LMS FOR INSTRUCTIO...
 
Novel R&D Capabilities as a Response to ESG Risks-Lessons From Amazon’s Fusio...
Novel R&D Capabilities as a Response to ESG Risks-Lessons From Amazon’s Fusio...Novel R&D Capabilities as a Response to ESG Risks-Lessons From Amazon’s Fusio...
Novel R&D Capabilities as a Response to ESG Risks-Lessons From Amazon’s Fusio...
 
International Journal of Managing Information Technology (IJMIT) ** WJCI Indexed
International Journal of Managing Information Technology (IJMIT) ** WJCI IndexedInternational Journal of Managing Information Technology (IJMIT) ** WJCI Indexed
International Journal of Managing Information Technology (IJMIT) ** WJCI Indexed
 
International Journal of Managing Information Technology (IJMIT) ** WJCI Indexed
International Journal of Managing Information Technology (IJMIT) ** WJCI IndexedInternational Journal of Managing Information Technology (IJMIT) ** WJCI Indexed
International Journal of Managing Information Technology (IJMIT) ** WJCI Indexed
 
NOVEL R & D CAPABILITIES AS A RESPONSE TO ESG RISKS- LESSONS FROM AMAZON’S FU...
NOVEL R & D CAPABILITIES AS A RESPONSE TO ESG RISKS- LESSONS FROM AMAZON’S FU...NOVEL R & D CAPABILITIES AS A RESPONSE TO ESG RISKS- LESSONS FROM AMAZON’S FU...
NOVEL R & D CAPABILITIES AS A RESPONSE TO ESG RISKS- LESSONS FROM AMAZON’S FU...
 
A REVIEW OF STOCK TREND PREDICTION WITH COMBINATION OF EFFECTIVE MULTI TECHNI...
A REVIEW OF STOCK TREND PREDICTION WITH COMBINATION OF EFFECTIVE MULTI TECHNI...A REVIEW OF STOCK TREND PREDICTION WITH COMBINATION OF EFFECTIVE MULTI TECHNI...
A REVIEW OF STOCK TREND PREDICTION WITH COMBINATION OF EFFECTIVE MULTI TECHNI...
 
INTRUSION DETECTION SYSTEM USING CUSTOMIZED RULES FOR SNORT
INTRUSION DETECTION SYSTEM USING CUSTOMIZED RULES FOR SNORTINTRUSION DETECTION SYSTEM USING CUSTOMIZED RULES FOR SNORT
INTRUSION DETECTION SYSTEM USING CUSTOMIZED RULES FOR SNORT
 
15223ijmit02.pdf
15223ijmit02.pdf15223ijmit02.pdf
15223ijmit02.pdf
 
MEDIATING AND MODERATING FACTORS AFFECTING READINESS TO IOT APPLICATIONS: THE...
MEDIATING AND MODERATING FACTORS AFFECTING READINESS TO IOT APPLICATIONS: THE...MEDIATING AND MODERATING FACTORS AFFECTING READINESS TO IOT APPLICATIONS: THE...
MEDIATING AND MODERATING FACTORS AFFECTING READINESS TO IOT APPLICATIONS: THE...
 
EFFECTIVELY CONNECT ACQUIRED TECHNOLOGY TO INNOVATION OVER A LONG PERIOD
EFFECTIVELY CONNECT ACQUIRED TECHNOLOGY TO INNOVATION OVER A LONG PERIODEFFECTIVELY CONNECT ACQUIRED TECHNOLOGY TO INNOVATION OVER A LONG PERIOD
EFFECTIVELY CONNECT ACQUIRED TECHNOLOGY TO INNOVATION OVER A LONG PERIOD
 
International Journal of Managing Information Technology (IJMIT) ** WJCI Indexed
International Journal of Managing Information Technology (IJMIT) ** WJCI IndexedInternational Journal of Managing Information Technology (IJMIT) ** WJCI Indexed
International Journal of Managing Information Technology (IJMIT) ** WJCI Indexed
 
4th International Conference on Cloud, Big Data and IoT (CBIoT 2023)
4th International Conference on Cloud, Big Data and IoT (CBIoT 2023)4th International Conference on Cloud, Big Data and IoT (CBIoT 2023)
4th International Conference on Cloud, Big Data and IoT (CBIoT 2023)
 
TRANSFORMING SERVICE OPERATIONS WITH AI: A CASE FOR BUSINESS VALUE
TRANSFORMING SERVICE OPERATIONS WITH AI: A CASE FOR BUSINESS VALUETRANSFORMING SERVICE OPERATIONS WITH AI: A CASE FOR BUSINESS VALUE
TRANSFORMING SERVICE OPERATIONS WITH AI: A CASE FOR BUSINESS VALUE
 
DESIGNING A FRAMEWORK FOR ENHANCING THE ONLINE KNOWLEDGE-SHARING BEHAVIOR OF ...
DESIGNING A FRAMEWORK FOR ENHANCING THE ONLINE KNOWLEDGE-SHARING BEHAVIOR OF ...DESIGNING A FRAMEWORK FOR ENHANCING THE ONLINE KNOWLEDGE-SHARING BEHAVIOR OF ...
DESIGNING A FRAMEWORK FOR ENHANCING THE ONLINE KNOWLEDGE-SHARING BEHAVIOR OF ...
 
BUILDING RELIABLE CLOUD SYSTEMS THROUGH CHAOS ENGINEERING
BUILDING RELIABLE CLOUD SYSTEMS THROUGH CHAOS ENGINEERINGBUILDING RELIABLE CLOUD SYSTEMS THROUGH CHAOS ENGINEERING
BUILDING RELIABLE CLOUD SYSTEMS THROUGH CHAOS ENGINEERING
 
A REVIEW OF STOCK TREND PREDICTION WITH COMBINATION OF EFFECTIVE MULTI TECHNI...
A REVIEW OF STOCK TREND PREDICTION WITH COMBINATION OF EFFECTIVE MULTI TECHNI...A REVIEW OF STOCK TREND PREDICTION WITH COMBINATION OF EFFECTIVE MULTI TECHNI...
A REVIEW OF STOCK TREND PREDICTION WITH COMBINATION OF EFFECTIVE MULTI TECHNI...
 
NETWORK MEDIA ATTENTION AND GREEN TECHNOLOGY INNOVATION
NETWORK MEDIA ATTENTION AND GREEN TECHNOLOGY INNOVATIONNETWORK MEDIA ATTENTION AND GREEN TECHNOLOGY INNOVATION
NETWORK MEDIA ATTENTION AND GREEN TECHNOLOGY INNOVATION
 
INCLUSIVE ENTREPRENEURSHIP IN HANDLING COMPETING INSTITUTIONAL LOGICS FOR DHI...
INCLUSIVE ENTREPRENEURSHIP IN HANDLING COMPETING INSTITUTIONAL LOGICS FOR DHI...INCLUSIVE ENTREPRENEURSHIP IN HANDLING COMPETING INSTITUTIONAL LOGICS FOR DHI...
INCLUSIVE ENTREPRENEURSHIP IN HANDLING COMPETING INSTITUTIONAL LOGICS FOR DHI...
 
DEEP LEARNING APPROACH FOR EVENT MONITORING SYSTEM
DEEP LEARNING APPROACH FOR EVENT MONITORING SYSTEMDEEP LEARNING APPROACH FOR EVENT MONITORING SYSTEM
DEEP LEARNING APPROACH FOR EVENT MONITORING SYSTEM
 
MULTIMODAL COURSE DESIGN AND IMPLEMENTATION USING LEML AND LMS FOR INSTRUCTIO...
MULTIMODAL COURSE DESIGN AND IMPLEMENTATION USING LEML AND LMS FOR INSTRUCTIO...MULTIMODAL COURSE DESIGN AND IMPLEMENTATION USING LEML AND LMS FOR INSTRUCTIO...
MULTIMODAL COURSE DESIGN AND IMPLEMENTATION USING LEML AND LMS FOR INSTRUCTIO...
 

Recently uploaded

Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 

Recently uploaded (20)

Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 

An improved spfa algorithm for single source shortest path problem using forward star data structure

  • 1. International Journal of Managing Information Technology (IJMIT) Vol.6, No.1, February 2014 DOI : 10.5121/ijmit.2014.6102 15 AN IMPROVED SPFA ALGORITHM FOR SINGLE- SOURCE SHORTEST PATH PROBLEM USING FORWARD STAR DATA STRUCTURE Xin Zhou Department of Economic Engineering, Kyushu University, Fukuoka 812-8581, Japan ABSTRACT We present an improved SPFA algorithm for the single source shortest path problem. For a random graph, the empirical average time complexity is O(|E|), where |E| is the number of edges of the input network. SPFA maintains a queue of candidate vertices and add a vertex to the queue only if that vertex is relaxed. In the improved SPFA, MinPoP principle is employed to improve the quality of the queue. We theoretically analyse the advantage of this new algorithm and experimentally demonstrate that the algorithm is efficient. KEYWORDS SPFA; single source; shortest path; queue; MinPoP principle 1. INTRODUCTION The shortest path problem, which focuses on finding a shortest path from a source node to other nodes, is a fundamental network optimization problem that has been applied in many domains including transportation, routing, communications and management. It is also one of the most fundamental operations on graphs. Recently, several types of shortest path problems have been investigated. For instance, Ada Wai-Chee et al.[1] proposed an efficient index, namely, an independent-set based labeling scheme for P2P distance querying; Takuya Akiba et al.[2] presented a new method for shortest path distance queries, their method pre-computes distance labels for vertices by performing a breadth-first search from every vertex; Andy Diwen Zhu et al.[3] brought out Arterial Hierarchy(AH), an index structure that narrows the gap between theory and practice in answering shortest path and distance queries on road network; an innovative interactive method was proposed to address the Resource Constrained Shortest Path Problem(RCSPP)[4];a set of novel techniques centered around Hub-accelerator framework were introduced[5], which are used to compute the k-degree shortest path(finding the shortest path between two vertices if their distance is within k). The single-source shortest path problems have been studied intensively. DRAGAN VASILJEVIC et al.[6] gave a novel linear algorithms for the single-source shortest path problem, the worse case time complexity is O(m + Clog C), where m is the number of edges and C is the ratio of the largest and the smallest edge weight; Christine Rizkallah[7] put forward a formal proof that a well-known axiomatic characterization of the single-source shortest path problem is correct. In this paper, we propose a new algorithm for single-source shortest path distance queries. It is an improvement of SPFA. It uses Forward Star data structure to store the edges, and employs
  • 2. International Journal of Managing Information Technology (IJMIT) Vol.6, No.1, February 2014 16 MinPoP principle to optimize the doubly-linked queue. MinPoP, that is, finding the vertex with the minimum distance to the source node and pop the vertex to the front of the queue. The paper is organized as follows. Section 2 reviews SPFA algorithm and its SLF optimization algorithm. Section 3 describes the improved SPFA algorithm. Section 4 is the experimental analysis. Section 5 concludes this paper. 2. DESCRIPTION Given a weighted directed graph G = (V, E) and a source vertex s, the SPFA algorithm finds the shortest path from s to each vertex v in the graph. The length of the shortest path from s to v is stored in d(v) for each vertex v. Below is the description of SPFA algorithm[8]. Here Q is a first-in, first-out queue of candidate vertices, and w(u, v) is the edge weight of (u, v). Shortest-Path-Faster-Algorithm(G, s) 1 for each vertex v ≠s in V(G) 2 d(v) ← ∞ 3 d(s) ← 0 4 push s into Q 5 while Q is not empty 6 u ← pop Q 7 for each edge (u, v) in E(G) 8 if d(u) + w(u, v) < d(v) then 9 d(v) ← d(u) + w(u, v) 10 if v is not in Q then 11 push v into Q Small Label First (SLF) optimization. Instead of always pushing vertex v to the end of the queue, we compare d(v) to d(front(Q)), and insert v to the front of the queue if d(v) is smaller. Here Q is a doubly-linked queue of candidate vertices. The description of this technique is (after pushing v to the end of the queue in line 11): procedure Small-Label-First(G, Q) if d(back(Q)) < d(front(Q)) then u ← pop back of Q push u into front of Q Another optimization technique is Forward Star data structure which uses struct array to store edges, edges starting from the same source node are linked in the array. The struct array is constructed in the process of adding edges when reading in network data. The description of this principle is: procedure Initialization … foreach number i in array EH i ← -1 … … procedure Addedge(a, b, w, tot, ET, EH) the tot-th edge of array ET ← an edge with source node a, end node b, weight w, pointer to next edge - the a-th number of array EH the a-th number of array EH ← tot tot ← tot+1 In the process of adding edge, tot is the current total number of edges, ET is a struct array, every element of the array is an edge struct which includes the edge’s source node, the edge’s end node,
  • 3. International Journal of Managing Information Technology (IJMIT) Vol.6, No.1, February 2014 17 weight, and the pointer to next edge, the a-th number of EH is used to represent the pointer. EH is an integer array, in the initialization step, each number in EH is initialized to -1. -1 means the end of storage of edges which start from one specified source node. Compared to another vertex storage structure- adjacent table, forward star is more efficient for SPFA. 3. AN IMPROVED SPFA ALGORITHM We propose a MinPoP principle. From all the d (d is the distance from the single source node to the current node), we label the node with the minimum d and move it into front of Q. Here Q is a doubly-linked queue of candidate vertices. The description of the improved SPFA algorithm is: Improved-SPFA-Algorithm(G, s) 1 for each vertex v ≠s in V(G) 2 d(v) ← ∞ 3 d(s) ← 0 4 min ← ∞ 5 push s into front of Q 6 while Q is not empty 7 node p ← null 8 u ← pop Q 9 for each edge (u, v) in E(G) 10 if d(u) + w(u, v) < d(v) then 11 d(v) ← d(u) + w(u, v) 12 if v is not in Q then 13 push v into back of Q 14 if( d(v) < min ) then 15 min ← d(v) 16 label v as p 17 move p into front of Q The average time complexity of this algorithm is O(|E|), where |E| is the number of edges of the input network. When Forward Star data structure is used to store edges, for a specified source node s, all of its adjacent edges are added into the edge struct array ET one by one from the original network data, so if the weights of edges starting from s are in an ascending order, the improved algorithm is a little more efficient than SPFA and its SLF optimization algorithm. Because the weights of edges from s in ET are in a descending order, so the d(v) is in a decreasing trend, SLF needs to update the front of Q many times, however, MinPoP only updates the front of Q once. MinPoP and SLF have the similar strategy of selecting a priority node into the front of Q, SLF continually push new node v if d(v) < d(front(Q)), MinPoP labels the node with the minimum d, if d< min, move it into front of Q. 4. EXPERIMENTAL ANALYSIS We evaluate the performance of our method and compare with existing methods. All methods tested were programmed in C++ and compiled with the same compiler. All experiments were run on a computer with an Intel 2.16 GHz CPU, 888MB RAM, running Windows XP OS.
  • 4. International Journal of Managing Information Technology (IJMIT) Vol.6, No.1, February 2014 18 4.1. Direct graphs with ascending data We use simulation data to do the experiments. In section3, we discussed that the improved SPFA algorithm is suitable for a network in which weights of edges from a specified node are in an ascending order. We simulate the networks for different N (N is the number of nodes, N= 3k, 5k, 8k and 10k). The probability of existing edges between two different nodes is 0.1. The number of edges is shown in Table 1. Table 1. Number of edges N 3k 5k 8k 10k |E| 900k 2.5M 6.4M 10M In our program, we read in data from a data file. The read-in time is shown as follows. Table 2. Read-in data time (unit: ms) N 3k 5k 8k 10k Time 828 2235 5984 13172 Assume we compute the distance from node 1 to node n, where n is the number of nodes. The experimental result is shown in figure 1. Here, FS means SPFA using Forward Star data structure, FS_SLF is algorithm with SLF optimization, FS_MINPOP is algorithm with MinPoP optimization. The result shows MinPoP has better running time performance. Direct graph 0 50 100 150 200 250 N=3000 N=5000 N=8000 N=10000 algorithm computing time(unit: ms) FS FS_SLF FS_MINPOP Figure 1. Comparison of computing time in a direct graph with ascending data 4.2. Undirected graphs with random data The SPFA algorithm can also be applied to an undirected graph by replacing each undirected edge with two directed edge of opposite directions. We simulate the networks for different N (N= 3k, 5k, 8k and 10k) with different P which represents the probability of existing edges between two different nodes. The read-in data time is shown in Table 3.
  • 5. International Journal of Managing Information Technology (IJMIT) Vol.6, No.1, February 2014 19 Table 3. Read-in data time (unit: ms) P 0.1 0.2 0.3 N=3k 469 1015 1360 N=5k 1375 2578 4156 N=8k 3657 7703 10547 N=10k 9640 14234 15500 Assume we compute the distance from node 1 to node n, where n is the number of nodes. The experimental results are shown in figure 2-5. Undirect graph(N=3k) 0 50 100 150 200 250 0.1 0.2 0.3 edge existing probability algorithm computing time(unit:ms) FS FS_SLF FS_MINPOP Figure 2. Comparison of computing time in an undirected graph with N=3k Undiret graph(N=5k) 0 100 200 300 400 500 600 700 800 0.1 0.2 0.3 edge existing probability a lgori thm comp utin g tim e(un it:m s) FS FS_SLF FS_MINPOP Figure 3. Comparison of computing time in an undirected graph with N=5k
  • 6. International Journal of Managing Information Technology (IJMIT) Vol.6, No.1, February 2014 20 Undirect graph(N=8k) 0 500 1000 1500 2000 2500 0.1 0.2 0.3 edge existing probability algorithm computing time(unit:ms) FS FS_SLF FS_MINPOP Figure 4. Comparison of computing time in an undirected graph with N=8k Undirect graph(N=10k) 0 500 1000 1500 2000 2500 3000 3500 4000 0.1 0.2 0.3 edge existing probability algorithm computing time(unit:ms) FS FS_SLF FS_MINPOP Figure 5. Comparison of computing time in an undirected graph with N=10k The results show that our improved SPFA algorithm can be applied to undirected graphs with comparative good running time performance. 5. COMPARISION The Shortest Path Faster Algorithm (SPFA) is an improvement of the Bellman–Ford algorithm which computes single-source shortest paths in a weighted graph. The algorithm is suitable for graphs that contain negative-weight edges, and it can work well on random sparse graphs. However, the worst-case complexity of SPFA is the same as that of Bellman–Ford, so for graphs with nonnegative edge weights, Dijkstra algorithm is preferred.
  • 7. International Journal of Managing Information Technology (IJMIT) Vol.6, No.1, February 2014 21 In this paper, we propose an improved SPFA algorithm which has optimization innovation on traditional SPFA algorithm. When the graph is large, the times of data movement will be less, and the performance of algorithm will be better. 6. CONCLUSIONS In this paper, we introduced an effective MinPoP-based SPFA algorithm for shortest path distance computation in large graphs, both directed and undirected. There are two major ideas in our approach. Firstly, we combine Forward Star data structure with optimization techniques. This method is very efficient for SPFA. Secondly, for every loop of scanning the edges which start from the same source node, we label the node with the minimum distance d, and move the node into the front of Q after the loop. Experiments demonstrate our improved SPFA algorithm is a correct and efficient algorithm. ACKNOWLEDGEMENTS This research is supported by China Scholarship Council’s State Scholarship Fund. REFERENCES [1] Ada Wai-Chee Fu, Huanhuan Wu, James Cheng, Shumo Chu, Raymond Chi-Wing Wong: IS- LABEL: an Independent-Set based Labeling Scheme for Point-to-Point Distance Querying on Large Graphs CoRR abs/1211.2367 (2012) [2] Takuya Akiba, Yoichi Iwata, Yuichi Yoshida: Fast Exact Shortest-Path Distance Queries on Large Networks by Pruned Landmark Labeling CoRR abs/1304.4661 (2013) [3] Andy Diwen Zhu, Hui Ma, Xiaokui Xiao, Siqiang Luo, Youze Tang, Shuigeng Zhou: Shortest Path and Distance Queries on Road Networks: Towards Bridging Theory and Practice CoRR abs/1304.2576 (2013) [4] Luigi Di Puglia Pugliese, Francesca Guerriero: A Reference Point Approach for the Resource Constrained Shortest Path Problems. Transportation Science (TRANSCI) 47(2):247-265 (2013) [5] Ruoming Jin, Ning Ruan, Bo You, Haixun Wang: Hub-Accelerator: Fast and Exact Shortest Path Computation in Large Social Networks CoRR.abs/1305.0507 (2013) [6] Dragan Vasiljevic, Milos Danilovic: A Novel Linear Algorithm for Shortest Paths in Networks. APJOR 30(2) (2013) [7] Christine Rizkallah: An Axiomatic Characterization of the Single-Source Shortest Path Problem. Archive of Formal Proofs (AFP) 2013 (2013) [8] Fanding Duan: A Faster Algorithm for Shortest Path-SPFA. Journal of Southwest Jiao Tong University. 29(2):207-212 (1994)