i am looking for a specific data structure, but i forgot its name. if i knew the name it would be trivial, i would just look it up in wikipedia :)
basically, it is like a set - except you cannot iterate it.
you put some values in it, lets say 80k zip codes.
then you can test if a given string is definately NOT a zip code, but you will eventually get false positives if you insert too many zip codes.
the memory consumption of this structure is quite small.
what is its name, and is there an implementation in java?