×

Computing and counting longest paths on circular-arc graphs in polynomial time. (English) Zbl 1288.05137

Summary: The longest path problem asks for a path with the largest number of vertices in a given graph. In contrast to the Hamiltonian path problem, until recently polynomial algorithms for the longest path problem were known only for small graph classes, such as trees. Recently, a polynomial algorithm for this problem on interval graphs has been presented in [K. Ioannidou et al., Algorithmica 61, No. 2, 320–341 (2011; Zbl 1236.05114)] with running time \(O(n^4)\) on a graph with \(n\) vertices, thus answering the open question posed in [R. Uehara and Y. Uno, Lect. Notes Comput. Sci. 3341, 871–883 (2004; Zbl 1116.05318)]. Even though interval and circular-arc graphs look superficially similar, they differ substantially, as circular-arc graphs are not perfect; for instance, several problems – e.g. coloring – are NP-hard on circular-arc graphs, although they can be efficiently solved on interval graphs.
In this paper, we prove that for every path \(P\) of a circular-arc graph \(G\), we can appropriately “cut” the circle, such that the obtained (not induced) interval subgraph \(G^\prime\) of \(G\) admits a path \(P^\prime\) on the same vertices as \(P\). This non-trivial result is of independent interest, as it suggests a generic reduction of a number of path problems on circular-arc graphs to the case of interval graphs with a multiplicative linear time overhead of \(O(n)\). As an application of this reduction, we present the first polynomial algorithm for the longest path problem on circular-arc graphs. In addition, by exploiting deeper the structure of circular-arc graphs, we manage to get rid of the linear time overhead of the reduction, and thus this algorithm turns out to have the same running time  \(O(n^4)\) as the one on interval graphs.
Our algorithm, which significantly simplifies the approach of Ioannidou et al. [loc. cit.], computes in the same time an \(n\)-approximation of the (exponentially large in worst case) number of different vertex sets that provide a longest path; in the case where \(G\) is an interval graph, we compute the exact number. Moreover, in contrast to [Ioannidou et al., loc. cit.], this algorithm can be directly extended with the same running time to the case where every vertex has an arbitrary positive weight.

MSC:

05C38 Paths and cycles
05C35 Extremal problems in graph theory
05C85 Graph algorithms (graph-theoretic aspects)
68W25 Approximation algorithms
90C39 Dynamic programming
Full Text: DOI

References:

