Data structure to Filter Data Quickly

Viewed 2004

I am doing a bit of research into making an efficient filtering algorithm when it comes to many properties of specific data. This is kind of a fun project for me to learn new data structures.

for example, say I wanted All RPG's on Playstation Which had English releases.

Now I want to allow for much more complex queries.

Is there a good data structure to handle filtering attributes like this, without the need to give all of the attributes. Instead I can give only a few and still find the correct games?

I currently plan to have "buckets" which will describe an attribute, for example all Genre's game ID's will be in one bucket, and so forth. Then I will use a hash algorithm to add 1 to that game, and only use games which have the correct value after the search.

But I want to try to find a faster or easier method, any suggestions when it comes to filtering many attributes to find sets of items?

Thanks,

1 Answers
Related