Reputation: 71
Suppose we have a set of n
similar objects having m
properties {p1, ..., pm}
. We group these items with property p1
. Then inside each group, we again group items with property p2
. We continue grouping of sub-groups with the next property, recursively. If we want to get the minimum number of groups, we may search it by grouping items with all permutations of properties in O(m!)
.
Is this problem NP-complete? Is there a well-known problem in computer science similar to this problem? or is there a polynomial time solution to find the best order of properties for partitioning to get minimum number of groups?
Upvotes: 0
Views: 115