I'm trying to figure out all the different ways I can create groups of 4 from 6 objects using objective-c.
For example, if I had the following objects: a, b, c, d, e, f
Then I could create groups like
a, b, c, d
b, c, d, e
a, d, e, f
and so on. Order doesn't matter. If I wanted to figure out all the different possibilities, what kind of algorithm do I need? At first I was thinking of permutations, but I don't think that's it. I think there might be something faster or more appropriate, but I forgot what it's called.