Binary weights spanning trees and the $k$-red spanning tree problem in linear time
Dorit S. Hochbaum
TL;DR
This paper studies spanning tree problems on graphs with binary edge weights. It shows that both minimum/maximum spanning trees and the $k$-red spanning tree can be solved in linear time in $m$, contrasting with super-linear algorithms for general weights. The approach partitions edges into red and blue and uses linear-time BFS-based component analysis to verify existence and construct the desired trees, including a constructive $k$-red tree when feasible. It also discusses extensions to the general-weight case, linking the target-sum problem to subset sum and conjecturing strong NP-hardness even for small weight sets.
Abstract
We address here spanning tree problems on a graph with binary edge weights. For a general weighted graph the minimum spanning tree is solved in super-linear running time, even when the edges of the graph are pre-sorted. A related problem, of finding a spanning tree with a pre-specified sum of weights, is NP-hard. In contrast, for a graph with binary weights associated with the edges, it is shown that the minimum spanning tree and finding a spanning tree with a given total sum, are solvable in linear time with simple algorithms.
