of depths 24, 12, 6 and 3, involving a total of 45 con-
tingent links and 139 time-points, and then up to 500
edges were inserted among random pairs of time-
points.
10
A total of 40 such networks were gener-
ated for this test. Each network was given as in-
put to both algorithms. For each network/algorithm
combination, the run-time (in milliseconds) and the
number of iterations of the inner loop were recorded.
In addition, the ratio of run-times,
MorrisTime
NewAlgTime
, and
the ratio of iterations-used,
MorrisNumIters
NewAlgNumIters
, were com-
puted. Although the run-times of each algorithm var-
ied markedly across different networks, these ratios
were quite stable. For example, in the test described
above, the average run-time for Morris’ algorithm
was 330 ± 1308 msec and the average run-time for
the new algorithm was 228 ± 352 msec, but the aver-
age ratio of run-times was 1.47 ± 0.03, a very sig-
nificant result that indicates that Morris’ algorithm
took almost fifty percent longer to compute its an-
swer. The average numbers of iterations of the in-
ner loops used by each algorithm were similarly quite
varied, but the ratio of these numbers was very stable:
2.12±0.05, a very significant result that indicates that
Morris’ algorithm required over twice as many itera-
tions of the inner loop to compute its answer.
11
In
view of the above, the results for each test given be-
low provide the much more stable ratios of run-times
and numbers-of-iterations, instead of the much more
volatile raw numbers.
The tests in this set are notated,
test(Trials)(D1-D2-D3-D4)(Edges), where Trials
specifies the number of networks generated, D1,
D2, D3 and D4 specify the depths of nesting of the
semi-reducible paths used to seed the network, and
Edges specifies an upper bound on the number of
additional edges that were randomly generated for
the network. For each test, the following charac-
teristics of the randomly generated networks are
reported: number of time-points (N), number of
contingent links (K), average number of edges (E),
average maximum depth (D) of nesting of extension
sub-paths in the network. Finally, the run-time (RT)
and number-of-iterations (It) ratios are also reported.
The test results are shown in Table 4. The results
clearly demonstrate that the new algorithm performs
significantly better than Morris’ algorithm. Further-
10
To ensure the dynamic controllability of the resulting
generated network, some of the randomly generated edges
were discarded. On average, each network in this test had
446 ± 78 edges.
11
The timing ratio and the iterations ratio are different be-
cause Morris’ algorithm runs Bellman Ford once per outer
iteration, whereas the new algorithm runs an extra sink-
Dijkstra/sink-potential routine once per inner iteration.
Table 4: DC checking test results.
Test N K E D RT ratio It ratio
T0 58 18 295 ± 146 6.7 ± 0.6 1.29 ± .07 1.82 ± .04
T1 139 45 446 ± 78 11.5 ± 1.2 1.47 ± .03 2.12 ± .05
T2 139 45 321 ± 27 12.8 ± 1.9 1.58 ± .03 2.33 ± .06
T3 184 60 713 ± 219 14.7 ± 2.0 1.63 ± .04 2.36 ± .08
T4 229 75 569 ± 115 17.6 ± 3.5 1.80 ± .04 2.51 ± .07
T0 = test(40)(8-4-4-2)(400)
T1 = test(40)(24-12-6-3)(500)
T2 = test(100)(24-12-6-3)(300)
T3 = test(40)(32-16-8-4)(900)
T4 = test(40)(40-20-10-5)(600)
more, as the nesting depth, D, of extension sub-paths
increases, the ratio of improvement increases. For ex-
ample, the run-time ratio (RT ratio) increased from
1.29 to 1.80 as the average nesting depth increased
from 6.7 to 17.6. Stated differently, Morris’ algorithm
took 29 percent longer on average for the networks
having an average nesting depth of 6.7, but took 80
percent longer on average for the networks having an
average nesting depth of 17.6.
5 CONCLUSIONS
This paper presented a new DC-checking algorithm
for STNUs that is demonstrated to outperform, on av-
erage, the state-of-the-art DC-checking algorithm due
to Morris, especially for networks with a substantial
amount of nesting of extension sub-paths. The new
algorithm combines two new techniques: the rotating
Dijkstra technique that enables newly generated edges
to be immediately incorporated into the network, and
a heuristic function that determines a “good” order in
which to process the contingent links.
Future work will carry out a more exhaustive em-
pirical evaluation, with an eye toward improving the
ordering heuristic. Further work will explore the po-
tential of using these kinds of techniques to provide a
lower bound on the worst-case complexity of the DC-
checking problem.
REFERENCES
Chien, S., Sherwood, R., Rabideau, G., Zetocha, P., Wain-
wright, R., Klupar, P., Gaasbeck, J. V., Castano, R.,
Davies, A., Burl, M., Knight, R., Stough, T., and Ro-
den, J. (2002). The techsat-21 autonomous space sci-
ence agent. In The First International Joint Confer-
ence on Autonomous Agents and Multiagent Systems
(AAMAS-2002), pages 570–577. ACM Press.
Cormen, T. H., Leiserson, C. E., Rivest, R. L., and Stein, C.
(2009). Introduction to Algorithms. MIT Press.
ICAART2014-InternationalConferenceonAgentsandArtificialIntelligence
72