Article ID: | iaor2013304 |
Volume: | 65 |
Issue: | 1 |
Start Page Number: | 177 |
End Page Number: | 205 |
Publication Date: | Jan 2013 |
Journal: | Algorithmica |
Authors: | Ioannidou Kyriaki, Nikolopoulos Stavros |
Keywords: | graphs |
The longest path problem is the problem of finding a path of maximum length in a graph. As a generalization of the Hamiltonian path problem, it is NP‐complete on general graphs and, in fact, on every class of graphs that the Hamiltonian path problem is NP‐complete. Polynomial solutions for the longest path problem have recently been proposed for weighted trees, Ptolemaic graphs, bipartite permutation graphs, interval graphs, and some small classes of graphs. Although the Hamiltonian path problem on cocomparability graphs was proved to be polynomial almost two decades ago, the complexity status of the longest path problem on cocomparability graphs has remained open; actually, the complexity status of the problem has remained open even on the smaller class of permutation graphs. In this paper, we present a polynomial‐time algorithm for solving the longest path problem on the class of cocomparability graphs. Our result resolves the open question for the complexity of the problem on such graphs, and since cocomparability graphs form a superclass of both interval and permutation graphs, extends the polynomial solution of the longest path problem on interval graphs and provides polynomial solution to the class of permutation graphs.