Please see http://geeksforgeeks.org/?p=588

Well explained and coded solution.

On Thu, Aug 27, 2009 at 5:28 AM, Dave <[email protected]> wrote:

>
> If the set has fewer elements than an integer has bits, just count
> from 1 to MAXINT. If bit i is 0, the element is not in the set, and if
> bit i is 1, the element is in the set.
>
> Dave
>
> On Aug 26, 2:20 pm, AKS <[email protected]> wrote:
> > Hello fellas,
> >
> > i am lookin for an algorithm to find all the possible subsets in a
> > given set
> >
> > So, if the Set is say, A={a,b,c} omit the null set
> >
> > o/p: ---   {a}  {b}  {c}  {a,b}  {b,c}   {a,c}   {a,b,c}  omit the
> > null set
> >
> > regards,
> > Abhijeet
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to