Arborescences and Shortest Path Trees when Colors Matter (2403.06580v2)
Abstract: Color-constrained subgraph problems are those where we are given an edge-colored (directed or undirected) graph and the task is to find a specific type of subgraph, like a spanning tree, an arborescence, a single-source shortest path tree, a perfect matching etc., with constraints on the number of edges of each color. Some of these problems, like color-constrained spanning tree, have elegant solutions and some of them, like color-constrained perfect matching, are longstanding open questions. In this work, we study color-constrained arborescences and shortest path trees. Computing a color-constrained shortest path tree on weighted digraphs turns out to be NP-hard in general but polynomial-time solvable when all cycles have positive weight. This polynomial-time solvability is due to the fact that the solution space is essentially the set of all color-constrained arborescences of a directed acyclic subgraph of the original graph. While finding color-constrained arborescence of digraphs is NP-hard in general, we give efficient algorithms when the input graph is acyclic. Consequently, a color-constrained shortest path tree on weighted digraphs having only positive weight cycles can be efficiently computed. Our algorithms also generalize to the problem of finding a color-constrained shortest path tree with minimum total weight. En route, we sight nice connections to colored matroids and color-constrained bases.
- Network flows - theory, algorithms and applications. Prentice Hall, 1993.
- Exact arborescences, matchings and cycles. Discret. Appl. Math., 16(2):91–99, 1987. doi:10.1016/0166-218X(87)90067-9.
- Richard Bellman. On a routing problem. Quarterly of Applied Mathematics, 16(1):87–90, 1958.
- Fair short paths in vertex-colored graphs. In Thirty-Seventh AAAI Conference on Artificial Intelligence, 7-14, 2023, pages 12346–12354. AAAI Press, 2023. URL: https://doi.org/10.1609/aaai.v37i10.26455, doi:10.1609/AAAI.V37I10.26455.
- A survey on exact algorithms for the maximum flow and minimum-cost flow problems. Networks, 2023.
- Reinhard Diestel. Graph Theory. Springer-Verlag Berlin Heidelberg, 2006.
- Edsger W. Dijkstra. A note on two problems in connexion with graphs. Numerische Mathematik, 1:269–271, 1959. doi:10.1007/BF01386390.
- Yefim Dinitz. Algorithm for solution of a problem of maximum flow in networks with power estimation. Soviet Math. Dokl., 11:1277–1280, 01 1970.
- Lester R. Ford. Paper p-923. Network Flow Theory, 1956.
- Harold N. Gabow. An efficient reduction technique for degree-constrained subgraph and bidirected network flow problems. In Proceedings of the 15th Annual ACM Symposium on Theory of Computing, 25-27 April, 1983, Boston, Massachusetts, USA, pages 448–456. ACM, 1983. doi:10.1145/800061.808776.
- Harold N. Gabow. A scaling algorithm for weighted matching on general graphs. In 26th Annual Symposium on Foundations of Computer Science, Portland, Oregon, USA, 21-23 October 1985, pages 90–100. IEEE Computer Society, 1985. doi:10.1109/SFCS.1985.3.
- Efficient algorithms for a family of matroid intersection problems. J. Algorithms, 5(1):80–131, 1984.
- Dan Gusfield. Matroid optimization with the interleaving of two ordered sets. Discret. Appl. Math., 8(1):41–50, 1984. doi:10.1016/0166-218X(84)90077-5.
- An n5/25/2{}^{\mbox{5/2}}start_FLOATSUPERSCRIPT 5/2 end_FLOATSUPERSCRIPT algorithm for maximum matchings in bipartite graphs. SIAM J. Comput., 2(4):225–231, 1973. doi:10.1137/0202019.
- Some matching problems. In International Colloquium on Automata, Languages, and Programming, pages 258–268. Springer, 1977.
- Some matching problems for bipartite graphs. Journal of the ACM (JACM), 25(4):517–525, 1978.
- Balancing minimum spanning trees and shortest-path trees. Algorithmica, 14(4):305–321, 1995. doi:10.1007/BF01294129.
- Dexter Campbell Kozen. Design and Analysis of Algorithms. Texts and Monographs in Computer Science. Springer, 1992. doi:10.1007/978-1-4612-4400-4.
- Harold W. Kuhn. The hungarian method for the assignment problem. Naval Research Logistics Quarterly, 2:83–97, 1955.
- Eugene L. Lawler. Combinatorial optimization. Network and Matroids, 1976.
- Matching is as easy as matrix inversion. In Proceedings of the nineteenth annual ACM symposium on Theory of computing, pages 345–354, 1987.
- James B. Orlin. A faster strongly polynomial minimum cost flow algorithm. Oper. Res., 41(2):338–350, 1993. URL: https://doi.org/10.1287/opre.41.2.338, doi:10.1287/OPRE.41.2.338.
- The complexity of restricted spanning tree problems. J. ACM, 29(2):285–309, 1982. doi:10.1145/322307.322309.
- A multiply constrained matroid optimization problem. Discret. Math., 73(1-2):207–212, 1989. doi:10.1016/0012-365X(88)90149-5.
- Alexander Schrijver. Combinatorial Optimization - Polyhedra and Efficiency. Springer Berlin, Heidelberg, 2003.
- Mandayam A. Srinivas. Matroid optimization with generalized constraints. Discret. Appl. Math., 63(2):161–174, 1995. doi:10.1016/0166-218X(94)00031-8.