Esempio n. 1
0
        public bool exist(sehir k)
        {
            int  index = hash_func(k.isim);
            bool exist = false;

            for (int i = index; i < table.Length; i++)
            {
                if (table[i].Equals(k))
                {
                    exist = true;
                }
            }
            return(exist);
        }
Esempio n. 2
0
        public void add(sehir k)
        {
            int index = hash_func(k.isim);

            if (table[index] == null)
            {
                table[index] = k;
            }
            else
            {
                while (table[index] != null)
                {
                    index += 1;
                }
                table[index] = k;
            }
        }
Esempio n. 3
0
 public void Remove(sehir s)
 {
     remove(s.isim);
 }