the time complexity O(|V| · (2ω)
3
) = O(|V| · ω
3
). To
sum it up, given a factorized path problem and some
query set, we only consider the knowledgebase for the
construction of the join tree and ignore the query set.
This gives us the smallest treewidth that can be found
for this inference problem. After local computation,
each node v ∈ V contains φ
↓λ(v)
according to Theorem
1. For each query {X,Y} ∈ x, we search two nodes
v
1
,v
k
∈ V that cover this query {X,Y} ⊆ λ(v
1
)∪λ(v
2
)
and identify the path between them. Then, the above
query answering algorithm is executed. Doing so, all
queries in x can be computed with a total time com-
plexity of O(|x| · |V| · ω
3
). It is clear that for the com-
plete query set, we have |x| = |V|
2
/2 which makes
the time complexity of this algorithm worse than the
direct computation of M
∗
. However, by storing inter-
mediate results in the above algorithm, it is possible
to reduce the complexity of the all-pairs problem to
O(|V|
2
· ω
3
) which corresponds to the construction of
an optimum path tree (Pouly and Kohlas, 2010). Thus,
for extremely sparse path problems this approach may
still be worthwhile. If however only some smaller
subset of queries is required, the performance of this
algorithm is equal to other sparse matrix techniques
which proved their worth in many applications.
7 CONCLUSIONS
We have shown in this article that closure matrices
over Kleene algebras always induce a valuation alge-
bra. This uncovers many new and important instances
of the local computation framework which can now
be studied in this more general setting. It further gives
a general and efficient algorithm for the solution of
sparse path problems when either only a subset of
all queries are of interest, or if a high sparsity rate
is present. There is no need to specify the query set
in advance. The propagated join tree can thus be con-
sidered as the result of a pre-compilation, upon which
queries can later be answered in a dynamic way. This
approach does not assume any structure in the query
set which makes it more generally applicable than
other path algorithms. Finally, the query answering al-
gorithm is only based on the properties of idempotent
valuation algebras and can thus be applied to other
formalisms than matrices over Kleene algebras. This
however still deserves closer investigation.
REFERENCES
Arnborg, S., Corneil, D., and Proskurowski, A. (1987).
Complexity of finding embeddings in a k-tree. SIAM
J. of Algebraic and Discrete Methods, 8:277–284.
Backhouse, R. C. and Carr´e, B. A. (1975). Regular algebra
applied to path-finding problems. Journal of the In-
stitute for Mathematics and its Applications, 15:161–
186.
Chaudhuri, S. and Zaroliagis, C. (1997). Shortest paths in
digraphs of small treewidth. part i: Sequential algo-
rithms. Algorithmica, 27:212–226.
Conway, J. H. (1971). Regular Algebra and Finite Ma-
chines. Chapman and Hall Mathematics Series. Chap-
man and Hall.
Dechter, R. (1999). Bucket elimination: A unifying frame-
work for reasoning. Artificial Intelligence, 113:41–85.
Gondran, M. and Minoux, M. (2008). Graphs, Dioids
and Semirings: New Models and Algorithms. Oper-
ations Research Computer Science Interfaces Series.
Springer Publishing Company, Incorporated.
Jensen, F., Lauritzen, S., and Olesen, K. (1990). Bayesian
updating in causal probabilistic networks by local
computation. Computational Statistics Quarterly, 4.
Kohlas, J. (2003). Information Algebras: Generic Struc-
tures for Inference. Springer-Verlag.
Kozen, D. (1994). A completeness theorem for kleene al-
gebras and the algebra of regular events. Information
and Computing, 110(2):366–390.
Lauritzen, S. L. and Spiegelhalter, D. J. (1988). Local
computations with probabilities on graphical struc-
tures and their application to expert systems. J. Royal
Statis. Soc. B, 50:157–224.
Lehmann, D. J. (1976). Algebraic structures for transitive
closure. Technical report, Department of Computer
Science, University of Warwick.
Lehmann, N. (2001). Argumentation System and Belief
Functions. PhD thesis, Department of Informatics,
University of Fribourg.
Pouly, M. (2008). A Generic Framework for Local Compu-
tation. PhD thesis, Department of Informatics, Uni-
versity of Fribourg.
Pouly, M. and Kohlas, J. (2010). Generic Inference. John
Wiley & Sons, Inc.
Radhakrishnan, V., Hunt, H., and Stearns, R. (1992). Ef-
ficient algorithms for solving systems of linear equa-
tions and path problems. In STACS ’92: Proceedings
of the 9th Annual Symposium on Theoretical Aspects
of Computer Science, pages 109–119, London, UK.
Springer-Verlag.
Rote, G. (1990). Path problems in graphs. Computing
Suppl, 7:155–198.
Shafer, G. and Shenoy, P. (1988). Local computation in
hypertrees. Technical report, University of Kansas.
Shenoy, P. P. (1992). Valuation-based systems: A frame-
work for managing uncertainty in expert systems. In
Zadeh, L. and Kacprzyk, J., editors, Fuzzy Logic for
the Management of Uncertainty, pages 83–104. John
Wiley & Sons.
Shenoy, P. P. and Shafer, G. (1990). Axioms for probability
and belief-function propagation. In Readings in un-
certain reasoning, pages 575–610. Morgan Kaufmann
Publishers Inc.
ICAART 2010 - 2nd International Conference on Agents and Artificial Intelligence
202