in reply to Mutually Exclusive Elements

Your requirements make no sense, from a mathematical perspective. You're looking for "mutually exclusive elements" ... what does that mean for you? My reading of it would say that you don't want the common element of '3' ... but, you say you want it.

Another help would be for you to describe how you got your results by hand ... remember, a computer program is nothing more than the encapsulation of what someone else would have done by hand.

Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

Replies are listed 'Best First'.
Re^2: Mutually Exclusive Elements
by Anonymous Monk on Dec 03, 2004 at 16:33 UTC
    Having single common element is my requirement. You can take that out and calculate 'maximum possible mututally exclusive elments' with minimum number of items in the list as X.

    Assume that I have 1000 of such lists. Each list has upto 100 items. I am searching for a particular element. So I like to get all lists which has 'that' element'. Now I don't want to display entire list. I like to list top 10 elements from each list which can represent the relative uniqueness of that particular list compared to others.

      If you're searching for which lists have a certain item, you will want to use a hash for each list. If you don't want to display the whole list, maybe display the name of the list and an option to click through to see the whole list - kind of a summary vs. detail approach.

      Either way, it seems like a lot of work to calculate a rather complicated set-theory value, just for display purposes.

      Being right, does not endow the right to be rude; politeness costs nothing.
      Being unknowing, is not the same as being stupid.
      Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
      Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

        The lists do not have 'names' or summary. They have just elements. So elements display is essential. My idea is to find the list where I can add a 'new element'. I can use Hash for each list. It would be nice if display order for mini-lists is 'in the order of insertion in the original lists', but not absolutely necessary.

        I concur that it is a lot of work. Assuming I have L lists, each list has an average of N element and I like to display top T elements, what would be the order of algorithm I should be expecting?