Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Groups of Objects with Common Attributes

by Anonymous Monk
on May 15, 2018 at 16:43 UTC ( #1214567=note: print w/replies, xml ) Need Help??


in reply to Re^2: Groups of Objects with Common Attributes
in thread Groups of Objects with Common Attributes

Most objects have between 2 and 7 attributes.
With 7 attributes, there are but 2**7 == 128 subsets to consider; and no attribute group with more that 7 attributes.

You could enumerate all subsets of each object. That might total to a few thousand unique attribute groups for the whole problem. In other words, with size and density so low, you can easily afford to construct the powerset of attributes. This way you can transform the 500 by 75 into 500 by few-thousands, search and sort by cardinality or weight, etc.

  • Comment on Re^3: Groups of Objects with Common Attributes

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1214567]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2018-11-14 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (163 votes). Check out past polls.

    Notices?