How to optimize this suboptimal Set-Cover solution?
问题 I wrote this program to test how long it would take to "solve" the set-cover problem. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; using MoreLinq; namespace SetCover { class Program { const int maxNumItems = 10000; const int numSets = 5000; const int maxItemsPerSet = 300; static void Main(string[] args) { var rand = new Random(); var sets = new List<HashSet<int>>(numSets); var cover = new List<HashSet<int>>(numSets); var