Size constrained weighted set cover problem to find top N sets while maximizing the coverage of all elements.
weightedSetCover(idsInSet, costs, topN, nThreads = 4)
A list of topSets
and coverage
.
A list of set IDs.
The percentage of IDs covered in the top sets.
A list of set names and their member IDs.
A vector of the same length to add weights for penalty, i.e. 1/-logP.
The number of sets (or less when it completes early) to return.
The number of processes to use. In Windows, it fallbacks to 1.
Zhiao Shi, Yuxing Liao