106
 правок
Изменения
→Реализация с удалением
'''Вставка'''
      x = h1(item.key)
      y = h2(item.key)
      '''for''' (i = 0; i < ..m; i++)   	         '''if''' table[x] == '''null || ''' '''or''' deleted[x]
            table[x] = item
            deleted[x] = '''false'''
            '''return'''      
         x = (x + y) '''mod ''' m         table.resize()  <span style="color:Green">//ошибка, требуется увеличить размер таблицы
'''Поиск'''
      x = h1(key)
      y = h2(key)
      '''for''' (i = 0; i < ..m; i++)          '''if''' table[x] != '''null'''            '''if''' table[x].key == key && '''and''' !deleted[x]
               '''return''' table[x]
         '''else'''
            '''return''' ''' null'''         x = (x + y) '''mod ''' m         '''return''' ''' null'''
'''Удаление'''
      x = h1(key)
      y = h2(key)
      '''for''' (i = 0; i < ..m; i++)         '''if''' table[x] != '''null'''
            '''if''' table[x].key == key
               deleted[x] = '''true'''
         '''else''' 
            '''return'''
      x = (x + y) '''mod ''' m
== Разрешение коллизий в Java 8==