Assuming lots of sets S = (s_1, s_2, ..., s_m) are known in advance, a series of inquiries comes. We need to quickly decide whether the given set s' is a subset of any set s_i in S or s_i is any subset of s'.
Here, the value m will be very very large, and the inquiries is frequent. How to store the sets S with which data structure or encoding way so that the inquiry is efficient. Can anyone give some suggestion for this problem?