I am not sure how to proceed with this problem.
Given an undirected graph, with each edge having color either red or blue. How can I find the minimum spanning tree which contains few red edges as possible, in time complexity (O(m + n) log n). Where m vertices and n are edges.
Any help will be greatly appreciated.