Closed thearthouse closed 3 years ago
Can you explain in a bit more detail?
in normal array beasts = ['ant', 'bison', 'camel', 'duck']; we can get index of elements like this beasts.indexOf('bison') beasts.indexOf('duck')
in bloom lets say we add this elements 'ant', 'bison', 'camel', 'duck' how to calculate 'bison' index or is it possible ?
it possible ?
In a bloom filter, a given element doesn't necessarily have single index. The closest equivalent would be to get the positions in the bit vector (which you can do using .locations()
in this library. If you want to know about how bloom filters work, I made an interactive visualisation here.
like ['ant', 'bison'].indexOf('ant')