Complexity of the path avoiding forbidden pairs problem revisited

Let G=(V,E) be a directed acyclic graph with two distinguished vertices s,t, and let F be a set of forbidden pairs of vertices. We say that a path in G is safe, if it contains at most one vertex from each pair {u,v}@?F. Given G and F, the path avoiding forbidden pairs (PAFP) problem is to find a safe s-t path in G. We systematically study the complexity of different special cases of the PAFP problem defined by the mutual positions of forbidden pairs. Fix one topological ordering @? of vertices; we say that pairs {u,v} and {x,y} are disjoint, if [email protected][email protected][email protected]?y, nested, if [email protected][email protected][email protected]?v, and halving, if [email protected][email protected][email protected]?y. The PAFP problem is known to be NP-hard in general or if no two pairs are disjoint; we prove that it remains NP-hard even when no two forbidden pairs are nested. On the other hand, if no two pairs are halving, the problem is known to be solvable in cubic time. We simplify and improve this result by showing an O(M(n)) time algorithm, where M(n) is the time to multiply two nxn boolean matrices.

[1]  Pradip K. Srimani,et al.  Impossible pair constrained test path generation in a program , 1982, Inf. Sci..

[2]  Ondrej Pangrác,et al.  On the complexity of paths avoiding forbidden pairs , 2009, Discret. Appl. Math..

[3]  Michal Ziv-Ukelson,et al.  Reducing the worst case running times of a family of RNA and CFG problems, using Valiant's approach , 2010, Algorithms for Molecular Biology.

[4]  Don Coppersmith,et al.  Matrix multiplication via arithmetic progressions , 1987, STOC.

[5]  Tomás Vinar,et al.  Predicting Gene Structures from Multiple RT-PCR Tests , 2009, WABI.

[6]  Mohammad Taghi Hajiaghayi,et al.  The checkpoint problem , 2010, Theor. Comput. Sci..

[7]  Giuseppe F. Italiano,et al.  Finding Paths and Deleting Edges in Directed Acyclic Graphs , 1988, Inf. Process. Lett..

[8]  Ming-Yang Kao,et al.  A dynamic programming approach to de novo peptide sequencing via tandem mass spectrometry , 2000, SODA '00.

[9]  Leon J. Osterweil,et al.  On Two Problems in the Generation of Program Test Paths , 1976, IEEE Transactions on Software Engineering.

[10]  Wen-mei W. Hwu,et al.  Optimization principles and application performance evaluation of a multithreaded GPU using CUDA , 2008, PPoPP.

[11]  James Demmel,et al.  Benchmarking GPUs to tune dense linear algebra , 2008, HiPC 2008.

[12]  Stefan Kratsch,et al.  Kernel bounds for path and cycle problems , 2011, Theor. Comput. Sci..

[13]  Leslie G. Valiant,et al.  General Context-Free Recognition in Less than Cubic Time , 1975, J. Comput. Syst. Sci..

[14]  Hananya Yinnone,et al.  On Paths Avoiding Forbidden Pairs of Vertices in a Graph , 1997, Discret. Appl. Math..