The Longest Path Problem has a Polynomial Solution on Interval Graphs
- First Online:
- Cite this article as:
- Ioannidou, K., Mertzios, G.B. & Nikolopoulos, S.D. Algorithmica (2011) 61: 320. doi:10.1007/s00453-010-9411-3
- 277 Downloads
The longest path problem is the problem of finding a path of maximum length in a graph. Polynomial solutions for this problem are known only for small classes of graphs, while it is NP-hard on general graphs, as it is a generalization of the Hamiltonian path problem. Motivated by the work of Uehara and Uno (Proc. of the 15th Annual International Symp. on Algorithms and Computation (ISAAC), LNCS, vol. 3341, pp. 871–883, 2004), where they left the longest path problem open for the class of interval graphs, in this paper we show that the problem can be solved in polynomial time on interval graphs. The proposed algorithm uses a dynamic programming approach and runs in O(n4) time, where n is the number of vertices of the input graph.