On termination of the algorithm, the label W(x) of
the arbitrary node x gives the time instant of arrival
at x. Therefore, the cost of the shortest path from the
source s to node x is equal to W(x) −τ. The variable
p(x) gives the predecessor of x in this path.
Since the computational complexity of the ATT
procedure is of order O(K), step 1 requires O(g
s
K +
n) time and each iteration of step 2 requires O(n +
g
x
K) time. Since the number of repetitions of step
2 is of order O(n), and
∑
n
x=1
g
x
= m, the complexity
of TD-Dijkstra is of order O(g
s
K + n + n
2
+ mK) =
O(n
2
+ mK). The reader should note that although
the aforementioned, simple implementation is pre-
sented in (Sung et al., 2000) where this algorithm was
proposed, a faster implementation can be performed
if Fibonacci heaps are utilized (Fredman and Tarjan,
1987), (Ahuja et al., 1993). Under this data structure,
the computational complexity of TD-Dijkstra would
be of order O(nlogn + mK).
In the section that follows, existing alternative ap-
proaches to model a time-dependent transportation
network are presented, and it is explained why they
are unsuitable for optimal shortest path routing in the
networks under investigation.
3 ALTERNATIVE APPROACHES
Alternative existing approaches to model a time-
dependent network can be found, among others, in
(Cooke and Halsey, 1966), (Delling, 2011), (Nan-
nicini et al., 2012), (Delling and Nannicini, 2012),
(Delling et al., 2009), (Delling and Wagner, 2009),
(Ding et al., 2008), (Batz et al., 2013), (Chabini and
Lan, 2002), and (Chabini, 1998). All the aforemen-
tioned papers assume that for each network’s arc <
xy >, the traversal time is available for certain time
instants of departure from node x. Let this arc traver-
sal time, which is a function of the time instant of
departure, be called as traversal time function and be
denoted by f
xy
(τ), for the arbitrary arc < xy > and for
τ as the time instant of departure. In the aforemen-
tioned papers, the traversal time function is assumed
to be known for some values of τ and these values are
utilized for the derivation of the arc traversal time for
an arbitrary time instant of departure.
However, as stated previously, in the networks in-
vestigated in the current paper, it is (realistically) as-
sumed that the time instant of departure may have
any arbitrary value. Therefore, the work presented in
(Chabini and Lan, 2002), (Chabini, 1998), which is
concentrated on discrete-time networks, cannot lead
to optimal shortest path routing in the investigated
networks. Furthermore, in the networks under investi-
gation, the traversal time function is not directly avail-
able, since, as described previously, the speed rather
than the arc traversal time, has been measured. Con-
sequently, the work found in the rest of the aforemen-
tioned papers (which are concentrated on continuous-
time networks) cannot be directly applied for optimal
shortest path routing in the networks under investiga-
tion.
Consider the case where the traversal time func-
tion is derived from the available data (i.e., the speed
measurements) for certain time instants (e.g., for the
time instants that the speed has been measured). This
would be a preprocessing step, performed using the
AT T procedure. Even under this scenario, the work
found in these papers would not lead to optimal short-
est path routing in the investigated networks. The rea-
son is that in all these works, it is assumed that the
traversal time function is a piecewise linear function
of time, having the time instants where it is known,
as breakpoints. Under this assumption, for a time
instant τ for which f
xy
(τ) is unknown, it can be de-
rived by linear interpolation between the consecutive
breakpoints τ
k
, τ
k+1
such that τ
k
< τ < τ
k+1
, using
the known values f
xy
(τ
k
) and f
xy
(τ
k+1
), as shown in
equation 5 below.
f
xy
(τ)−f
xy
(τ
k
)
τ−τ
k
=
f
xy
(τ
k+1
)−f
xy
(τ
k
)
τ
k+1
−τ
k
(4)
⇒ f
xy
(τ) =
f
xy
(τ
k+1
)−f
xy
(τ
k
)
τ
k+1
−τ
k
·(τ −τ
k
) + f
xy
(τ
k
) (5)
In the networks investigated in the current paper,
though, the assumption that the traversal time func-
tion is a piecewise linear function of time, is, in gen-
eral, not valid. This can be proven theoretically; it
is not presented here, since it deviates from the pur-
pose of the current paper. Nevertheless, this can be
easily verified from the example of Figure 1. Here, if
the arc traversal time is derived for the time instants
that the speed has been measured (this must be per-
formed using the AT T procedure), then the derived
traversal time function f
xy
(τ) for time instants equal
to 0s, 10s is equal to 20s, 22s, respectively. Using
equation 5, f
xy
(6) = 21.2s, i.e., the assumption that
f
xy
(τ) is piecewise linear function of time, leads to
arc traversal time equal to 21,2s, for τ = 6s as the
time instant of departure. However, the correct value
is equal to 21.5s, as derived in Section 2. Therefore,
using this example, it is shown that this assumption,
in general, is not valid.
Thus, according to the aforementioned analy-
sis, the alternative approaches for modeling a time-
dependent network cannot be applied for optimal
shortest path routing in the networks under investi-
gation, since for these networks they give suboptimal
solutions. Further analysis of the advantages of the
Shortest Path Routing in Transportation Networks with Time-Dependent Road Speeds
95