Beispiel #1
0
        public static Bloomfilter union_(Bloomfilter a, Bloomfilter b)
        {
            Debug.Assert(a.numberOfBits == b.numberOfBits);

            Bloomfilter result = new Bloomfilter(a.numberOfBits);

            result.filter = StaticBitset.or_(a.filter, b.filter);
            return(result);
        }
Beispiel #2
0
        public static bool overlap(Bloomfilter a, Bloomfilter b)
        {
            Debug.Assert(a.numberOfBits == b.numberOfBits);

            return(StaticBitset.existsOverlap(a.filter, b.filter));
        }