[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: math question



PureBytes Links

Trading Reference Links

I need to see certain combinations for a portfolio analysis project I'm 
working on.  I guess this involves a bunch of nested loops?  For example, 
to obtain subsets of 4 unique numbers, I need 4 nested loops and then check 
if a, b, c, and d, hold unique numbers.


At 11:22 PM 4/16/2002 -0600, Mark Jurik wrote:
> >>Thanks.  Is there a way to show these combinations?<<
>
>Yes, but it requires a bit of coding.
>Why would you want to see a list of 4845 entries?
>
>- mark
>
>
>
>
>At 05:17 PM 4/16/2002 -0600, Mark Jurik wrote:
> > >>Out of a list of numbers 1 through 20, I would like to find all the
> >possible unique subsets of 4 numbers.<<
> >
> >That would be ...
> >
> >20.C.4  =  20x19x18x17 / 1x2x3x4  =  4845 combinations
> >
> >- mark