Finding minimal spanning trees and dominating sets