예제 #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;
        }
예제 #2
0
 public void Put(int i, double x)
 {
     st.Put(i, x);
 }