Пример #1
0
        static void Main(string[] args)
        {
            //Make a linearhash
            QuadraticHash linearHash = new QuadraticHash();

            //Add data to the linearHash
            linearHash.add("test0", "test12");
            linearHash.add("test1", "test13");
            linearHash.add("test2", "test14");
            linearHash.add("test3", "test15");

            //Get the posistions array of the linearHash
            linearHash.getPositions();

            //Check if the getValue method works
            Console.WriteLine(linearHash.getValue("test1"));

            //Check if the getHashTableSize method works
            Console.WriteLine(linearHash.getHashTableSize());
            Console.ReadLine();
        }
Пример #2
0
 public static void getQHash()
 {
     QuadraticHash qHash = new QuadraticHash();
 }