subset algo, hash table

From: someguy (inderjitrai_at_yahoo.com)
Date: 10/25/04


Date: Mon, 25 Oct 2004 15:57:40 -0500

Hi,
            I'm trying to write a function in Java that takes in a string and
prints all the subsets (For example, if you are given "ABC", you would
print: A B C AB AC BC ABC). Any suggestions?

            Also, how could a linked list and a hash table be combined to allow
someone to run through the list from item to item while still maintaining
the ability to access an individual element in O(1) time?

TIA
 



Relevant Pages

  • subset algo, hash table
    ... A B C AB AC BC ABC). ... the ability to access an individual element in Otime? ... TIA ...
    (comp.lang.java.programmer)
  • subet algo, hash table
    ... A B C AB AC BC ABC). ... the ability to access an individual element in Otime? ... TIA ...
    (comp.lang.java.help)
  • Find arguments
    ... When I use Find in code, I generally want a "no-frills" find, so ... works just fine to find "abc" in the values, any part of the values, ... TIA, James ...
    (microsoft.public.excel.programming)
  • Re: SUMPRODUCT - 2 columns (one date one text)
    ... Is there a layperson's explanation you can put up ... TIA. ... >if you also want to count 'abc' as valid value try: ...
    (microsoft.public.excel.misc)
  • Re: alt.coffee.binaries
    ... I've loaded allnews.readfreenews.net and a coule of others, but it's abc ... text only - no piccies. ... TIA ... Craig. ...
    (alt.coffee)