Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我得到了一组集合:
{{a,b}, {a,b,c}, {a,c},{a,c,f}}
我想要一个数据结构来索引这些集合,以便快速执行以下“查找”:查找给定集合的所有超集。
例如,给定集合 {a,c} 结构将返回
{{a,b,c},{a,c,f}}
但不是 {a,b}。
有什么建议么?