yes R is actually size of subset that is always less than or equal to Size
of the Array

i.e r<=n

On Thu, Jul 21, 2011 at 11:16 PM, Puneet Gautam <[email protected]>wrote:

> @umesh: can R take any value from 1 to 3..?
>
> On 7/22/11, UMESH KUMAR <[email protected]> wrote:
> > Hi
> >
> > Given an array of size N that contain some elements, Write a program for
> > finding all possible subset of size R .
> >
> >          n
> > i.e.       P
> >               r
> >
> > Array :[1,2,3,4]
> >
> > n=4,r=3;
> >
> > Output should be:............
> > {1,2,3},(1,2,4).{2,3,4},{...} ................possible 24 sets.
> >
> > Thanks
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Algorithm Geeks" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> > http://groups.google.com/group/algogeeks?hl=en.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to