Пример #1
0
        static void Main(string[] args)
        {
            var  spellChecker = new BloomFilterList();
            bool hasWord      = spellChecker.CheckWord("Hellenizations");

            if (hasWord)
            {
                Console.WriteLine("Word is found");
            }
            else
            {
                Console.WriteLine("word is NOT found");
            }
            Console.WriteLine(spellChecker.NumberOfBitsSet());
            Console.ReadLine();
        }
Пример #2
0
        static void Main(string[] args)
        {
            var spellChecker = new BloomFilterList();
            bool hasWord = spellChecker.CheckWord("Hellenizations");
            if (hasWord)
            {
                Console.WriteLine("Word is found");

            }
            else
            {
                Console.WriteLine("word is NOT found");
            }
            Console.WriteLine(spellChecker.NumberOfBitsSet());
            Console.ReadLine();
        }