python - Solving minimum set cover using available libraries -


i solve instance of minimum set cover. 1 possibility, there way of formulating problem bipartite graph , using networkx?

update using dlx (dancing links) suggested in comments. can give small working example of how solve minimum set cover problem using dlx?

set cover can mapped np-complete problem on graph, doesn't mean you'll able solve efficiently. there reason don't focus directly on problem @ hand (ie, set cover)?

maybe like: pypi.python.org/pypi/dlx

this can installed using: pip install dlx or easy_install dlx


Comments

Popular posts from this blog

c# - Pausing a storyboard on TabItem mouse over -

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -