Looping through all combinations
Hi. I'm new here and such. It's been a few years since I've been on any coding forums, but this one seems to be the most active from the forums I remember.
Anyway, I know this has been discussed many times before, but what I'm trying to do is a little different, and I have yet to find or come up with any satisfactory solutions. Basically, given the array,
Right now I can't even think of how to get started, so any help would be greatly appreciated.
How similar this is to something I am working with/on! This is a problem in combinatorics, to give it a mathematical name. You have 5 distinct items, they can be ordered in 120 ways, you only want them ordered in 20 particular ways, quite interesting.
|All times are GMT +1. The time now is 04:50 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.