[1] Arikati, S. R.; Rangan, C. P., Linear algorithm for optimal path cover problem on interval graphs, Information Processing Letters, 35, 3, 149-153 (1990) · Zbl 0697.68048
[2] Bertossi, A. A., Finding Hamiltonian circuits in proper interval graphs, Information Processing Letters, 17, 2, 97-101 (1983) · Zbl 0512.68046
[3] Björklund, A.; Husfeldt, T., Finding a path of superlogarithmic length, SIAM Journal on Computing, 32, 6, 1395-1402 (2003) · Zbl 1041.68066
[4] Bodlaender, H. L., Achromatic number is NP-complete for cographs and interval graphs, Information Processing Letters, 31, 135-138 (1989) · Zbl 0684.68046
[5] Bulterman, R. W.; van der Sommen, F. W.; Zwaan, G.; Verhoeff, T.; van Gasteren, A. J.M.; Feijen, W. H.J., On computing a longest path in a tree, Information Processing Letters, 81, 2, 93-96 (2002) · Zbl 1032.68671
[7] Colinge, J.; Bennett, K., Introduction to computational proteomics, PLoS Computational Biology, 3, 7 (2007)
[8] Damaschke, P., Paths in interval graphs and circular arc graphs, Discrete Mathematics, 112, 1-3, 49-64 (1993) · Zbl 0777.05081
[9] Damaschke, P.; Deogun, J. S.; Kratsch, D.; Steiner, G., Finding Hamiltonian paths in cocomparability graphs using the bump number algorithm, Order, 8, 383-391 (1992) · Zbl 0760.05063
[10] Deogun, J. S.; Steiner, G., Polynomial algorithms for Hamiltonian cycle in cocomparability graphs, SIAM Journal on Computing, 23, 3, 520-552 (1994) · Zbl 0811.05043
[12] Frieze, A. M., On the number of perfect matchings and Hamilton cycles in epsilon-regular non-bipartite graphs, The Electronic Journal of Combinatorics, 7 (2000) · Zbl 0964.05053
[13] Garey, M. R.; Johnson, D. S., Computers and Intractability: A Guide to the Theory of NP-Completeness (1979), W. H. Freeman & Co.: W. H. Freeman & Co. New York, NY, USA · Zbl 0411.68039
[14] Garey, M. R.; Johnson, D. S.; Miller, G. L.; Papadimitriou, C. H., The complexity of coloring circular arcs and chords, SIAM Journal on Algebraic and Discrete Methods, 1, 2, 216-227 (1980) · Zbl 0499.05058
[15] Golumbic, M. C., (Algorithmic Graph Theory and Perfect Graphs. Algorithmic Graph Theory and Perfect Graphs, Annals of Discrete Mathematics, vol. 57 (2004), North-Holland Publishing Co.) · Zbl 1050.05002
[16] Gupta, U.; Lee, D.; Leung, J.-T., Efficient algorithms for interval graphs and circular-arc graphs, Networks, 459-467 (1982) · Zbl 0493.68066
[17] Hung, R. W.; Chang, M. S., Solving the path cover problem on circular-arc graphs by using an approximation algorithm, Discrete Applied Mathematics, 154, 1, 76-105 (2006) · Zbl 1101.68728
[19] Ioannidou, K.; Mertzios, G. B.; Nikolopoulos, S. D., The longest path problem has a polynomial solution on interval graphs, Algorithmica, 61, 2, 320-341 (2011) · Zbl 1236.05114
[21] Jerrum, M.; Valiant, L.; Vazirani, V., Random generation of combinatorial structures from a uniform distribution, Theoretical Computer Science, 43, 2-3, 169-188 (1986) · Zbl 0597.68056
[22] Karger, D. R.; Motwani, R.; Ramkumar, G. D.S., On approximating the longest path in a graph, Algorithmica, 18, 82-98 (1997) · Zbl 0876.68083
[23] Keil, J. M., Finding Hamiltonian circuits in interval graphs, Information Processing Letters, 20, 201-206 (1985) · Zbl 0578.68053
[24] Madras, N.; Slade, G., The Self-Avoiding Walk (1996), Birkhäuser · Zbl 0872.60076
[26] Mertzios, G. B.; Corneil, D. G., A simple polynomial algorithm for the longest path problem on cocomparability graphs, SIAM Journal on Discrete Mathematics, 26, 3, 940-963 (2012) · Zbl 1256.05237
[27] Randall, D.; Sinclair, A. J., Self-testing algorithms for self-avoiding walks, Journal of Mathematical Physics, 41, 1570-1584 (2000) · Zbl 0977.82020
[28] Rubinstein, R., How many needles are in a hay stack, or how to solve fast #P-complete counting problems, Methodology and Computing in Applied Probability, 11, 5-49 (2007)
[29] Cuntz, H.; Borst, A.; Segev, I., Optimization principles of dendritic structure, Theoretical Biology and Medical Modelling, 4, 08, 21 (2007)
[30] Shih, W.-K.; Chern, T. C.; Hsu, W.-L., An \(O(n^2 \log n)\) algorithm for the Hamiltonian cycle problem on circular-arc graphs, SIAM Journal on Computing, 21, 6, 1026-1046 (1992) · Zbl 0759.68038
[31] Takahara, Y.; Teramoto, S.; Uehara, R., Longest path problems on ptolemaic graphs, IEICE Transactions on Information and Systems, E91-D, 2, 170-177 (2008)
[33] Uehara, R.; Valiente, G., Linear structure of bipartite permutation graphs and the longest path problem, Information Processing Letters, 103, 2, 71-77 (2007) · Zbl 1183.05071
This reference list is based on information provided by the publisher or from digital mathematics libraries. Its items are heuristically matched to zbMATH identifiers and may contain data conversion errors. In some cases that data have been complemented/enhanced by data from zbMATH Open. This attempts to reflect the references listed in the original paper as accurately as possible without claiming completeness or a perfect matching.