Formal-language-constrained path problems

被引:93
作者
Barrett, C
Jacob, R
Marathe, M
机构
[1] Los Alamos Natl Lab, Los Alamos, NM 87545 USA
[2] Aarhus Univ, Dept Comp Sci, Ctr Danish Res Fdn, DK-8000 Aarhus C, Denmark
关键词
algorithms; formal languages; computational complexity; transportation planning; World Wide Web; shortest paths; query processing; multicriteria problems;
D O I
10.1137/S0097539798337716
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Given an alphabet Sigma, a (directed) graph G whose edges are weighted and Sigma-labeled, and a formal language L subset of or equal to Sigma*, the formal-language-constrained shortest/simple path problem consists of finding a shortest (simple) path p in G complying with the additional constraint that l(p) is an element of L. Here l(p) denotes the unique word obtained by concatenating the Sigma-labels of the edges along the path p. The main contributions of this paper include the following: (1) We show that the formal-language-constrained shortest path problem is solvable efficiently in polynomial time when L is restricted to be a context-free language (CFL). When L is specified as a regular language we provide algorithms with improved space and time bounds. (2) In contrast, we show that the problem of finding a simple path between a source and a given destination is NP-hard, even when L is restricted to fixed simple regular languages and to very simple classes of graphs (e.g., complete grids). (3) For the class of treewidth-bounded graphs, we show that (i) the problem of finding a regular-language-constrained simple path between source and destination is solvable in polynomial time and (ii) the extension to finding CFL-constrained simple paths is NP-complete. Our results extend the previous results in [SIAM J. Comput., 24 (1995), pp. 1235-1258; Proceedings of the 76th Annual Meeting of the Transportation Research Board, 1997; and Proceedings of the 9th ACM SIGACT-SIGMOD-SIGART Symposium on Database Systems, 1990, pp. 230-242]. Several additional extensions and applications of our results in the context of transportation problems are presented. For instance, as a corollary of our results, we obtain a polynomial-time algorithm for the best k-similar path problem studied in [Proceedings of the 76th Annual Meeting of the Transportation Research Board, 1997]. The previous best algorithm was given by [Proceedings of the 76th Annual Meeting of the Transportation Research Board, 1997] and takes exponential time in the worst case.
引用
收藏
页码:809 / 837
页数:29
相关论文
共 41 条
[1]   Regular path queries with constraints [J].
Abiteboul, S ;
Vianu, V .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1999, 58 (03) :428-452
[2]  
Aho A.V., 1974, The Design and Analysis of Computer Algorithms
[3]  
Ahuja RK, 1993, NETWORK FLOWS THEORY
[4]  
[Anonymous], 1979, Computers and Intractablity: A Guide to the Theoryof NP-Completeness
[5]   AN ALGEBRAIC-THEORY OF GRAPH REDUCTION [J].
ARNBORG, S ;
COURCELLE, B ;
PROSKUROWSKI, A ;
SEESE, D .
JOURNAL OF THE ACM, 1993, 40 (05) :1134-1164
[6]   EASY PROBLEMS FOR TREE-DECOMPOSABLE GRAPHS [J].
ARNBORG, S ;
LAGERGREN, J ;
SEESE, D .
JOURNAL OF ALGORITHMS, 1991, 12 (02) :308-340
[7]  
Ben-Akiva M., 1985, Discrete choice analysis: theory and application to travel demand
[8]   LINEAR-TIME COMPUTATION OF OPTIMAL SUBGRAPHS OF DECOMPOSABLE GRAPHS [J].
BERN, MW ;
LAWLER, EL ;
WONG, AL .
JOURNAL OF ALGORITHMS, 1987, 8 (02) :216-235
[9]  
BODLAENDER HL, 1988, LECT NOTES COMPUT SC, V317, P105
[10]  
BUCHSBAUM AL, 1990, PROCEEDINGS OF THE FIRST ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, P22