Ejemplo 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();
 }
Ejemplo 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();
 }
Ejemplo n.º 4
0
 public void Initialize()
 {
     hashFunction = new SecondHashFunction();
 }
 public void Initialize()
 {
     hashFunction = new FirstHashFunction();
 }
Ejemplo n.º 6
0
 public void Initialize()
 {
     hashFunction = new ThirdHashFunction();
 }
 public void Initialize()
 {
     hashFunction = new ThirdHashFunction();
 }
 public void Initialize()
 {
     hashFunction = new SecondHashFunction();
 }