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 fobidden pairs. Fix one topological ordering ≺ of vertices; we say that pairs {u, v} and {x, y} are disjoint, if u ≺ v ≺ x ≺ y, nested, if u ≺ x ≺ y ≺ v, and halving, if u ≺ x ≺ v ≺ 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 n × n boolean matrices.

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

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

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

[4]  James Demmel,et al.  Benchmarking GPUs to tune dense linear algebra , 2008, 2008 SC - International Conference for High Performance Computing, Networking, Storage and Analysis.

[5]  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.

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

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

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

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

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

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

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

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

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