If I have a set of tags (<100) and a set of objects (~ 25000), where each object has a certain subset of tags, do you know about the existing data structure that would allow for quick retrieval of those objects that satisfy some Boolean function of tags?
Adding / removing tags and objects should not be particularly fast, but the selection of these objects with tags that satisfy the logical function should be.
Now that I have written my question, it looks like I am describing a database in memory, but initially I was thinking of some kind of binary tree, such as a structure for objects, where for each branch, the right branch would be equivalent to the decision to have / have- not any tag. But would that not allow tags with idle attention? I ask how I was wondering if this had been done before, and it’s hard to find Google for data structures.
- Thanks in advance - Paddy.
algorithm data-structures
Paddy3118
source share