Example #1
0
        void Resize(int size)
        {
            LinearProbingHashST <TKey, TValue> table = new LinearProbingHashST <TKey, TValue>(size);

            for (int i = 0; i < tableSize; i++)
            {
                if (Keys[i] != null)
                {
                    table.Put(Keys[i], Values[i]);
                }
            }

            Keys           = table.Keys;
            Values         = table.Values;
            this.tableSize = size;
        }
Example #2
0
 public SparseVector()
 {
     st = new LinearProbingHashST <int, double>();
 }