Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Hi Peter, I don't think this is correct. With ''m-subsets of $\{1,2,\cdots,n\}$'' you are not allowing repetition, but I mean for the question to allow repetition. This is wholly my fault, I should never have called $S$ a set!
You might be able to get a reasonable solution using loopy belief propagation' approaches (its sometimes also called generalized belief propagation', see en.wikipedia.org/wiki/Belief_propagation). As far as I know, these are approaches to solving dynamic programing type problems when the graphs have cycles.
I doubt it. I personally am much happier believing a published proof (that I can't find an error in) than the output of some sort of RNG built by hand in the real world.