# Tag Info

## New answers tagged dictionaries

1 vote

### Dictionary with sets as keys where lookup can be set intersection

My understanding: You might have three values in the table with keys (a, b), (a, c), (b, c). When you lookup (d, e, c) you want the values for the keys (a, c) and (b, c) containing a “c”. First you ...
• 25.2k
1 vote

### Dictionary with sets as keys where lookup can be set intersection

Unfortunately, no, this isn't achievable (at least not if you want to handle arbitrary sets as keys). The reason is simple: if $N$ denotes the number of elements in a key set, then it takes $O(N)$ ...
• 141k

Top 50 recent answers are included