Exemplo n.º 1
0
 /// <summary>
 /// Create new hash table
 /// </summary>
 public HashTable(int size, AbstractHashFunction function)
 {
     hashFunction = function;
     maxHash = size;
     hashTable = new List[maxHash];
     for (int i = 0; i < maxHash; ++i)
         hashTable[i] = new List();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create new hash table
 /// </summary>
 public HashTable(int size, AbstractHashFunction function)
 {
     hashFunction = function;
     maxHash      = size;
     hashTable    = new List[maxHash];
     for (int i = 0; i < maxHash; ++i)
     {
         hashTable[i] = new List();
     }
 }
 public void Initialize()
 {
     hashFunction = new FirstHashFunction();
 }
Exemplo n.º 4
0
 public void Initialize()
 {
     hashFunction = new SecondHashFunction();
 }
 public void Initialize()
 {
     hashFunction = new FirstHashFunction();
 }
Exemplo n.º 6
0
 public void Initialize()
 {
     hashFunction = new ThirdHashFunction();
 }
 public void Initialize()
 {
     hashFunction = new ThirdHashFunction();
 }
 public void Initialize()
 {
     hashFunction = new SecondHashFunction();
 }