find al subsets

Discussion in 'C' started by just programming, Dec 17, 2006.

  1. just programming

    just programming New Member

    Joined:
    Dec 16, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    hello to everybody.
    i try to create an algorithm tha for any number [0,26] find all the subset of the alphabet.
    for example if you give to the programm the number 4 the programm print out

    {}
    {a}
    {b}
    {a,b}
    {c}
    {a,c}
    {b,c}
    {a,b,c}
    {d}
    {a,d}
    {b,d}
    {a,b,d}
    {c,d}
    {a,c,d}
    {b,c,d}
    {a,b,c,d}

    i have been thinking something.i would like to hear any ideas.
    thanks for any reply
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
  3. just programming

    just programming New Member

    Joined:
    Dec 16, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    i saw this thread.it is very interesting.i open this thread for more ideas.
    thanks anyway
     
  4. Aztec

    Aztec New Member

    Joined:
    May 9, 2006
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    0
  5. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
  6. Aztec

    Aztec New Member

    Joined:
    May 9, 2006
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    0
    Ah, yes. Thanks for correction.
     
  7. just programming

    just programming New Member

    Joined:
    Dec 16, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    thanks a lot guys
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice