I am looking for an abstract data structure which represents a collection of sets such that no set in the collection is a subset of another set in the collection.
This means that on insert the following conditions will be met:
A. Inserting an element that is already a subset of another element will return the original collection.
B. Inserting an element that is a superset of any other elements will result in a collection with the superset added and the subsets removed.
Assuming an ordering on the elements of the set, then a prefix tree can be used to represent the collection. This permits condition A to be handled very quickly (ie it takes no longer to check the condition than it would to insert the subset) however meeting condition B takes time.
I am wondering if there is data structure that allows B to be met quickly as well.